blob: 98a53dcb72b5234d4de6e85b7a871322596e0676 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
Duncan Sands67f1c492007-12-12 23:03:45 +0000816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
833DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000834ENABLE_EXPENSIVE_CHECKS
835EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000836DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000837JIT
838TARGET_HAS_JIT
839ENABLE_DOXYGEN
840ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000841ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000842TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000843ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000844EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000845BINUTILS_INCDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000846CXX
847CXXFLAGS
848ac_ct_CXX
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
Reid Spencera773bd52006-08-04 18:18:08 +0000929LIBOBJS
930LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000931ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000932 ac_precious_vars='build_alias
933host_alias
934target_alias
935CC
936CFLAGS
937LDFLAGS
938CPPFLAGS
939CPP
940CXX
941CXXFLAGS
942CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000943CXXCPP
944F77
945FFLAGS'
946ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000947projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000948projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000949projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000950projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000951projects/llvm-reopt
952projects/llvm-gcc
953projects/llvm-java
954projects/llvm-tv
955projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000956projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000957projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000958
959# Initialize some variables set by options.
960ac_init_help=
961ac_init_version=false
962# The variables have the same names as the options, with
963# dashes changed to underlines.
964cache_file=/dev/null
965exec_prefix=NONE
966no_create=
967no_recursion=
968prefix=NONE
969program_prefix=NONE
970program_suffix=NONE
971program_transform_name=s,x,x,
972silent=
973site=
974srcdir=
975verbose=
976x_includes=NONE
977x_libraries=NONE
978
979# Installation directory options.
980# These are left unexpanded so users can "make install exec_prefix=/foo"
981# and all the variables that are supposed to be based on exec_prefix
982# by default will actually change.
983# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000984# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000985bindir='${exec_prefix}/bin'
986sbindir='${exec_prefix}/sbin'
987libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000988datarootdir='${prefix}/share'
989datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000990sysconfdir='${prefix}/etc'
991sharedstatedir='${prefix}/com'
992localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000993includedir='${prefix}/include'
994oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000995docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
996infodir='${datarootdir}/info'
997htmldir='${docdir}'
998dvidir='${docdir}'
999pdfdir='${docdir}'
1000psdir='${docdir}'
1001libdir='${exec_prefix}/lib'
1002localedir='${datarootdir}/locale'
1003mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001004
1005ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001006ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001007for ac_option
1008do
1009 # If the previous option needs an argument, assign it.
1010 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001011 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001012 ac_prev=
1013 continue
1014 fi
1015
Reid Spencera773bd52006-08-04 18:18:08 +00001016 case $ac_option in
1017 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1018 *) ac_optarg=yes ;;
1019 esac
John Criswell7a73b802003-06-30 21:59:07 +00001020
1021 # Accept the important Cygnus configure options, so we can diagnose typos.
1022
Reid Spencera773bd52006-08-04 18:18:08 +00001023 case $ac_dashdash$ac_option in
1024 --)
1025 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001026
1027 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1028 ac_prev=bindir ;;
1029 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1030 bindir=$ac_optarg ;;
1031
1032 -build | --build | --buil | --bui | --bu)
1033 ac_prev=build_alias ;;
1034 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1035 build_alias=$ac_optarg ;;
1036
1037 -cache-file | --cache-file | --cache-fil | --cache-fi \
1038 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1039 ac_prev=cache_file ;;
1040 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1041 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1042 cache_file=$ac_optarg ;;
1043
1044 --config-cache | -C)
1045 cache_file=config.cache ;;
1046
Reid Spencera773bd52006-08-04 18:18:08 +00001047 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001048 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001049 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001050 datadir=$ac_optarg ;;
1051
Reid Spencera773bd52006-08-04 18:18:08 +00001052 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1053 | --dataroo | --dataro | --datar)
1054 ac_prev=datarootdir ;;
1055 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1056 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1057 datarootdir=$ac_optarg ;;
1058
John Criswell7a73b802003-06-30 21:59:07 +00001059 -disable-* | --disable-*)
1060 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1061 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001062 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001063 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1064 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001065 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001066 eval enable_$ac_feature=no ;;
1067
1068 -docdir | --docdir | --docdi | --doc | --do)
1069 ac_prev=docdir ;;
1070 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1071 docdir=$ac_optarg ;;
1072
1073 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1074 ac_prev=dvidir ;;
1075 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1076 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001077
1078 -enable-* | --enable-*)
1079 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001081 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001082 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1083 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001084 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001085 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001086
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1095
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1098 with_gas=yes ;;
1099
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1106
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1111
Reid Spencera773bd52006-08-04 18:18:08 +00001112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 ac_prev=htmldir ;;
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 | --ht=*)
1116 htmldir=$ac_optarg ;;
1117
John Criswell7a73b802003-06-30 21:59:07 +00001118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1124
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 ac_prev=infodir ;;
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1129
1130 -libdir | --libdir | --libdi | --libd)
1131 ac_prev=libdir ;;
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1134
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1141
Reid Spencera773bd52006-08-04 18:18:08 +00001142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1146
John Criswell7a73b802003-06-30 21:59:07 +00001147 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001148 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001152 localstatedir=$ac_optarg ;;
1153
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 ac_prev=mandir ;;
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1158
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1161 with_fp=no ;;
1162
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1165 no_create=yes ;;
1166
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 no_recursion=yes ;;
1170
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1179
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 ac_prev=prefix ;;
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1184
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1191
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1198
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1215
Reid Spencera773bd52006-08-04 18:18:08 +00001216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 ac_prev=pdfdir ;;
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1220
1221 -psdir | --psdir | --psdi | --psd | --ps)
1222 ac_prev=psdir ;;
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 psdir=$ac_optarg ;;
1225
John Criswell7a73b802003-06-30 21:59:07 +00001226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 silent=yes ;;
1229
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 ac_prev=sbindir ;;
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 | --sbi=* | --sb=*)
1234 sbindir=$ac_optarg ;;
1235
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1239 | --sha | --sh)
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 | --sha=* | --sh=*)
1245 sharedstatedir=$ac_optarg ;;
1246
1247 -site | --site | --sit)
1248 ac_prev=site ;;
1249 -site=* | --site=* | --sit=*)
1250 site=$ac_optarg ;;
1251
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 ac_prev=srcdir ;;
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1256
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1263
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1268
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 verbose=yes ;;
1271
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1274
1275 -with-* | --with-*)
1276 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001278 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001279 { echo "$as_me: error: invalid package name: $ac_package" >&2
1280 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001281 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001282 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001283
1284 -without-* | --without-*)
1285 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1286 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001287 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001288 { echo "$as_me: error: invalid package name: $ac_package" >&2
1289 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001290 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001291 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001292
1293 --x)
1294 # Obsolete; use --with-x.
1295 with_x=yes ;;
1296
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302 x_includes=$ac_optarg ;;
1303
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309 x_libraries=$ac_optarg ;;
1310
1311 -*) { echo "$as_me: error: unrecognized option: $ac_option
1312Try \`$0 --help' for more information." >&2
1313 { (exit 1); exit 1; }; }
1314 ;;
1315
1316 *=*)
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
1319 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1320 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1321 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001322 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001323 export $ac_envvar ;;
1324
1325 *)
1326 # FIXME: should be removed in autoconf 3.0.
1327 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1331 ;;
1332
1333 esac
1334done
1335
1336if test -n "$ac_prev"; then
1337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338 { echo "$as_me: error: missing argument to $ac_option" >&2
1339 { (exit 1); exit 1; }; }
1340fi
1341
Reid Spencera773bd52006-08-04 18:18:08 +00001342# Be sure to have absolute directory names.
1343for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001347do
Reid Spencera773bd52006-08-04 18:18:08 +00001348 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001349 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001350 [\\/$]* | ?:[\\/]* ) continue;;
1351 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001352 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001353 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1354 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001355done
1356
1357# There might be people who depend on the old broken behavior: `$host'
1358# used to hold the argument of --host etc.
1359# FIXME: To remove some day.
1360build=$build_alias
1361host=$host_alias
1362target=$target_alias
1363
1364# FIXME: To remove some day.
1365if test "x$host_alias" != x; then
1366 if test "x$build_alias" = x; then
1367 cross_compiling=maybe
1368 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1369 If a cross compiler is detected then cross compile mode will be used." >&2
1370 elif test "x$build_alias" != "x$host_alias"; then
1371 cross_compiling=yes
1372 fi
1373fi
1374
1375ac_tool_prefix=
1376test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378test "$silent" = yes && exec 6>/dev/null
1379
1380
Reid Spencera773bd52006-08-04 18:18:08 +00001381ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382ac_ls_di=`ls -di .` &&
1383ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 { echo "$as_me: error: Working directory cannot be determined" >&2
1385 { (exit 1); exit 1; }; }
1386test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 { echo "$as_me: error: pwd does not report name of working directory" >&2
1388 { (exit 1); exit 1; }; }
1389
1390
John Criswell7a73b802003-06-30 21:59:07 +00001391# Find the source files, if location was not specified.
1392if test -z "$srcdir"; then
1393 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001394 # Try the directory containing this script, then the parent directory.
1395 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001396$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001397 X"$0" : 'X\(//\)[^/]' \| \
1398 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001400echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\/\)[^/].*/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)$/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\).*/{
1414 s//\1/
1415 q
1416 }
1417 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001418 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001419 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001420 srcdir=..
1421 fi
1422else
1423 ac_srcdir_defaulted=no
1424fi
Reid Spencera773bd52006-08-04 18:18:08 +00001425if test ! -r "$srcdir/$ac_unique_file"; then
1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001428 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001429fi
Reid Spencera773bd52006-08-04 18:18:08 +00001430ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431ac_abs_confdir=`(
1432 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001433 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001434 pwd)`
1435# When building in place, set srcdir=.
1436if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 srcdir=.
1438fi
1439# Remove unnecessary trailing slashes from srcdir.
1440# Double slashes in file names in object file debugging info
1441# mess up M-x gdb in Emacs.
1442case $srcdir in
1443*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444esac
1445for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450done
John Criswell7a73b802003-06-30 21:59:07 +00001451
1452#
1453# Report the --help message.
1454#
1455if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001459\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001460
1461Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464VAR=VALUE. See below for descriptions of some of the useful variables.
1465
1466Defaults for the options are specified in brackets.
1467
1468Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478
John Criswell7a73b802003-06-30 21:59:07 +00001479Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001481 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001483 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001484
1485By default, \`make install' will install all the files in
1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488for instance \`--prefix=\$HOME'.
1489
1490For better control, use the options below.
1491
1492Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001512_ACEOF
1513
1514 cat <<\_ACEOF
1515
1516System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519 --target=TARGET configure for building compilers for TARGET [HOST]
1520_ACEOF
1521fi
1522
1523if test -n "$ac_init_help"; then
1524 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001525 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001526 esac
1527 cat <<\_ACEOF
1528
1529Optional Features:
1530 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1531 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001532 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001533 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001534 --enable-expensive-checks
1535
Reid Spencer8b2e1412006-11-17 03:32:33 +00001536 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001537 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001538 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001539 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001540 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001541 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001542 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001543 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001544 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1545 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001546 --enable-bindings Build specific language bindings:
1547 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001548 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001549 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001550 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001551 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001552 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001553 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001554 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001555 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001556 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001557
1558Optional Packages:
1559 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1560 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001561 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1562 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001563 --with-llvmgcc Specify location of llvm-gcc driver (default
1564 searches PATH)
1565 --with-llvmgxx Specify location of llvm-g++ driver (default
1566 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001567 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001568 --with-ocaml-libdir Specify install location for ocaml bindings (default
1569 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001570 --with-binutils-include Specify path to binutils/include/ containing
1571 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001572 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-pic try to use only PIC/non-PIC objects [default=use
1575 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001576 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001577 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001578
1579Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001580 CC C compiler command
1581 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001586 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001587 CXX C++ compiler command
1588 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001589 CXXCPP C++ preprocessor
1590 F77 Fortran 77 compiler command
1591 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001592
1593Use these variables to override the choices made by `configure' or to help
1594it to find libraries and programs with nonstandard names/locations.
1595
1596Report bugs to <llvmbugs@cs.uiuc.edu>.
1597_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001598ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001599fi
1600
1601if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001604 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001605 ac_builddir=.
1606
Reid Spencera773bd52006-08-04 18:18:08 +00001607case "$ac_dir" in
1608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609*)
John Criswell7a73b802003-06-30 21:59:07 +00001610 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 esac ;;
1617esac
1618ac_abs_top_builddir=$ac_pwd
1619ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620# for backward compatibility:
1621ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001622
1623case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001624 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001625 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001629 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1632 *) # Relative name.
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001636esac
Reid Spencera773bd52006-08-04 18:18:08 +00001637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001638
Reid Spencera773bd52006-08-04 18:18:08 +00001639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001647 else
1648 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001649 fi || ac_status=$?
1650 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001651 done
1652fi
1653
Reid Spencera773bd52006-08-04 18:18:08 +00001654test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001655if $ac_init_version; then
1656 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001657llvm configure 2.6svn
1658generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001659
Reid Spencera773bd52006-08-04 18:18:08 +00001660Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16612002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001662This configure script is free software; the Free Software Foundation
1663gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001664
Tanya Lattnercf067672008-01-17 05:57:22 +00001665Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001666_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001667 exit
John Criswell7a73b802003-06-30 21:59:07 +00001668fi
Reid Spencera773bd52006-08-04 18:18:08 +00001669cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001670This file contains any messages produced by compilers while
1671running configure, to aid debugging if configure makes a mistake.
1672
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001673It was created by llvm $as_me 2.6svn, which was
1674generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001675
1676 $ $0 $@
1677
1678_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001679exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001680{
1681cat <<_ASUNAME
1682## --------- ##
1683## Platform. ##
1684## --------- ##
1685
1686hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1687uname -m = `(uname -m) 2>/dev/null || echo unknown`
1688uname -r = `(uname -r) 2>/dev/null || echo unknown`
1689uname -s = `(uname -s) 2>/dev/null || echo unknown`
1690uname -v = `(uname -v) 2>/dev/null || echo unknown`
1691
1692/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1693/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1694
1695/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1696/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1697/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001698/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001699/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1700/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1701/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1702
1703_ASUNAME
1704
1705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1706for as_dir in $PATH
1707do
1708 IFS=$as_save_IFS
1709 test -z "$as_dir" && as_dir=.
1710 echo "PATH: $as_dir"
1711done
Reid Spencera773bd52006-08-04 18:18:08 +00001712IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001713
1714} >&5
1715
1716cat >&5 <<_ACEOF
1717
1718
1719## ----------- ##
1720## Core tests. ##
1721## ----------- ##
1722
1723_ACEOF
1724
1725
1726# Keep a trace of the command line.
1727# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001728# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001729# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001730# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001731ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001732ac_configure_args0=
1733ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001734ac_must_keep_next=false
1735for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001736do
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 for ac_arg
1738 do
1739 case $ac_arg in
1740 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1741 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1742 | -silent | --silent | --silen | --sile | --sil)
1743 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001744 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1746 esac
1747 case $ac_pass in
1748 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1749 2)
1750 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1751 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001752 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001753 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001754 case $ac_arg in
1755 *=* | --config-cache | -C | -disable-* | --disable-* \
1756 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1757 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1758 | -with-* | --with-* | -without-* | --without-* | --x)
1759 case "$ac_configure_args0 " in
1760 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1761 esac
1762 ;;
1763 -* ) ac_must_keep_next=true ;;
1764 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001765 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001766 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 ;;
1768 esac
1769 done
John Criswell7a73b802003-06-30 21:59:07 +00001770done
John Criswell0c38eaf2003-09-10 15:17:25 +00001771$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1772$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 +00001773
1774# When interrupted or exit'd, cleanup temporary files, and complete
1775# config.log. We remove comments because anyway the quotes in there
1776# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001777# WARNING: Use '\'' to represent an apostrophe within the trap.
1778# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001779trap 'exit_status=$?
1780 # Save into config.log some information that might help in debugging.
1781 {
1782 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001783
John Criswell7a73b802003-06-30 21:59:07 +00001784 cat <<\_ASBOX
1785## ---------------- ##
1786## Cache variables. ##
1787## ---------------- ##
1788_ASBOX
1789 echo
1790 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001791(
1792 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1793 eval ac_val=\$$ac_var
1794 case $ac_val in #(
1795 *${as_nl}*)
1796 case $ac_var in #(
1797 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1798echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1799 esac
1800 case $ac_var in #(
1801 _ | IFS | as_nl) ;; #(
1802 *) $as_unset $ac_var ;;
1803 esac ;;
1804 esac
1805 done
John Criswell7a73b802003-06-30 21:59:07 +00001806 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001807 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1808 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001809 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001810 "s/'\''/'\''\\\\'\'''\''/g;
1811 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1812 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001813 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001814 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001815 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001816 esac |
1817 sort
1818)
John Criswell7a73b802003-06-30 21:59:07 +00001819 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001820
1821 cat <<\_ASBOX
1822## ----------------- ##
1823## Output variables. ##
1824## ----------------- ##
1825_ASBOX
1826 echo
1827 for ac_var in $ac_subst_vars
1828 do
Reid Spencera773bd52006-08-04 18:18:08 +00001829 eval ac_val=\$$ac_var
1830 case $ac_val in
1831 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1832 esac
1833 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001834 done | sort
1835 echo
1836
1837 if test -n "$ac_subst_files"; then
1838 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001839## ------------------- ##
1840## File substitutions. ##
1841## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001842_ASBOX
1843 echo
1844 for ac_var in $ac_subst_files
1845 do
Reid Spencera773bd52006-08-04 18:18:08 +00001846 eval ac_val=\$$ac_var
1847 case $ac_val in
1848 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1849 esac
1850 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001851 done | sort
1852 echo
1853 fi
1854
John Criswell7a73b802003-06-30 21:59:07 +00001855 if test -s confdefs.h; then
1856 cat <<\_ASBOX
1857## ----------- ##
1858## confdefs.h. ##
1859## ----------- ##
1860_ASBOX
1861 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001862 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001863 echo
1864 fi
1865 test "$ac_signal" != 0 &&
1866 echo "$as_me: caught signal $ac_signal"
1867 echo "$as_me: exit $exit_status"
1868 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001869 rm -f core *.core core.conftest.* &&
1870 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001871 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001872' 0
John Criswell7a73b802003-06-30 21:59:07 +00001873for ac_signal in 1 2 13 15; do
1874 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1875done
1876ac_signal=0
1877
1878# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001879rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001880
1881# Predefined preprocessor variables.
1882
1883cat >>confdefs.h <<_ACEOF
1884#define PACKAGE_NAME "$PACKAGE_NAME"
1885_ACEOF
1886
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_VERSION "$PACKAGE_VERSION"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_STRING "$PACKAGE_STRING"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1905_ACEOF
1906
1907
1908# Let the site file select an alternate cache file if it wants to.
1909# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001910if test -n "$CONFIG_SITE"; then
1911 set x "$CONFIG_SITE"
1912elif test "x$prefix" != xNONE; then
1913 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1914else
1915 set x "$ac_default_prefix/share/config.site" \
1916 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001917fi
Reid Spencera773bd52006-08-04 18:18:08 +00001918shift
1919for ac_site_file
1920do
John Criswell7a73b802003-06-30 21:59:07 +00001921 if test -r "$ac_site_file"; then
1922 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1923echo "$as_me: loading site script $ac_site_file" >&6;}
1924 sed 's/^/| /' "$ac_site_file" >&5
1925 . "$ac_site_file"
1926 fi
1927done
1928
1929if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special
1931 # files actually), so we avoid doing that.
1932 if test -f "$cache_file"; then
1933 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1934echo "$as_me: loading cache $cache_file" >&6;}
1935 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001938 esac
1939 fi
1940else
1941 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1942echo "$as_me: creating cache $cache_file" >&6;}
1943 >$cache_file
1944fi
1945
1946# Check that the precious variables saved in the cache have kept the same
1947# value.
1948ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001949for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001950 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1951 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001952 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1953 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001954 case $ac_old_set,$ac_new_set in
1955 set,)
1956 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1957echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1958 ac_cache_corrupted=: ;;
1959 ,set)
1960 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1961echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1962 ac_cache_corrupted=: ;;
1963 ,);;
1964 *)
1965 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001966 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001967echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001968 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001969echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001970 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001971echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001972 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001973 fi;;
1974 esac
1975 # Pass precious variables to config.status.
1976 if test "$ac_new_set" = set; then
1977 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001978 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001979 *) ac_arg=$ac_var=$ac_new_val ;;
1980 esac
1981 case " $ac_configure_args " in
1982 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1983 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1984 esac
1985 fi
1986done
1987if $ac_cache_corrupted; then
1988 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1989echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1990 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1991echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1992 { (exit 1); exit 1; }; }
1993fi
1994
Reid Spencera773bd52006-08-04 18:18:08 +00001995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
John Criswell7a73b802003-06-30 21:59:07 +00002019ac_ext=c
2020ac_cpp='$CPP $CPPFLAGS'
2021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2023ac_compiler_gnu=$ac_cv_c_compiler_gnu
2024
2025
2026
Tanya Lattnercf067672008-01-17 05:57:22 +00002027LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002028
2029
2030
2031
2032
2033
2034
John Criswell7a73b802003-06-30 21:59:07 +00002035ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002036for ac_dir in autoconf "$srcdir"/autoconf; do
2037 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002038 ac_aux_dir=$ac_dir
2039 ac_install_sh="$ac_aux_dir/install-sh -c"
2040 break
Reid Spencera773bd52006-08-04 18:18:08 +00002041 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002042 ac_aux_dir=$ac_dir
2043 ac_install_sh="$ac_aux_dir/install.sh -c"
2044 break
Reid Spencera773bd52006-08-04 18:18:08 +00002045 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002046 ac_aux_dir=$ac_dir
2047 ac_install_sh="$ac_aux_dir/shtool install -c"
2048 break
2049 fi
2050done
2051if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002052 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2053echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002054 { (exit 1); exit 1; }; }
2055fi
Reid Spencera773bd52006-08-04 18:18:08 +00002056
2057# These three variables are undocumented and unsupported,
2058# and are intended to be withdrawn in a future Autoconf release.
2059# They can cause serious problems if a builder's source tree is in a directory
2060# whose full name contains unusual characters.
2061ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2062ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2063ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2064
John Criswell7a73b802003-06-30 21:59:07 +00002065
John Criswell392aaa32003-07-22 19:18:09 +00002066
Reid Spencer2706f8c2004-09-19 23:53:36 +00002067if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002068 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2069 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002070echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2071 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072 fi
John Criswell93e1c722003-09-15 17:04:06 +00002073fi
2074
John Criswell33a911a2003-11-25 20:36:46 +00002075for i in `ls ${srcdir}/projects`
2076do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002077 if test -d ${srcdir}/projects/${i} ; then
2078 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002079 CVS) ;;
2080 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002081 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002082 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002083 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002084 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002085 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002086 # llvm-test is the old name of the test-suite, kept here for backwards
2087 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002088 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002089 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002090 test-suite) subdirs="$subdirs projects/test-suite"
2091 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002092 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002093;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002094 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002095 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002096 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002097 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002098 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002099 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002100 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002101 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002102 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002103 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002104 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002105 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002106 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002107 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2108echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002109 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002110 esac
John Criswell33a911a2003-11-25 20:36:46 +00002111 fi
2112done
John Criswell559a6c12003-09-30 16:31:48 +00002113
John Criswell7a73b802003-06-30 21:59:07 +00002114
2115# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002116$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2117 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2118echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002119 { (exit 1); exit 1; }; }
2120
Reid Spencera773bd52006-08-04 18:18:08 +00002121{ echo "$as_me:$LINENO: checking build system type" >&5
2122echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002123if test "${ac_cv_build+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125else
Reid Spencera773bd52006-08-04 18:18:08 +00002126 ac_build_alias=$build_alias
2127test "x$ac_build_alias" = x &&
2128 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2129test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002130 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2131echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2132 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002133ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2134 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2135echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002136 { (exit 1); exit 1; }; }
2137
2138fi
Reid Spencera773bd52006-08-04 18:18:08 +00002139{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2140echo "${ECHO_T}$ac_cv_build" >&6; }
2141case $ac_cv_build in
2142*-*-*) ;;
2143*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2144echo "$as_me: error: invalid value of canonical build" >&2;}
2145 { (exit 1); exit 1; }; };;
2146esac
John Criswell7a73b802003-06-30 21:59:07 +00002147build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002148ac_save_IFS=$IFS; IFS='-'
2149set x $ac_cv_build
2150shift
2151build_cpu=$1
2152build_vendor=$2
2153shift; shift
2154# Remember, the first character of IFS is used to create $*,
2155# except with old shells:
2156build_os=$*
2157IFS=$ac_save_IFS
2158case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002159
2160
Reid Spencera773bd52006-08-04 18:18:08 +00002161{ echo "$as_me:$LINENO: checking host system type" >&5
2162echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002163if test "${ac_cv_host+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165else
Reid Spencera773bd52006-08-04 18:18:08 +00002166 if test "x$host_alias" = x; then
2167 ac_cv_host=$ac_cv_build
2168else
2169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2170 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2171echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002172 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002173fi
John Criswell7a73b802003-06-30 21:59:07 +00002174
2175fi
Reid Spencera773bd52006-08-04 18:18:08 +00002176{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2177echo "${ECHO_T}$ac_cv_host" >&6; }
2178case $ac_cv_host in
2179*-*-*) ;;
2180*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2181echo "$as_me: error: invalid value of canonical host" >&2;}
2182 { (exit 1); exit 1; }; };;
2183esac
John Criswell7a73b802003-06-30 21:59:07 +00002184host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002185ac_save_IFS=$IFS; IFS='-'
2186set x $ac_cv_host
2187shift
2188host_cpu=$1
2189host_vendor=$2
2190shift; shift
2191# Remember, the first character of IFS is used to create $*,
2192# except with old shells:
2193host_os=$*
2194IFS=$ac_save_IFS
2195case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002196
2197
Reid Spencera773bd52006-08-04 18:18:08 +00002198{ echo "$as_me:$LINENO: checking target system type" >&5
2199echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002200if test "${ac_cv_target+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2202else
Reid Spencera773bd52006-08-04 18:18:08 +00002203 if test "x$target_alias" = x; then
2204 ac_cv_target=$ac_cv_host
2205else
2206 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2207 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2208echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002209 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002210fi
John Criswell7a73b802003-06-30 21:59:07 +00002211
2212fi
Reid Spencera773bd52006-08-04 18:18:08 +00002213{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2214echo "${ECHO_T}$ac_cv_target" >&6; }
2215case $ac_cv_target in
2216*-*-*) ;;
2217*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2218echo "$as_me: error: invalid value of canonical target" >&2;}
2219 { (exit 1); exit 1; }; };;
2220esac
John Criswell7a73b802003-06-30 21:59:07 +00002221target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002222ac_save_IFS=$IFS; IFS='-'
2223set x $ac_cv_target
2224shift
2225target_cpu=$1
2226target_vendor=$2
2227shift; shift
2228# Remember, the first character of IFS is used to create $*,
2229# except with old shells:
2230target_os=$*
2231IFS=$ac_save_IFS
2232case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002233
2234
2235# The aliases save the names the user supplied, while $host etc.
2236# will get canonicalized.
2237test -n "$target_alias" &&
2238 test "$program_prefix$program_suffix$program_transform_name" = \
2239 NONENONEs,x,x, &&
2240 program_prefix=${target_alias}-
2241
Reid Spencera773bd52006-08-04 18:18:08 +00002242{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2243echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002244if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002247 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002248 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002251 llvm_cv_os_type="AIX"
2252 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002253 *-*-irix*)
2254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2256 llvm_cv_os_type="IRIX"
2257 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002258 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002261 llvm_cv_os_type="Cygwin"
2262 llvm_cv_platform_type="Unix" ;;
2263 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002264 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002265 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 llvm_cv_os_type="Darwin"
2267 llvm_cv_platform_type="Unix" ;;
2268 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 llvm_cv_os_type="FreeBSD"
2272 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002273 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002276 llvm_cv_os_type="OpenBSD"
2277 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002278 *-*-netbsd*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="NetBSD"
2282 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002283 *-*-dragonfly*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="DragonFly"
2287 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002288 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002291 llvm_cv_os_type="HP-UX"
2292 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002293 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296 llvm_cv_os_type="Interix"
2297 llvm_cv_platform_type="Unix" ;;
2298 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002301 llvm_cv_os_type="Linux"
2302 llvm_cv_platform_type="Unix" ;;
2303 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002304 llvm_cv_link_all_option="-Wl,-z,allextract"
2305 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306 llvm_cv_os_type="SunOS"
2307 llvm_cv_platform_type="Unix" ;;
2308 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002311 llvm_cv_os_type="Win32"
2312 llvm_cv_platform_type="Win32" ;;
2313 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002316 llvm_cv_os_type="MingW"
2317 llvm_cv_platform_type="Win32" ;;
2318 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002319 llvm_cv_link_all_option=""
2320 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002321 llvm_cv_os_type="Unknown"
2322 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002323esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002324fi
Reid Spencera773bd52006-08-04 18:18:08 +00002325{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2326echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002327
Reid Spencer7b3e8512004-12-24 06:29:05 +00002328if test "$llvm_cv_os_type" = "Unknown" ; then
2329 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2330echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002331 { (exit 1); exit 1; }; }
2332fi
2333
Reid Spencer7b3e8512004-12-24 06:29:05 +00002334OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002335
2336
Reid Spencera773bd52006-08-04 18:18:08 +00002337LINKALL=$llvm_cv_link_all_option
2338
2339NOLINKALL=$llvm_cv_no_link_all_option
2340
2341
Reid Spencer7b3e8512004-12-24 06:29:05 +00002342case $llvm_cv_platform_type in
2343 Unix)
2344
2345cat >>confdefs.h <<\_ACEOF
2346#define LLVM_ON_UNIX 1
2347_ACEOF
2348
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002349 LLVM_ON_UNIX=1
2350
2351 LLVM_ON_WIN32=0
2352
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353 ;;
2354 Win32)
2355
2356cat >>confdefs.h <<\_ACEOF
2357#define LLVM_ON_WIN32 1
2358_ACEOF
2359
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002360 LLVM_ON_UNIX=0
2361
2362 LLVM_ON_WIN32=1
2363
Reid Spencer7b3e8512004-12-24 06:29:05 +00002364 ;;
2365esac
2366
Reid Spencera773bd52006-08-04 18:18:08 +00002367{ echo "$as_me:$LINENO: checking target architecture" >&5
2368echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002369if test "${llvm_cv_target_arch+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
2372 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002373 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002374 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002375 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2376 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002377 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002378 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002379 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002380 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002381 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002382 xcore-*) llvm_cv_target_arch="XCore" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002383 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002384esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002385fi
Reid Spencera773bd52006-08-04 18:18:08 +00002386{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2387echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002388
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002389if test "$llvm_cv_target_arch" = "Unknown" ; then
2390 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2391echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2392fi
John Criswell76595452003-07-01 22:07:39 +00002393
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002394ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002395
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002396
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397ac_ext=c
2398ac_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
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398ac_ext=c
3399ac_cpp='$CPP $CPPFLAGS'
3400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003403{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3404echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003405# On Suns, sometimes $CPP names a directory.
3406if test -n "$CPP" && test -d "$CPP"; then
3407 CPP=
3408fi
3409if test -z "$CPP"; then
3410 if test "${ac_cv_prog_CPP+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3412else
3413 # Double quotes because CPP needs to be expanded
3414 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3415 do
3416 ac_preproc_ok=false
3417for ac_c_preproc_warn_flag in '' yes
3418do
3419 # Use a header file that comes with gcc, so configuring glibc
3420 # with a fresh cross-compiler works.
3421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3422 # <limits.h> exists even on freestanding compilers.
3423 # On the NeXT, cc -E runs the code through the compiler's parser,
3424 # not just through cpp. "Syntax error" is here to catch this case.
3425 cat >conftest.$ac_ext <<_ACEOF
3426/* confdefs.h. */
3427_ACEOF
3428cat confdefs.h >>conftest.$ac_ext
3429cat >>conftest.$ac_ext <<_ACEOF
3430/* end confdefs.h. */
3431#ifdef __STDC__
3432# include <limits.h>
3433#else
3434# include <assert.h>
3435#endif
3436 Syntax error
3437_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003438if { (ac_try="$ac_cpp conftest.$ac_ext"
3439case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442esac
3443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003450 (exit $ac_status); } >/dev/null; then
3451 if test -s conftest.err; then
3452 ac_cpp_err=$ac_c_preproc_warn_flag
3453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3454 else
3455 ac_cpp_err=
3456 fi
3457else
3458 ac_cpp_err=yes
3459fi
3460if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003461 :
3462else
3463 echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466 # Broken: fails on valid input.
3467continue
3468fi
Reid Spencera773bd52006-08-04 18:18:08 +00003469
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003470rm -f conftest.err conftest.$ac_ext
3471
Reid Spencera773bd52006-08-04 18:18:08 +00003472 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003473 # can be detected and how.
3474 cat >conftest.$ac_ext <<_ACEOF
3475/* confdefs.h. */
3476_ACEOF
3477cat confdefs.h >>conftest.$ac_ext
3478cat >>conftest.$ac_ext <<_ACEOF
3479/* end confdefs.h. */
3480#include <ac_nonexistent.h>
3481_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003482if { (ac_try="$ac_cpp conftest.$ac_ext"
3483case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486esac
3487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003489 ac_status=$?
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003494 (exit $ac_status); } >/dev/null; then
3495 if test -s conftest.err; then
3496 ac_cpp_err=$ac_c_preproc_warn_flag
3497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3498 else
3499 ac_cpp_err=
3500 fi
3501else
3502 ac_cpp_err=yes
3503fi
3504if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003505 # Broken: success on invalid input.
3506continue
3507else
3508 echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511 # Passes both tests.
3512ac_preproc_ok=:
3513break
3514fi
Reid Spencera773bd52006-08-04 18:18:08 +00003515
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003516rm -f conftest.err conftest.$ac_ext
3517
3518done
3519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3520rm -f conftest.err conftest.$ac_ext
3521if $ac_preproc_ok; then
3522 break
3523fi
3524
3525 done
3526 ac_cv_prog_CPP=$CPP
3527
3528fi
3529 CPP=$ac_cv_prog_CPP
3530else
3531 ac_cv_prog_CPP=$CPP
3532fi
Reid Spencera773bd52006-08-04 18:18:08 +00003533{ echo "$as_me:$LINENO: result: $CPP" >&5
3534echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003535ac_preproc_ok=false
3536for ac_c_preproc_warn_flag in '' yes
3537do
3538 # Use a header file that comes with gcc, so configuring glibc
3539 # with a fresh cross-compiler works.
3540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3541 # <limits.h> exists even on freestanding compilers.
3542 # On the NeXT, cc -E runs the code through the compiler's parser,
3543 # not just through cpp. "Syntax error" is here to catch this case.
3544 cat >conftest.$ac_ext <<_ACEOF
3545/* confdefs.h. */
3546_ACEOF
3547cat confdefs.h >>conftest.$ac_ext
3548cat >>conftest.$ac_ext <<_ACEOF
3549/* end confdefs.h. */
3550#ifdef __STDC__
3551# include <limits.h>
3552#else
3553# include <assert.h>
3554#endif
3555 Syntax error
3556_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003557if { (ac_try="$ac_cpp conftest.$ac_ext"
3558case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561esac
3562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003569 (exit $ac_status); } >/dev/null; then
3570 if test -s conftest.err; then
3571 ac_cpp_err=$ac_c_preproc_warn_flag
3572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3573 else
3574 ac_cpp_err=
3575 fi
3576else
3577 ac_cpp_err=yes
3578fi
3579if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003580 :
3581else
3582 echo "$as_me: failed program was:" >&5
3583sed 's/^/| /' conftest.$ac_ext >&5
3584
3585 # Broken: fails on valid input.
3586continue
3587fi
Reid Spencera773bd52006-08-04 18:18:08 +00003588
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003589rm -f conftest.err conftest.$ac_ext
3590
Reid Spencera773bd52006-08-04 18:18:08 +00003591 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003592 # can be detected and how.
3593 cat >conftest.$ac_ext <<_ACEOF
3594/* confdefs.h. */
3595_ACEOF
3596cat confdefs.h >>conftest.$ac_ext
3597cat >>conftest.$ac_ext <<_ACEOF
3598/* end confdefs.h. */
3599#include <ac_nonexistent.h>
3600_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003601if { (ac_try="$ac_cpp conftest.$ac_ext"
3602case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605esac
3606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003608 ac_status=$?
3609 grep -v '^ *+' conftest.er1 >conftest.err
3610 rm -f conftest.er1
3611 cat conftest.err >&5
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003613 (exit $ac_status); } >/dev/null; then
3614 if test -s conftest.err; then
3615 ac_cpp_err=$ac_c_preproc_warn_flag
3616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3617 else
3618 ac_cpp_err=
3619 fi
3620else
3621 ac_cpp_err=yes
3622fi
3623if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003624 # Broken: success on invalid input.
3625continue
3626else
3627 echo "$as_me: failed program was:" >&5
3628sed 's/^/| /' conftest.$ac_ext >&5
3629
3630 # Passes both tests.
3631ac_preproc_ok=:
3632break
3633fi
Reid Spencera773bd52006-08-04 18:18:08 +00003634
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003635rm -f conftest.err conftest.$ac_ext
3636
3637done
3638# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639rm -f conftest.err conftest.$ac_ext
3640if $ac_preproc_ok; then
3641 :
3642else
3643 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3644See \`config.log' for more details." >&5
3645echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3646See \`config.log' for more details." >&2;}
3647 { (exit 1); exit 1; }; }
3648fi
3649
John Criswell7a73b802003-06-30 21:59:07 +00003650ac_ext=c
3651ac_cpp='$CPP $CPPFLAGS'
3652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655
John Criswell7a73b802003-06-30 21:59:07 +00003656
Reid Spencera773bd52006-08-04 18:18:08 +00003657{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3658echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003659if test "${ac_cv_path_GREP+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661else
Reid Spencera773bd52006-08-04 18:18:08 +00003662 # Extract the first word of "grep ggrep" to use in msg output
3663if test -z "$GREP"; then
3664set dummy grep ggrep; ac_prog_name=$2
3665if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
Reid Spencera773bd52006-08-04 18:18:08 +00003668 ac_path_GREP_found=false
3669# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003671for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003675 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003676 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003677 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003678 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003679 # Check for GNU ac_path_GREP and select it if it is found.
3680 # Check for GNU $ac_path_GREP
3681case `"$ac_path_GREP" --version 2>&1` in
3682*GNU*)
3683 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3684*)
3685 ac_count=0
3686 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3687 while :
3688 do
3689 cat "conftest.in" "conftest.in" >"conftest.tmp"
3690 mv "conftest.tmp" "conftest.in"
3691 cp "conftest.in" "conftest.nl"
3692 echo 'GREP' >> "conftest.nl"
3693 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3695 ac_count=`expr $ac_count + 1`
3696 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3697 # Best one so far, save it but keep looking for a better one
3698 ac_cv_path_GREP="$ac_path_GREP"
3699 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003700 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003701 # 10*(2^10) chars as input seems more than enough
3702 test $ac_count -gt 10 && break
3703 done
3704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3705esac
3706
3707
3708 $ac_path_GREP_found && break 3
3709 done
3710done
3711
3712done
3713IFS=$as_save_IFS
3714
3715
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003716fi
Reid Spencera773bd52006-08-04 18:18:08 +00003717
3718GREP="$ac_cv_path_GREP"
3719if test -z "$GREP"; then
3720 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3721echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3722 { (exit 1); exit 1; }; }
3723fi
3724
3725else
3726 ac_cv_path_GREP=$GREP
3727fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003728
John Criswell7a73b802003-06-30 21:59:07 +00003729
Reid Spencera773bd52006-08-04 18:18:08 +00003730fi
3731{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3732echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3733 GREP="$ac_cv_path_GREP"
3734
3735
3736{ echo "$as_me:$LINENO: checking for egrep" >&5
3737echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3738if test "${ac_cv_path_EGREP+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740else
3741 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3742 then ac_cv_path_EGREP="$GREP -E"
3743 else
3744 # Extract the first word of "egrep" to use in msg output
3745if test -z "$EGREP"; then
3746set dummy egrep; ac_prog_name=$2
3747if test "${ac_cv_path_EGREP+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749else
3750 ac_path_EGREP_found=false
3751# Loop through the user's path and test for each of PROGNAME-LIST
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3754do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
3757 for ac_prog in egrep; do
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003760 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003761 # Check for GNU ac_path_EGREP and select it if it is found.
3762 # Check for GNU $ac_path_EGREP
3763case `"$ac_path_EGREP" --version 2>&1` in
3764*GNU*)
3765 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3766*)
3767 ac_count=0
3768 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3769 while :
3770 do
3771 cat "conftest.in" "conftest.in" >"conftest.tmp"
3772 mv "conftest.tmp" "conftest.in"
3773 cp "conftest.in" "conftest.nl"
3774 echo 'EGREP' >> "conftest.nl"
3775 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3776 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3777 ac_count=`expr $ac_count + 1`
3778 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3779 # Best one so far, save it but keep looking for a better one
3780 ac_cv_path_EGREP="$ac_path_EGREP"
3781 ac_path_EGREP_max=$ac_count
3782 fi
3783 # 10*(2^10) chars as input seems more than enough
3784 test $ac_count -gt 10 && break
3785 done
3786 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3787esac
3788
3789
3790 $ac_path_EGREP_found && break 3
3791 done
3792done
3793
3794done
3795IFS=$as_save_IFS
3796
3797
3798fi
3799
3800EGREP="$ac_cv_path_EGREP"
3801if test -z "$EGREP"; then
3802 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3803echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3804 { (exit 1); exit 1; }; }
3805fi
3806
3807else
3808 ac_cv_path_EGREP=$EGREP
3809fi
3810
3811
3812 fi
3813fi
3814{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3815echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3816 EGREP="$ac_cv_path_EGREP"
3817
3818
3819{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3820echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003821if test "${ac_cv_header_stdc+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823else
3824 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003825/* confdefs.h. */
3826_ACEOF
3827cat confdefs.h >>conftest.$ac_ext
3828cat >>conftest.$ac_ext <<_ACEOF
3829/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003830#include <stdlib.h>
3831#include <stdarg.h>
3832#include <string.h>
3833#include <float.h>
3834
John Criswell0c38eaf2003-09-10 15:17:25 +00003835int
3836main ()
3837{
3838
3839 ;
3840 return 0;
3841}
John Criswell7a73b802003-06-30 21:59:07 +00003842_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003843rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003844if { (ac_try="$ac_compile"
3845case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848esac
3849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003851 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003852 grep -v '^ *+' conftest.er1 >conftest.err
3853 rm -f conftest.er1
3854 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003856 (exit $ac_status); } &&
3857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3858 { (case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861esac
3862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3864 ac_status=$?
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; } &&
3867 { ac_try='test -s conftest.$ac_objext'
3868 { (case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871esac
3872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_try") 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003877 ac_cv_header_stdc=yes
3878else
3879 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003880sed 's/^/| /' conftest.$ac_ext >&5
3881
Reid Spencera773bd52006-08-04 18:18:08 +00003882 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003883fi
Reid Spencera773bd52006-08-04 18:18:08 +00003884
3885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003886
3887if test $ac_cv_header_stdc = yes; then
3888 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3889 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003890/* confdefs.h. */
3891_ACEOF
3892cat confdefs.h >>conftest.$ac_ext
3893cat >>conftest.$ac_ext <<_ACEOF
3894/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003895#include <string.h>
3896
3897_ACEOF
3898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003899 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003900 :
3901else
3902 ac_cv_header_stdc=no
3903fi
3904rm -f conftest*
3905
3906fi
3907
3908if test $ac_cv_header_stdc = yes; then
3909 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3910 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003911/* confdefs.h. */
3912_ACEOF
3913cat confdefs.h >>conftest.$ac_ext
3914cat >>conftest.$ac_ext <<_ACEOF
3915/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003916#include <stdlib.h>
3917
3918_ACEOF
3919if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003920 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003921 :
3922else
3923 ac_cv_header_stdc=no
3924fi
3925rm -f conftest*
3926
3927fi
3928
3929if test $ac_cv_header_stdc = yes; then
3930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3931 if test "$cross_compiling" = yes; then
3932 :
3933else
3934 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003935/* confdefs.h. */
3936_ACEOF
3937cat confdefs.h >>conftest.$ac_ext
3938cat >>conftest.$ac_ext <<_ACEOF
3939/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003940#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003941#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003942#if ((' ' & 0x0FF) == 0x020)
3943# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3944# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3945#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003946# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003947 (('a' <= (c) && (c) <= 'i') \
3948 || ('j' <= (c) && (c) <= 'r') \
3949 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003950# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3951#endif
3952
3953#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3954int
3955main ()
3956{
3957 int i;
3958 for (i = 0; i < 256; i++)
3959 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003960 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003961 return 2;
3962 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003963}
3964_ACEOF
3965rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003966if { (ac_try="$ac_link"
3967case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970esac
3971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003976 { (case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3979esac
3980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 :
3986else
3987 echo "$as_me: program exited with status $ac_status" >&5
3988echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003989sed 's/^/| /' conftest.$ac_ext >&5
3990
John Criswell7a73b802003-06-30 21:59:07 +00003991( exit $ac_status )
3992ac_cv_header_stdc=no
3993fi
Reid Spencera773bd52006-08-04 18:18:08 +00003994rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3995fi
3996
3997
John Criswell7a73b802003-06-30 21:59:07 +00003998fi
3999fi
Reid Spencera773bd52006-08-04 18:18:08 +00004000{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4001echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004002if test $ac_cv_header_stdc = yes; then
4003
4004cat >>confdefs.h <<\_ACEOF
4005#define STDC_HEADERS 1
4006_ACEOF
4007
4008fi
4009
Reid Spencera773bd52006-08-04 18:18:08 +00004010# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4021 inttypes.h stdint.h unistd.h
4022do
4023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4024{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4027 echo $ECHO_N "(cached) $ECHO_C" >&6
4028else
4029 cat >conftest.$ac_ext <<_ACEOF
4030/* confdefs.h. */
4031_ACEOF
4032cat confdefs.h >>conftest.$ac_ext
4033cat >>conftest.$ac_ext <<_ACEOF
4034/* end confdefs.h. */
4035$ac_includes_default
4036
4037#include <$ac_header>
4038_ACEOF
4039rm -f conftest.$ac_objext
4040if { (ac_try="$ac_compile"
4041case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4044esac
4045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_compile") 2>conftest.er1
4047 ac_status=$?
4048 grep -v '^ *+' conftest.er1 >conftest.err
4049 rm -f conftest.er1
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004052 (exit $ac_status); } &&
4053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4057esac
4058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; } &&
4063 { ac_try='test -s conftest.$ac_objext'
4064 { (case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067esac
4068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_try") 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004073 eval "$as_ac_Header=yes"
4074else
4075 echo "$as_me: failed program was:" >&5
4076sed 's/^/| /' conftest.$ac_ext >&5
4077
4078 eval "$as_ac_Header=no"
4079fi
4080
4081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082fi
4083ac_res=`eval echo '${'$as_ac_Header'}'`
4084 { echo "$as_me:$LINENO: result: $ac_res" >&5
4085echo "${ECHO_T}$ac_res" >&6; }
4086if test `eval echo '${'$as_ac_Header'}'` = yes; then
4087 cat >>confdefs.h <<_ACEOF
4088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4089_ACEOF
4090
4091fi
4092
4093done
4094
4095
4096{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4097echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4098if test "${ac_cv_c_bigendian+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4100else
4101 # See if sys/param.h defines the BYTE_ORDER macro.
4102cat >conftest.$ac_ext <<_ACEOF
4103/* confdefs.h. */
4104_ACEOF
4105cat confdefs.h >>conftest.$ac_ext
4106cat >>conftest.$ac_ext <<_ACEOF
4107/* end confdefs.h. */
4108#include <sys/types.h>
4109#include <sys/param.h>
4110
4111int
4112main ()
4113{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004114#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004115 bogus endian macros
4116#endif
4117
4118 ;
4119 return 0;
4120}
4121_ACEOF
4122rm -f conftest.$ac_objext
4123if { (ac_try="$ac_compile"
4124case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4127esac
4128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_compile") 2>conftest.er1
4130 ac_status=$?
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try='test -s conftest.$ac_objext'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150esac
4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004156 # It does; now see whether it defined to BIG_ENDIAN or not.
4157cat >conftest.$ac_ext <<_ACEOF
4158/* confdefs.h. */
4159_ACEOF
4160cat confdefs.h >>conftest.$ac_ext
4161cat >>conftest.$ac_ext <<_ACEOF
4162/* end confdefs.h. */
4163#include <sys/types.h>
4164#include <sys/param.h>
4165
4166int
4167main ()
4168{
4169#if BYTE_ORDER != BIG_ENDIAN
4170 not big endian
4171#endif
4172
4173 ;
4174 return 0;
4175}
4176_ACEOF
4177rm -f conftest.$ac_objext
4178if { (ac_try="$ac_compile"
4179case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4182esac
4183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_compile") 2>conftest.er1
4185 ac_status=$?
4186 grep -v '^ *+' conftest.er1 >conftest.err
4187 rm -f conftest.er1
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004190 (exit $ac_status); } &&
4191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4195esac
4196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; } &&
4201 { ac_try='test -s conftest.$ac_objext'
4202 { (case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205esac
4206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_try") 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004211 ac_cv_c_bigendian=yes
4212else
4213 echo "$as_me: failed program was:" >&5
4214sed 's/^/| /' conftest.$ac_ext >&5
4215
4216 ac_cv_c_bigendian=no
4217fi
4218
4219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220else
4221 echo "$as_me: failed program was:" >&5
4222sed 's/^/| /' conftest.$ac_ext >&5
4223
4224 # It does not; compile a test program.
4225if test "$cross_compiling" = yes; then
4226 # try to guess the endianness by grepping values into an object file
4227 ac_cv_c_bigendian=unknown
4228 cat >conftest.$ac_ext <<_ACEOF
4229/* confdefs.h. */
4230_ACEOF
4231cat confdefs.h >>conftest.$ac_ext
4232cat >>conftest.$ac_ext <<_ACEOF
4233/* end confdefs.h. */
4234short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4235short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4236void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4237short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4238short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4239void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4240int
4241main ()
4242{
4243 _ascii (); _ebcdic ();
4244 ;
4245 return 0;
4246}
4247_ACEOF
4248rm -f conftest.$ac_objext
4249if { (ac_try="$ac_compile"
4250case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253esac
4254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_compile") 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004261 (exit $ac_status); } &&
4262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4263 { (case "(($ac_try" in
4264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4266esac
4267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4269 ac_status=$?
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; } &&
4272 { ac_try='test -s conftest.$ac_objext'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004282 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4283 ac_cv_c_bigendian=yes
4284fi
4285if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4286 if test "$ac_cv_c_bigendian" = unknown; then
4287 ac_cv_c_bigendian=no
4288 else
4289 # finding both strings is unlikely to happen, but who knows?
4290 ac_cv_c_bigendian=unknown
4291 fi
4292fi
4293else
4294 echo "$as_me: failed program was:" >&5
4295sed 's/^/| /' conftest.$ac_ext >&5
4296
4297
4298fi
4299
4300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301else
4302 cat >conftest.$ac_ext <<_ACEOF
4303/* confdefs.h. */
4304_ACEOF
4305cat confdefs.h >>conftest.$ac_ext
4306cat >>conftest.$ac_ext <<_ACEOF
4307/* end confdefs.h. */
4308$ac_includes_default
4309int
4310main ()
4311{
4312
4313 /* Are we little or big endian? From Harbison&Steele. */
4314 union
4315 {
4316 long int l;
4317 char c[sizeof (long int)];
4318 } u;
4319 u.l = 1;
4320 return u.c[sizeof (long int) - 1] == 1;
4321
4322 ;
4323 return 0;
4324}
4325_ACEOF
4326rm -f conftest$ac_exeext
4327if { (ac_try="$ac_link"
4328case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331esac
4332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_link") 2>&5
4334 ac_status=$?
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4337 { (case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340esac
4341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_try") 2>&5
4343 ac_status=$?
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4346 ac_cv_c_bigendian=no
4347else
4348 echo "$as_me: program exited with status $ac_status" >&5
4349echo "$as_me: failed program was:" >&5
4350sed 's/^/| /' conftest.$ac_ext >&5
4351
4352( exit $ac_status )
4353ac_cv_c_bigendian=yes
4354fi
4355rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4356fi
4357
4358
4359fi
4360
4361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4362fi
4363{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4364echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4365case $ac_cv_c_bigendian in
4366 yes)
4367 ENDIAN=big
4368 ;;
4369 no)
4370 ENDIAN=little
4371 ;;
4372 *)
4373 { { echo "$as_me:$LINENO: error: unknown endianness
4374presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4375echo "$as_me: error: unknown endianness
4376presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4377 { (exit 1); exit 1; }; } ;;
4378esac
4379
4380
4381if test "$cross_compiling" = yes; then
4382 LLVM_CROSS_COMPILING=1
4383
4384
4385{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4386echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4387if test "${ac_cv_build_exeext+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389else
4390 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4391 ac_cv_build_exeext=.exe
4392else
4393 ac_build_prefix=${build_alias}-
4394
4395 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4396set dummy ${ac_build_prefix}gcc; ac_word=$2
4397{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4399if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402 if test -n "$BUILD_CC"; then
4403 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4404else
4405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406for as_dir in $PATH
4407do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004411 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 +00004412 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416done
4417done
4418IFS=$as_save_IFS
4419
4420fi
4421fi
4422BUILD_CC=$ac_cv_prog_BUILD_CC
4423if test -n "$BUILD_CC"; then
4424 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4425echo "${ECHO_T}$BUILD_CC" >&6; }
4426else
4427 { echo "$as_me:$LINENO: result: no" >&5
4428echo "${ECHO_T}no" >&6; }
4429fi
4430
4431
4432 if test -z "$BUILD_CC"; then
4433 # Extract the first word of "gcc", so it can be a program name with args.
4434set dummy gcc; ac_word=$2
4435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4437if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4438 echo $ECHO_N "(cached) $ECHO_C" >&6
4439else
4440 if test -n "$BUILD_CC"; then
4441 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4442else
4443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444for as_dir in $PATH
4445do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004449 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 +00004450 ac_cv_prog_BUILD_CC="gcc"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4453 fi
4454done
4455done
4456IFS=$as_save_IFS
4457
4458fi
4459fi
4460BUILD_CC=$ac_cv_prog_BUILD_CC
4461if test -n "$BUILD_CC"; then
4462 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4463echo "${ECHO_T}$BUILD_CC" >&6; }
4464else
4465 { echo "$as_me:$LINENO: result: no" >&5
4466echo "${ECHO_T}no" >&6; }
4467fi
4468
4469
4470 if test -z "$BUILD_CC"; then
4471 # Extract the first word of "cc", so it can be a program name with args.
4472set dummy cc; ac_word=$2
4473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4475if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477else
4478 if test -n "$BUILD_CC"; then
4479 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4480else
4481 ac_prog_rejected=no
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004488 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 +00004489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4490 ac_prog_rejected=yes
4491 continue
4492 fi
4493 ac_cv_prog_BUILD_CC="cc"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497done
4498done
4499IFS=$as_save_IFS
4500
4501if test $ac_prog_rejected = yes; then
4502 # We found a bogon in the path, so make sure we never use it.
4503 set dummy $ac_cv_prog_BUILD_CC
4504 shift
4505 if test $# != 0; then
4506 # We chose a different compiler from the bogus one.
4507 # However, it has the same basename, so the bogon will be chosen
4508 # first if we set BUILD_CC to just the basename; use the full file name.
4509 shift
4510 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4511 fi
4512fi
4513fi
4514fi
4515BUILD_CC=$ac_cv_prog_BUILD_CC
4516if test -n "$BUILD_CC"; then
4517 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4518echo "${ECHO_T}$BUILD_CC" >&6; }
4519else
4520 { echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6; }
4522fi
4523
4524
4525 fi
4526 fi
4527 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4528echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4529 { (exit 1); exit 1; }; }
4530 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4531 rm -f conftest*
4532 echo 'int main () { return 0; }' > conftest.$ac_ext
4533 ac_cv_build_exeext=
4534 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4535 (eval $ac_build_link) 2>&5
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; then
4539 for file in conftest.*; do
4540 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004541 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004542 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4543 esac
4544 done
4545 else
4546 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4547echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4548 { (exit 1); exit 1; }; }
4549 fi
4550 rm -f conftest*
4551 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4552fi
4553fi
4554
4555BUILD_EXEEXT=""
4556test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4557{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4558echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4559ac_build_exeext=$BUILD_EXEEXT
4560
Jim Grosbach673612e2008-10-02 22:56:44 +00004561 ac_build_prefix=${build_alias}-
4562 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4563set dummy ${ac_build_prefix}g++; 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_CXX+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568else
4569 if test -n "$BUILD_CXX"; then
4570 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4571else
4572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573for as_dir in $PATH
4574do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004578 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 +00004579 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583done
4584done
4585IFS=$as_save_IFS
4586
4587fi
4588fi
4589BUILD_CXX=$ac_cv_prog_BUILD_CXX
4590if test -n "$BUILD_CXX"; then
4591 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4592echo "${ECHO_T}$BUILD_CXX" >&6; }
4593else
4594 { echo "$as_me:$LINENO: result: no" >&5
4595echo "${ECHO_T}no" >&6; }
4596fi
4597
4598
4599 if test -z "$BUILD_CXX"; then
4600 # Extract the first word of "g++", so it can be a program name with args.
4601set dummy g++; ac_word=$2
4602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4604if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606else
4607 if test -n "$BUILD_CXX"; then
4608 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4609else
4610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611for as_dir in $PATH
4612do
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004616 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 +00004617 ac_cv_prog_BUILD_CXX="g++"
4618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4620 fi
4621done
4622done
4623IFS=$as_save_IFS
4624
4625fi
4626fi
4627BUILD_CXX=$ac_cv_prog_BUILD_CXX
4628if test -n "$BUILD_CXX"; then
4629 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4630echo "${ECHO_T}$BUILD_CXX" >&6; }
4631else
4632 { echo "$as_me:$LINENO: result: no" >&5
4633echo "${ECHO_T}no" >&6; }
4634fi
4635
4636
4637 if test -z "$BUILD_CXX"; then
4638 # Extract the first word of "c++", so it can be a program name with args.
4639set dummy c++; ac_word=$2
4640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4642if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4644else
4645 if test -n "$BUILD_CXX"; then
4646 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4647else
4648 ac_prog_rejected=no
4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650for as_dir in $PATH
4651do
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004655 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 +00004656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4657 ac_prog_rejected=yes
4658 continue
4659 fi
4660 ac_cv_prog_BUILD_CXX="c++"
4661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664done
4665done
4666IFS=$as_save_IFS
4667
4668if test $ac_prog_rejected = yes; then
4669 # We found a bogon in the path, so make sure we never use it.
4670 set dummy $ac_cv_prog_BUILD_CXX
4671 shift
4672 if test $# != 0; then
4673 # We chose a different compiler from the bogus one.
4674 # However, it has the same basename, so the bogon will be chosen
4675 # first if we set BUILD_CXX to just the basename; use the full file name.
4676 shift
4677 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4678 fi
4679fi
4680fi
4681fi
4682BUILD_CXX=$ac_cv_prog_BUILD_CXX
4683if test -n "$BUILD_CXX"; then
4684 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4685echo "${ECHO_T}$BUILD_CXX" >&6; }
4686else
4687 { echo "$as_me:$LINENO: result: no" >&5
4688echo "${ECHO_T}no" >&6; }
4689fi
4690
4691
4692 fi
4693 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004694else
4695 LLVM_CROSS_COMPILING=0
4696
4697fi
4698
Reid Spencer0b1e4662007-04-02 15:41:39 +00004699if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004700 cvsbuild="yes"
4701 optimize="no"
4702 CVSBUILD=CVSBUILD=1
4703
4704else
4705 cvsbuild="no"
4706 optimize="yes"
4707fi
4708
4709
4710# Check whether --enable-optimized was given.
4711if test "${enable_optimized+set}" = set; then
4712 enableval=$enable_optimized;
4713else
4714 enableval=$optimize
4715fi
4716
4717if test ${enableval} = "no" ; then
4718 ENABLE_OPTIMIZED=
4719
4720else
4721 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4722
4723fi
4724
4725# Check whether --enable-assertions was given.
4726if test "${enable_assertions+set}" = set; then
4727 enableval=$enable_assertions;
4728else
4729 enableval="yes"
4730fi
4731
4732if test ${enableval} = "yes" ; then
4733 DISABLE_ASSERTIONS=
4734
4735else
4736 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4737
4738fi
4739
David Greenea696d242007-06-28 19:36:08 +00004740# Check whether --enable-expensive-checks was given.
4741if test "${enable_expensive_checks+set}" = set; then
4742 enableval=$enable_expensive_checks;
4743else
4744 enableval="no"
4745fi
4746
4747if test ${enableval} = "yes" ; then
4748 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4749
4750 EXPENSIVE_CHECKS=yes
4751
4752else
4753 ENABLE_EXPENSIVE_CHECKS=
4754
4755 EXPENSIVE_CHECKS=no
4756
4757fi
4758
Reid Spencer8b2e1412006-11-17 03:32:33 +00004759# Check whether --enable-debug-runtime was given.
4760if test "${enable_debug_runtime+set}" = set; then
4761 enableval=$enable_debug_runtime;
4762else
4763 enableval=no
4764fi
4765
4766if test ${enableval} = "no" ; then
4767 DEBUG_RUNTIME=
4768
4769else
4770 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4771
4772fi
4773
Reid Spencera773bd52006-08-04 18:18:08 +00004774# Check whether --enable-jit was given.
4775if test "${enable_jit+set}" = set; then
4776 enableval=$enable_jit;
4777else
4778 enableval=default
4779fi
4780
4781if test ${enableval} = "no"
4782then
4783 JIT=
4784
4785else
4786 case "$llvm_cv_target_arch" in
4787 x86) TARGET_HAS_JIT=1
4788 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004789 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004790 ;;
4791 PowerPC) TARGET_HAS_JIT=1
4792 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004793 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004794 ;;
4795 Alpha) TARGET_HAS_JIT=1
4796 ;;
4797 IA64) TARGET_HAS_JIT=0
4798 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004799 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004800 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004801 Mips) TARGET_HAS_JIT=0
4802 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004803 PIC16) TARGET_HAS_JIT=0
4804 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004805 XCore) TARGET_HAS_JIT=0
4806 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004807 *) TARGET_HAS_JIT=0
4808 ;;
4809 esac
4810fi
4811
4812# Check whether --enable-doxygen was given.
4813if test "${enable_doxygen+set}" = set; then
4814 enableval=$enable_doxygen;
4815else
4816 enableval=default
4817fi
4818
4819case "$enableval" in
4820 yes) ENABLE_DOXYGEN=1
4821 ;;
4822 no) ENABLE_DOXYGEN=0
4823 ;;
4824 default) ENABLE_DOXYGEN=0
4825 ;;
4826 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4827echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4828 { (exit 1); exit 1; }; } ;;
4829esac
4830
4831# Check whether --enable-threads was given.
4832if test "${enable_threads+set}" = set; then
4833 enableval=$enable_threads;
4834else
Reid Spencer65c5d752006-11-05 17:08:18 +00004835 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004836fi
4837
4838case "$enableval" in
4839 yes) ENABLE_THREADS=1
4840 ;;
4841 no) ENABLE_THREADS=0
4842 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004843 default) ENABLE_THREADS=1
4844 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004845 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4846echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4847 { (exit 1); exit 1; }; } ;;
4848esac
4849
4850cat >>confdefs.h <<_ACEOF
4851#define ENABLE_THREADS $ENABLE_THREADS
4852_ACEOF
4853
4854
Reid Spencer89b0d992006-12-16 22:07:52 +00004855# Check whether --enable-pic was given.
4856if test "${enable_pic+set}" = set; then
4857 enableval=$enable_pic;
4858else
4859 enableval=default
4860fi
4861
4862case "$enableval" in
4863 yes) ENABLE_PIC=1
4864 ;;
4865 no) ENABLE_PIC=0
4866 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004867 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004868 ;;
4869 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4870echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4871 { (exit 1); exit 1; }; } ;;
4872esac
4873
4874cat >>confdefs.h <<_ACEOF
4875#define ENABLE_PIC $ENABLE_PIC
4876_ACEOF
4877
4878
Reid Spencera773bd52006-08-04 18:18:08 +00004879TARGETS_TO_BUILD=""
4880# Check whether --enable-targets was given.
4881if test "${enable_targets+set}" = set; then
4882 enableval=$enable_targets;
4883else
4884 enableval=all
4885fi
4886
4887case "$enableval" in
Richard Osborneb25baef2008-11-07 10:59:00 +00004888 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004889 host-only)
4890 case "$llvm_cv_target_arch" in
4891 x86) TARGETS_TO_BUILD="X86" ;;
4892 x86_64) TARGETS_TO_BUILD="X86" ;;
4893 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4894 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4895 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4896 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004897 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004898 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004899 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004900 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004901 XCore) TARGETS_TO_BUILD="XCore" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004902 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4903echo "$as_me: error: Can not set target to build" >&2;}
4904 { (exit 1); exit 1; }; } ;;
4905 esac
4906 ;;
4907 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4908 case "$a_target" in
4909 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4910 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4911 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4912 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4913 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4914 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004915 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004916 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004917 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004918 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004919 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004920 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4921 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004922 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004923 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4924echo "$as_me: error: Unrecognized target $a_target" >&2;}
4925 { (exit 1); exit 1; }; } ;;
4926 esac
4927 done
4928 ;;
4929esac
Reid Spencera773bd52006-08-04 18:18:08 +00004930TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4931
4932
Reid Spencer65c5d752006-11-05 17:08:18 +00004933# Check whether --enable-cbe-printf-a was given.
4934if test "${enable_cbe_printf_a+set}" = set; then
4935 enableval=$enable_cbe_printf_a;
4936else
4937 enableval=default
4938fi
4939
4940case "$enableval" in
4941 yes) ENABLE_CBE_PRINTF_A=1
4942 ;;
4943 no) ENABLE_CBE_PRINTF_A=0
4944 ;;
4945 default) ENABLE_CBE_PRINTF_A=1
4946 ;;
4947 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4948echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4949 { (exit 1); exit 1; }; } ;;
4950esac
4951
4952cat >>confdefs.h <<_ACEOF
4953#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4954_ACEOF
4955
4956
Reid Spencera773bd52006-08-04 18:18:08 +00004957
4958# Check whether --with-llvmgccdir was given.
4959if test "${with_llvmgccdir+set}" = set; then
4960 withval=$with_llvmgccdir;
4961else
4962 withval=default
4963fi
4964
4965case "$withval" in
4966 default) WITH_LLVMGCCDIR=default ;;
4967 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4968 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4969echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4970 { (exit 1); exit 1; }; } ;;
4971esac
4972
4973
Devang Patel5d28b882007-12-04 22:54:47 +00004974# Check whether --with-llvmgcc was given.
4975if test "${with_llvmgcc+set}" = set; then
4976 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4977 WITH_LLVMGCCDIR=""
4978fi
4979
4980
4981
4982# Check whether --with-llvmgxx was given.
4983if test "${with_llvmgxx+set}" = set; then
4984 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4985 WITH_LLVMGCCDIR=""
4986fi
4987
4988
4989if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4990 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4991echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4992 { (exit 1); exit 1; }; };
4993fi
4994
4995if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4996 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4997echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4998 { (exit 1); exit 1; }; };
4999fi
5000
5001
Reid Spencera773bd52006-08-04 18:18:08 +00005002# Check whether --with-extra-options was given.
5003if test "${with_extra_options+set}" = set; then
5004 withval=$with_extra_options;
5005else
5006 withval=default
5007fi
5008
5009case "$withval" in
5010 default) EXTRA_OPTIONS= ;;
5011 *) EXTRA_OPTIONS=$withval ;;
5012esac
5013EXTRA_OPTIONS=$EXTRA_OPTIONS
5014
5015
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005016# Check whether --enable-bindings was given.
5017if test "${enable_bindings+set}" = set; then
5018 enableval=$enable_bindings;
5019else
5020 enableval=default
5021fi
5022
5023BINDINGS_TO_BUILD=""
5024case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005025 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005026 all ) BINDINGS_TO_BUILD="ocaml" ;;
5027 none | no) BINDINGS_TO_BUILD="" ;;
5028 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5029 case "$a_binding" in
5030 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5031 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5032echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5033 { (exit 1); exit 1; }; } ;;
5034 esac
5035 done
5036 ;;
5037esac
5038
Reid Spencera773bd52006-08-04 18:18:08 +00005039
Gordon Henriksenf0915682007-10-02 16:42:22 +00005040# Check whether --with-ocaml-libdir was given.
5041if test "${with_ocaml_libdir+set}" = set; then
5042 withval=$with_ocaml_libdir;
5043else
5044 withval=auto
5045fi
5046
5047case "$withval" in
5048 auto) with_ocaml_libdir="$withval" ;;
5049 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5050 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5051echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5052 { (exit 1); exit 1; }; } ;;
5053esac
5054
5055
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005056# Check whether --with-binutils-include was given.
5057if test "${with_binutils_include+set}" = set; then
5058 withval=$with_binutils_include;
5059else
5060 withval=default
5061fi
5062
5063case "$withval" in
5064 default) WITH_BINUTILS_INCDIR=default ;;
5065 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5066 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5067echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5068 { (exit 1); exit 1; }; } ;;
5069esac
5070if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5071 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5072
5073 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5074 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5075 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5076echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5077 { (exit 1); exit 1; }; };
5078 fi
5079fi
5080
5081
Reid Spencera773bd52006-08-04 18:18:08 +00005082ac_ext=c
5083ac_cpp='$CPP $CPPFLAGS'
5084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5088echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5089# On Suns, sometimes $CPP names a directory.
5090if test -n "$CPP" && test -d "$CPP"; then
5091 CPP=
5092fi
5093if test -z "$CPP"; then
5094 if test "${ac_cv_prog_CPP+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096else
5097 # Double quotes because CPP needs to be expanded
5098 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5099 do
5100 ac_preproc_ok=false
5101for ac_c_preproc_warn_flag in '' yes
5102do
5103 # Use a header file that comes with gcc, so configuring glibc
5104 # with a fresh cross-compiler works.
5105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5106 # <limits.h> exists even on freestanding compilers.
5107 # On the NeXT, cc -E runs the code through the compiler's parser,
5108 # not just through cpp. "Syntax error" is here to catch this case.
5109 cat >conftest.$ac_ext <<_ACEOF
5110/* confdefs.h. */
5111_ACEOF
5112cat confdefs.h >>conftest.$ac_ext
5113cat >>conftest.$ac_ext <<_ACEOF
5114/* end confdefs.h. */
5115#ifdef __STDC__
5116# include <limits.h>
5117#else
5118# include <assert.h>
5119#endif
5120 Syntax error
5121_ACEOF
5122if { (ac_try="$ac_cpp conftest.$ac_ext"
5123case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5126esac
5127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5129 ac_status=$?
5130 grep -v '^ *+' conftest.er1 >conftest.err
5131 rm -f conftest.er1
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005134 (exit $ac_status); } >/dev/null; then
5135 if test -s conftest.err; then
5136 ac_cpp_err=$ac_c_preproc_warn_flag
5137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5138 else
5139 ac_cpp_err=
5140 fi
5141else
5142 ac_cpp_err=yes
5143fi
5144if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005145 :
5146else
5147 echo "$as_me: failed program was:" >&5
5148sed 's/^/| /' conftest.$ac_ext >&5
5149
5150 # Broken: fails on valid input.
5151continue
5152fi
5153
5154rm -f conftest.err conftest.$ac_ext
5155
5156 # OK, works on sane cases. Now check whether nonexistent headers
5157 # can be detected and how.
5158 cat >conftest.$ac_ext <<_ACEOF
5159/* confdefs.h. */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
5163/* end confdefs.h. */
5164#include <ac_nonexistent.h>
5165_ACEOF
5166if { (ac_try="$ac_cpp conftest.$ac_ext"
5167case "(($ac_try" in
5168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169 *) ac_try_echo=$ac_try;;
5170esac
5171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5173 ac_status=$?
5174 grep -v '^ *+' conftest.er1 >conftest.err
5175 rm -f conftest.er1
5176 cat conftest.err >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005178 (exit $ac_status); } >/dev/null; then
5179 if test -s conftest.err; then
5180 ac_cpp_err=$ac_c_preproc_warn_flag
5181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5182 else
5183 ac_cpp_err=
5184 fi
5185else
5186 ac_cpp_err=yes
5187fi
5188if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005189 # Broken: success on invalid input.
5190continue
5191else
5192 echo "$as_me: failed program was:" >&5
5193sed 's/^/| /' conftest.$ac_ext >&5
5194
5195 # Passes both tests.
5196ac_preproc_ok=:
5197break
5198fi
5199
5200rm -f conftest.err conftest.$ac_ext
5201
5202done
5203# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5204rm -f conftest.err conftest.$ac_ext
5205if $ac_preproc_ok; then
5206 break
5207fi
5208
5209 done
5210 ac_cv_prog_CPP=$CPP
5211
5212fi
5213 CPP=$ac_cv_prog_CPP
5214else
5215 ac_cv_prog_CPP=$CPP
5216fi
5217{ echo "$as_me:$LINENO: result: $CPP" >&5
5218echo "${ECHO_T}$CPP" >&6; }
5219ac_preproc_ok=false
5220for ac_c_preproc_warn_flag in '' yes
5221do
5222 # Use a header file that comes with gcc, so configuring glibc
5223 # with a fresh cross-compiler works.
5224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225 # <limits.h> exists even on freestanding compilers.
5226 # On the NeXT, cc -E runs the code through the compiler's parser,
5227 # not just through cpp. "Syntax error" is here to catch this case.
5228 cat >conftest.$ac_ext <<_ACEOF
5229/* confdefs.h. */
5230_ACEOF
5231cat confdefs.h >>conftest.$ac_ext
5232cat >>conftest.$ac_ext <<_ACEOF
5233/* end confdefs.h. */
5234#ifdef __STDC__
5235# include <limits.h>
5236#else
5237# include <assert.h>
5238#endif
5239 Syntax error
5240_ACEOF
5241if { (ac_try="$ac_cpp conftest.$ac_ext"
5242case "(($ac_try" in
5243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5244 *) ac_try_echo=$ac_try;;
5245esac
5246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5248 ac_status=$?
5249 grep -v '^ *+' conftest.er1 >conftest.err
5250 rm -f conftest.er1
5251 cat conftest.err >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005253 (exit $ac_status); } >/dev/null; then
5254 if test -s conftest.err; then
5255 ac_cpp_err=$ac_c_preproc_warn_flag
5256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5257 else
5258 ac_cpp_err=
5259 fi
5260else
5261 ac_cpp_err=yes
5262fi
5263if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005264 :
5265else
5266 echo "$as_me: failed program was:" >&5
5267sed 's/^/| /' conftest.$ac_ext >&5
5268
5269 # Broken: fails on valid input.
5270continue
5271fi
5272
5273rm -f conftest.err conftest.$ac_ext
5274
5275 # OK, works on sane cases. Now check whether nonexistent headers
5276 # can be detected and how.
5277 cat >conftest.$ac_ext <<_ACEOF
5278/* confdefs.h. */
5279_ACEOF
5280cat confdefs.h >>conftest.$ac_ext
5281cat >>conftest.$ac_ext <<_ACEOF
5282/* end confdefs.h. */
5283#include <ac_nonexistent.h>
5284_ACEOF
5285if { (ac_try="$ac_cpp conftest.$ac_ext"
5286case "(($ac_try" in
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5289esac
5290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5292 ac_status=$?
5293 grep -v '^ *+' conftest.er1 >conftest.err
5294 rm -f conftest.er1
5295 cat conftest.err >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005297 (exit $ac_status); } >/dev/null; then
5298 if test -s conftest.err; then
5299 ac_cpp_err=$ac_c_preproc_warn_flag
5300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5301 else
5302 ac_cpp_err=
5303 fi
5304else
5305 ac_cpp_err=yes
5306fi
5307if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005308 # Broken: success on invalid input.
5309continue
5310else
5311 echo "$as_me: failed program was:" >&5
5312sed 's/^/| /' conftest.$ac_ext >&5
5313
5314 # Passes both tests.
5315ac_preproc_ok=:
5316break
5317fi
5318
5319rm -f conftest.err conftest.$ac_ext
5320
5321done
5322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5323rm -f conftest.err conftest.$ac_ext
5324if $ac_preproc_ok; then
5325 :
5326else
5327 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5328See \`config.log' for more details." >&5
5329echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5330See \`config.log' for more details." >&2;}
5331 { (exit 1); exit 1; }; }
5332fi
5333
5334ac_ext=c
5335ac_cpp='$CPP $CPPFLAGS'
5336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338ac_compiler_gnu=$ac_cv_c_compiler_gnu
5339
5340ac_ext=c
5341ac_cpp='$CPP $CPPFLAGS'
5342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5344ac_compiler_gnu=$ac_cv_c_compiler_gnu
5345if test -n "$ac_tool_prefix"; then
5346 for ac_prog in gcc
5347 do
5348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5349set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5350{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5352if test "${ac_cv_prog_CC+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 if test -n "$CC"; then
5356 ac_cv_prog_CC="$CC" # Let the user override the test.
5357else
5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005364 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 +00005365 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
5369done
5370done
5371IFS=$as_save_IFS
5372
5373fi
5374fi
5375CC=$ac_cv_prog_CC
5376if test -n "$CC"; then
5377 { echo "$as_me:$LINENO: result: $CC" >&5
5378echo "${ECHO_T}$CC" >&6; }
5379else
5380 { echo "$as_me:$LINENO: result: no" >&5
5381echo "${ECHO_T}no" >&6; }
5382fi
5383
5384
5385 test -n "$CC" && break
5386 done
5387fi
5388if test -z "$CC"; then
5389 ac_ct_CC=$CC
5390 for ac_prog in gcc
5391do
5392 # Extract the first word of "$ac_prog", so it can be a program name with args.
5393set dummy $ac_prog; ac_word=$2
5394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5396if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399 if test -n "$ac_ct_CC"; then
5400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5401else
5402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403for as_dir in $PATH
5404do
5405 IFS=$as_save_IFS
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005408 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 +00005409 ac_cv_prog_ac_ct_CC="$ac_prog"
5410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 break 2
5412 fi
5413done
5414done
5415IFS=$as_save_IFS
5416
5417fi
5418fi
5419ac_ct_CC=$ac_cv_prog_ac_ct_CC
5420if test -n "$ac_ct_CC"; then
5421 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5422echo "${ECHO_T}$ac_ct_CC" >&6; }
5423else
5424 { echo "$as_me:$LINENO: result: no" >&5
5425echo "${ECHO_T}no" >&6; }
5426fi
5427
5428
5429 test -n "$ac_ct_CC" && break
5430done
5431
5432 if test "x$ac_ct_CC" = x; then
5433 CC=""
5434 else
5435 case $cross_compiling:$ac_tool_warned in
5436yes:)
5437{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5438whose name does not start with the host triplet. If you think this
5439configuration is useful to you, please write to autoconf@gnu.org." >&5
5440echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5441whose name does not start with the host triplet. If you think this
5442configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5443ac_tool_warned=yes ;;
5444esac
5445 CC=$ac_ct_CC
5446 fi
5447fi
5448
5449
5450test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5451See \`config.log' for more details." >&5
5452echo "$as_me: error: no acceptable C compiler found in \$PATH
5453See \`config.log' for more details." >&2;}
5454 { (exit 1); exit 1; }; }
5455
5456# Provide some information about the compiler.
5457echo "$as_me:$LINENO: checking for C compiler version" >&5
5458ac_compiler=`set X $ac_compile; echo $2`
5459{ (ac_try="$ac_compiler --version >&5"
5460case "(($ac_try" in
5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5463esac
5464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_compiler --version >&5") 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }
5469{ (ac_try="$ac_compiler -v >&5"
5470case "(($ac_try" in
5471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5472 *) ac_try_echo=$ac_try;;
5473esac
5474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5475 (eval "$ac_compiler -v >&5") 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }
5479{ (ac_try="$ac_compiler -V >&5"
5480case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483esac
5484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_compiler -V >&5") 2>&5
5486 ac_status=$?
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); }
5489
5490{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5491echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5492if test "${ac_cv_c_compiler_gnu+set}" = set; then
5493 echo $ECHO_N "(cached) $ECHO_C" >&6
5494else
5495 cat >conftest.$ac_ext <<_ACEOF
5496/* confdefs.h. */
5497_ACEOF
5498cat confdefs.h >>conftest.$ac_ext
5499cat >>conftest.$ac_ext <<_ACEOF
5500/* end confdefs.h. */
5501
5502int
5503main ()
5504{
5505#ifndef __GNUC__
5506 choke me
5507#endif
5508
5509 ;
5510 return 0;
5511}
5512_ACEOF
5513rm -f conftest.$ac_objext
5514if { (ac_try="$ac_compile"
5515case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518esac
5519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_compile") 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005526 (exit $ac_status); } &&
5527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5528 { (case "(($ac_try" in
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5531esac
5532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_try") 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); }; } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (case "(($ac_try" in
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5541esac
5542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_try") 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005547 ac_compiler_gnu=yes
5548else
5549 echo "$as_me: failed program was:" >&5
5550sed 's/^/| /' conftest.$ac_ext >&5
5551
5552 ac_compiler_gnu=no
5553fi
5554
5555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556ac_cv_c_compiler_gnu=$ac_compiler_gnu
5557
5558fi
5559{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5560echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5561GCC=`test $ac_compiler_gnu = yes && echo yes`
5562ac_test_CFLAGS=${CFLAGS+set}
5563ac_save_CFLAGS=$CFLAGS
5564{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5565echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5566if test "${ac_cv_prog_cc_g+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568else
5569 ac_save_c_werror_flag=$ac_c_werror_flag
5570 ac_c_werror_flag=yes
5571 ac_cv_prog_cc_g=no
5572 CFLAGS="-g"
5573 cat >conftest.$ac_ext <<_ACEOF
5574/* confdefs.h. */
5575_ACEOF
5576cat confdefs.h >>conftest.$ac_ext
5577cat >>conftest.$ac_ext <<_ACEOF
5578/* end confdefs.h. */
5579
5580int
5581main ()
5582{
5583
5584 ;
5585 return 0;
5586}
5587_ACEOF
5588rm -f conftest.$ac_objext
5589if { (ac_try="$ac_compile"
5590case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593esac
5594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_compile") 2>conftest.er1
5596 ac_status=$?
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005601 (exit $ac_status); } &&
5602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5603 { (case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606esac
5607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_try") 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; } &&
5612 { ac_try='test -s conftest.$ac_objext'
5613 { (case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616esac
5617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_try") 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005622 ac_cv_prog_cc_g=yes
5623else
5624 echo "$as_me: failed program was:" >&5
5625sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 CFLAGS=""
5628 cat >conftest.$ac_ext <<_ACEOF
5629/* confdefs.h. */
5630_ACEOF
5631cat confdefs.h >>conftest.$ac_ext
5632cat >>conftest.$ac_ext <<_ACEOF
5633/* end confdefs.h. */
5634
5635int
5636main ()
5637{
5638
5639 ;
5640 return 0;
5641}
5642_ACEOF
5643rm -f conftest.$ac_objext
5644if { (ac_try="$ac_compile"
5645case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648esac
5649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_compile") 2>conftest.er1
5651 ac_status=$?
5652 grep -v '^ *+' conftest.er1 >conftest.err
5653 rm -f conftest.er1
5654 cat conftest.err >&5
5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005656 (exit $ac_status); } &&
5657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5658 { (case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661esac
5662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_try") 2>&5
5664 ac_status=$?
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); }; } &&
5667 { ac_try='test -s conftest.$ac_objext'
5668 { (case "(($ac_try" in
5669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5670 *) ac_try_echo=$ac_try;;
5671esac
5672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5673 (eval "$ac_try") 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005677 :
5678else
5679 echo "$as_me: failed program was:" >&5
5680sed 's/^/| /' conftest.$ac_ext >&5
5681
5682 ac_c_werror_flag=$ac_save_c_werror_flag
5683 CFLAGS="-g"
5684 cat >conftest.$ac_ext <<_ACEOF
5685/* confdefs.h. */
5686_ACEOF
5687cat confdefs.h >>conftest.$ac_ext
5688cat >>conftest.$ac_ext <<_ACEOF
5689/* end confdefs.h. */
5690
5691int
5692main ()
5693{
5694
5695 ;
5696 return 0;
5697}
5698_ACEOF
5699rm -f conftest.$ac_objext
5700if { (ac_try="$ac_compile"
5701case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704esac
5705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_compile") 2>conftest.er1
5707 ac_status=$?
5708 grep -v '^ *+' conftest.er1 >conftest.err
5709 rm -f conftest.er1
5710 cat conftest.err >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005712 (exit $ac_status); } &&
5713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5714 { (case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717esac
5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_try") 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }; } &&
5723 { ac_try='test -s conftest.$ac_objext'
5724 { (case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727esac
5728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5729 (eval "$ac_try") 2>&5
5730 ac_status=$?
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005733 ac_cv_prog_cc_g=yes
5734else
5735 echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
5738
5739fi
5740
5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742fi
5743
5744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745fi
5746
5747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 ac_c_werror_flag=$ac_save_c_werror_flag
5749fi
5750{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5751echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5752if test "$ac_test_CFLAGS" = set; then
5753 CFLAGS=$ac_save_CFLAGS
5754elif test $ac_cv_prog_cc_g = yes; then
5755 if test "$GCC" = yes; then
5756 CFLAGS="-g -O2"
5757 else
5758 CFLAGS="-g"
5759 fi
5760else
5761 if test "$GCC" = yes; then
5762 CFLAGS="-O2"
5763 else
5764 CFLAGS=
5765 fi
5766fi
5767{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5768echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5769if test "${ac_cv_prog_cc_c89+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772 ac_cv_prog_cc_c89=no
5773ac_save_CC=$CC
5774cat >conftest.$ac_ext <<_ACEOF
5775/* confdefs.h. */
5776_ACEOF
5777cat confdefs.h >>conftest.$ac_ext
5778cat >>conftest.$ac_ext <<_ACEOF
5779/* end confdefs.h. */
5780#include <stdarg.h>
5781#include <stdio.h>
5782#include <sys/types.h>
5783#include <sys/stat.h>
5784/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5785struct buf { int x; };
5786FILE * (*rcsopen) (struct buf *, struct stat *, int);
5787static char *e (p, i)
5788 char **p;
5789 int i;
5790{
5791 return p[i];
5792}
5793static char *f (char * (*g) (char **, int), char **p, ...)
5794{
5795 char *s;
5796 va_list v;
5797 va_start (v,p);
5798 s = g (p, va_arg (v,int));
5799 va_end (v);
5800 return s;
5801}
5802
5803/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5804 function prototypes and stuff, but not '\xHH' hex character constants.
5805 These don't provoke an error unfortunately, instead are silently treated
5806 as 'x'. The following induces an error, until -std is added to get
5807 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5808 array size at least. It's necessary to write '\x00'==0 to get something
5809 that's true only with -std. */
5810int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5811
5812/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5813 inside strings and character constants. */
5814#define FOO(x) 'x'
5815int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5816
5817int test (int i, double x);
5818struct s1 {int (*f) (int a);};
5819struct s2 {int (*f) (double a);};
5820int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5821int argc;
5822char **argv;
5823int
5824main ()
5825{
5826return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5827 ;
5828 return 0;
5829}
5830_ACEOF
5831for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5832 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5833do
5834 CC="$ac_save_CC $ac_arg"
5835 rm -f conftest.$ac_objext
5836if { (ac_try="$ac_compile"
5837case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840esac
5841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5850 { (case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853esac
5854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_try") 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; } &&
5859 { ac_try='test -s conftest.$ac_objext'
5860 { (case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863esac
5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_try") 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005869 ac_cv_prog_cc_c89=$ac_arg
5870else
5871 echo "$as_me: failed program was:" >&5
5872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874
5875fi
5876
5877rm -f core conftest.err conftest.$ac_objext
5878 test "x$ac_cv_prog_cc_c89" != "xno" && break
5879done
5880rm -f conftest.$ac_ext
5881CC=$ac_save_CC
5882
5883fi
5884# AC_CACHE_VAL
5885case "x$ac_cv_prog_cc_c89" in
5886 x)
5887 { echo "$as_me:$LINENO: result: none needed" >&5
5888echo "${ECHO_T}none needed" >&6; } ;;
5889 xno)
5890 { echo "$as_me:$LINENO: result: unsupported" >&5
5891echo "${ECHO_T}unsupported" >&6; } ;;
5892 *)
5893 CC="$CC $ac_cv_prog_cc_c89"
5894 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5895echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5896esac
5897
5898
5899ac_ext=c
5900ac_cpp='$CPP $CPPFLAGS'
5901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903ac_compiler_gnu=$ac_cv_c_compiler_gnu
5904
5905ac_ext=cpp
5906ac_cpp='$CXXCPP $CPPFLAGS'
5907ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5908ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5909ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5910if test -z "$CXX"; then
5911 if test -n "$CCC"; then
5912 CXX=$CCC
5913 else
5914 if test -n "$ac_tool_prefix"; then
5915 for ac_prog in g++
5916 do
5917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5918set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5919{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5921if test "${ac_cv_prog_CXX+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923else
5924 if test -n "$CXX"; then
5925 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5926else
5927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928for as_dir in $PATH
5929do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005933 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 +00005934 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938done
5939done
5940IFS=$as_save_IFS
5941
5942fi
5943fi
5944CXX=$ac_cv_prog_CXX
5945if test -n "$CXX"; then
5946 { echo "$as_me:$LINENO: result: $CXX" >&5
5947echo "${ECHO_T}$CXX" >&6; }
5948else
5949 { echo "$as_me:$LINENO: result: no" >&5
5950echo "${ECHO_T}no" >&6; }
5951fi
5952
5953
5954 test -n "$CXX" && break
5955 done
5956fi
5957if test -z "$CXX"; then
5958 ac_ct_CXX=$CXX
5959 for ac_prog in g++
5960do
5961 # Extract the first word of "$ac_prog", so it can be a program name with args.
5962set dummy $ac_prog; ac_word=$2
5963{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5965if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5967else
5968 if test -n "$ac_ct_CXX"; then
5969 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5970else
5971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972for as_dir in $PATH
5973do
5974 IFS=$as_save_IFS
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005977 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 +00005978 ac_cv_prog_ac_ct_CXX="$ac_prog"
5979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 break 2
5981 fi
5982done
5983done
5984IFS=$as_save_IFS
5985
5986fi
5987fi
5988ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5989if test -n "$ac_ct_CXX"; then
5990 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5991echo "${ECHO_T}$ac_ct_CXX" >&6; }
5992else
5993 { echo "$as_me:$LINENO: result: no" >&5
5994echo "${ECHO_T}no" >&6; }
5995fi
5996
5997
5998 test -n "$ac_ct_CXX" && break
5999done
6000
6001 if test "x$ac_ct_CXX" = x; then
6002 CXX="g++"
6003 else
6004 case $cross_compiling:$ac_tool_warned in
6005yes:)
6006{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6007whose name does not start with the host triplet. If you think this
6008configuration is useful to you, please write to autoconf@gnu.org." >&5
6009echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6010whose name does not start with the host triplet. If you think this
6011configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6012ac_tool_warned=yes ;;
6013esac
6014 CXX=$ac_ct_CXX
6015 fi
6016fi
6017
6018 fi
6019fi
6020# Provide some information about the compiler.
6021echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6022ac_compiler=`set X $ac_compile; echo $2`
6023{ (ac_try="$ac_compiler --version >&5"
6024case "(($ac_try" in
6025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026 *) ac_try_echo=$ac_try;;
6027esac
6028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_compiler --version >&5") 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }
6033{ (ac_try="$ac_compiler -v >&5"
6034case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037esac
6038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_compiler -v >&5") 2>&5
6040 ac_status=$?
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }
6043{ (ac_try="$ac_compiler -V >&5"
6044case "(($ac_try" in
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6047esac
6048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_compiler -V >&5") 2>&5
6050 ac_status=$?
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); }
6053
6054{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6055echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6056if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6058else
6059 cat >conftest.$ac_ext <<_ACEOF
6060/* confdefs.h. */
6061_ACEOF
6062cat confdefs.h >>conftest.$ac_ext
6063cat >>conftest.$ac_ext <<_ACEOF
6064/* end confdefs.h. */
6065
6066int
6067main ()
6068{
6069#ifndef __GNUC__
6070 choke me
6071#endif
6072
6073 ;
6074 return 0;
6075}
6076_ACEOF
6077rm -f conftest.$ac_objext
6078if { (ac_try="$ac_compile"
6079case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082esac
6083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_compile") 2>conftest.er1
6085 ac_status=$?
6086 grep -v '^ *+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006090 (exit $ac_status); } &&
6091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6092 { (case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095esac
6096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_try") 2>&5
6098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; } &&
6101 { ac_try='test -s conftest.$ac_objext'
6102 { (case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6105esac
6106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_try") 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006111 ac_compiler_gnu=yes
6112else
6113 echo "$as_me: failed program was:" >&5
6114sed 's/^/| /' conftest.$ac_ext >&5
6115
6116 ac_compiler_gnu=no
6117fi
6118
6119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6121
6122fi
6123{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6124echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6125GXX=`test $ac_compiler_gnu = yes && echo yes`
6126ac_test_CXXFLAGS=${CXXFLAGS+set}
6127ac_save_CXXFLAGS=$CXXFLAGS
6128{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6129echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6130if test "${ac_cv_prog_cxx_g+set}" = set; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6132else
6133 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6134 ac_cxx_werror_flag=yes
6135 ac_cv_prog_cxx_g=no
6136 CXXFLAGS="-g"
6137 cat >conftest.$ac_ext <<_ACEOF
6138/* confdefs.h. */
6139_ACEOF
6140cat confdefs.h >>conftest.$ac_ext
6141cat >>conftest.$ac_ext <<_ACEOF
6142/* end confdefs.h. */
6143
6144int
6145main ()
6146{
6147
6148 ;
6149 return 0;
6150}
6151_ACEOF
6152rm -f conftest.$ac_objext
6153if { (ac_try="$ac_compile"
6154case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157esac
6158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006165 (exit $ac_status); } &&
6166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6167 { (case "(($ac_try" in
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6170esac
6171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6172 (eval "$ac_try") 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; } &&
6176 { ac_try='test -s conftest.$ac_objext'
6177 { (case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6180esac
6181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_try") 2>&5
6183 ac_status=$?
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006186 ac_cv_prog_cxx_g=yes
6187else
6188 echo "$as_me: failed program was:" >&5
6189sed 's/^/| /' conftest.$ac_ext >&5
6190
6191 CXXFLAGS=""
6192 cat >conftest.$ac_ext <<_ACEOF
6193/* confdefs.h. */
6194_ACEOF
6195cat confdefs.h >>conftest.$ac_ext
6196cat >>conftest.$ac_ext <<_ACEOF
6197/* end confdefs.h. */
6198
6199int
6200main ()
6201{
6202
6203 ;
6204 return 0;
6205}
6206_ACEOF
6207rm -f conftest.$ac_objext
6208if { (ac_try="$ac_compile"
6209case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212esac
6213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_compile") 2>conftest.er1
6215 ac_status=$?
6216 grep -v '^ *+' conftest.er1 >conftest.err
6217 rm -f conftest.er1
6218 cat conftest.err >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006220 (exit $ac_status); } &&
6221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6222 { (case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225esac
6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_try") 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; } &&
6231 { ac_try='test -s conftest.$ac_objext'
6232 { (case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235esac
6236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_try") 2>&5
6238 ac_status=$?
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006241 :
6242else
6243 echo "$as_me: failed program was:" >&5
6244sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6247 CXXFLAGS="-g"
6248 cat >conftest.$ac_ext <<_ACEOF
6249/* confdefs.h. */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h. */
6254
6255int
6256main ()
6257{
6258
6259 ;
6260 return 0;
6261}
6262_ACEOF
6263rm -f conftest.$ac_objext
6264if { (ac_try="$ac_compile"
6265case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268esac
6269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_compile") 2>conftest.er1
6271 ac_status=$?
6272 grep -v '^ *+' conftest.er1 >conftest.err
6273 rm -f conftest.er1
6274 cat conftest.err >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006276 (exit $ac_status); } &&
6277 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6278 { (case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281esac
6282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_try") 2>&5
6284 ac_status=$?
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try='test -s conftest.$ac_objext'
6288 { (case "(($ac_try" in
6289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6290 *) ac_try_echo=$ac_try;;
6291esac
6292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_try") 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006297 ac_cv_prog_cxx_g=yes
6298else
6299 echo "$as_me: failed program was:" >&5
6300sed 's/^/| /' conftest.$ac_ext >&5
6301
6302
6303fi
6304
6305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306fi
6307
6308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309fi
6310
6311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6313fi
6314{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6315echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6316if test "$ac_test_CXXFLAGS" = set; then
6317 CXXFLAGS=$ac_save_CXXFLAGS
6318elif test $ac_cv_prog_cxx_g = yes; then
6319 if test "$GXX" = yes; then
6320 CXXFLAGS="-g -O2"
6321 else
6322 CXXFLAGS="-g"
6323 fi
6324else
6325 if test "$GXX" = yes; then
6326 CXXFLAGS="-O2"
6327 else
6328 CXXFLAGS=
6329 fi
6330fi
6331ac_ext=c
6332ac_cpp='$CPP $CPPFLAGS'
6333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6335ac_compiler_gnu=$ac_cv_c_compiler_gnu
6336
Reid Spencera773bd52006-08-04 18:18:08 +00006337
6338{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6339echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6340if test "${lt_cv_path_NM+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342else
6343 if test -n "$NM"; then
6344 # Let the user override the test.
6345 lt_cv_path_NM="$NM"
6346else
6347 lt_nm_to_check="${ac_tool_prefix}nm"
6348 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6349 lt_nm_to_check="$lt_nm_to_check nm"
6350 fi
6351 for lt_tmp_nm in $lt_nm_to_check; do
6352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6353 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6354 IFS="$lt_save_ifs"
6355 test -z "$ac_dir" && ac_dir=.
6356 tmp_nm="$ac_dir/$lt_tmp_nm"
6357 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6358 # Check to see if the nm accepts a BSD-compat flag.
6359 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6360 # nm: unknown option "B" ignored
6361 # Tru64's nm complains that /dev/null is an invalid object file
6362 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6363 */dev/null* | *'Invalid file or object type'*)
6364 lt_cv_path_NM="$tmp_nm -B"
6365 break
6366 ;;
6367 *)
6368 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6369 */dev/null*)
6370 lt_cv_path_NM="$tmp_nm -p"
6371 break
6372 ;;
6373 *)
6374 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6375 continue # so that we can try to find one that supports BSD flags
6376 ;;
6377 esac
6378 ;;
6379 esac
6380 fi
6381 done
6382 IFS="$lt_save_ifs"
6383 done
6384 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6385fi
6386fi
6387{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6388echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6389NM="$lt_cv_path_NM"
6390
6391
6392
6393{ echo "$as_me:$LINENO: checking for GNU make" >&5
6394echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6395if test "${llvm_cv_gnu_make_command+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397else
6398 llvm_cv_gnu_make_command=''
6399 for a in "$MAKE" make gmake gnumake ; do
6400 if test -z "$a" ; then continue ; fi ;
6401 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6402 then
6403 llvm_cv_gnu_make_command=$a ;
6404 break;
6405 fi
6406 done
6407fi
6408{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6409echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6410 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6411 ifGNUmake='' ;
6412 else
6413 ifGNUmake='#' ;
6414 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6415echo "${ECHO_T}\"Not found\"" >&6; };
6416 fi
6417
6418
6419{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6420echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6421LN_S=$as_ln_s
6422if test "$LN_S" = "ln -s"; then
6423 { echo "$as_me:$LINENO: result: yes" >&5
6424echo "${ECHO_T}yes" >&6; }
6425else
6426 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6427echo "${ECHO_T}no, using $LN_S" >&6; }
6428fi
6429
6430# Extract the first word of "cmp", so it can be a program name with args.
6431set dummy cmp; ac_word=$2
6432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434if test "${ac_cv_path_CMP+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436else
6437 case $CMP in
6438 [\\/]* | ?:[\\/]*)
6439 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6440 ;;
6441 *)
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443for as_dir in $PATH
6444do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006448 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 +00006449 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453done
6454done
6455IFS=$as_save_IFS
6456
6457 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6458 ;;
6459esac
6460fi
6461CMP=$ac_cv_path_CMP
6462if test -n "$CMP"; then
6463 { echo "$as_me:$LINENO: result: $CMP" >&5
6464echo "${ECHO_T}$CMP" >&6; }
6465else
6466 { echo "$as_me:$LINENO: result: no" >&5
6467echo "${ECHO_T}no" >&6; }
6468fi
6469
6470
6471# Extract the first word of "cp", so it can be a program name with args.
6472set dummy cp; ac_word=$2
6473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6475if test "${ac_cv_path_CP+set}" = set; then
6476 echo $ECHO_N "(cached) $ECHO_C" >&6
6477else
6478 case $CP in
6479 [\\/]* | ?:[\\/]*)
6480 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6481 ;;
6482 *)
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484for as_dir in $PATH
6485do
6486 IFS=$as_save_IFS
6487 test -z "$as_dir" && as_dir=.
6488 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006489 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 +00006490 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492 break 2
6493 fi
6494done
6495done
6496IFS=$as_save_IFS
6497
6498 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6499 ;;
6500esac
6501fi
6502CP=$ac_cv_path_CP
6503if test -n "$CP"; then
6504 { echo "$as_me:$LINENO: result: $CP" >&5
6505echo "${ECHO_T}$CP" >&6; }
6506else
6507 { echo "$as_me:$LINENO: result: no" >&5
6508echo "${ECHO_T}no" >&6; }
6509fi
6510
6511
6512# Extract the first word of "date", so it can be a program name with args.
6513set dummy date; ac_word=$2
6514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516if test "${ac_cv_path_DATE+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
6519 case $DATE in
6520 [\\/]* | ?:[\\/]*)
6521 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6522 ;;
6523 *)
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527 IFS=$as_save_IFS
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006530 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 +00006531 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533 break 2
6534 fi
6535done
6536done
6537IFS=$as_save_IFS
6538
6539 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6540 ;;
6541esac
6542fi
6543DATE=$ac_cv_path_DATE
6544if test -n "$DATE"; then
6545 { echo "$as_me:$LINENO: result: $DATE" >&5
6546echo "${ECHO_T}$DATE" >&6; }
6547else
6548 { echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6; }
6550fi
6551
6552
6553# Extract the first word of "find", so it can be a program name with args.
6554set dummy find; ac_word=$2
6555{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6557if test "${ac_cv_path_FIND+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559else
6560 case $FIND in
6561 [\\/]* | ?:[\\/]*)
6562 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6563 ;;
6564 *)
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566for as_dir in $PATH
6567do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006571 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 +00006572 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576done
6577done
6578IFS=$as_save_IFS
6579
6580 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6581 ;;
6582esac
6583fi
6584FIND=$ac_cv_path_FIND
6585if test -n "$FIND"; then
6586 { echo "$as_me:$LINENO: result: $FIND" >&5
6587echo "${ECHO_T}$FIND" >&6; }
6588else
6589 { echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6; }
6591fi
6592
6593
6594# Extract the first word of "grep", so it can be a program name with args.
6595set dummy grep; ac_word=$2
6596{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598if test "${ac_cv_path_GREP+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600else
6601 case $GREP in
6602 [\\/]* | ?:[\\/]*)
6603 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6604 ;;
6605 *)
6606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609 IFS=$as_save_IFS
6610 test -z "$as_dir" && as_dir=.
6611 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006612 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 +00006613 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615 break 2
6616 fi
6617done
6618done
6619IFS=$as_save_IFS
6620
6621 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6622 ;;
6623esac
6624fi
6625GREP=$ac_cv_path_GREP
6626if test -n "$GREP"; then
6627 { echo "$as_me:$LINENO: result: $GREP" >&5
6628echo "${ECHO_T}$GREP" >&6; }
6629else
6630 { echo "$as_me:$LINENO: result: no" >&5
6631echo "${ECHO_T}no" >&6; }
6632fi
6633
6634
6635# Extract the first word of "mkdir", so it can be a program name with args.
6636set dummy mkdir; ac_word=$2
6637{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6639if test "${ac_cv_path_MKDIR+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641else
6642 case $MKDIR in
6643 [\\/]* | ?:[\\/]*)
6644 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6645 ;;
6646 *)
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648for as_dir in $PATH
6649do
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006653 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 +00006654 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 break 2
6657 fi
6658done
6659done
6660IFS=$as_save_IFS
6661
6662 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6663 ;;
6664esac
6665fi
6666MKDIR=$ac_cv_path_MKDIR
6667if test -n "$MKDIR"; then
6668 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6669echo "${ECHO_T}$MKDIR" >&6; }
6670else
6671 { echo "$as_me:$LINENO: result: no" >&5
6672echo "${ECHO_T}no" >&6; }
6673fi
6674
6675
6676# Extract the first word of "mv", so it can be a program name with args.
6677set dummy mv; ac_word=$2
6678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680if test "${ac_cv_path_MV+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
6683 case $MV in
6684 [\\/]* | ?:[\\/]*)
6685 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6686 ;;
6687 *)
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689for as_dir in $PATH
6690do
6691 IFS=$as_save_IFS
6692 test -z "$as_dir" && as_dir=.
6693 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006694 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 +00006695 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699done
6700done
6701IFS=$as_save_IFS
6702
6703 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6704 ;;
6705esac
6706fi
6707MV=$ac_cv_path_MV
6708if test -n "$MV"; then
6709 { echo "$as_me:$LINENO: result: $MV" >&5
6710echo "${ECHO_T}$MV" >&6; }
6711else
6712 { echo "$as_me:$LINENO: result: no" >&5
6713echo "${ECHO_T}no" >&6; }
6714fi
6715
6716
6717if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6719set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722if test "${ac_cv_prog_RANLIB+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725 if test -n "$RANLIB"; then
6726 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6727else
6728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731 IFS=$as_save_IFS
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006734 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 +00006735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737 break 2
6738 fi
6739done
6740done
6741IFS=$as_save_IFS
6742
6743fi
6744fi
6745RANLIB=$ac_cv_prog_RANLIB
6746if test -n "$RANLIB"; then
6747 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6748echo "${ECHO_T}$RANLIB" >&6; }
6749else
6750 { echo "$as_me:$LINENO: result: no" >&5
6751echo "${ECHO_T}no" >&6; }
6752fi
6753
6754
6755fi
6756if test -z "$ac_cv_prog_RANLIB"; then
6757 ac_ct_RANLIB=$RANLIB
6758 # Extract the first word of "ranlib", so it can be a program name with args.
6759set dummy ranlib; ac_word=$2
6760{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764else
6765 if test -n "$ac_ct_RANLIB"; then
6766 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6767else
6768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769for as_dir in $PATH
6770do
6771 IFS=$as_save_IFS
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006774 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 +00006775 ac_cv_prog_ac_ct_RANLIB="ranlib"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777 break 2
6778 fi
6779done
6780done
6781IFS=$as_save_IFS
6782
6783fi
6784fi
6785ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6786if test -n "$ac_ct_RANLIB"; then
6787 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6788echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6789else
6790 { echo "$as_me:$LINENO: result: no" >&5
6791echo "${ECHO_T}no" >&6; }
6792fi
6793
6794 if test "x$ac_ct_RANLIB" = x; then
6795 RANLIB=":"
6796 else
6797 case $cross_compiling:$ac_tool_warned in
6798yes:)
6799{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6800whose name does not start with the host triplet. If you think this
6801configuration is useful to you, please write to autoconf@gnu.org." >&5
6802echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6803whose name does not start with the host triplet. If you think this
6804configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6805ac_tool_warned=yes ;;
6806esac
6807 RANLIB=$ac_ct_RANLIB
6808 fi
6809else
6810 RANLIB="$ac_cv_prog_RANLIB"
6811fi
6812
6813# Extract the first word of "rm", so it can be a program name with args.
6814set dummy rm; ac_word=$2
6815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817if test "${ac_cv_path_RM+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819else
6820 case $RM in
6821 [\\/]* | ?:[\\/]*)
6822 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6823 ;;
6824 *)
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826for as_dir in $PATH
6827do
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006831 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 +00006832 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6835 fi
6836done
6837done
6838IFS=$as_save_IFS
6839
6840 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6841 ;;
6842esac
6843fi
6844RM=$ac_cv_path_RM
6845if test -n "$RM"; then
6846 { echo "$as_me:$LINENO: result: $RM" >&5
6847echo "${ECHO_T}$RM" >&6; }
6848else
6849 { echo "$as_me:$LINENO: result: no" >&5
6850echo "${ECHO_T}no" >&6; }
6851fi
6852
6853
6854# Extract the first word of "sed", so it can be a program name with args.
6855set dummy sed; ac_word=$2
6856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858if test "${ac_cv_path_SED+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861 case $SED in
6862 [\\/]* | ?:[\\/]*)
6863 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6864 ;;
6865 *)
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867for as_dir in $PATH
6868do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006872 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 +00006873 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877done
6878done
6879IFS=$as_save_IFS
6880
6881 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6882 ;;
6883esac
6884fi
6885SED=$ac_cv_path_SED
6886if test -n "$SED"; then
6887 { echo "$as_me:$LINENO: result: $SED" >&5
6888echo "${ECHO_T}$SED" >&6; }
6889else
6890 { echo "$as_me:$LINENO: result: no" >&5
6891echo "${ECHO_T}no" >&6; }
6892fi
6893
6894
6895# Extract the first word of "tar", so it can be a program name with args.
6896set dummy tar; ac_word=$2
6897{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899if test "${ac_cv_path_TAR+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6901else
6902 case $TAR in
6903 [\\/]* | ?:[\\/]*)
6904 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6905 ;;
6906 *)
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6908for as_dir in $PATH
6909do
6910 IFS=$as_save_IFS
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006913 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 +00006914 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6916 break 2
6917 fi
6918done
6919done
6920IFS=$as_save_IFS
6921
6922 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6923 ;;
6924esac
6925fi
6926TAR=$ac_cv_path_TAR
6927if test -n "$TAR"; then
6928 { echo "$as_me:$LINENO: result: $TAR" >&5
6929echo "${ECHO_T}$TAR" >&6; }
6930else
6931 { echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6; }
6933fi
6934
6935
6936# Extract the first word of "pwd", so it can be a program name with args.
6937set dummy pwd; ac_word=$2
6938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940if test "${ac_cv_path_BINPWD+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942else
6943 case $BINPWD in
6944 [\\/]* | ?:[\\/]*)
6945 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6946 ;;
6947 *)
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949for as_dir in $PATH
6950do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006954 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 +00006955 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959done
6960done
6961IFS=$as_save_IFS
6962
6963 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6964 ;;
6965esac
6966fi
6967BINPWD=$ac_cv_path_BINPWD
6968if test -n "$BINPWD"; then
6969 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6970echo "${ECHO_T}$BINPWD" >&6; }
6971else
6972 { echo "$as_me:$LINENO: result: no" >&5
6973echo "${ECHO_T}no" >&6; }
6974fi
6975
6976
6977
6978# Extract the first word of "Graphviz", so it can be a program name with args.
6979set dummy Graphviz; ac_word=$2
6980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6982if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984else
6985 case $GRAPHVIZ in
6986 [\\/]* | ?:[\\/]*)
6987 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6988 ;;
6989 *)
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991for as_dir in $PATH
6992do
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
6995 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006996 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 +00006997 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6999 break 2
7000 fi
7001done
7002done
7003IFS=$as_save_IFS
7004
7005 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7006 ;;
7007esac
7008fi
7009GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7010if test -n "$GRAPHVIZ"; then
7011 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7012echo "${ECHO_T}$GRAPHVIZ" >&6; }
7013else
7014 { echo "$as_me:$LINENO: result: no" >&5
7015echo "${ECHO_T}no" >&6; }
7016fi
7017
7018
7019if test "$GRAPHVIZ" != "echo Graphviz" ; then
7020
7021cat >>confdefs.h <<\_ACEOF
7022#define HAVE_GRAPHVIZ 1
7023_ACEOF
7024
Jeff Cohen28783c32007-01-12 18:22:38 +00007025 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007026 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7027 fi
7028
7029cat >>confdefs.h <<_ACEOF
7030#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7031_ACEOF
7032
7033fi
7034# Extract the first word of "dot", so it can be a program name with args.
7035set dummy dot; ac_word=$2
7036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038if test "${ac_cv_path_DOT+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7040else
7041 case $DOT in
7042 [\\/]* | ?:[\\/]*)
7043 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7044 ;;
7045 *)
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007052 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 +00007053 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057done
7058done
7059IFS=$as_save_IFS
7060
7061 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7062 ;;
7063esac
7064fi
7065DOT=$ac_cv_path_DOT
7066if test -n "$DOT"; then
7067 { echo "$as_me:$LINENO: result: $DOT" >&5
7068echo "${ECHO_T}$DOT" >&6; }
7069else
7070 { echo "$as_me:$LINENO: result: no" >&5
7071echo "${ECHO_T}no" >&6; }
7072fi
7073
7074
7075if test "$DOT" != "echo dot" ; then
7076
7077cat >>confdefs.h <<\_ACEOF
7078#define HAVE_DOT 1
7079_ACEOF
7080
Jeff Cohen28783c32007-01-12 18:22:38 +00007081 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007082 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7083 fi
7084
7085cat >>confdefs.h <<_ACEOF
7086#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7087_ACEOF
7088
7089fi
7090for ac_prog in gv gsview32
7091do
7092 # Extract the first word of "$ac_prog", so it can be a program name with args.
7093set dummy $ac_prog; ac_word=$2
7094{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7096if test "${ac_cv_path_GV+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7098else
7099 case $GV in
7100 [\\/]* | ?:[\\/]*)
7101 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7102 ;;
7103 *)
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007110 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 +00007111 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7114 fi
7115done
7116done
7117IFS=$as_save_IFS
7118
7119 ;;
7120esac
7121fi
7122GV=$ac_cv_path_GV
7123if test -n "$GV"; then
7124 { echo "$as_me:$LINENO: result: $GV" >&5
7125echo "${ECHO_T}$GV" >&6; }
7126else
7127 { echo "$as_me:$LINENO: result: no" >&5
7128echo "${ECHO_T}no" >&6; }
7129fi
7130
7131
7132 test -n "$GV" && break
7133done
7134test -n "$GV" || GV="echo gv"
7135
7136if test "$GV" != "echo gv" ; then
7137
7138cat >>confdefs.h <<\_ACEOF
7139#define HAVE_GV 1
7140_ACEOF
7141
Jeff Cohen28783c32007-01-12 18:22:38 +00007142 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007143 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7144 fi
7145
7146cat >>confdefs.h <<_ACEOF
7147#define LLVM_PATH_GV "$GV${EXEEXT}"
7148_ACEOF
7149
7150fi
7151# Extract the first word of "dotty", so it can be a program name with args.
7152set dummy dotty; ac_word=$2
7153{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7155if test "${ac_cv_path_DOTTY+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7157else
7158 case $DOTTY in
7159 [\\/]* | ?:[\\/]*)
7160 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7161 ;;
7162 *)
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007169 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 +00007170 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 break 2
7173 fi
7174done
7175done
7176IFS=$as_save_IFS
7177
7178 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7179 ;;
7180esac
7181fi
7182DOTTY=$ac_cv_path_DOTTY
7183if test -n "$DOTTY"; then
7184 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7185echo "${ECHO_T}$DOTTY" >&6; }
7186else
7187 { echo "$as_me:$LINENO: result: no" >&5
7188echo "${ECHO_T}no" >&6; }
7189fi
7190
7191
7192if test "$DOTTY" != "echo dotty" ; then
7193
7194cat >>confdefs.h <<\_ACEOF
7195#define HAVE_DOTTY 1
7196_ACEOF
7197
Jeff Cohen28783c32007-01-12 18:22:38 +00007198 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007199 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7200 fi
7201
7202cat >>confdefs.h <<_ACEOF
7203#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7204_ACEOF
7205
7206fi
7207
7208
7209# Extract the first word of "perl", so it can be a program name with args.
7210set dummy perl; ac_word=$2
7211{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7213if test "${ac_cv_path_PERL+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215else
7216 case $PERL in
7217 [\\/]* | ?:[\\/]*)
7218 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7219 ;;
7220 *)
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222for as_dir in $PATH
7223do
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007227 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 +00007228 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 break 2
7231 fi
7232done
7233done
7234IFS=$as_save_IFS
7235
7236 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7237 ;;
7238esac
7239fi
7240PERL=$ac_cv_path_PERL
7241if test -n "$PERL"; then
7242 { echo "$as_me:$LINENO: result: $PERL" >&5
7243echo "${ECHO_T}$PERL" >&6; }
7244else
7245 { echo "$as_me:$LINENO: result: no" >&5
7246echo "${ECHO_T}no" >&6; }
7247fi
7248
7249
7250if test "$PERL" != "none"; then
7251 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7252echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7253 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7254 { echo "$as_me:$LINENO: result: yes" >&5
7255echo "${ECHO_T}yes" >&6; }
7256 else
7257 PERL=none
7258 { echo "$as_me:$LINENO: result: not found" >&5
7259echo "${ECHO_T}not found" >&6; }
7260 fi
7261fi
7262
7263
7264if test x"$PERL" = xnone; then
7265 HAVE_PERL=0
7266
Reid Spencer59807fa2007-05-17 18:11:03 +00007267 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7268echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7269 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007270else
7271 HAVE_PERL=1
7272
7273fi
7274
7275# Find a good install program. We prefer a C program (faster),
7276# so one script is as good as another. But avoid the broken or
7277# incompatible versions:
7278# SysV /etc/install, /usr/sbin/install
7279# SunOS /usr/etc/install
7280# IRIX /sbin/install
7281# AIX /bin/install
7282# AmigaOS /C/install, which installs bootblocks on floppy discs
7283# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7284# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7285# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7286# OS/2's system install, which has a completely different semantic
7287# ./install, which can be erroneously created by make from ./install.sh.
7288{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7289echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7290if test -z "$INSTALL"; then
7291if test "${ac_cv_path_install+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 # Account for people who put trailing slashes in PATH elements.
7300case $as_dir/ in
7301 ./ | .// | /cC/* | \
7302 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7303 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7304 /usr/ucb/* ) ;;
7305 *)
7306 # OSF1 and SCO ODT 3.0 have their own names for install.
7307 # Don't use installbsd from OSF since it installs stuff as root
7308 # by default.
7309 for ac_prog in ginstall scoinst install; do
7310 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007311 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 +00007312 if test $ac_prog = install &&
7313 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7314 # AIX install. It has an incompatible calling convention.
7315 :
7316 elif test $ac_prog = install &&
7317 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7318 # program-specific install script used by HP pwplus--don't use.
7319 :
7320 else
7321 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7322 break 3
7323 fi
7324 fi
7325 done
7326 done
7327 ;;
7328esac
7329done
7330IFS=$as_save_IFS
7331
7332
7333fi
7334 if test "${ac_cv_path_install+set}" = set; then
7335 INSTALL=$ac_cv_path_install
7336 else
7337 # As a last resort, use the slow shell script. Don't cache a
7338 # value for INSTALL within a source directory, because that will
7339 # break other packages using the cache if that directory is
7340 # removed, or if the value is a relative name.
7341 INSTALL=$ac_install_sh
7342 fi
7343fi
7344{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7345echo "${ECHO_T}$INSTALL" >&6; }
7346
7347# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7348# It thinks the first close brace ends the variable substitution.
7349test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7350
7351test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7352
7353test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7354
7355
7356# Extract the first word of "bzip2", so it can be a program name with args.
7357set dummy bzip2; ac_word=$2
7358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7360if test "${ac_cv_path_BZIP2+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7362else
7363 case $BZIP2 in
7364 [\\/]* | ?:[\\/]*)
7365 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7366 ;;
7367 *)
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369for as_dir in $PATH
7370do
7371 IFS=$as_save_IFS
7372 test -z "$as_dir" && as_dir=.
7373 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007374 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 +00007375 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7377 break 2
7378 fi
7379done
7380done
7381IFS=$as_save_IFS
7382
Reid Spencera773bd52006-08-04 18:18:08 +00007383 ;;
7384esac
7385fi
7386BZIP2=$ac_cv_path_BZIP2
7387if test -n "$BZIP2"; then
7388 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7389echo "${ECHO_T}$BZIP2" >&6; }
7390else
7391 { echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6; }
7393fi
7394
7395
7396# Extract the first word of "doxygen", so it can be a program name with args.
7397set dummy doxygen; ac_word=$2
7398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7400if test "${ac_cv_path_DOXYGEN+set}" = set; then
7401 echo $ECHO_N "(cached) $ECHO_C" >&6
7402else
7403 case $DOXYGEN in
7404 [\\/]* | ?:[\\/]*)
7405 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7406 ;;
7407 *)
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409for as_dir in $PATH
7410do
7411 IFS=$as_save_IFS
7412 test -z "$as_dir" && as_dir=.
7413 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007414 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 +00007415 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 break 2
7418 fi
7419done
7420done
7421IFS=$as_save_IFS
7422
Reid Spencera773bd52006-08-04 18:18:08 +00007423 ;;
7424esac
7425fi
7426DOXYGEN=$ac_cv_path_DOXYGEN
7427if test -n "$DOXYGEN"; then
7428 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7429echo "${ECHO_T}$DOXYGEN" >&6; }
7430else
7431 { echo "$as_me:$LINENO: result: no" >&5
7432echo "${ECHO_T}no" >&6; }
7433fi
7434
7435
Reid Spencera773bd52006-08-04 18:18:08 +00007436# Extract the first word of "groff", so it can be a program name with args.
7437set dummy groff; ac_word=$2
7438{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7440if test "${ac_cv_path_GROFF+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7442else
7443 case $GROFF in
7444 [\\/]* | ?:[\\/]*)
7445 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7446 ;;
7447 *)
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449for as_dir in $PATH
7450do
7451 IFS=$as_save_IFS
7452 test -z "$as_dir" && as_dir=.
7453 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007454 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 +00007455 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7457 break 2
7458 fi
7459done
7460done
7461IFS=$as_save_IFS
7462
Reid Spencera773bd52006-08-04 18:18:08 +00007463 ;;
7464esac
7465fi
7466GROFF=$ac_cv_path_GROFF
7467if test -n "$GROFF"; then
7468 { echo "$as_me:$LINENO: result: $GROFF" >&5
7469echo "${ECHO_T}$GROFF" >&6; }
7470else
7471 { echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6; }
7473fi
7474
7475
7476# Extract the first word of "gzip", so it can be a program name with args.
7477set dummy gzip; ac_word=$2
7478{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7480if test "${ac_cv_path_GZIP+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
7483 case $GZIP in
7484 [\\/]* | ?:[\\/]*)
7485 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7486 ;;
7487 *)
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489for as_dir in $PATH
7490do
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007494 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 +00007495 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 break 2
7498 fi
7499done
7500done
7501IFS=$as_save_IFS
7502
Reid Spencera773bd52006-08-04 18:18:08 +00007503 ;;
7504esac
7505fi
7506GZIP=$ac_cv_path_GZIP
7507if test -n "$GZIP"; then
7508 { echo "$as_me:$LINENO: result: $GZIP" >&5
7509echo "${ECHO_T}$GZIP" >&6; }
7510else
7511 { echo "$as_me:$LINENO: result: no" >&5
7512echo "${ECHO_T}no" >&6; }
7513fi
7514
7515
7516# Extract the first word of "pod2html", so it can be a program name with args.
7517set dummy pod2html; ac_word=$2
7518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7520if test "${ac_cv_path_POD2HTML+set}" = set; then
7521 echo $ECHO_N "(cached) $ECHO_C" >&6
7522else
7523 case $POD2HTML in
7524 [\\/]* | ?:[\\/]*)
7525 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7526 ;;
7527 *)
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529for as_dir in $PATH
7530do
7531 IFS=$as_save_IFS
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007534 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 +00007535 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 break 2
7538 fi
7539done
7540done
7541IFS=$as_save_IFS
7542
Reid Spencera773bd52006-08-04 18:18:08 +00007543 ;;
7544esac
7545fi
7546POD2HTML=$ac_cv_path_POD2HTML
7547if test -n "$POD2HTML"; then
7548 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7549echo "${ECHO_T}$POD2HTML" >&6; }
7550else
7551 { echo "$as_me:$LINENO: result: no" >&5
7552echo "${ECHO_T}no" >&6; }
7553fi
7554
7555
7556# Extract the first word of "pod2man", so it can be a program name with args.
7557set dummy pod2man; ac_word=$2
7558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7560if test "${ac_cv_path_POD2MAN+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563 case $POD2MAN in
7564 [\\/]* | ?:[\\/]*)
7565 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7566 ;;
7567 *)
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569for as_dir in $PATH
7570do
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
7573 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007574 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 +00007575 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 break 2
7578 fi
7579done
7580done
7581IFS=$as_save_IFS
7582
Reid Spencera773bd52006-08-04 18:18:08 +00007583 ;;
7584esac
7585fi
7586POD2MAN=$ac_cv_path_POD2MAN
7587if test -n "$POD2MAN"; then
7588 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7589echo "${ECHO_T}$POD2MAN" >&6; }
7590else
7591 { echo "$as_me:$LINENO: result: no" >&5
7592echo "${ECHO_T}no" >&6; }
7593fi
7594
7595
7596# Extract the first word of "runtest", so it can be a program name with args.
7597set dummy runtest; ac_word=$2
7598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7600if test "${ac_cv_path_RUNTEST+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602else
7603 case $RUNTEST in
7604 [\\/]* | ?:[\\/]*)
7605 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7606 ;;
7607 *)
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609for as_dir in $PATH
7610do
7611 IFS=$as_save_IFS
7612 test -z "$as_dir" && as_dir=.
7613 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007614 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 +00007615 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7617 break 2
7618 fi
7619done
7620done
7621IFS=$as_save_IFS
7622
Reid Spencera773bd52006-08-04 18:18:08 +00007623 ;;
7624esac
7625fi
7626RUNTEST=$ac_cv_path_RUNTEST
7627if test -n "$RUNTEST"; then
7628 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7629echo "${ECHO_T}$RUNTEST" >&6; }
7630else
7631 { echo "$as_me:$LINENO: result: no" >&5
7632echo "${ECHO_T}no" >&6; }
7633fi
7634
7635
7636
7637no_itcl=true
7638{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7639echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7640
7641# Check whether --with-tclinclude was given.
7642if test "${with_tclinclude+set}" = set; then
7643 withval=$with_tclinclude; with_tclinclude=${withval}
7644else
7645 with_tclinclude=''
7646fi
7647
7648if test "${ac_cv_path_tclsh+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7650else
7651
7652if test x"${with_tclinclude}" != x ; then
7653 if test -f ${with_tclinclude}/tclsh ; then
7654 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7655 elif test -f ${with_tclinclude}/src/tclsh ; then
7656 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7657 else
7658 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7659echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7660 { (exit 1); exit 1; }; }
7661 fi
7662fi
7663
7664if test x"${ac_cv_path_tclsh}" = x ; then
7665 { echo "$as_me:$LINENO: result: none" >&5
7666echo "${ECHO_T}none" >&6; }
7667 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
7668do
7669 # Extract the first word of "$ac_prog", so it can be a program name with args.
7670set dummy $ac_prog; ac_word=$2
7671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673if test "${ac_cv_path_TCLSH+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7675else
7676 case $TCLSH in
7677 [\\/]* | ?:[\\/]*)
7678 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7679 ;;
7680 *)
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007687 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 +00007688 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 break 2
7691 fi
7692done
7693done
7694IFS=$as_save_IFS
7695
7696 ;;
7697esac
7698fi
7699TCLSH=$ac_cv_path_TCLSH
7700if test -n "$TCLSH"; then
7701 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7702echo "${ECHO_T}$TCLSH" >&6; }
7703else
7704 { echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6; }
7706fi
7707
7708
7709 test -n "$TCLSH" && break
7710done
7711
7712 if test x"${TCLSH}" = x ; then
7713 ac_cv_path_tclsh='';
7714 else
7715 ac_cv_path_tclsh="${TCLSH}";
7716 fi
7717else
7718 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7719echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7720 TCLSH="${ac_cv_path_tclsh}"
7721
7722fi
7723
7724fi
7725
7726# Extract the first word of "zip", so it can be a program name with args.
7727set dummy zip; ac_word=$2
7728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7730if test "${ac_cv_path_ZIP+set}" = set; then
7731 echo $ECHO_N "(cached) $ECHO_C" >&6
7732else
7733 case $ZIP in
7734 [\\/]* | ?:[\\/]*)
7735 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7736 ;;
7737 *)
7738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739for as_dir in $PATH
7740do
7741 IFS=$as_save_IFS
7742 test -z "$as_dir" && as_dir=.
7743 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007744 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 +00007745 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7747 break 2
7748 fi
7749done
7750done
7751IFS=$as_save_IFS
7752
Reid Spencera773bd52006-08-04 18:18:08 +00007753 ;;
7754esac
7755fi
7756ZIP=$ac_cv_path_ZIP
7757if test -n "$ZIP"; then
7758 { echo "$as_me:$LINENO: result: $ZIP" >&5
7759echo "${ECHO_T}$ZIP" >&6; }
7760else
7761 { echo "$as_me:$LINENO: result: no" >&5
7762echo "${ECHO_T}no" >&6; }
7763fi
7764
7765
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007766for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007767do
7768 # Extract the first word of "$ac_prog", so it can be a program name with args.
7769set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007770{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7772if test "${ac_cv_path_OCAMLC+set}" = set; then
7773 echo $ECHO_N "(cached) $ECHO_C" >&6
7774else
7775 case $OCAMLC in
7776 [\\/]* | ?:[\\/]*)
7777 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7778 ;;
7779 *)
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781for as_dir in $PATH
7782do
7783 IFS=$as_save_IFS
7784 test -z "$as_dir" && as_dir=.
7785 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007787 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7789 break 2
7790 fi
7791done
7792done
7793IFS=$as_save_IFS
7794
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007795 ;;
7796esac
7797fi
7798OCAMLC=$ac_cv_path_OCAMLC
7799if test -n "$OCAMLC"; then
7800 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7801echo "${ECHO_T}$OCAMLC" >&6; }
7802else
7803 { echo "$as_me:$LINENO: result: no" >&5
7804echo "${ECHO_T}no" >&6; }
7805fi
7806
7807
Gordon Henriksene7072162008-03-07 18:20:01 +00007808 test -n "$OCAMLC" && break
7809done
7810
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007811for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007812do
7813 # Extract the first word of "$ac_prog", so it can be a program name with args.
7814set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7817if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7819else
7820 case $OCAMLOPT in
7821 [\\/]* | ?:[\\/]*)
7822 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7823 ;;
7824 *)
7825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826for as_dir in $PATH
7827do
7828 IFS=$as_save_IFS
7829 test -z "$as_dir" && as_dir=.
7830 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007831 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 +00007832 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 break 2
7835 fi
7836done
7837done
7838IFS=$as_save_IFS
7839
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007840 ;;
7841esac
7842fi
7843OCAMLOPT=$ac_cv_path_OCAMLOPT
7844if test -n "$OCAMLOPT"; then
7845 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7846echo "${ECHO_T}$OCAMLOPT" >&6; }
7847else
7848 { echo "$as_me:$LINENO: result: no" >&5
7849echo "${ECHO_T}no" >&6; }
7850fi
7851
7852
Gordon Henriksene7072162008-03-07 18:20:01 +00007853 test -n "$OCAMLOPT" && break
7854done
7855
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007856for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007857do
7858 # Extract the first word of "$ac_prog", so it can be a program name with args.
7859set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7862if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864else
7865 case $OCAMLDEP in
7866 [\\/]* | ?:[\\/]*)
7867 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7868 ;;
7869 *)
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007876 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 +00007877 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881done
7882done
7883IFS=$as_save_IFS
7884
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007885 ;;
7886esac
7887fi
7888OCAMLDEP=$ac_cv_path_OCAMLDEP
7889if test -n "$OCAMLDEP"; then
7890 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7891echo "${ECHO_T}$OCAMLDEP" >&6; }
7892else
7893 { echo "$as_me:$LINENO: result: no" >&5
7894echo "${ECHO_T}no" >&6; }
7895fi
7896
7897
Gordon Henriksene7072162008-03-07 18:20:01 +00007898 test -n "$OCAMLDEP" && break
7899done
7900
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007901for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007902do
7903 # Extract the first word of "$ac_prog", so it can be a program name with args.
7904set dummy $ac_prog; ac_word=$2
7905{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7907if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7908 echo $ECHO_N "(cached) $ECHO_C" >&6
7909else
7910 case $OCAMLDOC in
7911 [\\/]* | ?:[\\/]*)
7912 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7913 ;;
7914 *)
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916for as_dir in $PATH
7917do
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007921 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 +00007922 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 break 2
7925 fi
7926done
7927done
7928IFS=$as_save_IFS
7929
7930 ;;
7931esac
7932fi
7933OCAMLDOC=$ac_cv_path_OCAMLDOC
7934if test -n "$OCAMLDOC"; then
7935 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7936echo "${ECHO_T}$OCAMLDOC" >&6; }
7937else
7938 { echo "$as_me:$LINENO: result: no" >&5
7939echo "${ECHO_T}no" >&6; }
7940fi
7941
7942
7943 test -n "$OCAMLDOC" && break
7944done
7945
Torok Edwincc499a42008-10-22 09:56:27 +00007946for ac_prog in gas as
7947do
7948 # Extract the first word of "$ac_prog", so it can be a program name with args.
7949set dummy $ac_prog; ac_word=$2
7950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7952if test "${ac_cv_path_GAS+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954else
7955 case $GAS in
7956 [\\/]* | ?:[\\/]*)
7957 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7958 ;;
7959 *)
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007966 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 +00007967 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 break 2
7970 fi
7971done
7972done
7973IFS=$as_save_IFS
7974
7975 ;;
7976esac
7977fi
7978GAS=$ac_cv_path_GAS
7979if test -n "$GAS"; then
7980 { echo "$as_me:$LINENO: result: $GAS" >&5
7981echo "${ECHO_T}$GAS" >&6; }
7982else
7983 { echo "$as_me:$LINENO: result: no" >&5
7984echo "${ECHO_T}no" >&6; }
7985fi
7986
7987
7988 test -n "$GAS" && break
7989done
7990
Reid Spencera773bd52006-08-04 18:18:08 +00007991
7992{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7993echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7994if test "${llvm_cv_link_use_r+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7996else
7997 ac_ext=c
7998ac_cpp='$CPP $CPPFLAGS'
7999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003 oldcflags="$CFLAGS"
8004 CFLAGS="$CFLAGS -Wl,-R."
8005 cat >conftest.$ac_ext <<_ACEOF
8006/* confdefs.h. */
8007_ACEOF
8008cat confdefs.h >>conftest.$ac_ext
8009cat >>conftest.$ac_ext <<_ACEOF
8010/* end confdefs.h. */
8011
8012int
8013main ()
8014{
8015int main() { return 0; }
8016 ;
8017 return 0;
8018}
8019_ACEOF
8020rm -f conftest.$ac_objext conftest$ac_exeext
8021if { (ac_try="$ac_link"
8022case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025esac
8026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_link") 2>conftest.er1
8028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008033 (exit $ac_status); } &&
8034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8035 { (case "(($ac_try" in
8036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8038esac
8039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_try") 2>&5
8041 ac_status=$?
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; } &&
8044 { ac_try='test -s conftest$ac_exeext'
8045 { (case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8048esac
8049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_try") 2>&5
8051 ac_status=$?
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008054 llvm_cv_link_use_r=yes
8055else
8056 echo "$as_me: failed program was:" >&5
8057sed 's/^/| /' conftest.$ac_ext >&5
8058
8059 llvm_cv_link_use_r=no
8060fi
8061
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008062rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008063 conftest$ac_exeext conftest.$ac_ext
8064 CFLAGS="$oldcflags"
8065 ac_ext=c
8066ac_cpp='$CPP $CPPFLAGS'
8067ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8068ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8069ac_compiler_gnu=$ac_cv_c_compiler_gnu
8070
8071
8072fi
8073{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8074echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8075if test "$llvm_cv_link_use_r" = yes ; then
8076
8077cat >>confdefs.h <<\_ACEOF
8078#define HAVE_LINK_R 1
8079_ACEOF
8080
8081 fi
8082
8083
8084
8085
8086{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8087echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8088if test "${ac_cv_c_const+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8090else
8091 cat >conftest.$ac_ext <<_ACEOF
8092/* confdefs.h. */
8093_ACEOF
8094cat confdefs.h >>conftest.$ac_ext
8095cat >>conftest.$ac_ext <<_ACEOF
8096/* end confdefs.h. */
8097
8098int
8099main ()
8100{
8101/* FIXME: Include the comments suggested by Paul. */
8102#ifndef __cplusplus
8103 /* Ultrix mips cc rejects this. */
8104 typedef int charset[2];
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008105 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008106 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008107 char const *const *ccp;
8108 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008109 /* NEC SVR4.0.2 mips cc rejects this. */
8110 struct point {int x, y;};
8111 static struct point const zero = {0,0};
8112 /* AIX XL C 1.02.0.0 rejects this.
8113 It does not let you subtract one const X* pointer from another in
8114 an arm of an if-expression whose if-part is not a constant
8115 expression */
8116 const char *g = "string";
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008117 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008118 /* HPUX 7.0 cc rejects these. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008119 ++ccp;
8120 p = (char**) ccp;
8121 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008122 { /* SCO 3.2v4 cc rejects this. */
8123 char *t;
8124 char const *s = 0 ? (char *) 0 : (char const *) 0;
8125
8126 *t++ = 0;
8127 if (s) return 0;
8128 }
8129 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8130 int x[] = {25, 17};
8131 const int *foo = &x[0];
8132 ++foo;
8133 }
8134 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8135 typedef const int *iptr;
8136 iptr p = 0;
8137 ++p;
8138 }
8139 { /* AIX XL C 1.02.0.0 rejects this saying
8140 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8141 struct s { int j; const int *ap[3]; };
8142 struct s *b; b->j = 5;
8143 }
8144 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8145 const int foo = 10;
8146 if (!foo) return 0;
8147 }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008148 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008149#endif
8150
8151 ;
8152 return 0;
8153}
8154_ACEOF
8155rm -f conftest.$ac_objext
8156if { (ac_try="$ac_compile"
8157case "(($ac_try" in
8158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159 *) ac_try_echo=$ac_try;;
8160esac
8161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162 (eval "$ac_compile") 2>conftest.er1
8163 ac_status=$?
8164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8170 { (case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173esac
8174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_try") 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; } &&
8179 { ac_try='test -s conftest.$ac_objext'
8180 { (case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183esac
8184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_try") 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008189 ac_cv_c_const=yes
8190else
8191 echo "$as_me: failed program was:" >&5
8192sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ac_cv_c_const=no
8195fi
8196
8197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198fi
8199{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8200echo "${ECHO_T}$ac_cv_c_const" >&6; }
8201if test $ac_cv_c_const = no; then
8202
8203cat >>confdefs.h <<\_ACEOF
8204#define const
8205_ACEOF
8206
8207fi
8208
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008209
8210
8211
8212
8213
8214ac_header_dirent=no
8215for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8216 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008217{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8218echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008220 echo $ECHO_N "(cached) $ECHO_C" >&6
8221else
8222 cat >conftest.$ac_ext <<_ACEOF
8223/* confdefs.h. */
8224_ACEOF
8225cat confdefs.h >>conftest.$ac_ext
8226cat >>conftest.$ac_ext <<_ACEOF
8227/* end confdefs.h. */
8228#include <sys/types.h>
8229#include <$ac_hdr>
8230
8231int
8232main ()
8233{
8234if ((DIR *) 0)
8235return 0;
8236 ;
8237 return 0;
8238}
8239_ACEOF
8240rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008241if { (ac_try="$ac_compile"
8242case "(($ac_try" in
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8245esac
8246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008248 ac_status=$?
8249 grep -v '^ *+' conftest.er1 >conftest.err
8250 rm -f conftest.er1
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008253 (exit $ac_status); } &&
8254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8255 { (case "(($ac_try" in
8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8258esac
8259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260 (eval "$ac_try") 2>&5
8261 ac_status=$?
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); }; } &&
8264 { ac_try='test -s conftest.$ac_objext'
8265 { (case "(($ac_try" in
8266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8267 *) ac_try_echo=$ac_try;;
8268esac
8269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8270 (eval "$ac_try") 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008274 eval "$as_ac_Header=yes"
8275else
8276 echo "$as_me: failed program was:" >&5
8277sed 's/^/| /' conftest.$ac_ext >&5
8278
Reid Spencera773bd52006-08-04 18:18:08 +00008279 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008280fi
Reid Spencera773bd52006-08-04 18:18:08 +00008281
8282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008283fi
Reid Spencera773bd52006-08-04 18:18:08 +00008284ac_res=`eval echo '${'$as_ac_Header'}'`
8285 { echo "$as_me:$LINENO: result: $ac_res" >&5
8286echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008287if test `eval echo '${'$as_ac_Header'}'` = yes; then
8288 cat >>confdefs.h <<_ACEOF
8289#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8290_ACEOF
8291
8292ac_header_dirent=$ac_hdr; break
8293fi
8294
8295done
8296# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8297if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008298 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8299echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008300if test "${ac_cv_search_opendir+set}" = set; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
8303 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008304cat >conftest.$ac_ext <<_ACEOF
8305/* confdefs.h. */
8306_ACEOF
8307cat confdefs.h >>conftest.$ac_ext
8308cat >>conftest.$ac_ext <<_ACEOF
8309/* end confdefs.h. */
8310
Reid Spencera773bd52006-08-04 18:18:08 +00008311/* Override any GCC internal prototype to avoid an error.
8312 Use char because int might match the return type of a GCC
8313 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008314#ifdef __cplusplus
8315extern "C"
8316#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008317char opendir ();
8318int
8319main ()
8320{
Reid Spencera773bd52006-08-04 18:18:08 +00008321return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008322 ;
8323 return 0;
8324}
8325_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008326for ac_lib in '' dir; do
8327 if test -z "$ac_lib"; then
8328 ac_res="none required"
8329 else
8330 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008331 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008332 fi
8333 rm -f conftest.$ac_objext conftest$ac_exeext
8334if { (ac_try="$ac_link"
8335case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338esac
8339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008346 (exit $ac_status); } &&
8347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8348 { (case "(($ac_try" in
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8351esac
8352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_try") 2>&5
8354 ac_status=$?
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest$ac_exeext'
8358 { (case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361esac
8362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_try") 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008367 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008368else
8369 echo "$as_me: failed program was:" >&5
8370sed 's/^/| /' conftest.$ac_ext >&5
8371
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008372
8373fi
8374
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008375rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008376 conftest$ac_exeext
8377 if test "${ac_cv_search_opendir+set}" = set; then
8378 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008379fi
John Criswell7a73b802003-06-30 21:59:07 +00008380done
Reid Spencera773bd52006-08-04 18:18:08 +00008381if test "${ac_cv_search_opendir+set}" = set; then
8382 :
8383else
8384 ac_cv_search_opendir=no
8385fi
8386rm conftest.$ac_ext
8387LIBS=$ac_func_search_save_LIBS
8388fi
8389{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8390echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8391ac_res=$ac_cv_search_opendir
8392if test "$ac_res" != no; then
8393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008394
Reid Spencera773bd52006-08-04 18:18:08 +00008395fi
8396
8397else
8398 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8399echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8400if test "${ac_cv_search_opendir+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8402else
8403 ac_func_search_save_LIBS=$LIBS
8404cat >conftest.$ac_ext <<_ACEOF
8405/* confdefs.h. */
8406_ACEOF
8407cat confdefs.h >>conftest.$ac_ext
8408cat >>conftest.$ac_ext <<_ACEOF
8409/* end confdefs.h. */
8410
8411/* Override any GCC internal prototype to avoid an error.
8412 Use char because int might match the return type of a GCC
8413 builtin and then its argument prototype would still apply. */
8414#ifdef __cplusplus
8415extern "C"
8416#endif
8417char opendir ();
8418int
8419main ()
8420{
8421return opendir ();
8422 ;
8423 return 0;
8424}
8425_ACEOF
8426for ac_lib in '' x; do
8427 if test -z "$ac_lib"; then
8428 ac_res="none required"
8429 else
8430 ac_res=-l$ac_lib
8431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8432 fi
8433 rm -f conftest.$ac_objext conftest$ac_exeext
8434if { (ac_try="$ac_link"
8435case "(($ac_try" in
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8438esac
8439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_link") 2>conftest.er1
8441 ac_status=$?
8442 grep -v '^ *+' conftest.er1 >conftest.err
8443 rm -f conftest.er1
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008446 (exit $ac_status); } &&
8447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8457 { ac_try='test -s conftest$ac_exeext'
8458 { (case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8461esac
8462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463 (eval "$ac_try") 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008467 ac_cv_search_opendir=$ac_res
8468else
8469 echo "$as_me: failed program was:" >&5
8470sed 's/^/| /' conftest.$ac_ext >&5
8471
8472
8473fi
8474
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008475rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008476 conftest$ac_exeext
8477 if test "${ac_cv_search_opendir+set}" = set; then
8478 break
8479fi
8480done
8481if test "${ac_cv_search_opendir+set}" = set; then
8482 :
8483else
8484 ac_cv_search_opendir=no
8485fi
8486rm conftest.$ac_ext
8487LIBS=$ac_func_search_save_LIBS
8488fi
8489{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8490echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8491ac_res=$ac_cv_search_opendir
8492if test "$ac_res" != no; then
8493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8494
8495fi
8496
8497fi
John Criswell7a73b802003-06-30 21:59:07 +00008498
8499
8500for ac_header in dlfcn.h
8501do
8502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008503if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008507 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008508fi
Reid Spencera773bd52006-08-04 18:18:08 +00008509ac_res=`eval echo '${'$as_ac_Header'}'`
8510 { echo "$as_me:$LINENO: result: $ac_res" >&5
8511echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008512else
Brian Gaeke0a621332004-09-08 20:38:05 +00008513 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008514{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8515echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008516cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008517/* confdefs.h. */
8518_ACEOF
8519cat confdefs.h >>conftest.$ac_ext
8520cat >>conftest.$ac_ext <<_ACEOF
8521/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008522$ac_includes_default
8523#include <$ac_header>
8524_ACEOF
8525rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008526if { (ac_try="$ac_compile"
8527case "(($ac_try" in
8528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529 *) ac_try_echo=$ac_try;;
8530esac
8531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008533 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008534 grep -v '^ *+' conftest.er1 >conftest.err
8535 rm -f conftest.er1
8536 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8540 { (case "(($ac_try" in
8541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8542 *) ac_try_echo=$ac_try;;
8543esac
8544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8545 (eval "$ac_try") 2>&5
8546 ac_status=$?
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; } &&
8549 { ac_try='test -s conftest.$ac_objext'
8550 { (case "(($ac_try" in
8551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552 *) ac_try_echo=$ac_try;;
8553esac
8554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555 (eval "$ac_try") 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008559 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008560else
8561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008562sed 's/^/| /' conftest.$ac_ext >&5
8563
Reid Spencera773bd52006-08-04 18:18:08 +00008564 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008565fi
Reid Spencera773bd52006-08-04 18:18:08 +00008566
8567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8569echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008570
8571# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008572{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8573echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008574cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008575/* confdefs.h. */
8576_ACEOF
8577cat confdefs.h >>conftest.$ac_ext
8578cat >>conftest.$ac_ext <<_ACEOF
8579/* end confdefs.h. */
8580#include <$ac_header>
8581_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008582if { (ac_try="$ac_cpp conftest.$ac_ext"
8583case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8586esac
8587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008589 ac_status=$?
8590 grep -v '^ *+' conftest.er1 >conftest.err
8591 rm -f conftest.er1
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008594 (exit $ac_status); } >/dev/null; then
8595 if test -s conftest.err; then
8596 ac_cpp_err=$ac_c_preproc_warn_flag
8597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8598 else
8599 ac_cpp_err=
8600 fi
8601else
8602 ac_cpp_err=yes
8603fi
8604if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008605 ac_header_preproc=yes
8606else
8607 echo "$as_me: failed program was:" >&5
8608sed 's/^/| /' conftest.$ac_ext >&5
8609
8610 ac_header_preproc=no
8611fi
Reid Spencera773bd52006-08-04 18:18:08 +00008612
Brian Gaeke0a621332004-09-08 20:38:05 +00008613rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008614{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8615echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008616
8617# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8619 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8624 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008625 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008626 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008639 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008640## ----------------------------------- ##
8641## Report this to llvmbugs@cs.uiuc.edu ##
8642## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008643_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008644 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008645 ;;
8646esac
Reid Spencera773bd52006-08-04 18:18:08 +00008647{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8648echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008650 echo $ECHO_N "(cached) $ECHO_C" >&6
8651else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008652 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008653fi
Reid Spencera773bd52006-08-04 18:18:08 +00008654ac_res=`eval echo '${'$as_ac_Header'}'`
8655 { echo "$as_me:$LINENO: result: $ac_res" >&5
8656echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008657
8658fi
John Criswell7a73b802003-06-30 21:59:07 +00008659if test `eval echo '${'$as_ac_Header'}'` = yes; then
8660 cat >>confdefs.h <<_ACEOF
8661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8662_ACEOF
8663
8664fi
8665
8666done
8667
Reid Spencera773bd52006-08-04 18:18:08 +00008668# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008669if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008670 enableval=$enable_ltdl_install;
8671fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008672
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008673
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008674
8675
8676if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008677 INSTALL_LTDL_TRUE=
8678 INSTALL_LTDL_FALSE='#'
8679else
8680 INSTALL_LTDL_TRUE='#'
8681 INSTALL_LTDL_FALSE=
8682fi
8683
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008684
8685
8686if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008687 CONVENIENCE_LTDL_TRUE=
8688 CONVENIENCE_LTDL_FALSE='#'
8689else
8690 CONVENIENCE_LTDL_TRUE='#'
8691 CONVENIENCE_LTDL_FALSE=
8692fi
8693
8694
Reid Spencera773bd52006-08-04 18:18:08 +00008695{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8696echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008697library_names_spec=
8698libname_spec='lib$name'
8699soname_spec=
8700shrext_cmds=".so"
8701postinstall_cmds=
8702postuninstall_cmds=
8703finish_cmds=
8704finish_eval=
8705shlibpath_var=
8706shlibpath_overrides_runpath=unknown
8707version_type=none
8708dynamic_linker="$host_os ld.so"
8709sys_lib_dlsearch_path_spec="/lib /usr/lib"
8710if test "$GCC" = yes; then
8711 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8712 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8713 # if the path contains ";" then we assume it to be the separator
8714 # otherwise default to the standard path separator (i.e. ":") - it is
8715 # assumed that no part of a normal pathname contains ";" but that should
8716 # okay in the real world where ";" in dirpaths is itself problematic.
8717 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8718 else
8719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8720 fi
8721else
8722 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8723fi
8724need_lib_prefix=unknown
8725hardcode_into_libs=no
8726
8727# when you set need_version to no, make sure it does not cause -set_version
8728# flags to be left without arguments
8729need_version=unknown
8730
8731case $host_os in
8732aix3*)
8733 version_type=linux
8734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8735 shlibpath_var=LIBPATH
8736
8737 # AIX 3 has no versioning support, so we append a major version to the name.
8738 soname_spec='${libname}${release}${shared_ext}$major'
8739 ;;
8740
8741aix4* | aix5*)
8742 version_type=linux
8743 need_lib_prefix=no
8744 need_version=no
8745 hardcode_into_libs=yes
8746 if test "$host_cpu" = ia64; then
8747 # AIX 5 supports IA64
8748 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8749 shlibpath_var=LD_LIBRARY_PATH
8750 else
8751 # With GCC up to 2.95.x, collect2 would create an import file
8752 # for dependence libraries. The import file would start with
8753 # the line `#! .'. This would cause the generated library to
8754 # depend on `.', always an invalid library. This was fixed in
8755 # development snapshots of GCC prior to 3.0.
8756 case $host_os in
8757 aix4 | aix4.[01] | aix4.[01].*)
8758 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8759 echo ' yes '
8760 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8761 :
8762 else
8763 can_build_shared=no
8764 fi
8765 ;;
8766 esac
8767 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8768 # soname into executable. Probably we can add versioning support to
8769 # collect2, so additional links can be useful in future.
8770 if test "$aix_use_runtimelinking" = yes; then
8771 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8772 # instead of lib<name>.a to let people know that these are not
8773 # typical AIX shared libraries.
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8775 else
8776 # We preserve .a as extension for shared libraries through AIX4.2
8777 # and later when we are not doing run time linking.
8778 library_names_spec='${libname}${release}.a $libname.a'
8779 soname_spec='${libname}${release}${shared_ext}$major'
8780 fi
8781 shlibpath_var=LIBPATH
8782 fi
8783 ;;
8784
8785amigaos*)
8786 library_names_spec='$libname.ixlibrary $libname.a'
8787 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8788 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'
8789 ;;
8790
8791beos*)
8792 library_names_spec='${libname}${shared_ext}'
8793 dynamic_linker="$host_os ld.so"
8794 shlibpath_var=LIBRARY_PATH
8795 ;;
8796
8797bsdi[45]*)
8798 version_type=linux
8799 need_version=no
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8801 soname_spec='${libname}${release}${shared_ext}$major'
8802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8803 shlibpath_var=LD_LIBRARY_PATH
8804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8806 # the default ld.so.conf also contains /usr/contrib/lib and
8807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8808 # libtool to hard-code these into programs
8809 ;;
8810
8811cygwin* | mingw* | pw32*)
8812 version_type=windows
8813 shrext_cmds=".dll"
8814 need_version=no
8815 need_lib_prefix=no
8816
8817 case $GCC,$host_os in
8818 yes,cygwin* | yes,mingw* | yes,pw32*)
8819 library_names_spec='$libname.dll.a'
8820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8821 postinstall_cmds='base_file=`basename \${file}`~
8822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8823 dldir=$destdir/`dirname \$dlpath`~
8824 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008825 $install_prog $dir/$dlname \$dldir/$dlname~
8826 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8828 dlpath=$dir/\$dldll~
8829 $rm \$dlpath'
8830 shlibpath_overrides_runpath=yes
8831
8832 case $host_os in
8833 cygwin*)
8834 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8835 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8836 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8837 ;;
8838 mingw*)
8839 # MinGW DLLs use traditional 'lib' prefix
8840 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8841 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8842 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8843 # It is most probably a Windows format PATH printed by
8844 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8845 # path with ; separators, and with drive letters. We can handle the
8846 # drive letters (cygwin fileutils understands them), so leave them,
8847 # especially as we might pass files found there to a mingw objdump,
8848 # which wouldn't understand a cygwinified path. Ahh.
8849 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8850 else
8851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8852 fi
8853 ;;
8854 pw32*)
8855 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008856 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 +00008857 ;;
8858 esac
8859 ;;
8860
8861 *)
8862 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8863 ;;
8864 esac
8865 dynamic_linker='Win32 ld.exe'
8866 # FIXME: first we should search . and the directory the executable is in
8867 shlibpath_var=PATH
8868 ;;
8869
8870darwin* | rhapsody*)
8871 dynamic_linker="$host_os dyld"
8872 version_type=darwin
8873 need_lib_prefix=no
8874 need_version=no
8875 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8876 soname_spec='${libname}${release}${major}$shared_ext'
8877 shlibpath_overrides_runpath=yes
8878 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008879 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008880 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8881 if test "$GCC" = yes; then
8882 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"`
8883 else
8884 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8885 fi
8886 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8887 ;;
8888
8889dgux*)
8890 version_type=linux
8891 need_lib_prefix=no
8892 need_version=no
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8894 soname_spec='${libname}${release}${shared_ext}$major'
8895 shlibpath_var=LD_LIBRARY_PATH
8896 ;;
8897
8898freebsd1*)
8899 dynamic_linker=no
8900 ;;
8901
8902kfreebsd*-gnu)
8903 version_type=linux
8904 need_lib_prefix=no
8905 need_version=no
8906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8907 soname_spec='${libname}${release}${shared_ext}$major'
8908 shlibpath_var=LD_LIBRARY_PATH
8909 shlibpath_overrides_runpath=no
8910 hardcode_into_libs=yes
8911 dynamic_linker='GNU ld.so'
8912 ;;
8913
Reid Spencera773bd52006-08-04 18:18:08 +00008914freebsd* | dragonfly*)
8915 # DragonFly does not have aout. When/if they implement a new
8916 # versioning mechanism, adjust this.
8917 if test -x /usr/bin/objformat; then
8918 objformat=`/usr/bin/objformat`
8919 else
8920 case $host_os in
8921 freebsd[123]*) objformat=aout ;;
8922 *) objformat=elf ;;
8923 esac
8924 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008925 version_type=freebsd-$objformat
8926 case $version_type in
8927 freebsd-elf*)
8928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8929 need_version=no
8930 need_lib_prefix=no
8931 ;;
8932 freebsd-*)
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8934 need_version=yes
8935 ;;
8936 esac
8937 shlibpath_var=LD_LIBRARY_PATH
8938 case $host_os in
8939 freebsd2*)
8940 shlibpath_overrides_runpath=yes
8941 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008942 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008943 shlibpath_overrides_runpath=yes
8944 hardcode_into_libs=yes
8945 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008948 shlibpath_overrides_runpath=no
8949 hardcode_into_libs=yes
8950 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008951 freebsd*) # from 4.6 on
8952 shlibpath_overrides_runpath=yes
8953 hardcode_into_libs=yes
8954 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008955 esac
8956 ;;
8957
8958gnu*)
8959 version_type=linux
8960 need_lib_prefix=no
8961 need_version=no
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
8964 shlibpath_var=LD_LIBRARY_PATH
8965 hardcode_into_libs=yes
8966 ;;
8967
8968hpux9* | hpux10* | hpux11*)
8969 # Give a soname corresponding to the major version so that dld.sl refuses to
8970 # link against other versions.
8971 version_type=sunos
8972 need_lib_prefix=no
8973 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008974 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008975 ia64*)
8976 shrext_cmds='.so'
8977 hardcode_into_libs=yes
8978 dynamic_linker="$host_os dld.so"
8979 shlibpath_var=LD_LIBRARY_PATH
8980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 if test "X$HPUX_IA64_MODE" = X32; then
8984 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8985 else
8986 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8987 fi
8988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8989 ;;
8990 hppa*64*)
8991 shrext_cmds='.sl'
8992 hardcode_into_libs=yes
8993 dynamic_linker="$host_os dld.sl"
8994 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8995 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8999 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9000 ;;
9001 *)
9002 shrext_cmds='.sl'
9003 dynamic_linker="$host_os dld.sl"
9004 shlibpath_var=SHLIB_PATH
9005 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 ;;
9009 esac
9010 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9011 postinstall_cmds='chmod 555 $lib'
9012 ;;
9013
Reid Spencera773bd52006-08-04 18:18:08 +00009014interix3*)
9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=no
9023 hardcode_into_libs=yes
9024 ;;
9025
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009026irix5* | irix6* | nonstopux*)
9027 case $host_os in
9028 nonstopux*) version_type=nonstopux ;;
9029 *)
9030 if test "$lt_cv_prog_gnu_ld" = yes; then
9031 version_type=linux
9032 else
9033 version_type=irix
9034 fi ;;
9035 esac
9036 need_lib_prefix=no
9037 need_version=no
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9040 case $host_os in
9041 irix5* | nonstopux*)
9042 libsuff= shlibsuff=
9043 ;;
9044 *)
9045 case $LD in # libtool.m4 will add one of these switches to LD
9046 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9047 libsuff= shlibsuff= libmagic=32-bit;;
9048 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9049 libsuff=32 shlibsuff=N32 libmagic=N32;;
9050 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9051 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9052 *) libsuff= shlibsuff= libmagic=never-match;;
9053 esac
9054 ;;
9055 esac
9056 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9057 shlibpath_overrides_runpath=no
9058 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9059 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9060 hardcode_into_libs=yes
9061 ;;
9062
9063# No shared lib support for Linux oldld, aout, or coff.
9064linux*oldld* | linux*aout* | linux*coff*)
9065 dynamic_linker=no
9066 ;;
9067
9068# This must be Linux ELF.
9069linux*)
9070 version_type=linux
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=no
9078 # This implies no fast_install, which is unacceptable.
9079 # Some rework will be needed to allow for fast_install
9080 # before this can be enabled.
9081 hardcode_into_libs=yes
9082
9083 # Append ld.so.conf contents to the search path
9084 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009085 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 +00009086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9087 fi
9088
9089 # We used to test for /lib/ld.so.1 and disable shared libraries on
9090 # powerpc, because MkLinux only supported shared libraries with the
9091 # GNU dynamic linker. Since this was broken with cross compilers,
9092 # most powerpc-linux boxes support dynamic linking these days and
9093 # people can always --disable-shared, the test was removed, and we
9094 # assume the GNU/Linux dynamic linker is in use.
9095 dynamic_linker='GNU/Linux ld.so'
9096 ;;
9097
9098knetbsd*-gnu)
9099 version_type=linux
9100 need_lib_prefix=no
9101 need_version=no
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 shlibpath_var=LD_LIBRARY_PATH
9105 shlibpath_overrides_runpath=no
9106 hardcode_into_libs=yes
9107 dynamic_linker='GNU ld.so'
9108 ;;
9109
9110netbsd*)
9111 version_type=sunos
9112 need_lib_prefix=no
9113 need_version=no
9114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9117 dynamic_linker='NetBSD (a.out) ld.so'
9118 else
9119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 dynamic_linker='NetBSD ld.elf_so'
9122 fi
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=yes
9125 hardcode_into_libs=yes
9126 ;;
9127
9128newsos6)
9129 version_type=linux
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath=yes
9133 ;;
9134
9135nto-qnx*)
9136 version_type=linux
9137 need_lib_prefix=no
9138 need_version=no
9139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9140 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LD_LIBRARY_PATH
9142 shlibpath_overrides_runpath=yes
9143 ;;
9144
9145openbsd*)
9146 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009147 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009148 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009149 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9150 case $host_os in
9151 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9152 *) need_version=no ;;
9153 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9156 shlibpath_var=LD_LIBRARY_PATH
9157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9158 case $host_os in
9159 openbsd2.[89] | openbsd2.[89].*)
9160 shlibpath_overrides_runpath=no
9161 ;;
9162 *)
9163 shlibpath_overrides_runpath=yes
9164 ;;
9165 esac
9166 else
9167 shlibpath_overrides_runpath=yes
9168 fi
9169 ;;
9170
9171os2*)
9172 libname_spec='$name'
9173 shrext_cmds=".dll"
9174 need_lib_prefix=no
9175 library_names_spec='$libname${shared_ext} $libname.a'
9176 dynamic_linker='OS/2 ld.exe'
9177 shlibpath_var=LIBPATH
9178 ;;
9179
9180osf3* | osf4* | osf5*)
9181 version_type=osf
9182 need_lib_prefix=no
9183 need_version=no
9184 soname_spec='${libname}${release}${shared_ext}$major'
9185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 shlibpath_var=LD_LIBRARY_PATH
9187 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9188 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9189 ;;
9190
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009191solaris*)
9192 version_type=linux
9193 need_lib_prefix=no
9194 need_version=no
9195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9196 soname_spec='${libname}${release}${shared_ext}$major'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 shlibpath_overrides_runpath=yes
9199 hardcode_into_libs=yes
9200 # ldd complains unless libraries are executable
9201 postinstall_cmds='chmod +x $lib'
9202 ;;
9203
9204sunos4*)
9205 version_type=sunos
9206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9207 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9208 shlibpath_var=LD_LIBRARY_PATH
9209 shlibpath_overrides_runpath=yes
9210 if test "$with_gnu_ld" = yes; then
9211 need_lib_prefix=no
9212 fi
9213 need_version=yes
9214 ;;
9215
Reid Spencera773bd52006-08-04 18:18:08 +00009216sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009217 version_type=linux
9218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9219 soname_spec='${libname}${release}${shared_ext}$major'
9220 shlibpath_var=LD_LIBRARY_PATH
9221 case $host_vendor in
9222 sni)
9223 shlibpath_overrides_runpath=no
9224 need_lib_prefix=no
9225 export_dynamic_flag_spec='${wl}-Blargedynsym'
9226 runpath_var=LD_RUN_PATH
9227 ;;
9228 siemens)
9229 need_lib_prefix=no
9230 ;;
9231 motorola)
9232 need_lib_prefix=no
9233 need_version=no
9234 shlibpath_overrides_runpath=no
9235 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9236 ;;
9237 esac
9238 ;;
9239
9240sysv4*MP*)
9241 if test -d /usr/nec ;then
9242 version_type=linux
9243 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9244 soname_spec='$libname${shared_ext}.$major'
9245 shlibpath_var=LD_LIBRARY_PATH
9246 fi
9247 ;;
9248
Reid Spencera773bd52006-08-04 18:18:08 +00009249sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9250 version_type=freebsd-elf
9251 need_lib_prefix=no
9252 need_version=no
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 hardcode_into_libs=yes
9257 if test "$with_gnu_ld" = yes; then
9258 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9259 shlibpath_overrides_runpath=no
9260 else
9261 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9262 shlibpath_overrides_runpath=yes
9263 case $host_os in
9264 sco3.2v5*)
9265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9266 ;;
9267 esac
9268 fi
9269 sys_lib_dlsearch_path_spec='/usr/lib'
9270 ;;
9271
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009272uts4*)
9273 version_type=linux
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9275 soname_spec='${libname}${release}${shared_ext}$major'
9276 shlibpath_var=LD_LIBRARY_PATH
9277 ;;
9278
9279*)
9280 dynamic_linker=no
9281 ;;
9282esac
Reid Spencera773bd52006-08-04 18:18:08 +00009283{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9284echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009285test "$dynamic_linker" = no && can_build_shared=no
9286
Reid Spencera773bd52006-08-04 18:18:08 +00009287variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9288if test "$GCC" = yes; then
9289 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9290fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009291
Reid Spencera773bd52006-08-04 18:18:08 +00009292
9293{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9294echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009295if test "${libltdl_cv_shlibext+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9297else
9298
9299module=yes
9300eval libltdl_cv_shlibext=$shrext_cmds
9301
9302fi
Reid Spencera773bd52006-08-04 18:18:08 +00009303{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9304echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009305if test -n "$libltdl_cv_shlibext"; then
9306
9307cat >>confdefs.h <<_ACEOF
9308#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9309_ACEOF
9310
9311fi
9312
9313
Reid Spencera773bd52006-08-04 18:18:08 +00009314{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9315echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009316if test "${libltdl_cv_shlibpath_var+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9318else
9319 libltdl_cv_shlibpath_var="$shlibpath_var"
9320fi
Reid Spencera773bd52006-08-04 18:18:08 +00009321{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9322echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009323if test -n "$libltdl_cv_shlibpath_var"; then
9324
9325cat >>confdefs.h <<_ACEOF
9326#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9327_ACEOF
9328
9329fi
9330
9331
Reid Spencera773bd52006-08-04 18:18:08 +00009332{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9333echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009334if test "${libltdl_cv_sys_search_path+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9336else
9337 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9338fi
Reid Spencera773bd52006-08-04 18:18:08 +00009339{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9340echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009341if test -n "$libltdl_cv_sys_search_path"; then
9342 sys_search_path=
9343 for dir in $libltdl_cv_sys_search_path; do
9344 if test -z "$sys_search_path"; then
9345 sys_search_path="$dir"
9346 else
9347 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9348 fi
9349 done
9350
9351cat >>confdefs.h <<_ACEOF
9352#define LTDL_SYSSEARCHPATH "$sys_search_path"
9353_ACEOF
9354
9355fi
9356
Reid Spencera773bd52006-08-04 18:18:08 +00009357{ echo "$as_me:$LINENO: checking for objdir" >&5
9358echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009359if test "${libltdl_cv_objdir+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9361else
9362 libltdl_cv_objdir="$objdir"
9363 if test -n "$objdir"; then
9364 :
9365 else
9366 rm -f .libs 2>/dev/null
9367 mkdir .libs 2>/dev/null
9368 if test -d .libs; then
9369 libltdl_cv_objdir=.libs
9370 else
9371 # MS-DOS does not allow filenames that begin with a dot.
9372 libltdl_cv_objdir=_libs
9373 fi
9374 rmdir .libs 2>/dev/null
9375 fi
9376
9377fi
Reid Spencera773bd52006-08-04 18:18:08 +00009378{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9379echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009380
9381cat >>confdefs.h <<_ACEOF
9382#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9383_ACEOF
9384
9385
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009386
9387
9388
9389
9390# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009391{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9392echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009393if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9394 echo $ECHO_N "(cached) $ECHO_C" >&6
9395else
9396
9397# These are sane defaults that work on at least a few old systems.
9398# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9399
9400# Character class describing NM global symbol codes.
9401symcode='[BCDEGRST]'
9402
9403# Regexp to match symbols that can be accessed directly from C.
9404sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9405
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009406# Transform an extracted symbol line into a proper C declaration
9407lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9408
9409# Transform an extracted symbol line into symbol name and symbol address
9410lt_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'"
9411
9412# Define system-specific variables.
9413case $host_os in
9414aix*)
9415 symcode='[BCDT]'
9416 ;;
9417cygwin* | mingw* | pw32*)
9418 symcode='[ABCDGISTW]'
9419 ;;
9420hpux*) # Its linker distinguishes data from code symbols
9421 if test "$host_cpu" = ia64; then
9422 symcode='[ABCDEGRST]'
9423 fi
9424 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9425 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'"
9426 ;;
9427linux*)
9428 if test "$host_cpu" = ia64; then
9429 symcode='[ABCDGIRSTW]'
9430 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9431 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'"
9432 fi
9433 ;;
9434irix* | nonstopux*)
9435 symcode='[BCDEGRST]'
9436 ;;
9437osf*)
9438 symcode='[BCDEGQRST]'
9439 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009440solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009441 symcode='[BDRT]'
9442 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009443sco3.2v5*)
9444 symcode='[DT]'
9445 ;;
9446sysv4.2uw2*)
9447 symcode='[DT]'
9448 ;;
9449sysv5* | sco5v6* | unixware* | OpenUNIX*)
9450 symcode='[ABDT]'
9451 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009452sysv4)
9453 symcode='[DFNSTU]'
9454 ;;
9455esac
9456
9457# Handle CRLF in mingw tool chain
9458opt_cr=
9459case $build_os in
9460mingw*)
9461 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9462 ;;
9463esac
9464
9465# If we're using GNU nm, then use its standard symbol codes.
9466case `$NM -V 2>&1` in
9467*GNU* | *'with BFD'*)
9468 symcode='[ABCDGIRSTW]' ;;
9469esac
9470
9471# Try without a prefix undercore, then with it.
9472for ac_symprfx in "" "_"; do
9473
Reid Spencera773bd52006-08-04 18:18:08 +00009474 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9475 symxfrm="\\1 $ac_symprfx\\2 \\2"
9476
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009477 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009478 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 +00009479
9480 # Check to see that the pipe works correctly.
9481 pipe_works=no
9482
9483 rm -f conftest*
9484 cat > conftest.$ac_ext <<EOF
9485#ifdef __cplusplus
9486extern "C" {
9487#endif
9488char nm_test_var;
9489void nm_test_func(){}
9490#ifdef __cplusplus
9491}
9492#endif
9493int main(){nm_test_var='a';nm_test_func();return(0);}
9494EOF
9495
9496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9497 (eval $ac_compile) 2>&5
9498 ac_status=$?
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; then
9501 # Now try to grab the symbols.
9502 nlist=conftest.nm
9503 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9504 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } && test -s "$nlist"; then
9508 # Try sorting and uniquifying the output.
9509 if sort "$nlist" | uniq > "$nlist"T; then
9510 mv -f "$nlist"T "$nlist"
9511 else
9512 rm -f "$nlist"T
9513 fi
9514
9515 # Make sure that we snagged all the symbols we need.
9516 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9517 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9518 cat <<EOF > conftest.$ac_ext
9519#ifdef __cplusplus
9520extern "C" {
9521#endif
9522
9523EOF
9524 # Now generate the symbol file.
9525 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9526
9527 cat <<EOF >> conftest.$ac_ext
9528#if defined (__STDC__) && __STDC__
9529# define lt_ptr_t void *
9530#else
9531# define lt_ptr_t char *
9532# define const
9533#endif
9534
9535/* The mapping between symbol names and symbols. */
9536const struct {
9537 const char *name;
9538 lt_ptr_t address;
9539}
9540lt_preloaded_symbols[] =
9541{
9542EOF
9543 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9544 cat <<\EOF >> conftest.$ac_ext
9545 {0, (lt_ptr_t) 0}
9546};
9547
9548#ifdef __cplusplus
9549}
9550#endif
9551EOF
9552 # Now try linking the two files.
9553 mv conftest.$ac_objext conftstm.$ac_objext
9554 lt_save_LIBS="$LIBS"
9555 lt_save_CFLAGS="$CFLAGS"
9556 LIBS="conftstm.$ac_objext"
9557 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9559 (eval $ac_link) 2>&5
9560 ac_status=$?
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9563 pipe_works=yes
9564 fi
9565 LIBS="$lt_save_LIBS"
9566 CFLAGS="$lt_save_CFLAGS"
9567 else
9568 echo "cannot find nm_test_func in $nlist" >&5
9569 fi
9570 else
9571 echo "cannot find nm_test_var in $nlist" >&5
9572 fi
9573 else
9574 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9575 fi
9576 else
9577 echo "$progname: failed program was:" >&5
9578 cat conftest.$ac_ext >&5
9579 fi
9580 rm -f conftest* conftst*
9581
9582 # Do not use the global_symbol_pipe unless it works.
9583 if test "$pipe_works" = yes; then
9584 break
9585 else
9586 lt_cv_sys_global_symbol_pipe=
9587 fi
9588done
9589
9590fi
9591
9592if test -z "$lt_cv_sys_global_symbol_pipe"; then
9593 lt_cv_sys_global_symbol_to_cdecl=
9594fi
9595if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009596 { echo "$as_me:$LINENO: result: failed" >&5
9597echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009598else
Reid Spencera773bd52006-08-04 18:18:08 +00009599 { echo "$as_me:$LINENO: result: ok" >&5
9600echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009601fi
9602
9603
Reid Spencera773bd52006-08-04 18:18:08 +00009604{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9605echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009606if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608else
9609 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9610 libltdl_cv_preloaded_symbols=yes
9611 else
9612 libltdl_cv_preloaded_symbols=no
9613 fi
9614
9615fi
Reid Spencera773bd52006-08-04 18:18:08 +00009616{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9617echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009618if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9619
9620cat >>confdefs.h <<\_ACEOF
9621#define HAVE_PRELOADED_SYMBOLS 1
9622_ACEOF
9623
9624fi
9625
9626LIBADD_DL=
9627
9628ac_ext=c
9629ac_cpp='$CPP $CPPFLAGS'
9630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9632ac_compiler_gnu=$ac_cv_c_compiler_gnu
9633
9634
Reid Spencera773bd52006-08-04 18:18:08 +00009635{ echo "$as_me:$LINENO: checking for shl_load" >&5
9636echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009637if test "${ac_cv_func_shl_load+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9639else
9640 cat >conftest.$ac_ext <<_ACEOF
9641/* confdefs.h. */
9642_ACEOF
9643cat confdefs.h >>conftest.$ac_ext
9644cat >>conftest.$ac_ext <<_ACEOF
9645/* end confdefs.h. */
9646/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9648#define shl_load innocuous_shl_load
9649
9650/* System header to define __stub macros and hopefully few prototypes,
9651 which can conflict with char shl_load (); below.
9652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9653 <limits.h> exists even on freestanding compilers. */
9654
9655#ifdef __STDC__
9656# include <limits.h>
9657#else
9658# include <assert.h>
9659#endif
9660
9661#undef shl_load
9662
Reid Spencera773bd52006-08-04 18:18:08 +00009663/* Override any GCC internal prototype to avoid an error.
9664 Use char because int might match the return type of a GCC
9665 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009666#ifdef __cplusplus
9667extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009668#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009669char shl_load ();
9670/* The GNU C library defines this for functions which it implements
9671 to always fail with ENOSYS. Some functions are actually named
9672 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009673#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009674choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675#endif
9676
9677int
9678main ()
9679{
Reid Spencera773bd52006-08-04 18:18:08 +00009680return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009681 ;
9682 return 0;
9683}
9684_ACEOF
9685rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009686if { (ac_try="$ac_link"
9687case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690esac
9691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009693 ac_status=$?
9694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009698 (exit $ac_status); } &&
9699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9700 { (case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9703esac
9704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705 (eval "$ac_try") 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest$ac_exeext'
9710 { (case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9713esac
9714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715 (eval "$ac_try") 2>&5
9716 ac_status=$?
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009719 ac_cv_func_shl_load=yes
9720else
9721 echo "$as_me: failed program was:" >&5
9722sed 's/^/| /' conftest.$ac_ext >&5
9723
Reid Spencera773bd52006-08-04 18:18:08 +00009724 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009725fi
Reid Spencera773bd52006-08-04 18:18:08 +00009726
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009727rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009728 conftest$ac_exeext conftest.$ac_ext
9729fi
Reid Spencera773bd52006-08-04 18:18:08 +00009730{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9731echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009732if test $ac_cv_func_shl_load = yes; then
9733
9734cat >>confdefs.h <<\_ACEOF
9735#define HAVE_SHL_LOAD 1
9736_ACEOF
9737
9738else
Reid Spencera773bd52006-08-04 18:18:08 +00009739 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9740echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009741if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743else
9744 ac_check_lib_save_LIBS=$LIBS
9745LIBS="-ldld $LIBS"
9746cat >conftest.$ac_ext <<_ACEOF
9747/* confdefs.h. */
9748_ACEOF
9749cat confdefs.h >>conftest.$ac_ext
9750cat >>conftest.$ac_ext <<_ACEOF
9751/* end confdefs.h. */
9752
Reid Spencera773bd52006-08-04 18:18:08 +00009753/* Override any GCC internal prototype to avoid an error.
9754 Use char because int might match the return type of a GCC
9755 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009756#ifdef __cplusplus
9757extern "C"
9758#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009759char shl_load ();
9760int
9761main ()
9762{
Reid Spencera773bd52006-08-04 18:18:08 +00009763return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009764 ;
9765 return 0;
9766}
9767_ACEOF
9768rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009769if { (ac_try="$ac_link"
9770case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773esac
9774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009781 (exit $ac_status); } &&
9782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9783 { (case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9786esac
9787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_try") 2>&5
9789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; } &&
9792 { ac_try='test -s conftest$ac_exeext'
9793 { (case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796esac
9797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9798 (eval "$ac_try") 2>&5
9799 ac_status=$?
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009802 ac_cv_lib_dld_shl_load=yes
9803else
9804 echo "$as_me: failed program was:" >&5
9805sed 's/^/| /' conftest.$ac_ext >&5
9806
Reid Spencera773bd52006-08-04 18:18:08 +00009807 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808fi
Reid Spencera773bd52006-08-04 18:18:08 +00009809
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009810rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009811 conftest$ac_exeext conftest.$ac_ext
9812LIBS=$ac_check_lib_save_LIBS
9813fi
Reid Spencera773bd52006-08-04 18:18:08 +00009814{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9815echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009816if test $ac_cv_lib_dld_shl_load = yes; then
9817
9818cat >>confdefs.h <<\_ACEOF
9819#define HAVE_SHL_LOAD 1
9820_ACEOF
9821
9822 LIBADD_DL="$LIBADD_DL -ldld"
9823else
Reid Spencera773bd52006-08-04 18:18:08 +00009824 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9825echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009826if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828else
9829 ac_check_lib_save_LIBS=$LIBS
9830LIBS="-ldl $LIBS"
9831cat >conftest.$ac_ext <<_ACEOF
9832/* confdefs.h. */
9833_ACEOF
9834cat confdefs.h >>conftest.$ac_ext
9835cat >>conftest.$ac_ext <<_ACEOF
9836/* end confdefs.h. */
9837
Reid Spencera773bd52006-08-04 18:18:08 +00009838/* Override any GCC internal prototype to avoid an error.
9839 Use char because int might match the return type of a GCC
9840 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009841#ifdef __cplusplus
9842extern "C"
9843#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009844char dlopen ();
9845int
9846main ()
9847{
Reid Spencera773bd52006-08-04 18:18:08 +00009848return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849 ;
9850 return 0;
9851}
9852_ACEOF
9853rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009854if { (ac_try="$ac_link"
9855case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858esac
9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009866 (exit $ac_status); } &&
9867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9868 { (case "(($ac_try" in
9869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9870 *) ac_try_echo=$ac_try;;
9871esac
9872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9873 (eval "$ac_try") 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; } &&
9877 { ac_try='test -s conftest$ac_exeext'
9878 { (case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881esac
9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_try") 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009887 ac_cv_lib_dl_dlopen=yes
9888else
9889 echo "$as_me: failed program was:" >&5
9890sed 's/^/| /' conftest.$ac_ext >&5
9891
Reid Spencera773bd52006-08-04 18:18:08 +00009892 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009893fi
Reid Spencera773bd52006-08-04 18:18:08 +00009894
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009895rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009896 conftest$ac_exeext conftest.$ac_ext
9897LIBS=$ac_check_lib_save_LIBS
9898fi
Reid Spencera773bd52006-08-04 18:18:08 +00009899{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9900echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009901if test $ac_cv_lib_dl_dlopen = yes; then
9902
9903cat >>confdefs.h <<\_ACEOF
9904#define HAVE_LIBDL 1
9905_ACEOF
9906
9907 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9908else
9909 cat >conftest.$ac_ext <<_ACEOF
9910/* confdefs.h. */
9911_ACEOF
9912cat confdefs.h >>conftest.$ac_ext
9913cat >>conftest.$ac_ext <<_ACEOF
9914/* end confdefs.h. */
9915#if HAVE_DLFCN_H
9916# include <dlfcn.h>
9917#endif
9918
9919int
9920main ()
9921{
9922dlopen(0, 0);
9923 ;
9924 return 0;
9925}
9926_ACEOF
9927rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009928if { (ac_try="$ac_link"
9929case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932esac
9933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9942 { (case "(($ac_try" in
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9945esac
9946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_try") 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; } &&
9951 { ac_try='test -s conftest$ac_exeext'
9952 { (case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9955esac
9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_try") 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009961
9962cat >>confdefs.h <<\_ACEOF
9963#define HAVE_LIBDL 1
9964_ACEOF
9965 libltdl_cv_func_dlopen="yes"
9966else
9967 echo "$as_me: failed program was:" >&5
9968sed 's/^/| /' conftest.$ac_ext >&5
9969
Reid Spencera773bd52006-08-04 18:18:08 +00009970 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9971echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009972if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9974else
9975 ac_check_lib_save_LIBS=$LIBS
9976LIBS="-lsvld $LIBS"
9977cat >conftest.$ac_ext <<_ACEOF
9978/* confdefs.h. */
9979_ACEOF
9980cat confdefs.h >>conftest.$ac_ext
9981cat >>conftest.$ac_ext <<_ACEOF
9982/* end confdefs.h. */
9983
Reid Spencera773bd52006-08-04 18:18:08 +00009984/* Override any GCC internal prototype to avoid an error.
9985 Use char because int might match the return type of a GCC
9986 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009987#ifdef __cplusplus
9988extern "C"
9989#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009990char dlopen ();
9991int
9992main ()
9993{
Reid Spencera773bd52006-08-04 18:18:08 +00009994return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995 ;
9996 return 0;
9997}
9998_ACEOF
9999rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010000if { (ac_try="$ac_link"
10001case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004esac
10005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010007 ac_status=$?
10008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010012 (exit $ac_status); } &&
10013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
10020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest$ac_exeext'
10024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027esac
10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
10030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010033 ac_cv_lib_svld_dlopen=yes
10034else
10035 echo "$as_me: failed program was:" >&5
10036sed 's/^/| /' conftest.$ac_ext >&5
10037
Reid Spencera773bd52006-08-04 18:18:08 +000010038 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010039fi
Reid Spencera773bd52006-08-04 18:18:08 +000010040
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010041rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010042 conftest$ac_exeext conftest.$ac_ext
10043LIBS=$ac_check_lib_save_LIBS
10044fi
Reid Spencera773bd52006-08-04 18:18:08 +000010045{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10046echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047if test $ac_cv_lib_svld_dlopen = yes; then
10048
10049cat >>confdefs.h <<\_ACEOF
10050#define HAVE_LIBDL 1
10051_ACEOF
10052
10053 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10054else
Reid Spencera773bd52006-08-04 18:18:08 +000010055 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10056echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010057if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10058 echo $ECHO_N "(cached) $ECHO_C" >&6
10059else
10060 ac_check_lib_save_LIBS=$LIBS
10061LIBS="-ldld $LIBS"
10062cat >conftest.$ac_ext <<_ACEOF
10063/* confdefs.h. */
10064_ACEOF
10065cat confdefs.h >>conftest.$ac_ext
10066cat >>conftest.$ac_ext <<_ACEOF
10067/* end confdefs.h. */
10068
Reid Spencera773bd52006-08-04 18:18:08 +000010069/* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010072#ifdef __cplusplus
10073extern "C"
10074#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010075char dld_link ();
10076int
10077main ()
10078{
Reid Spencera773bd52006-08-04 18:18:08 +000010079return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010080 ;
10081 return 0;
10082}
10083_ACEOF
10084rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010085if { (ac_try="$ac_link"
10086case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089esac
10090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010092 ac_status=$?
10093 grep -v '^ *+' conftest.er1 >conftest.err
10094 rm -f conftest.er1
10095 cat conftest.err >&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010097 (exit $ac_status); } &&
10098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10099 { (case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10102esac
10103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10104 (eval "$ac_try") 2>&5
10105 ac_status=$?
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); }; } &&
10108 { ac_try='test -s conftest$ac_exeext'
10109 { (case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112esac
10113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_try") 2>&5
10115 ac_status=$?
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010118 ac_cv_lib_dld_dld_link=yes
10119else
10120 echo "$as_me: failed program was:" >&5
10121sed 's/^/| /' conftest.$ac_ext >&5
10122
Reid Spencera773bd52006-08-04 18:18:08 +000010123 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010124fi
Reid Spencera773bd52006-08-04 18:18:08 +000010125
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010126rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127 conftest$ac_exeext conftest.$ac_ext
10128LIBS=$ac_check_lib_save_LIBS
10129fi
Reid Spencera773bd52006-08-04 18:18:08 +000010130{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10131echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132if test $ac_cv_lib_dld_dld_link = yes; then
10133
10134cat >>confdefs.h <<\_ACEOF
10135#define HAVE_DLD 1
10136_ACEOF
10137
10138 LIBADD_DL="$LIBADD_DL -ldld"
10139else
Reid Spencera773bd52006-08-04 18:18:08 +000010140 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10141echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010142if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
10144else
10145 cat >conftest.$ac_ext <<_ACEOF
10146/* confdefs.h. */
10147_ACEOF
10148cat confdefs.h >>conftest.$ac_ext
10149cat >>conftest.$ac_ext <<_ACEOF
10150/* end confdefs.h. */
10151/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10153#define _dyld_func_lookup innocuous__dyld_func_lookup
10154
10155/* System header to define __stub macros and hopefully few prototypes,
10156 which can conflict with char _dyld_func_lookup (); below.
10157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10158 <limits.h> exists even on freestanding compilers. */
10159
10160#ifdef __STDC__
10161# include <limits.h>
10162#else
10163# include <assert.h>
10164#endif
10165
10166#undef _dyld_func_lookup
10167
Reid Spencera773bd52006-08-04 18:18:08 +000010168/* Override any GCC internal prototype to avoid an error.
10169 Use char because int might match the return type of a GCC
10170 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010171#ifdef __cplusplus
10172extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010173#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010174char _dyld_func_lookup ();
10175/* The GNU C library defines this for functions which it implements
10176 to always fail with ENOSYS. Some functions are actually named
10177 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010178#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010179choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010180#endif
10181
10182int
10183main ()
10184{
Reid Spencera773bd52006-08-04 18:18:08 +000010185return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186 ;
10187 return 0;
10188}
10189_ACEOF
10190rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010191if { (ac_try="$ac_link"
10192case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195esac
10196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198 ac_status=$?
10199 grep -v '^ *+' conftest.er1 >conftest.err
10200 rm -f conftest.er1
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010203 (exit $ac_status); } &&
10204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10205 { (case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208esac
10209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_try") 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (case "(($ac_try" in
10216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217 *) ac_try_echo=$ac_try;;
10218esac
10219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220 (eval "$ac_try") 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010224 ac_cv_func__dyld_func_lookup=yes
10225else
10226 echo "$as_me: failed program was:" >&5
10227sed 's/^/| /' conftest.$ac_ext >&5
10228
Reid Spencera773bd52006-08-04 18:18:08 +000010229 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010230fi
Reid Spencera773bd52006-08-04 18:18:08 +000010231
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010232rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010233 conftest$ac_exeext conftest.$ac_ext
10234fi
Reid Spencera773bd52006-08-04 18:18:08 +000010235{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10236echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010237if test $ac_cv_func__dyld_func_lookup = yes; then
10238
10239cat >>confdefs.h <<\_ACEOF
10240#define HAVE_DYLD 1
10241_ACEOF
10242
10243fi
10244
10245
10246fi
10247
10248
10249fi
10250
10251
10252fi
Reid Spencera773bd52006-08-04 18:18:08 +000010253
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010254rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010255 conftest$ac_exeext conftest.$ac_ext
10256
10257fi
10258
10259
10260fi
10261
10262
10263fi
10264
10265
10266if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10267then
10268 lt_save_LIBS="$LIBS"
10269 LIBS="$LIBS $LIBADD_DL"
10270
10271for ac_func in dlerror
10272do
10273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010274{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10276if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278else
10279 cat >conftest.$ac_ext <<_ACEOF
10280/* confdefs.h. */
10281_ACEOF
10282cat confdefs.h >>conftest.$ac_ext
10283cat >>conftest.$ac_ext <<_ACEOF
10284/* end confdefs.h. */
10285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10287#define $ac_func innocuous_$ac_func
10288
10289/* System header to define __stub macros and hopefully few prototypes,
10290 which can conflict with char $ac_func (); below.
10291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10292 <limits.h> exists even on freestanding compilers. */
10293
10294#ifdef __STDC__
10295# include <limits.h>
10296#else
10297# include <assert.h>
10298#endif
10299
10300#undef $ac_func
10301
Reid Spencera773bd52006-08-04 18:18:08 +000010302/* Override any GCC internal prototype to avoid an error.
10303 Use char because int might match the return type of a GCC
10304 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305#ifdef __cplusplus
10306extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010307#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308char $ac_func ();
10309/* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010312#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010313choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010314#endif
10315
10316int
10317main ()
10318{
Reid Spencera773bd52006-08-04 18:18:08 +000010319return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010320 ;
10321 return 0;
10322}
10323_ACEOF
10324rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010325if { (ac_try="$ac_link"
10326case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10329esac
10330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010332 ac_status=$?
10333 grep -v '^ *+' conftest.er1 >conftest.err
10334 rm -f conftest.er1
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010337 (exit $ac_status); } &&
10338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10339 { (case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10342esac
10343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_try") 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; } &&
10348 { ac_try='test -s conftest$ac_exeext'
10349 { (case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;;
10352esac
10353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354 (eval "$ac_try") 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358 eval "$as_ac_var=yes"
10359else
10360 echo "$as_me: failed program was:" >&5
10361sed 's/^/| /' conftest.$ac_ext >&5
10362
Reid Spencera773bd52006-08-04 18:18:08 +000010363 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010364fi
Reid Spencera773bd52006-08-04 18:18:08 +000010365
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010366rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010367 conftest$ac_exeext conftest.$ac_ext
10368fi
Reid Spencera773bd52006-08-04 18:18:08 +000010369ac_res=`eval echo '${'$as_ac_var'}'`
10370 { echo "$as_me:$LINENO: result: $ac_res" >&5
10371echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010372if test `eval echo '${'$as_ac_var'}'` = yes; then
10373 cat >>confdefs.h <<_ACEOF
10374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10375_ACEOF
10376
10377fi
10378done
10379
10380 LIBS="$lt_save_LIBS"
10381fi
10382ac_ext=c
10383ac_cpp='$CPP $CPPFLAGS'
10384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10386ac_compiler_gnu=$ac_cv_c_compiler_gnu
10387
10388
10389
Reid Spencera773bd52006-08-04 18:18:08 +000010390{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10391echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010392if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10393 echo $ECHO_N "(cached) $ECHO_C" >&6
10394else
10395 ac_cv_sys_symbol_underscore=no
10396 cat > conftest.$ac_ext <<EOF
10397void nm_test_func(){}
10398int main(){nm_test_func;return 0;}
10399EOF
10400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10401 (eval $ac_compile) 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; then
10405 # Now try to grab the symbols.
10406 ac_nlist=conftest.nm
10407 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10408 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && test -s "$ac_nlist"; then
10412 # See whether the symbols have a leading underscore.
10413 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10414 ac_cv_sys_symbol_underscore=yes
10415 else
10416 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10417 :
10418 else
10419 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10420 fi
10421 fi
10422 else
10423 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10424 fi
10425 else
10426 echo "configure: failed program was:" >&5
10427 cat conftest.c >&5
10428 fi
10429 rm -rf conftest*
10430
10431fi
Reid Spencera773bd52006-08-04 18:18:08 +000010432{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10433echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434
10435
10436if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10437 if test x"$libltdl_cv_func_dlopen" = xyes ||
10438 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010439 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10440echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441if test "${libltdl_cv_need_uscore+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10443else
10444 libltdl_cv_need_uscore=unknown
10445 save_LIBS="$LIBS"
10446 LIBS="$LIBS $LIBADD_DL"
10447 if test "$cross_compiling" = yes; then :
10448 libltdl_cv_need_uscore=cross
10449else
10450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10451 lt_status=$lt_dlunknown
10452 cat > conftest.$ac_ext <<EOF
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000010453#line 10453 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010454#include "confdefs.h"
10455
10456#if HAVE_DLFCN_H
10457#include <dlfcn.h>
10458#endif
10459
10460#include <stdio.h>
10461
10462#ifdef RTLD_GLOBAL
10463# define LT_DLGLOBAL RTLD_GLOBAL
10464#else
10465# ifdef DL_GLOBAL
10466# define LT_DLGLOBAL DL_GLOBAL
10467# else
10468# define LT_DLGLOBAL 0
10469# endif
10470#endif
10471
10472/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10473 find out it does not work in some platform. */
10474#ifndef LT_DLLAZY_OR_NOW
10475# ifdef RTLD_LAZY
10476# define LT_DLLAZY_OR_NOW RTLD_LAZY
10477# else
10478# ifdef DL_LAZY
10479# define LT_DLLAZY_OR_NOW DL_LAZY
10480# else
10481# ifdef RTLD_NOW
10482# define LT_DLLAZY_OR_NOW RTLD_NOW
10483# else
10484# ifdef DL_NOW
10485# define LT_DLLAZY_OR_NOW DL_NOW
10486# else
10487# define LT_DLLAZY_OR_NOW 0
10488# endif
10489# endif
10490# endif
10491# endif
10492#endif
10493
10494#ifdef __cplusplus
10495extern "C" void exit (int);
10496#endif
10497
10498void fnord() { int i=42;}
10499int main ()
10500{
10501 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10502 int status = $lt_dlunknown;
10503
10504 if (self)
10505 {
10506 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10507 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10508 /* dlclose (self); */
10509 }
Reid Spencera773bd52006-08-04 18:18:08 +000010510 else
10511 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010512
10513 exit (status);
10514}
10515EOF
10516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10517 (eval $ac_link) 2>&5
10518 ac_status=$?
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010521 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010522 lt_status=$?
10523 case x$lt_status in
10524 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10525 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010526 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010527 esac
10528 else :
10529 # compilation failed
10530
10531 fi
10532fi
10533rm -fr conftest*
10534
10535 LIBS="$save_LIBS"
10536
10537fi
Reid Spencera773bd52006-08-04 18:18:08 +000010538{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10539echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010540 fi
10541fi
10542
10543if test x"$libltdl_cv_need_uscore" = xyes; then
10544
10545cat >>confdefs.h <<\_ACEOF
10546#define NEED_USCORE 1
10547_ACEOF
10548
10549fi
10550
10551
Reid Spencera773bd52006-08-04 18:18:08 +000010552{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10553echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10556else
10557 # PORTME does your system automatically load deplibs for dlopen?
10558 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10559 # For now, we just catch OSes we know something about -- in the
10560 # future, we'll try test this programmatically.
10561 libltdl_cv_sys_dlopen_deplibs=unknown
10562 case "$host_os" in
10563 aix3*|aix4.1.*|aix4.2.*)
10564 # Unknown whether this is true for these versions of AIX, but
10565 # we want this `case' here to explicitly catch those versions.
10566 libltdl_cv_sys_dlopen_deplibs=unknown
10567 ;;
10568 aix[45]*)
10569 libltdl_cv_sys_dlopen_deplibs=yes
10570 ;;
10571 darwin*)
10572 # Assuming the user has installed a libdl from somewhere, this is true
10573 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10574 libltdl_cv_sys_dlopen_deplibs=yes
10575 ;;
10576 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10577 # GNU and its variants, using gnu ld.so (Glibc)
10578 libltdl_cv_sys_dlopen_deplibs=yes
10579 ;;
10580 hpux10*|hpux11*)
10581 libltdl_cv_sys_dlopen_deplibs=yes
10582 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010583 interix*)
10584 libltdl_cv_sys_dlopen_deplibs=yes
10585 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010586 irix[12345]*|irix6.[01]*)
10587 # Catch all versions of IRIX before 6.2, and indicate that we don't
10588 # know how it worked for any of those versions.
10589 libltdl_cv_sys_dlopen_deplibs=unknown
10590 ;;
10591 irix*)
10592 # The case above catches anything before 6.2, and it's known that
10593 # at 6.2 and later dlopen does load deplibs.
10594 libltdl_cv_sys_dlopen_deplibs=yes
10595 ;;
10596 netbsd*)
10597 libltdl_cv_sys_dlopen_deplibs=yes
10598 ;;
10599 openbsd*)
10600 libltdl_cv_sys_dlopen_deplibs=yes
10601 ;;
10602 osf[1234]*)
10603 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10604 # it did *not* use an RPATH in a shared library to find objects the
10605 # library depends on, so we explictly say `no'.
10606 libltdl_cv_sys_dlopen_deplibs=no
10607 ;;
10608 osf5.0|osf5.0a|osf5.1)
10609 # dlopen *does* load deplibs and with the right loader patch applied
10610 # it even uses RPATH in a shared library to search for shared objects
10611 # that the library depends on, but there's no easy way to know if that
10612 # patch is installed. Since this is the case, all we can really
10613 # say is unknown -- it depends on the patch being installed. If
10614 # it is, this changes to `yes'. Without it, it would be `no'.
10615 libltdl_cv_sys_dlopen_deplibs=unknown
10616 ;;
10617 osf*)
10618 # the two cases above should catch all versions of osf <= 5.1. Read
10619 # the comments above for what we know about them.
10620 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10621 # is used to find them so we can finally say `yes'.
10622 libltdl_cv_sys_dlopen_deplibs=yes
10623 ;;
10624 solaris*)
10625 libltdl_cv_sys_dlopen_deplibs=yes
10626 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010627 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10628 libltdl_cv_sys_dlopen_deplibs=yes
10629 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010630 esac
10631
10632fi
Reid Spencera773bd52006-08-04 18:18:08 +000010633{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10634echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010635if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10636
10637cat >>confdefs.h <<\_ACEOF
10638#define LTDL_DLOPEN_DEPLIBS 1
10639_ACEOF
10640
10641fi
10642
10643
10644for ac_header in argz.h
10645do
10646as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010647if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010651 echo $ECHO_N "(cached) $ECHO_C" >&6
10652fi
Reid Spencera773bd52006-08-04 18:18:08 +000010653ac_res=`eval echo '${'$as_ac_Header'}'`
10654 { echo "$as_me:$LINENO: result: $ac_res" >&5
10655echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010656else
10657 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010658{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010660cat >conftest.$ac_ext <<_ACEOF
10661/* confdefs.h. */
10662_ACEOF
10663cat confdefs.h >>conftest.$ac_ext
10664cat >>conftest.$ac_ext <<_ACEOF
10665/* end confdefs.h. */
10666$ac_includes_default
10667#include <$ac_header>
10668_ACEOF
10669rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010670if { (ac_try="$ac_compile"
10671case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10674esac
10675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010682 (exit $ac_status); } &&
10683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10684 { (case "(($ac_try" in
10685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10686 *) ac_try_echo=$ac_try;;
10687esac
10688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10689 (eval "$ac_try") 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; } &&
10693 { ac_try='test -s conftest.$ac_objext'
10694 { (case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697esac
10698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_try") 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010703 ac_header_compiler=yes
10704else
10705 echo "$as_me: failed program was:" >&5
10706sed 's/^/| /' conftest.$ac_ext >&5
10707
Reid Spencera773bd52006-08-04 18:18:08 +000010708 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709fi
Reid Spencera773bd52006-08-04 18:18:08 +000010710
10711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10712{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10713echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010714
10715# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010716{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10717echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718cat >conftest.$ac_ext <<_ACEOF
10719/* confdefs.h. */
10720_ACEOF
10721cat confdefs.h >>conftest.$ac_ext
10722cat >>conftest.$ac_ext <<_ACEOF
10723/* end confdefs.h. */
10724#include <$ac_header>
10725_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010726if { (ac_try="$ac_cpp conftest.$ac_ext"
10727case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10730esac
10731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010733 ac_status=$?
10734 grep -v '^ *+' conftest.er1 >conftest.err
10735 rm -f conftest.er1
10736 cat conftest.err >&5
10737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010738 (exit $ac_status); } >/dev/null; then
10739 if test -s conftest.err; then
10740 ac_cpp_err=$ac_c_preproc_warn_flag
10741 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10742 else
10743 ac_cpp_err=
10744 fi
10745else
10746 ac_cpp_err=yes
10747fi
10748if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749 ac_header_preproc=yes
10750else
10751 echo "$as_me: failed program was:" >&5
10752sed 's/^/| /' conftest.$ac_ext >&5
10753
10754 ac_header_preproc=no
10755fi
Reid Spencera773bd52006-08-04 18:18:08 +000010756
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010757rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010758{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10759echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760
10761# So? What about this header?
10762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10763 yes:no: )
10764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10765echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10767echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10768 ac_header_preproc=yes
10769 ;;
10770 no:yes:* )
10771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10772echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10774echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10776echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10778echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10782echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010783 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010784## ----------------------------------- ##
10785## Report this to llvmbugs@cs.uiuc.edu ##
10786## ----------------------------------- ##
10787_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010788 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010789 ;;
10790esac
Reid Spencera773bd52006-08-04 18:18:08 +000010791{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010794 echo $ECHO_N "(cached) $ECHO_C" >&6
10795else
10796 eval "$as_ac_Header=\$ac_header_preproc"
10797fi
Reid Spencera773bd52006-08-04 18:18:08 +000010798ac_res=`eval echo '${'$as_ac_Header'}'`
10799 { echo "$as_me:$LINENO: result: $ac_res" >&5
10800echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010801
10802fi
10803if test `eval echo '${'$as_ac_Header'}'` = yes; then
10804 cat >>confdefs.h <<_ACEOF
10805#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10806_ACEOF
10807
10808fi
10809
10810done
10811
10812
Reid Spencera773bd52006-08-04 18:18:08 +000010813{ echo "$as_me:$LINENO: checking for error_t" >&5
10814echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010815if test "${ac_cv_type_error_t+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10817else
10818 cat >conftest.$ac_ext <<_ACEOF
10819/* confdefs.h. */
10820_ACEOF
10821cat confdefs.h >>conftest.$ac_ext
10822cat >>conftest.$ac_ext <<_ACEOF
10823/* end confdefs.h. */
10824#if HAVE_ARGZ_H
10825# include <argz.h>
10826#endif
10827
Reid Spencera773bd52006-08-04 18:18:08 +000010828typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010829int
10830main ()
10831{
Reid Spencera773bd52006-08-04 18:18:08 +000010832if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010833 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010834if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010835 return 0;
10836 ;
10837 return 0;
10838}
10839_ACEOF
10840rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010841if { (ac_try="$ac_compile"
10842case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845esac
10846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010853 (exit $ac_status); } &&
10854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10855 { (case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858esac
10859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_try") 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try='test -s conftest.$ac_objext'
10865 { (case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10868esac
10869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_try") 2>&5
10871 ac_status=$?
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010874 ac_cv_type_error_t=yes
10875else
10876 echo "$as_me: failed program was:" >&5
10877sed 's/^/| /' conftest.$ac_ext >&5
10878
Reid Spencera773bd52006-08-04 18:18:08 +000010879 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010880fi
Reid Spencera773bd52006-08-04 18:18:08 +000010881
10882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010883fi
Reid Spencera773bd52006-08-04 18:18:08 +000010884{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10885echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010886if test $ac_cv_type_error_t = yes; then
10887
10888cat >>confdefs.h <<_ACEOF
10889#define HAVE_ERROR_T 1
10890_ACEOF
10891
10892
10893else
10894
10895cat >>confdefs.h <<\_ACEOF
10896#define error_t int
10897_ACEOF
10898
10899fi
10900
10901
10902
10903
10904
10905
10906
10907for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10908do
10909as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010910{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10911echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10912if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914else
10915 cat >conftest.$ac_ext <<_ACEOF
10916/* confdefs.h. */
10917_ACEOF
10918cat confdefs.h >>conftest.$ac_ext
10919cat >>conftest.$ac_ext <<_ACEOF
10920/* end confdefs.h. */
10921/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10923#define $ac_func innocuous_$ac_func
10924
10925/* System header to define __stub macros and hopefully few prototypes,
10926 which can conflict with char $ac_func (); below.
10927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10928 <limits.h> exists even on freestanding compilers. */
10929
10930#ifdef __STDC__
10931# include <limits.h>
10932#else
10933# include <assert.h>
10934#endif
10935
10936#undef $ac_func
10937
Reid Spencera773bd52006-08-04 18:18:08 +000010938/* Override any GCC internal prototype to avoid an error.
10939 Use char because int might match the return type of a GCC
10940 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010941#ifdef __cplusplus
10942extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010943#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010944char $ac_func ();
10945/* The GNU C library defines this for functions which it implements
10946 to always fail with ENOSYS. Some functions are actually named
10947 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010948#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010949choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010950#endif
10951
10952int
10953main ()
10954{
Reid Spencera773bd52006-08-04 18:18:08 +000010955return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010956 ;
10957 return 0;
10958}
10959_ACEOF
10960rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010961if { (ac_try="$ac_link"
10962case "(($ac_try" in
10963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10964 *) ac_try_echo=$ac_try;;
10965esac
10966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10967 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010973 (exit $ac_status); } &&
10974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10975 { (case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10978esac
10979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_try") 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; } &&
10984 { ac_try='test -s conftest$ac_exeext'
10985 { (case "(($ac_try" in
10986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10987 *) ac_try_echo=$ac_try;;
10988esac
10989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10990 (eval "$ac_try") 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010994 eval "$as_ac_var=yes"
10995else
10996 echo "$as_me: failed program was:" >&5
10997sed 's/^/| /' conftest.$ac_ext >&5
10998
Reid Spencera773bd52006-08-04 18:18:08 +000010999 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011000fi
Reid Spencera773bd52006-08-04 18:18:08 +000011001
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011002rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003 conftest$ac_exeext conftest.$ac_ext
11004fi
Reid Spencera773bd52006-08-04 18:18:08 +000011005ac_res=`eval echo '${'$as_ac_var'}'`
11006 { echo "$as_me:$LINENO: result: $ac_res" >&5
11007echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008if test `eval echo '${'$as_ac_var'}'` = yes; then
11009 cat >>confdefs.h <<_ACEOF
11010#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11011_ACEOF
11012
11013fi
11014done
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11044 stdio.h unistd.h
11045do
11046as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11049echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011051 echo $ECHO_N "(cached) $ECHO_C" >&6
11052fi
Reid Spencera773bd52006-08-04 18:18:08 +000011053ac_res=`eval echo '${'$as_ac_Header'}'`
11054 { echo "$as_me:$LINENO: result: $ac_res" >&5
11055echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011056else
11057 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011058{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011060cat >conftest.$ac_ext <<_ACEOF
11061/* confdefs.h. */
11062_ACEOF
11063cat confdefs.h >>conftest.$ac_ext
11064cat >>conftest.$ac_ext <<_ACEOF
11065/* end confdefs.h. */
11066$ac_includes_default
11067#include <$ac_header>
11068_ACEOF
11069rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011070if { (ac_try="$ac_compile"
11071case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11074esac
11075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011077 ac_status=$?
11078 grep -v '^ *+' conftest.er1 >conftest.err
11079 rm -f conftest.er1
11080 cat conftest.err >&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011082 (exit $ac_status); } &&
11083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11084 { (case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11087esac
11088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11089 (eval "$ac_try") 2>&5
11090 ac_status=$?
11091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11092 (exit $ac_status); }; } &&
11093 { ac_try='test -s conftest.$ac_objext'
11094 { (case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097esac
11098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_try") 2>&5
11100 ac_status=$?
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011103 ac_header_compiler=yes
11104else
11105 echo "$as_me: failed program was:" >&5
11106sed 's/^/| /' conftest.$ac_ext >&5
11107
Reid Spencera773bd52006-08-04 18:18:08 +000011108 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011109fi
Reid Spencera773bd52006-08-04 18:18:08 +000011110
11111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11113echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011114
11115# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011116{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11117echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011118cat >conftest.$ac_ext <<_ACEOF
11119/* confdefs.h. */
11120_ACEOF
11121cat confdefs.h >>conftest.$ac_ext
11122cat >>conftest.$ac_ext <<_ACEOF
11123/* end confdefs.h. */
11124#include <$ac_header>
11125_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011126if { (ac_try="$ac_cpp conftest.$ac_ext"
11127case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11130esac
11131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011138 (exit $ac_status); } >/dev/null; then
11139 if test -s conftest.err; then
11140 ac_cpp_err=$ac_c_preproc_warn_flag
11141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11142 else
11143 ac_cpp_err=
11144 fi
11145else
11146 ac_cpp_err=yes
11147fi
11148if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011149 ac_header_preproc=yes
11150else
11151 echo "$as_me: failed program was:" >&5
11152sed 's/^/| /' conftest.$ac_ext >&5
11153
11154 ac_header_preproc=no
11155fi
Reid Spencera773bd52006-08-04 18:18:08 +000011156
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011157rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011158{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11159echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160
11161# So? What about this header?
11162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11163 yes:no: )
11164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11168 ac_header_preproc=yes
11169 ;;
11170 no:yes:* )
11171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011183 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011184## ----------------------------------- ##
11185## Report this to llvmbugs@cs.uiuc.edu ##
11186## ----------------------------------- ##
11187_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011188 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011189 ;;
11190esac
Reid Spencera773bd52006-08-04 18:18:08 +000011191{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11193if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011194 echo $ECHO_N "(cached) $ECHO_C" >&6
11195else
11196 eval "$as_ac_Header=\$ac_header_preproc"
11197fi
Reid Spencera773bd52006-08-04 18:18:08 +000011198ac_res=`eval echo '${'$as_ac_Header'}'`
11199 { echo "$as_me:$LINENO: result: $ac_res" >&5
11200echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011201
11202fi
11203if test `eval echo '${'$as_ac_Header'}'` = yes; then
11204 cat >>confdefs.h <<_ACEOF
11205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11206_ACEOF
11207
11208fi
11209
11210done
11211
11212
11213
11214
11215
11216for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11217do
11218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011219if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011223 echo $ECHO_N "(cached) $ECHO_C" >&6
11224fi
Reid Spencera773bd52006-08-04 18:18:08 +000011225ac_res=`eval echo '${'$as_ac_Header'}'`
11226 { echo "$as_me:$LINENO: result: $ac_res" >&5
11227echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011228else
11229 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011230{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011232cat >conftest.$ac_ext <<_ACEOF
11233/* confdefs.h. */
11234_ACEOF
11235cat confdefs.h >>conftest.$ac_ext
11236cat >>conftest.$ac_ext <<_ACEOF
11237/* end confdefs.h. */
11238$ac_includes_default
11239#include <$ac_header>
11240_ACEOF
11241rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011242if { (ac_try="$ac_compile"
11243case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246esac
11247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011249 ac_status=$?
11250 grep -v '^ *+' conftest.er1 >conftest.err
11251 rm -f conftest.er1
11252 cat conftest.err >&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011254 (exit $ac_status); } &&
11255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11256 { (case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11259esac
11260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_try") 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; } &&
11265 { ac_try='test -s conftest.$ac_objext'
11266 { (case "(($ac_try" in
11267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268 *) ac_try_echo=$ac_try;;
11269esac
11270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271 (eval "$ac_try") 2>&5
11272 ac_status=$?
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011275 ac_header_compiler=yes
11276else
11277 echo "$as_me: failed program was:" >&5
11278sed 's/^/| /' conftest.$ac_ext >&5
11279
Reid Spencera773bd52006-08-04 18:18:08 +000011280 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011281fi
Reid Spencera773bd52006-08-04 18:18:08 +000011282
11283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11284{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11285echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011286
11287# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011288{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011290cat >conftest.$ac_ext <<_ACEOF
11291/* confdefs.h. */
11292_ACEOF
11293cat confdefs.h >>conftest.$ac_ext
11294cat >>conftest.$ac_ext <<_ACEOF
11295/* end confdefs.h. */
11296#include <$ac_header>
11297_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011298if { (ac_try="$ac_cpp conftest.$ac_ext"
11299case "(($ac_try" in
11300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11301 *) ac_try_echo=$ac_try;;
11302esac
11303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011305 ac_status=$?
11306 grep -v '^ *+' conftest.er1 >conftest.err
11307 rm -f conftest.er1
11308 cat conftest.err >&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011310 (exit $ac_status); } >/dev/null; then
11311 if test -s conftest.err; then
11312 ac_cpp_err=$ac_c_preproc_warn_flag
11313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11314 else
11315 ac_cpp_err=
11316 fi
11317else
11318 ac_cpp_err=yes
11319fi
11320if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321 ac_header_preproc=yes
11322else
11323 echo "$as_me: failed program was:" >&5
11324sed 's/^/| /' conftest.$ac_ext >&5
11325
11326 ac_header_preproc=no
11327fi
Reid Spencera773bd52006-08-04 18:18:08 +000011328
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011329rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011330{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11331echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011332
11333# So? What about this header?
11334case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11335 yes:no: )
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11339echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11340 ac_header_preproc=yes
11341 ;;
11342 no:yes:* )
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11344echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11346echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11348echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11350echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11352echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11354echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011355 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011356## ----------------------------------- ##
11357## Report this to llvmbugs@cs.uiuc.edu ##
11358## ----------------------------------- ##
11359_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011360 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011361 ;;
11362esac
Reid Spencera773bd52006-08-04 18:18:08 +000011363{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11365if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011366 echo $ECHO_N "(cached) $ECHO_C" >&6
11367else
11368 eval "$as_ac_Header=\$ac_header_preproc"
11369fi
Reid Spencera773bd52006-08-04 18:18:08 +000011370ac_res=`eval echo '${'$as_ac_Header'}'`
11371 { echo "$as_me:$LINENO: result: $ac_res" >&5
11372echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011373
11374fi
11375if test `eval echo '${'$as_ac_Header'}'` = yes; then
11376 cat >>confdefs.h <<_ACEOF
11377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11378_ACEOF
11379
11380fi
11381
11382done
11383
11384
11385
11386for ac_header in string.h strings.h
11387do
11388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011393 echo $ECHO_N "(cached) $ECHO_C" >&6
11394fi
Reid Spencera773bd52006-08-04 18:18:08 +000011395ac_res=`eval echo '${'$as_ac_Header'}'`
11396 { echo "$as_me:$LINENO: result: $ac_res" >&5
11397echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011398else
11399 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011400{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011402cat >conftest.$ac_ext <<_ACEOF
11403/* confdefs.h. */
11404_ACEOF
11405cat confdefs.h >>conftest.$ac_ext
11406cat >>conftest.$ac_ext <<_ACEOF
11407/* end confdefs.h. */
11408$ac_includes_default
11409#include <$ac_header>
11410_ACEOF
11411rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011412if { (ac_try="$ac_compile"
11413case "(($ac_try" in
11414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415 *) ac_try_echo=$ac_try;;
11416esac
11417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011419 ac_status=$?
11420 grep -v '^ *+' conftest.er1 >conftest.err
11421 rm -f conftest.er1
11422 cat conftest.err >&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011424 (exit $ac_status); } &&
11425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11426 { (case "(($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_try") 2>&5
11432 ac_status=$?
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; } &&
11435 { ac_try='test -s conftest.$ac_objext'
11436 { (case "(($ac_try" in
11437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438 *) ac_try_echo=$ac_try;;
11439esac
11440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441 (eval "$ac_try") 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011445 ac_header_compiler=yes
11446else
11447 echo "$as_me: failed program was:" >&5
11448sed 's/^/| /' conftest.$ac_ext >&5
11449
Reid Spencera773bd52006-08-04 18:18:08 +000011450 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011451fi
Reid Spencera773bd52006-08-04 18:18:08 +000011452
11453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11454{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11455echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011456
11457# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011458{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011460cat >conftest.$ac_ext <<_ACEOF
11461/* confdefs.h. */
11462_ACEOF
11463cat confdefs.h >>conftest.$ac_ext
11464cat >>conftest.$ac_ext <<_ACEOF
11465/* end confdefs.h. */
11466#include <$ac_header>
11467_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011468if { (ac_try="$ac_cpp conftest.$ac_ext"
11469case "(($ac_try" in
11470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471 *) ac_try_echo=$ac_try;;
11472esac
11473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011475 ac_status=$?
11476 grep -v '^ *+' conftest.er1 >conftest.err
11477 rm -f conftest.er1
11478 cat conftest.err >&5
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011480 (exit $ac_status); } >/dev/null; then
11481 if test -s conftest.err; then
11482 ac_cpp_err=$ac_c_preproc_warn_flag
11483 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11484 else
11485 ac_cpp_err=
11486 fi
11487else
11488 ac_cpp_err=yes
11489fi
11490if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011491 ac_header_preproc=yes
11492else
11493 echo "$as_me: failed program was:" >&5
11494sed 's/^/| /' conftest.$ac_ext >&5
11495
11496 ac_header_preproc=no
11497fi
Reid Spencera773bd52006-08-04 18:18:08 +000011498
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011499rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011500{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11501echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011502
11503# So? What about this header?
11504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11505 yes:no: )
11506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11510 ac_header_preproc=yes
11511 ;;
11512 no:yes:* )
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11516echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11520echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011525 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011526## ----------------------------------- ##
11527## Report this to llvmbugs@cs.uiuc.edu ##
11528## ----------------------------------- ##
11529_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011530 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011531 ;;
11532esac
Reid Spencera773bd52006-08-04 18:18:08 +000011533{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11535if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011536 echo $ECHO_N "(cached) $ECHO_C" >&6
11537else
11538 eval "$as_ac_Header=\$ac_header_preproc"
11539fi
Reid Spencera773bd52006-08-04 18:18:08 +000011540ac_res=`eval echo '${'$as_ac_Header'}'`
11541 { echo "$as_me:$LINENO: result: $ac_res" >&5
11542echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011543
11544fi
11545if test `eval echo '${'$as_ac_Header'}'` = yes; then
11546 cat >>confdefs.h <<_ACEOF
11547#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11548_ACEOF
11549 break
11550fi
11551
11552done
11553
11554
11555
11556
11557for ac_func in strchr index
11558do
11559as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011560{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11561echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11562if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564else
11565 cat >conftest.$ac_ext <<_ACEOF
11566/* confdefs.h. */
11567_ACEOF
11568cat confdefs.h >>conftest.$ac_ext
11569cat >>conftest.$ac_ext <<_ACEOF
11570/* end confdefs.h. */
11571/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11573#define $ac_func innocuous_$ac_func
11574
11575/* System header to define __stub macros and hopefully few prototypes,
11576 which can conflict with char $ac_func (); below.
11577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11578 <limits.h> exists even on freestanding compilers. */
11579
11580#ifdef __STDC__
11581# include <limits.h>
11582#else
11583# include <assert.h>
11584#endif
11585
11586#undef $ac_func
11587
Reid Spencera773bd52006-08-04 18:18:08 +000011588/* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011591#ifdef __cplusplus
11592extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011593#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594char $ac_func ();
11595/* The GNU C library defines this for functions which it implements
11596 to always fail with ENOSYS. Some functions are actually named
11597 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011598#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011599choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600#endif
11601
11602int
11603main ()
11604{
Reid Spencera773bd52006-08-04 18:18:08 +000011605return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011606 ;
11607 return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011611if { (ac_try="$ac_link"
11612case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615esac
11616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011623 (exit $ac_status); } &&
11624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11625 { (case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11628esac
11629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_try") 2>&5
11631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; } &&
11634 { ac_try='test -s conftest$ac_exeext'
11635 { (case "(($ac_try" in
11636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11638esac
11639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_try") 2>&5
11641 ac_status=$?
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011644 eval "$as_ac_var=yes"
11645else
11646 echo "$as_me: failed program was:" >&5
11647sed 's/^/| /' conftest.$ac_ext >&5
11648
Reid Spencera773bd52006-08-04 18:18:08 +000011649 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011650fi
Reid Spencera773bd52006-08-04 18:18:08 +000011651
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011652rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653 conftest$ac_exeext conftest.$ac_ext
11654fi
Reid Spencera773bd52006-08-04 18:18:08 +000011655ac_res=`eval echo '${'$as_ac_var'}'`
11656 { echo "$as_me:$LINENO: result: $ac_res" >&5
11657echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658if test `eval echo '${'$as_ac_var'}'` = yes; then
11659 cat >>confdefs.h <<_ACEOF
11660#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11661_ACEOF
11662 break
11663fi
11664done
11665
11666
11667
11668for ac_func in strrchr rindex
11669do
11670as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011671{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11672echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11673if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011674 echo $ECHO_N "(cached) $ECHO_C" >&6
11675else
11676 cat >conftest.$ac_ext <<_ACEOF
11677/* confdefs.h. */
11678_ACEOF
11679cat confdefs.h >>conftest.$ac_ext
11680cat >>conftest.$ac_ext <<_ACEOF
11681/* end confdefs.h. */
11682/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11684#define $ac_func innocuous_$ac_func
11685
11686/* System header to define __stub macros and hopefully few prototypes,
11687 which can conflict with char $ac_func (); below.
11688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11689 <limits.h> exists even on freestanding compilers. */
11690
11691#ifdef __STDC__
11692# include <limits.h>
11693#else
11694# include <assert.h>
11695#endif
11696
11697#undef $ac_func
11698
Reid Spencera773bd52006-08-04 18:18:08 +000011699/* Override any GCC internal prototype to avoid an error.
11700 Use char because int might match the return type of a GCC
11701 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011702#ifdef __cplusplus
11703extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011704#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011705char $ac_func ();
11706/* The GNU C library defines this for functions which it implements
11707 to always fail with ENOSYS. Some functions are actually named
11708 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011709#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011710choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711#endif
11712
11713int
11714main ()
11715{
Reid Spencera773bd52006-08-04 18:18:08 +000011716return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011717 ;
11718 return 0;
11719}
11720_ACEOF
11721rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011722if { (ac_try="$ac_link"
11723case "(($ac_try" in
11724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11725 *) ac_try_echo=$ac_try;;
11726esac
11727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11728 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011729 ac_status=$?
11730 grep -v '^ *+' conftest.er1 >conftest.err
11731 rm -f conftest.er1
11732 cat conftest.err >&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011734 (exit $ac_status); } &&
11735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11736 { (case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739esac
11740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_try") 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; } &&
11745 { ac_try='test -s conftest$ac_exeext'
11746 { (case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11749esac
11750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_try") 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011755 eval "$as_ac_var=yes"
11756else
11757 echo "$as_me: failed program was:" >&5
11758sed 's/^/| /' conftest.$ac_ext >&5
11759
Reid Spencera773bd52006-08-04 18:18:08 +000011760 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011761fi
Reid Spencera773bd52006-08-04 18:18:08 +000011762
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011763rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011764 conftest$ac_exeext conftest.$ac_ext
11765fi
Reid Spencera773bd52006-08-04 18:18:08 +000011766ac_res=`eval echo '${'$as_ac_var'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011769if test `eval echo '${'$as_ac_var'}'` = yes; then
11770 cat >>confdefs.h <<_ACEOF
11771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11772_ACEOF
11773 break
11774fi
11775done
11776
11777
11778
11779for ac_func in memcpy bcopy
11780do
11781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011782{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11784if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011785 echo $ECHO_N "(cached) $ECHO_C" >&6
11786else
11787 cat >conftest.$ac_ext <<_ACEOF
11788/* confdefs.h. */
11789_ACEOF
11790cat confdefs.h >>conftest.$ac_ext
11791cat >>conftest.$ac_ext <<_ACEOF
11792/* end confdefs.h. */
11793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11795#define $ac_func innocuous_$ac_func
11796
11797/* System header to define __stub macros and hopefully few prototypes,
11798 which can conflict with char $ac_func (); below.
11799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11800 <limits.h> exists even on freestanding compilers. */
11801
11802#ifdef __STDC__
11803# include <limits.h>
11804#else
11805# include <assert.h>
11806#endif
11807
11808#undef $ac_func
11809
Reid Spencera773bd52006-08-04 18:18:08 +000011810/* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011813#ifdef __cplusplus
11814extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011815#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011816char $ac_func ();
11817/* The GNU C library defines this for functions which it implements
11818 to always fail with ENOSYS. Some functions are actually named
11819 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011820#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011821choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822#endif
11823
11824int
11825main ()
11826{
Reid Spencera773bd52006-08-04 18:18:08 +000011827return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011828 ;
11829 return 0;
11830}
11831_ACEOF
11832rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011833if { (ac_try="$ac_link"
11834case "(($ac_try" in
11835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836 *) ac_try_echo=$ac_try;;
11837esac
11838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011840 ac_status=$?
11841 grep -v '^ *+' conftest.er1 >conftest.err
11842 rm -f conftest.er1
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011845 (exit $ac_status); } &&
11846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11847 { (case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11850esac
11851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_try") 2>&5
11853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; } &&
11856 { ac_try='test -s conftest$ac_exeext'
11857 { (case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860esac
11861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_try") 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011866 eval "$as_ac_var=yes"
11867else
11868 echo "$as_me: failed program was:" >&5
11869sed 's/^/| /' conftest.$ac_ext >&5
11870
Reid Spencera773bd52006-08-04 18:18:08 +000011871 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011872fi
Reid Spencera773bd52006-08-04 18:18:08 +000011873
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011874rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011875 conftest$ac_exeext conftest.$ac_ext
11876fi
Reid Spencera773bd52006-08-04 18:18:08 +000011877ac_res=`eval echo '${'$as_ac_var'}'`
11878 { echo "$as_me:$LINENO: result: $ac_res" >&5
11879echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011880if test `eval echo '${'$as_ac_var'}'` = yes; then
11881 cat >>confdefs.h <<_ACEOF
11882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11883_ACEOF
11884 break
11885fi
11886done
11887
11888
11889
11890for ac_func in memmove strcmp
11891do
11892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011893{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11895if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011896 echo $ECHO_N "(cached) $ECHO_C" >&6
11897else
11898 cat >conftest.$ac_ext <<_ACEOF
11899/* confdefs.h. */
11900_ACEOF
11901cat confdefs.h >>conftest.$ac_ext
11902cat >>conftest.$ac_ext <<_ACEOF
11903/* end confdefs.h. */
11904/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11906#define $ac_func innocuous_$ac_func
11907
11908/* System header to define __stub macros and hopefully few prototypes,
11909 which can conflict with char $ac_func (); below.
11910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11911 <limits.h> exists even on freestanding compilers. */
11912
11913#ifdef __STDC__
11914# include <limits.h>
11915#else
11916# include <assert.h>
11917#endif
11918
11919#undef $ac_func
11920
Reid Spencera773bd52006-08-04 18:18:08 +000011921/* Override any GCC internal prototype to avoid an error.
11922 Use char because int might match the return type of a GCC
11923 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924#ifdef __cplusplus
11925extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011926#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011927char $ac_func ();
11928/* The GNU C library defines this for functions which it implements
11929 to always fail with ENOSYS. Some functions are actually named
11930 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011931#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011932choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011933#endif
11934
11935int
11936main ()
11937{
Reid Spencera773bd52006-08-04 18:18:08 +000011938return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011939 ;
11940 return 0;
11941}
11942_ACEOF
11943rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011944if { (ac_try="$ac_link"
11945case "(($ac_try" in
11946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11947 *) ac_try_echo=$ac_try;;
11948esac
11949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11950 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011951 ac_status=$?
11952 grep -v '^ *+' conftest.er1 >conftest.err
11953 rm -f conftest.er1
11954 cat conftest.err >&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011956 (exit $ac_status); } &&
11957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11958 { (case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11961esac
11962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_try") 2>&5
11964 ac_status=$?
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try='test -s conftest$ac_exeext'
11968 { (case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11971esac
11972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_try") 2>&5
11974 ac_status=$?
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011977 eval "$as_ac_var=yes"
11978else
11979 echo "$as_me: failed program was:" >&5
11980sed 's/^/| /' conftest.$ac_ext >&5
11981
Reid Spencera773bd52006-08-04 18:18:08 +000011982 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011983fi
Reid Spencera773bd52006-08-04 18:18:08 +000011984
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011985rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011986 conftest$ac_exeext conftest.$ac_ext
11987fi
Reid Spencera773bd52006-08-04 18:18:08 +000011988ac_res=`eval echo '${'$as_ac_var'}'`
11989 { echo "$as_me:$LINENO: result: $ac_res" >&5
11990echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011991if test `eval echo '${'$as_ac_var'}'` = yes; then
11992 cat >>confdefs.h <<_ACEOF
11993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11994_ACEOF
11995
11996fi
11997done
11998
11999
12000
12001
12002for ac_func in closedir opendir readdir
12003do
12004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012005{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12007if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009else
12010 cat >conftest.$ac_ext <<_ACEOF
12011/* confdefs.h. */
12012_ACEOF
12013cat confdefs.h >>conftest.$ac_ext
12014cat >>conftest.$ac_ext <<_ACEOF
12015/* end confdefs.h. */
12016/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12018#define $ac_func innocuous_$ac_func
12019
12020/* System header to define __stub macros and hopefully few prototypes,
12021 which can conflict with char $ac_func (); below.
12022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12023 <limits.h> exists even on freestanding compilers. */
12024
12025#ifdef __STDC__
12026# include <limits.h>
12027#else
12028# include <assert.h>
12029#endif
12030
12031#undef $ac_func
12032
Reid Spencera773bd52006-08-04 18:18:08 +000012033/* Override any GCC internal prototype to avoid an error.
12034 Use char because int might match the return type of a GCC
12035 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012036#ifdef __cplusplus
12037extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012038#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012039char $ac_func ();
12040/* The GNU C library defines this for functions which it implements
12041 to always fail with ENOSYS. Some functions are actually named
12042 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012043#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012044choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012045#endif
12046
12047int
12048main ()
12049{
Reid Spencera773bd52006-08-04 18:18:08 +000012050return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051 ;
12052 return 0;
12053}
12054_ACEOF
12055rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012056if { (ac_try="$ac_link"
12057case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12060esac
12061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012063 ac_status=$?
12064 grep -v '^ *+' conftest.er1 >conftest.err
12065 rm -f conftest.er1
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012068 (exit $ac_status); } &&
12069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12070 { (case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12073esac
12074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_try") 2>&5
12076 ac_status=$?
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; } &&
12079 { ac_try='test -s conftest$ac_exeext'
12080 { (case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12083esac
12084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_try") 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012089 eval "$as_ac_var=yes"
12090else
12091 echo "$as_me: failed program was:" >&5
12092sed 's/^/| /' conftest.$ac_ext >&5
12093
Reid Spencera773bd52006-08-04 18:18:08 +000012094 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012095fi
Reid Spencera773bd52006-08-04 18:18:08 +000012096
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012097rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012098 conftest$ac_exeext conftest.$ac_ext
12099fi
Reid Spencera773bd52006-08-04 18:18:08 +000012100ac_res=`eval echo '${'$as_ac_var'}'`
12101 { echo "$as_me:$LINENO: result: $ac_res" >&5
12102echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012103if test `eval echo '${'$as_ac_var'}'` = yes; then
12104 cat >>confdefs.h <<_ACEOF
12105#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12106_ACEOF
12107
12108fi
12109done
12110
12111
Reid Spencera773bd52006-08-04 18:18:08 +000012112# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012113if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012114 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012115 case $enableval in
12116 yes) enable_shared=yes ;;
12117 no) enable_shared=no ;;
12118 *)
12119 enable_shared=no
12120 # Look at the argument we got. We use all the common list separators.
12121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12122 for pkg in $enableval; do
12123 IFS="$lt_save_ifs"
12124 if test "X$pkg" = "X$p"; then
12125 enable_shared=yes
12126 fi
12127 done
12128 IFS="$lt_save_ifs"
12129 ;;
12130 esac
12131else
12132 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012133fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012134
Reid Spencera773bd52006-08-04 18:18:08 +000012135
12136# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012137if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012138 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012139 case $enableval in
12140 yes) enable_static=yes ;;
12141 no) enable_static=no ;;
12142 *)
12143 enable_static=no
12144 # Look at the argument we got. We use all the common list separators.
12145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12146 for pkg in $enableval; do
12147 IFS="$lt_save_ifs"
12148 if test "X$pkg" = "X$p"; then
12149 enable_static=yes
12150 fi
12151 done
12152 IFS="$lt_save_ifs"
12153 ;;
12154 esac
12155else
12156 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012157fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012158
Reid Spencera773bd52006-08-04 18:18:08 +000012159
12160# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012161if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012162 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163 case $enableval in
12164 yes) enable_fast_install=yes ;;
12165 no) enable_fast_install=no ;;
12166 *)
12167 enable_fast_install=no
12168 # Look at the argument we got. We use all the common list separators.
12169 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12170 for pkg in $enableval; do
12171 IFS="$lt_save_ifs"
12172 if test "X$pkg" = "X$p"; then
12173 enable_fast_install=yes
12174 fi
12175 done
12176 IFS="$lt_save_ifs"
12177 ;;
12178 esac
12179else
12180 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012181fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012182
Reid Spencera773bd52006-08-04 18:18:08 +000012183
12184{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12185echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012186if test "${lt_cv_path_SED+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12188else
12189 # Loop through the user's path and test for sed and gsed.
12190# Then use that list of sed's as ones to test for truncation.
12191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192for as_dir in $PATH
12193do
12194 IFS=$as_save_IFS
12195 test -z "$as_dir" && as_dir=.
12196 for lt_ac_prog in sed gsed; do
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12199 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12200 fi
12201 done
12202 done
12203done
12204lt_ac_max=0
12205lt_ac_count=0
12206# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12207# along with /bin/sed that truncates output.
12208for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012209 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012210 cat /dev/null > conftest.in
12211 lt_ac_count=0
12212 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12213 # Check for GNU sed and select it if it is found.
12214 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12215 lt_cv_path_SED=$lt_ac_sed
12216 break
12217 fi
12218 while true; do
12219 cat conftest.in conftest.in >conftest.tmp
12220 mv conftest.tmp conftest.in
12221 cp conftest.in conftest.nl
12222 echo >>conftest.nl
12223 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12224 cmp -s conftest.out conftest.nl || break
12225 # 10000 chars as input seems more than enough
12226 test $lt_ac_count -gt 10 && break
12227 lt_ac_count=`expr $lt_ac_count + 1`
12228 if test $lt_ac_count -gt $lt_ac_max; then
12229 lt_ac_max=$lt_ac_count
12230 lt_cv_path_SED=$lt_ac_sed
12231 fi
12232 done
12233done
12234
12235fi
12236
12237SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012238{ echo "$as_me:$LINENO: result: $SED" >&5
12239echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012240
12241
Reid Spencera773bd52006-08-04 18:18:08 +000012242# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012243if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012244 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012245else
12246 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012247fi
12248
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012249ac_prog=ld
12250if test "$GCC" = yes; then
12251 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012252 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12253echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012254 case $host in
12255 *-*-mingw*)
12256 # gcc leaves a trailing carriage return which upsets mingw
12257 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12258 *)
12259 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12260 esac
12261 case $ac_prog in
12262 # Accept absolute paths.
12263 [\\/]* | ?:[\\/]*)
12264 re_direlt='/[^/][^/]*/\.\./'
12265 # Canonicalize the pathname of ld
12266 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12267 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12268 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12269 done
12270 test -z "$LD" && LD="$ac_prog"
12271 ;;
12272 "")
12273 # If it fails, then pretend we aren't using GCC.
12274 ac_prog=ld
12275 ;;
12276 *)
12277 # If it is relative, then search for the first ld in PATH.
12278 with_gnu_ld=unknown
12279 ;;
12280 esac
12281elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012282 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12283echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012284else
Reid Spencera773bd52006-08-04 18:18:08 +000012285 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12286echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012287fi
12288if test "${lt_cv_path_LD+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290else
12291 if test -z "$LD"; then
12292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12293 for ac_dir in $PATH; do
12294 IFS="$lt_save_ifs"
12295 test -z "$ac_dir" && ac_dir=.
12296 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12297 lt_cv_path_LD="$ac_dir/$ac_prog"
12298 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012299 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012300 # Break only if it was the GNU/non-GNU ld that we prefer.
12301 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12302 *GNU* | *'with BFD'*)
12303 test "$with_gnu_ld" != no && break
12304 ;;
12305 *)
12306 test "$with_gnu_ld" != yes && break
12307 ;;
12308 esac
12309 fi
12310 done
12311 IFS="$lt_save_ifs"
12312else
12313 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12314fi
12315fi
12316
12317LD="$lt_cv_path_LD"
12318if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012319 { echo "$as_me:$LINENO: result: $LD" >&5
12320echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012321else
Reid Spencera773bd52006-08-04 18:18:08 +000012322 { echo "$as_me:$LINENO: result: no" >&5
12323echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012324fi
12325test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12326echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12327 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012328{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12329echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012330if test "${lt_cv_prog_gnu_ld+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12332else
Reid Spencera773bd52006-08-04 18:18:08 +000012333 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012334case `$LD -v 2>&1 </dev/null` in
12335*GNU* | *'with BFD'*)
12336 lt_cv_prog_gnu_ld=yes
12337 ;;
12338*)
12339 lt_cv_prog_gnu_ld=no
12340 ;;
12341esac
12342fi
Reid Spencera773bd52006-08-04 18:18:08 +000012343{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12344echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012345with_gnu_ld=$lt_cv_prog_gnu_ld
12346
12347
Reid Spencera773bd52006-08-04 18:18:08 +000012348{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12349echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012350if test "${lt_cv_ld_reload_flag+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12352else
12353 lt_cv_ld_reload_flag='-r'
12354fi
Reid Spencera773bd52006-08-04 18:18:08 +000012355{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12356echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012357reload_flag=$lt_cv_ld_reload_flag
12358case $reload_flag in
12359"" | " "*) ;;
12360*) reload_flag=" $reload_flag" ;;
12361esac
12362reload_cmds='$LD$reload_flag -o $output$reload_objs'
12363case $host_os in
12364 darwin*)
12365 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012366 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012367 else
12368 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12369 fi
12370 ;;
12371esac
12372
Reid Spencera773bd52006-08-04 18:18:08 +000012373{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12374echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012375if test "${lt_cv_deplibs_check_method+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377else
12378 lt_cv_file_magic_cmd='$MAGIC_CMD'
12379lt_cv_file_magic_test_file=
12380lt_cv_deplibs_check_method='unknown'
12381# Need to set the preceding variable on all platforms that support
12382# interlibrary dependencies.
12383# 'none' -- dependencies not supported.
12384# `unknown' -- same as none, but documents that we really don't know.
12385# 'pass_all' -- all dependencies passed with no checks.
12386# 'test_compile' -- check by making test program.
12387# 'file_magic [[regex]]' -- check by looking for files in library path
12388# which responds to the $file_magic_cmd with a given extended regex.
12389# If you have `file' or equivalent on your system and you're not sure
12390# whether `pass_all' will *always* work, you probably want this one.
12391
12392case $host_os in
12393aix4* | aix5*)
12394 lt_cv_deplibs_check_method=pass_all
12395 ;;
12396
12397beos*)
12398 lt_cv_deplibs_check_method=pass_all
12399 ;;
12400
12401bsdi[45]*)
12402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12403 lt_cv_file_magic_cmd='/usr/bin/file -L'
12404 lt_cv_file_magic_test_file=/shlib/libc.so
12405 ;;
12406
12407cygwin*)
12408 # func_win32_libid is a shell function defined in ltmain.sh
12409 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12410 lt_cv_file_magic_cmd='func_win32_libid'
12411 ;;
12412
12413mingw* | pw32*)
12414 # Base MSYS/MinGW do not provide the 'file' command needed by
12415 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12416 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12417 lt_cv_file_magic_cmd='$OBJDUMP -f'
12418 ;;
12419
12420darwin* | rhapsody*)
12421 lt_cv_deplibs_check_method=pass_all
12422 ;;
12423
Reid Spencera773bd52006-08-04 18:18:08 +000012424freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012425 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12426 case $host_cpu in
12427 i*86 )
12428 # Not sure whether the presence of OpenBSD here was a mistake.
12429 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012430 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 +000012431 lt_cv_file_magic_cmd=/usr/bin/file
12432 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12433 ;;
12434 esac
12435 else
12436 lt_cv_deplibs_check_method=pass_all
12437 fi
12438 ;;
12439
12440gnu*)
12441 lt_cv_deplibs_check_method=pass_all
12442 ;;
12443
12444hpux10.20* | hpux11*)
12445 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012446 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012447 ia64*)
12448 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12449 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12450 ;;
12451 hppa*64*)
12452 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]'
12453 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12454 ;;
12455 *)
12456 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12457 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12458 ;;
12459 esac
12460 ;;
12461
Reid Spencera773bd52006-08-04 18:18:08 +000012462interix3*)
12463 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12464 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12465 ;;
12466
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012467irix5* | irix6* | nonstopux*)
12468 case $LD in
12469 *-32|*"-32 ") libmagic=32-bit;;
12470 *-n32|*"-n32 ") libmagic=N32;;
12471 *-64|*"-64 ") libmagic=64-bit;;
12472 *) libmagic=never-match;;
12473 esac
12474 lt_cv_deplibs_check_method=pass_all
12475 ;;
12476
12477# This must be Linux ELF.
12478linux*)
12479 lt_cv_deplibs_check_method=pass_all
12480 ;;
12481
12482netbsd*)
12483 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12485 else
12486 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12487 fi
12488 ;;
12489
12490newos6*)
12491 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12492 lt_cv_file_magic_cmd=/usr/bin/file
12493 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12494 ;;
12495
12496nto-qnx*)
12497 lt_cv_deplibs_check_method=unknown
12498 ;;
12499
12500openbsd*)
12501 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12502 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12503 else
12504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12505 fi
12506 ;;
12507
12508osf3* | osf4* | osf5*)
12509 lt_cv_deplibs_check_method=pass_all
12510 ;;
12511
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012512solaris*)
12513 lt_cv_deplibs_check_method=pass_all
12514 ;;
12515
Reid Spencera773bd52006-08-04 18:18:08 +000012516sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012517 case $host_vendor in
12518 motorola)
12519 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]'
12520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12521 ;;
12522 ncr)
12523 lt_cv_deplibs_check_method=pass_all
12524 ;;
12525 sequent)
12526 lt_cv_file_magic_cmd='/bin/file'
12527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12528 ;;
12529 sni)
12530 lt_cv_file_magic_cmd='/bin/file'
12531 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12532 lt_cv_file_magic_test_file=/lib/libc.so
12533 ;;
12534 siemens)
12535 lt_cv_deplibs_check_method=pass_all
12536 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012537 pc)
12538 lt_cv_deplibs_check_method=pass_all
12539 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012540 esac
12541 ;;
12542
Reid Spencera773bd52006-08-04 18:18:08 +000012543sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012544 lt_cv_deplibs_check_method=pass_all
12545 ;;
12546esac
12547
12548fi
Reid Spencera773bd52006-08-04 18:18:08 +000012549{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12550echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012551file_magic_cmd=$lt_cv_file_magic_cmd
12552deplibs_check_method=$lt_cv_deplibs_check_method
12553test -z "$deplibs_check_method" && deplibs_check_method=unknown
12554
12555
12556
12557# If no C compiler was specified, use CC.
12558LTCC=${LTCC-"$CC"}
12559
Reid Spencera773bd52006-08-04 18:18:08 +000012560# If no C compiler flags were specified, use CFLAGS.
12561LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12562
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012563# Allow CC to be a program name with arguments.
12564compiler=$CC
12565
Reid Spencera773bd52006-08-04 18:18:08 +000012566# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012567if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012568 enableval=$enable_libtool_lock;
12569fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012570
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012571test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12572
12573# Some flags need to be propagated to the compiler or linker for good
12574# libtool support.
12575case $host in
12576ia64-*-hpux*)
12577 # Find out which ABI we are using.
12578 echo 'int i;' > conftest.$ac_ext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12580 (eval $ac_compile) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; then
12584 case `/usr/bin/file conftest.$ac_objext` in
12585 *ELF-32*)
12586 HPUX_IA64_MODE="32"
12587 ;;
12588 *ELF-64*)
12589 HPUX_IA64_MODE="64"
12590 ;;
12591 esac
12592 fi
12593 rm -rf conftest*
12594 ;;
12595*-*-irix6*)
12596 # Find out which ABI we are using.
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000012597 echo '#line 12597 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12599 (eval $ac_compile) 2>&5
12600 ac_status=$?
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; then
12603 if test "$lt_cv_prog_gnu_ld" = yes; then
12604 case `/usr/bin/file conftest.$ac_objext` in
12605 *32-bit*)
12606 LD="${LD-ld} -melf32bsmip"
12607 ;;
12608 *N32*)
12609 LD="${LD-ld} -melf32bmipn32"
12610 ;;
12611 *64-bit*)
12612 LD="${LD-ld} -melf64bmip"
12613 ;;
12614 esac
12615 else
12616 case `/usr/bin/file conftest.$ac_objext` in
12617 *32-bit*)
12618 LD="${LD-ld} -32"
12619 ;;
12620 *N32*)
12621 LD="${LD-ld} -n32"
12622 ;;
12623 *64-bit*)
12624 LD="${LD-ld} -64"
12625 ;;
12626 esac
12627 fi
12628 fi
12629 rm -rf conftest*
12630 ;;
12631
12632x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12633 # Find out which ABI we are using.
12634 echo 'int i;' > conftest.$ac_ext
12635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12636 (eval $ac_compile) 2>&5
12637 ac_status=$?
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012640 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012641 *32-bit*)
12642 case $host in
12643 x86_64-*linux*)
12644 LD="${LD-ld} -m elf_i386"
12645 ;;
12646 ppc64-*linux*|powerpc64-*linux*)
12647 LD="${LD-ld} -m elf32ppclinux"
12648 ;;
12649 s390x-*linux*)
12650 LD="${LD-ld} -m elf_s390"
12651 ;;
12652 sparc64-*linux*)
12653 LD="${LD-ld} -m elf32_sparc"
12654 ;;
12655 esac
12656 ;;
12657 *64-bit*)
12658 case $host in
12659 x86_64-*linux*)
12660 LD="${LD-ld} -m elf_x86_64"
12661 ;;
12662 ppc*-*linux*|powerpc*-*linux*)
12663 LD="${LD-ld} -m elf64ppc"
12664 ;;
12665 s390*-*linux*)
12666 LD="${LD-ld} -m elf64_s390"
12667 ;;
12668 sparc*-*linux*)
12669 LD="${LD-ld} -m elf64_sparc"
12670 ;;
12671 esac
12672 ;;
12673 esac
12674 fi
12675 rm -rf conftest*
12676 ;;
12677
12678*-*-sco3.2v5*)
12679 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12680 SAVE_CFLAGS="$CFLAGS"
12681 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012682 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12683echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012684if test "${lt_cv_cc_needs_belf+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12686else
12687 ac_ext=c
12688ac_cpp='$CPP $CPPFLAGS'
12689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691ac_compiler_gnu=$ac_cv_c_compiler_gnu
12692
12693 cat >conftest.$ac_ext <<_ACEOF
12694/* confdefs.h. */
12695_ACEOF
12696cat confdefs.h >>conftest.$ac_ext
12697cat >>conftest.$ac_ext <<_ACEOF
12698/* end confdefs.h. */
12699
Reid Spencera773bd52006-08-04 18:18:08 +000012700int
12701main ()
12702{
12703
12704 ;
12705 return 0;
12706}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012707_ACEOF
12708rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012709if { (ac_try="$ac_link"
12710case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12713esac
12714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012716 ac_status=$?
12717 grep -v '^ *+' conftest.er1 >conftest.err
12718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012721 (exit $ac_status); } &&
12722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12723 { (case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12726esac
12727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_try") 2>&5
12729 ac_status=$?
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; } &&
12732 { ac_try='test -s conftest$ac_exeext'
12733 { (case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736esac
12737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_try") 2>&5
12739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012742 lt_cv_cc_needs_belf=yes
12743else
12744 echo "$as_me: failed program was:" >&5
12745sed 's/^/| /' conftest.$ac_ext >&5
12746
Reid Spencera773bd52006-08-04 18:18:08 +000012747 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012748fi
Reid Spencera773bd52006-08-04 18:18:08 +000012749
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012750rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012751 conftest$ac_exeext conftest.$ac_ext
12752 ac_ext=c
12753ac_cpp='$CPP $CPPFLAGS'
12754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12756ac_compiler_gnu=$ac_cv_c_compiler_gnu
12757
12758fi
Reid Spencera773bd52006-08-04 18:18:08 +000012759{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12760echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012761 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12762 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12763 CFLAGS="$SAVE_CFLAGS"
12764 fi
12765 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012766sparc*-*solaris*)
12767 # Find out which ABI we are using.
12768 echo 'int i;' > conftest.$ac_ext
12769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770 (eval $ac_compile) 2>&5
12771 ac_status=$?
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; then
12774 case `/usr/bin/file conftest.o` in
12775 *64-bit*)
12776 case $lt_cv_prog_gnu_ld in
12777 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12778 *) LD="${LD-ld} -64" ;;
12779 esac
12780 ;;
12781 esac
12782 fi
12783 rm -rf conftest*
12784 ;;
12785
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012786
12787esac
12788
12789need_locks="$enable_libtool_lock"
12790
12791
Reid Spencer2706f8c2004-09-19 23:53:36 +000012792
12793
12794if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12795 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12796 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012797 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012798ac_cpp='$CXXCPP $CPPFLAGS'
12799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012802{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12803echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012804if test -z "$CXXCPP"; then
12805 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807else
John Criswell47fdd832003-07-14 16:52:07 +000012808 # Double quotes because CXXCPP needs to be expanded
12809 for CXXCPP in "$CXX -E" "/lib/cpp"
12810 do
12811 ac_preproc_ok=false
12812for ac_cxx_preproc_warn_flag in '' yes
12813do
12814 # Use a header file that comes with gcc, so configuring glibc
12815 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12817 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012818 # On the NeXT, cc -E runs the code through the compiler's parser,
12819 # not just through cpp. "Syntax error" is here to catch this case.
12820 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012821/* confdefs.h. */
12822_ACEOF
12823cat confdefs.h >>conftest.$ac_ext
12824cat >>conftest.$ac_ext <<_ACEOF
12825/* end confdefs.h. */
12826#ifdef __STDC__
12827# include <limits.h>
12828#else
12829# include <assert.h>
12830#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012831 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012832_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012833if { (ac_try="$ac_cpp conftest.$ac_ext"
12834case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837esac
12838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012840 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012841 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012842 rm -f conftest.er1
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012845 (exit $ac_status); } >/dev/null; then
12846 if test -s conftest.err; then
12847 ac_cpp_err=$ac_cxx_preproc_warn_flag
12848 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12849 else
12850 ac_cpp_err=
12851 fi
12852else
12853 ac_cpp_err=yes
12854fi
12855if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012856 :
12857else
12858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012859sed 's/^/| /' conftest.$ac_ext >&5
12860
John Criswell47fdd832003-07-14 16:52:07 +000012861 # Broken: fails on valid input.
12862continue
12863fi
Reid Spencera773bd52006-08-04 18:18:08 +000012864
John Criswell47fdd832003-07-14 16:52:07 +000012865rm -f conftest.err conftest.$ac_ext
12866
Reid Spencera773bd52006-08-04 18:18:08 +000012867 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012868 # can be detected and how.
12869 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012870/* confdefs.h. */
12871_ACEOF
12872cat confdefs.h >>conftest.$ac_ext
12873cat >>conftest.$ac_ext <<_ACEOF
12874/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012875#include <ac_nonexistent.h>
12876_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012877if { (ac_try="$ac_cpp conftest.$ac_ext"
12878case "(($ac_try" in
12879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12880 *) ac_try_echo=$ac_try;;
12881esac
12882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012884 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012885 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012886 rm -f conftest.er1
12887 cat conftest.err >&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012889 (exit $ac_status); } >/dev/null; then
12890 if test -s conftest.err; then
12891 ac_cpp_err=$ac_cxx_preproc_warn_flag
12892 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12893 else
12894 ac_cpp_err=
12895 fi
12896else
12897 ac_cpp_err=yes
12898fi
12899if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012900 # Broken: success on invalid input.
12901continue
12902else
12903 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012904sed 's/^/| /' conftest.$ac_ext >&5
12905
John Criswell47fdd832003-07-14 16:52:07 +000012906 # Passes both tests.
12907ac_preproc_ok=:
12908break
12909fi
Reid Spencera773bd52006-08-04 18:18:08 +000012910
John Criswell47fdd832003-07-14 16:52:07 +000012911rm -f conftest.err conftest.$ac_ext
12912
12913done
12914# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12915rm -f conftest.err conftest.$ac_ext
12916if $ac_preproc_ok; then
12917 break
John Criswell7a73b802003-06-30 21:59:07 +000012918fi
12919
John Criswell47fdd832003-07-14 16:52:07 +000012920 done
12921 ac_cv_prog_CXXCPP=$CXXCPP
12922
12923fi
12924 CXXCPP=$ac_cv_prog_CXXCPP
12925else
12926 ac_cv_prog_CXXCPP=$CXXCPP
12927fi
Reid Spencera773bd52006-08-04 18:18:08 +000012928{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12929echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012930ac_preproc_ok=false
12931for ac_cxx_preproc_warn_flag in '' yes
12932do
12933 # Use a header file that comes with gcc, so configuring glibc
12934 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12936 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012937 # On the NeXT, cc -E runs the code through the compiler's parser,
12938 # not just through cpp. "Syntax error" is here to catch this case.
12939 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012940/* confdefs.h. */
12941_ACEOF
12942cat confdefs.h >>conftest.$ac_ext
12943cat >>conftest.$ac_ext <<_ACEOF
12944/* end confdefs.h. */
12945#ifdef __STDC__
12946# include <limits.h>
12947#else
12948# include <assert.h>
12949#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012950 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012951_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012952if { (ac_try="$ac_cpp conftest.$ac_ext"
12953case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12956esac
12957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012959 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012960 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012961 rm -f conftest.er1
12962 cat conftest.err >&5
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012964 (exit $ac_status); } >/dev/null; then
12965 if test -s conftest.err; then
12966 ac_cpp_err=$ac_cxx_preproc_warn_flag
12967 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12968 else
12969 ac_cpp_err=
12970 fi
12971else
12972 ac_cpp_err=yes
12973fi
12974if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012975 :
12976else
12977 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012978sed 's/^/| /' conftest.$ac_ext >&5
12979
John Criswell47fdd832003-07-14 16:52:07 +000012980 # Broken: fails on valid input.
12981continue
12982fi
Reid Spencera773bd52006-08-04 18:18:08 +000012983
John Criswell47fdd832003-07-14 16:52:07 +000012984rm -f conftest.err conftest.$ac_ext
12985
Reid Spencera773bd52006-08-04 18:18:08 +000012986 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012987 # can be detected and how.
12988 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012989/* confdefs.h. */
12990_ACEOF
12991cat confdefs.h >>conftest.$ac_ext
12992cat >>conftest.$ac_ext <<_ACEOF
12993/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012994#include <ac_nonexistent.h>
12995_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012996if { (ac_try="$ac_cpp conftest.$ac_ext"
12997case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000esac
13001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013003 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013004 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013005 rm -f conftest.er1
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013008 (exit $ac_status); } >/dev/null; then
13009 if test -s conftest.err; then
13010 ac_cpp_err=$ac_cxx_preproc_warn_flag
13011 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13012 else
13013 ac_cpp_err=
13014 fi
13015else
13016 ac_cpp_err=yes
13017fi
13018if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013019 # Broken: success on invalid input.
13020continue
13021else
13022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013023sed 's/^/| /' conftest.$ac_ext >&5
13024
John Criswell47fdd832003-07-14 16:52:07 +000013025 # Passes both tests.
13026ac_preproc_ok=:
13027break
13028fi
Reid Spencera773bd52006-08-04 18:18:08 +000013029
John Criswell47fdd832003-07-14 16:52:07 +000013030rm -f conftest.err conftest.$ac_ext
13031
13032done
13033# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13034rm -f conftest.err conftest.$ac_ext
13035if $ac_preproc_ok; then
13036 :
13037else
John Criswell0c38eaf2003-09-10 15:17:25 +000013038 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13039See \`config.log' for more details." >&5
13040echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13041See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013042 { (exit 1); exit 1; }; }
13043fi
13044
Reid Spencera773bd52006-08-04 18:18:08 +000013045ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013046ac_cpp='$CXXCPP $CPPFLAGS'
13047ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13050
Reid Spencer2706f8c2004-09-19 23:53:36 +000013051fi
13052
John Criswell47fdd832003-07-14 16:52:07 +000013053
13054ac_ext=f
13055ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13056ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13057ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13058if test -n "$ac_tool_prefix"; then
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013059 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 +000013060 do
13061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13062set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013063{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013065if test "${ac_cv_prog_F77+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13067else
13068 if test -n "$F77"; then
13069 ac_cv_prog_F77="$F77" # Let the user override the test.
13070else
13071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072for as_dir in $PATH
13073do
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013077 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 +000013078 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13080 break 2
13081 fi
13082done
13083done
Reid Spencera773bd52006-08-04 18:18:08 +000013084IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013085
13086fi
13087fi
13088F77=$ac_cv_prog_F77
13089if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013090 { echo "$as_me:$LINENO: result: $F77" >&5
13091echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013092else
Reid Spencera773bd52006-08-04 18:18:08 +000013093 { echo "$as_me:$LINENO: result: no" >&5
13094echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013095fi
13096
Reid Spencera773bd52006-08-04 18:18:08 +000013097
John Criswell47fdd832003-07-14 16:52:07 +000013098 test -n "$F77" && break
13099 done
13100fi
13101if test -z "$F77"; then
13102 ac_ct_F77=$F77
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013103 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 +000013104do
13105 # Extract the first word of "$ac_prog", so it can be a program name with args.
13106set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013107{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013109if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13110 echo $ECHO_N "(cached) $ECHO_C" >&6
13111else
13112 if test -n "$ac_ct_F77"; then
13113 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13114else
13115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116for as_dir in $PATH
13117do
13118 IFS=$as_save_IFS
13119 test -z "$as_dir" && as_dir=.
13120 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013121 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 +000013122 ac_cv_prog_ac_ct_F77="$ac_prog"
13123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13124 break 2
13125 fi
13126done
13127done
Reid Spencera773bd52006-08-04 18:18:08 +000013128IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013129
13130fi
13131fi
13132ac_ct_F77=$ac_cv_prog_ac_ct_F77
13133if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013134 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13135echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013136else
Reid Spencera773bd52006-08-04 18:18:08 +000013137 { echo "$as_me:$LINENO: result: no" >&5
13138echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013139fi
13140
Reid Spencera773bd52006-08-04 18:18:08 +000013141
John Criswell47fdd832003-07-14 16:52:07 +000013142 test -n "$ac_ct_F77" && break
13143done
13144
Reid Spencera773bd52006-08-04 18:18:08 +000013145 if test "x$ac_ct_F77" = x; then
13146 F77=""
13147 else
13148 case $cross_compiling:$ac_tool_warned in
13149yes:)
13150{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13151whose name does not start with the host triplet. If you think this
13152configuration is useful to you, please write to autoconf@gnu.org." >&5
13153echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13154whose name does not start with the host triplet. If you think this
13155configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13156ac_tool_warned=yes ;;
13157esac
13158 F77=$ac_ct_F77
13159 fi
John Criswell47fdd832003-07-14 16:52:07 +000013160fi
13161
13162
13163# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013164echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013165ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013166{ (ac_try="$ac_compiler --version >&5"
13167case "(($ac_try" in
13168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13169 *) ac_try_echo=$ac_try;;
13170esac
13171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13172 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013176{ (ac_try="$ac_compiler -v >&5"
13177case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180esac
13181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013186{ (ac_try="$ac_compiler -V >&5"
13187case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13190esac
13191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013193 ac_status=$?
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013196rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013197
13198# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013199# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013200ac_save_ext=$ac_ext
13201ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013202{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13203echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013204if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
13207 cat >conftest.$ac_ext <<_ACEOF
13208 program main
13209#ifndef __GNUC__
13210 choke me
13211#endif
13212
13213 end
13214_ACEOF
13215rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013216if { (ac_try="$ac_compile"
13217case "(($ac_try" in
13218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219 *) ac_try_echo=$ac_try;;
13220esac
13221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013223 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013224 grep -v '^ *+' conftest.er1 >conftest.err
13225 rm -f conftest.er1
13226 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013228 (exit $ac_status); } &&
13229 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13230 { (case "(($ac_try" in
13231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232 *) ac_try_echo=$ac_try;;
13233esac
13234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_try") 2>&5
13236 ac_status=$?
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); }; } &&
13239 { ac_try='test -s conftest.$ac_objext'
13240 { (case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13243esac
13244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_try") 2>&5
13246 ac_status=$?
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013249 ac_compiler_gnu=yes
13250else
13251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013252sed 's/^/| /' conftest.$ac_ext >&5
13253
Reid Spencera773bd52006-08-04 18:18:08 +000013254 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013255fi
Reid Spencera773bd52006-08-04 18:18:08 +000013256
13257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013258ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13259
13260fi
Reid Spencera773bd52006-08-04 18:18:08 +000013261{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13262echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013263ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013264ac_test_FFLAGS=${FFLAGS+set}
13265ac_save_FFLAGS=$FFLAGS
13266FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013267{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13268echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013269if test "${ac_cv_prog_f77_g+set}" = set; then
13270 echo $ECHO_N "(cached) $ECHO_C" >&6
13271else
13272 FFLAGS=-g
13273cat >conftest.$ac_ext <<_ACEOF
13274 program main
13275
13276 end
13277_ACEOF
13278rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013279if { (ac_try="$ac_compile"
13280case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13283esac
13284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013286 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013287 grep -v '^ *+' conftest.er1 >conftest.err
13288 rm -f conftest.er1
13289 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013291 (exit $ac_status); } &&
13292 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13293 { (case "(($ac_try" in
13294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295 *) ac_try_echo=$ac_try;;
13296esac
13297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298 (eval "$ac_try") 2>&5
13299 ac_status=$?
13300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301 (exit $ac_status); }; } &&
13302 { ac_try='test -s conftest.$ac_objext'
13303 { (case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13306esac
13307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_try") 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013312 ac_cv_prog_f77_g=yes
13313else
13314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013315sed 's/^/| /' conftest.$ac_ext >&5
13316
Reid Spencera773bd52006-08-04 18:18:08 +000013317 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013318fi
Reid Spencera773bd52006-08-04 18:18:08 +000013319
13320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013321
13322fi
Reid Spencera773bd52006-08-04 18:18:08 +000013323{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13324echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013325if test "$ac_test_FFLAGS" = set; then
13326 FFLAGS=$ac_save_FFLAGS
13327elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013328 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013329 FFLAGS="-g -O2"
13330 else
13331 FFLAGS="-g"
13332 fi
13333else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013334 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013335 FFLAGS="-O2"
13336 else
13337 FFLAGS=
13338 fi
13339fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013340
13341G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013342ac_ext=c
13343ac_cpp='$CPP $CPPFLAGS'
13344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13346ac_compiler_gnu=$ac_cv_c_compiler_gnu
13347
13348
13349
13350# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13351
13352# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013353{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13354echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013355if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13356 echo $ECHO_N "(cached) $ECHO_C" >&6
13357else
13358 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013359 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013360
13361 case $build_os in
13362 msdosdjgpp*)
13363 # On DJGPP, this test can blow up pretty badly due to problems in libc
13364 # (any single argument exceeding 2000 bytes causes a buffer overrun
13365 # during glob expansion). Even if it were fixed, the result of this
13366 # check would be larger than it should be.
13367 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13368 ;;
13369
13370 gnu*)
13371 # Under GNU Hurd, this test is not required because there is
13372 # no limit to the length of command line arguments.
13373 # Libtool will interpret -1 as no limit whatsoever
13374 lt_cv_sys_max_cmd_len=-1;
13375 ;;
13376
13377 cygwin* | mingw*)
13378 # On Win9x/ME, this test blows up -- it succeeds, but takes
13379 # about 5 minutes as the teststring grows exponentially.
13380 # Worse, since 9x/ME are not pre-emptively multitasking,
13381 # you end up with a "frozen" computer, even though with patience
13382 # the test eventually succeeds (with a max line length of 256k).
13383 # Instead, let's just punt: use the minimum linelength reported by
13384 # all of the supported platforms: 8192 (on NT/2K/XP).
13385 lt_cv_sys_max_cmd_len=8192;
13386 ;;
13387
Reid Spencer2706f8c2004-09-19 23:53:36 +000013388 amigaos*)
13389 # On AmigaOS with pdksh, this test takes hours, literally.
13390 # So we just punt and use a minimum line length of 8192.
13391 lt_cv_sys_max_cmd_len=8192;
13392 ;;
13393
Reid Spencera773bd52006-08-04 18:18:08 +000013394 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013395 # This has been around since 386BSD, at least. Likely further.
13396 if test -x /sbin/sysctl; then
13397 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13398 elif test -x /usr/sbin/sysctl; then
13399 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13400 else
Reid Spencera773bd52006-08-04 18:18:08 +000013401 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013402 fi
13403 # And add a safety zone
13404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013406 ;;
13407
Reid Spencera773bd52006-08-04 18:18:08 +000013408 interix*)
13409 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13410 lt_cv_sys_max_cmd_len=196608
13411 ;;
13412
13413 osf*)
13414 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13415 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13416 # nice to cause kernel panics so lets avoid the loop below.
13417 # First set a reasonable default.
13418 lt_cv_sys_max_cmd_len=16384
13419 #
13420 if test -x /sbin/sysconfig; then
13421 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13422 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13423 esac
13424 fi
13425 ;;
13426 sco3.2v5*)
13427 lt_cv_sys_max_cmd_len=102400
13428 ;;
13429 sysv5* | sco5v6* | sysv4.2uw2*)
13430 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13431 if test -n "$kargmax"; then
13432 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13433 else
13434 lt_cv_sys_max_cmd_len=32768
13435 fi
13436 ;;
13437 *)
John Criswell47fdd832003-07-14 16:52:07 +000013438 # If test is not a shell built-in, we'll probably end up computing a
13439 # maximum length that is only half of the actual maximum length, but
13440 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013441 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13442 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13443 = "XX$teststring") >/dev/null 2>&1 &&
13444 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013445 lt_cv_sys_max_cmd_len=$new_result &&
13446 test $i != 17 # 1/2 MB should be enough
13447 do
13448 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013449 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013450 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013451 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013452 # Add a significant safety factor because C++ compilers can tack on massive
13453 # amounts of additional arguments before passing them to the linker.
13454 # It appears as though 1/2 is a usable value.
13455 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13456 ;;
13457 esac
13458
13459fi
13460
13461if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013462 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13463echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013464else
Reid Spencera773bd52006-08-04 18:18:08 +000013465 { echo "$as_me:$LINENO: result: none" >&5
13466echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013467fi
13468
13469
13470
13471
13472# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013473{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13474echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013475if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13477else
13478
13479# These are sane defaults that work on at least a few old systems.
13480# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13481
13482# Character class describing NM global symbol codes.
13483symcode='[BCDEGRST]'
13484
13485# Regexp to match symbols that can be accessed directly from C.
13486sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13487
John Criswell47fdd832003-07-14 16:52:07 +000013488# Transform an extracted symbol line into a proper C declaration
13489lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13490
13491# Transform an extracted symbol line into symbol name and symbol address
13492lt_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'"
13493
13494# Define system-specific variables.
13495case $host_os in
13496aix*)
13497 symcode='[BCDT]'
13498 ;;
13499cygwin* | mingw* | pw32*)
13500 symcode='[ABCDGISTW]'
13501 ;;
13502hpux*) # Its linker distinguishes data from code symbols
13503 if test "$host_cpu" = ia64; then
13504 symcode='[ABCDEGRST]'
13505 fi
13506 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13507 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'"
13508 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013509linux*)
13510 if test "$host_cpu" = ia64; then
13511 symcode='[ABCDGIRSTW]'
13512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13513 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'"
13514 fi
13515 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013516irix* | nonstopux*)
13517 symcode='[BCDEGRST]'
13518 ;;
13519osf*)
13520 symcode='[BCDEGQRST]'
13521 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013522solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013523 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013524 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013525sco3.2v5*)
13526 symcode='[DT]'
13527 ;;
13528sysv4.2uw2*)
13529 symcode='[DT]'
13530 ;;
13531sysv5* | sco5v6* | unixware* | OpenUNIX*)
13532 symcode='[ABDT]'
13533 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013534sysv4)
13535 symcode='[DFNSTU]'
13536 ;;
13537esac
13538
13539# Handle CRLF in mingw tool chain
13540opt_cr=
13541case $build_os in
13542mingw*)
13543 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13544 ;;
13545esac
13546
13547# If we're using GNU nm, then use its standard symbol codes.
13548case `$NM -V 2>&1` in
13549*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013550 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013551esac
13552
13553# Try without a prefix undercore, then with it.
13554for ac_symprfx in "" "_"; do
13555
Reid Spencera773bd52006-08-04 18:18:08 +000013556 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13557 symxfrm="\\1 $ac_symprfx\\2 \\2"
13558
John Criswell47fdd832003-07-14 16:52:07 +000013559 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013560 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 +000013561
13562 # Check to see that the pipe works correctly.
13563 pipe_works=no
13564
13565 rm -f conftest*
13566 cat > conftest.$ac_ext <<EOF
13567#ifdef __cplusplus
13568extern "C" {
13569#endif
13570char nm_test_var;
13571void nm_test_func(){}
13572#ifdef __cplusplus
13573}
13574#endif
13575int main(){nm_test_var='a';nm_test_func();return(0);}
13576EOF
13577
13578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13579 (eval $ac_compile) 2>&5
13580 ac_status=$?
13581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582 (exit $ac_status); }; then
13583 # Now try to grab the symbols.
13584 nlist=conftest.nm
13585 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13586 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && test -s "$nlist"; then
13590 # Try sorting and uniquifying the output.
13591 if sort "$nlist" | uniq > "$nlist"T; then
13592 mv -f "$nlist"T "$nlist"
13593 else
13594 rm -f "$nlist"T
13595 fi
13596
13597 # Make sure that we snagged all the symbols we need.
13598 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13599 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13600 cat <<EOF > conftest.$ac_ext
13601#ifdef __cplusplus
13602extern "C" {
13603#endif
13604
13605EOF
13606 # Now generate the symbol file.
13607 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13608
13609 cat <<EOF >> conftest.$ac_ext
13610#if defined (__STDC__) && __STDC__
13611# define lt_ptr_t void *
13612#else
13613# define lt_ptr_t char *
13614# define const
13615#endif
13616
13617/* The mapping between symbol names and symbols. */
13618const struct {
13619 const char *name;
13620 lt_ptr_t address;
13621}
13622lt_preloaded_symbols[] =
13623{
13624EOF
13625 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13626 cat <<\EOF >> conftest.$ac_ext
13627 {0, (lt_ptr_t) 0}
13628};
13629
13630#ifdef __cplusplus
13631}
13632#endif
13633EOF
13634 # Now try linking the two files.
13635 mv conftest.$ac_objext conftstm.$ac_objext
13636 lt_save_LIBS="$LIBS"
13637 lt_save_CFLAGS="$CFLAGS"
13638 LIBS="conftstm.$ac_objext"
13639 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13641 (eval $ac_link) 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13645 pipe_works=yes
13646 fi
13647 LIBS="$lt_save_LIBS"
13648 CFLAGS="$lt_save_CFLAGS"
13649 else
13650 echo "cannot find nm_test_func in $nlist" >&5
13651 fi
13652 else
13653 echo "cannot find nm_test_var in $nlist" >&5
13654 fi
13655 else
13656 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13657 fi
13658 else
13659 echo "$progname: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13661 fi
13662 rm -f conftest* conftst*
13663
13664 # Do not use the global_symbol_pipe unless it works.
13665 if test "$pipe_works" = yes; then
13666 break
13667 else
13668 lt_cv_sys_global_symbol_pipe=
13669 fi
13670done
13671
13672fi
13673
13674if test -z "$lt_cv_sys_global_symbol_pipe"; then
13675 lt_cv_sys_global_symbol_to_cdecl=
13676fi
13677if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013678 { echo "$as_me:$LINENO: result: failed" >&5
13679echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013680else
Reid Spencera773bd52006-08-04 18:18:08 +000013681 { echo "$as_me:$LINENO: result: ok" >&5
13682echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013683fi
13684
Reid Spencera773bd52006-08-04 18:18:08 +000013685{ echo "$as_me:$LINENO: checking for objdir" >&5
13686echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013687if test "${lt_cv_objdir+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13689else
13690 rm -f .libs 2>/dev/null
13691mkdir .libs 2>/dev/null
13692if test -d .libs; then
13693 lt_cv_objdir=.libs
13694else
13695 # MS-DOS does not allow filenames that begin with a dot.
13696 lt_cv_objdir=_libs
13697fi
13698rmdir .libs 2>/dev/null
13699fi
Reid Spencera773bd52006-08-04 18:18:08 +000013700{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13701echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013702objdir=$lt_cv_objdir
13703
13704
13705
13706
13707
13708case $host_os in
13709aix3*)
13710 # AIX sometimes has problems with the GCC collect2 program. For some
13711 # reason, if we set the COLLECT_NAMES environment variable, the problems
13712 # vanish in a puff of smoke.
13713 if test "X${COLLECT_NAMES+set}" != Xset; then
13714 COLLECT_NAMES=
13715 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013716 fi
13717 ;;
13718esac
13719
John Criswell47fdd832003-07-14 16:52:07 +000013720# Sed substitution that helps us do robust quoting. It backslashifies
13721# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013722Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013723sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13724
13725# Same as above, but do not quote variable references.
13726double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13727
13728# Sed substitution to delay expansion of an escaped shell variable in a
13729# double_quote_subst'ed string.
13730delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13731
13732# Sed substitution to avoid accidental globbing in evaled expressions
13733no_glob_subst='s/\*/\\\*/g'
13734
13735# Constants:
13736rm="rm -f"
13737
13738# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013739default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013740can_build_shared=yes
13741
Reid Spencera773bd52006-08-04 18:18:08 +000013742# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013743# which needs '.lib').
13744libext=a
13745ltmain="$ac_aux_dir/ltmain.sh"
13746ofile="$default_ofile"
13747with_gnu_ld="$lt_cv_prog_gnu_ld"
13748
13749if test -n "$ac_tool_prefix"; then
13750 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13751set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013752{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013754if test "${ac_cv_prog_AR+set}" = set; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13756else
13757 if test -n "$AR"; then
13758 ac_cv_prog_AR="$AR" # Let the user override the test.
13759else
13760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13761for as_dir in $PATH
13762do
13763 IFS=$as_save_IFS
13764 test -z "$as_dir" && as_dir=.
13765 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013766 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 +000013767 ac_cv_prog_AR="${ac_tool_prefix}ar"
13768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13769 break 2
13770 fi
13771done
13772done
Reid Spencera773bd52006-08-04 18:18:08 +000013773IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013774
13775fi
13776fi
13777AR=$ac_cv_prog_AR
13778if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013779 { echo "$as_me:$LINENO: result: $AR" >&5
13780echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013781else
Reid Spencera773bd52006-08-04 18:18:08 +000013782 { echo "$as_me:$LINENO: result: no" >&5
13783echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013784fi
13785
Reid Spencera773bd52006-08-04 18:18:08 +000013786
John Criswell47fdd832003-07-14 16:52:07 +000013787fi
13788if test -z "$ac_cv_prog_AR"; then
13789 ac_ct_AR=$AR
13790 # Extract the first word of "ar", so it can be a program name with args.
13791set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013794if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796else
13797 if test -n "$ac_ct_AR"; then
13798 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13799else
13800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801for as_dir in $PATH
13802do
13803 IFS=$as_save_IFS
13804 test -z "$as_dir" && as_dir=.
13805 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013806 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 +000013807 ac_cv_prog_ac_ct_AR="ar"
13808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13809 break 2
13810 fi
13811done
13812done
Reid Spencera773bd52006-08-04 18:18:08 +000013813IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013814
John Criswell47fdd832003-07-14 16:52:07 +000013815fi
13816fi
13817ac_ct_AR=$ac_cv_prog_ac_ct_AR
13818if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013819 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13820echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013821else
Reid Spencera773bd52006-08-04 18:18:08 +000013822 { echo "$as_me:$LINENO: result: no" >&5
13823echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013824fi
13825
Reid Spencera773bd52006-08-04 18:18:08 +000013826 if test "x$ac_ct_AR" = x; then
13827 AR="false"
13828 else
13829 case $cross_compiling:$ac_tool_warned in
13830yes:)
13831{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13832whose name does not start with the host triplet. If you think this
13833configuration is useful to you, please write to autoconf@gnu.org." >&5
13834echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13835whose name does not start with the host triplet. If you think this
13836configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13837ac_tool_warned=yes ;;
13838esac
13839 AR=$ac_ct_AR
13840 fi
John Criswell47fdd832003-07-14 16:52:07 +000013841else
13842 AR="$ac_cv_prog_AR"
13843fi
13844
John Criswell7a73b802003-06-30 21:59:07 +000013845if test -n "$ac_tool_prefix"; then
13846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13847set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013850if test "${ac_cv_prog_RANLIB+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13852else
13853 if test -n "$RANLIB"; then
13854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13855else
13856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13857for as_dir in $PATH
13858do
13859 IFS=$as_save_IFS
13860 test -z "$as_dir" && as_dir=.
13861 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013862 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 +000013863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13865 break 2
13866 fi
13867done
13868done
Reid Spencera773bd52006-08-04 18:18:08 +000013869IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013870
13871fi
13872fi
13873RANLIB=$ac_cv_prog_RANLIB
13874if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013875 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13876echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013877else
Reid Spencera773bd52006-08-04 18:18:08 +000013878 { echo "$as_me:$LINENO: result: no" >&5
13879echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013880fi
13881
Reid Spencera773bd52006-08-04 18:18:08 +000013882
John Criswell7a73b802003-06-30 21:59:07 +000013883fi
13884if test -z "$ac_cv_prog_RANLIB"; then
13885 ac_ct_RANLIB=$RANLIB
13886 # Extract the first word of "ranlib", so it can be a program name with args.
13887set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013890if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13892else
13893 if test -n "$ac_ct_RANLIB"; then
13894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13895else
13896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13897for as_dir in $PATH
13898do
13899 IFS=$as_save_IFS
13900 test -z "$as_dir" && as_dir=.
13901 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013902 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 +000013903 ac_cv_prog_ac_ct_RANLIB="ranlib"
13904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13905 break 2
13906 fi
13907done
13908done
Reid Spencera773bd52006-08-04 18:18:08 +000013909IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013910
John Criswell7a73b802003-06-30 21:59:07 +000013911fi
13912fi
13913ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13914if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013915 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13916echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013917else
Reid Spencera773bd52006-08-04 18:18:08 +000013918 { echo "$as_me:$LINENO: result: no" >&5
13919echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013920fi
13921
Reid Spencera773bd52006-08-04 18:18:08 +000013922 if test "x$ac_ct_RANLIB" = x; then
13923 RANLIB=":"
13924 else
13925 case $cross_compiling:$ac_tool_warned in
13926yes:)
13927{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13928whose name does not start with the host triplet. If you think this
13929configuration is useful to you, please write to autoconf@gnu.org." >&5
13930echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13931whose name does not start with the host triplet. If you think this
13932configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13933ac_tool_warned=yes ;;
13934esac
13935 RANLIB=$ac_ct_RANLIB
13936 fi
John Criswell7a73b802003-06-30 21:59:07 +000013937else
13938 RANLIB="$ac_cv_prog_RANLIB"
13939fi
13940
13941if test -n "$ac_tool_prefix"; then
13942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13943set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013946if test "${ac_cv_prog_STRIP+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13948else
13949 if test -n "$STRIP"; then
13950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13951else
13952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13953for as_dir in $PATH
13954do
13955 IFS=$as_save_IFS
13956 test -z "$as_dir" && as_dir=.
13957 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013958 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 +000013959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13961 break 2
13962 fi
13963done
13964done
Reid Spencera773bd52006-08-04 18:18:08 +000013965IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013966
13967fi
13968fi
13969STRIP=$ac_cv_prog_STRIP
13970if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013971 { echo "$as_me:$LINENO: result: $STRIP" >&5
13972echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013973else
Reid Spencera773bd52006-08-04 18:18:08 +000013974 { echo "$as_me:$LINENO: result: no" >&5
13975echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013976fi
13977
Reid Spencera773bd52006-08-04 18:18:08 +000013978
John Criswell7a73b802003-06-30 21:59:07 +000013979fi
13980if test -z "$ac_cv_prog_STRIP"; then
13981 ac_ct_STRIP=$STRIP
13982 # Extract the first word of "strip", so it can be a program name with args.
13983set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013986if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13988else
13989 if test -n "$ac_ct_STRIP"; then
13990 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13991else
13992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13993for as_dir in $PATH
13994do
13995 IFS=$as_save_IFS
13996 test -z "$as_dir" && as_dir=.
13997 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013998 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 +000013999 ac_cv_prog_ac_ct_STRIP="strip"
14000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14001 break 2
14002 fi
14003done
14004done
Reid Spencera773bd52006-08-04 18:18:08 +000014005IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014006
John Criswell7a73b802003-06-30 21:59:07 +000014007fi
14008fi
14009ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14010if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014011 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14012echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014013else
Reid Spencera773bd52006-08-04 18:18:08 +000014014 { echo "$as_me:$LINENO: result: no" >&5
14015echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014016fi
14017
Reid Spencera773bd52006-08-04 18:18:08 +000014018 if test "x$ac_ct_STRIP" = x; then
14019 STRIP=":"
14020 else
14021 case $cross_compiling:$ac_tool_warned in
14022yes:)
14023{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14024whose name does not start with the host triplet. If you think this
14025configuration is useful to you, please write to autoconf@gnu.org." >&5
14026echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14027whose name does not start with the host triplet. If you think this
14028configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14029ac_tool_warned=yes ;;
14030esac
14031 STRIP=$ac_ct_STRIP
14032 fi
John Criswell7a73b802003-06-30 21:59:07 +000014033else
14034 STRIP="$ac_cv_prog_STRIP"
14035fi
14036
14037
John Criswell7a73b802003-06-30 21:59:07 +000014038old_CC="$CC"
14039old_CFLAGS="$CFLAGS"
14040
14041# Set sane defaults for various variables
14042test -z "$AR" && AR=ar
14043test -z "$AR_FLAGS" && AR_FLAGS=cru
14044test -z "$AS" && AS=as
14045test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014046test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014047test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014048test -z "$DLLTOOL" && DLLTOOL=dlltool
14049test -z "$LD" && LD=ld
14050test -z "$LN_S" && LN_S="ln -s"
14051test -z "$MAGIC_CMD" && MAGIC_CMD=file
14052test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014053test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014054test -z "$OBJDUMP" && OBJDUMP=objdump
14055test -z "$RANLIB" && RANLIB=:
14056test -z "$STRIP" && STRIP=:
14057test -z "$ac_objext" && ac_objext=o
14058
John Criswell7a73b802003-06-30 21:59:07 +000014059# Determine commands to create old-style static archives.
14060old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14061old_postinstall_cmds='chmod 644 $oldlib'
14062old_postuninstall_cmds=
14063
14064if test -n "$RANLIB"; then
14065 case $host_os in
14066 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014067 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014068 ;;
14069 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014070 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014071 ;;
14072 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014073 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014074fi
14075
Reid Spencera773bd52006-08-04 18:18:08 +000014076for cc_temp in $compiler""; do
14077 case $cc_temp in
14078 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14079 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14080 \-*) ;;
14081 *) break;;
14082 esac
14083done
14084cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14085
Reid Spencer2706f8c2004-09-19 23:53:36 +000014086
John Criswell47fdd832003-07-14 16:52:07 +000014087# Only perform the check for file, if the check method requires it
14088case $deplibs_check_method in
14089file_magic*)
14090 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014091 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14092echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014093if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014095else
John Criswell47fdd832003-07-14 16:52:07 +000014096 case $MAGIC_CMD in
14097[\\/*] | ?:[\\/]*)
14098 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14099 ;;
14100*)
14101 lt_save_MAGIC_CMD="$MAGIC_CMD"
14102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14103 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14104 for ac_dir in $ac_dummy; do
14105 IFS="$lt_save_ifs"
14106 test -z "$ac_dir" && ac_dir=.
14107 if test -f $ac_dir/${ac_tool_prefix}file; then
14108 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14109 if test -n "$file_magic_test_file"; then
14110 case $deplibs_check_method in
14111 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014112 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014113 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14114 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14115 $EGREP "$file_magic_regex" > /dev/null; then
14116 :
14117 else
14118 cat <<EOF 1>&2
14119
14120*** Warning: the command libtool uses to detect shared libraries,
14121*** $file_magic_cmd, produces output that libtool cannot recognize.
14122*** The result is that libtool may fail to recognize shared libraries
14123*** as such. This will affect the creation of libtool libraries that
14124*** depend on shared libraries, but programs linked with such libtool
14125*** libraries will work regardless of this problem. Nevertheless, you
14126*** may want to report the problem to your system manager and/or to
14127*** bug-libtool@gnu.org
14128
14129EOF
14130 fi ;;
14131 esac
14132 fi
14133 break
14134 fi
14135 done
14136 IFS="$lt_save_ifs"
14137 MAGIC_CMD="$lt_save_MAGIC_CMD"
14138 ;;
14139esac
John Criswell7a73b802003-06-30 21:59:07 +000014140fi
John Criswell7a73b802003-06-30 21:59:07 +000014141
John Criswell47fdd832003-07-14 16:52:07 +000014142MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14143if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014144 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14145echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014146else
Reid Spencera773bd52006-08-04 18:18:08 +000014147 { echo "$as_me:$LINENO: result: no" >&5
14148echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014149fi
John Criswell7a73b802003-06-30 21:59:07 +000014150
John Criswell47fdd832003-07-14 16:52:07 +000014151if test -z "$lt_cv_path_MAGIC_CMD"; then
14152 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014153 { echo "$as_me:$LINENO: checking for file" >&5
14154echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014155if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14156 echo $ECHO_N "(cached) $ECHO_C" >&6
14157else
14158 case $MAGIC_CMD in
14159[\\/*] | ?:[\\/]*)
14160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14161 ;;
14162*)
14163 lt_save_MAGIC_CMD="$MAGIC_CMD"
14164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14165 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14166 for ac_dir in $ac_dummy; do
14167 IFS="$lt_save_ifs"
14168 test -z "$ac_dir" && ac_dir=.
14169 if test -f $ac_dir/file; then
14170 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14171 if test -n "$file_magic_test_file"; then
14172 case $deplibs_check_method in
14173 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014174 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14176 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14177 $EGREP "$file_magic_regex" > /dev/null; then
14178 :
14179 else
14180 cat <<EOF 1>&2
14181
14182*** Warning: the command libtool uses to detect shared libraries,
14183*** $file_magic_cmd, produces output that libtool cannot recognize.
14184*** The result is that libtool may fail to recognize shared libraries
14185*** as such. This will affect the creation of libtool libraries that
14186*** depend on shared libraries, but programs linked with such libtool
14187*** libraries will work regardless of this problem. Nevertheless, you
14188*** may want to report the problem to your system manager and/or to
14189*** bug-libtool@gnu.org
14190
14191EOF
14192 fi ;;
14193 esac
14194 fi
14195 break
14196 fi
14197 done
14198 IFS="$lt_save_ifs"
14199 MAGIC_CMD="$lt_save_MAGIC_CMD"
14200 ;;
14201esac
14202fi
14203
14204MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14205if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014206 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14207echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014208else
Reid Spencera773bd52006-08-04 18:18:08 +000014209 { echo "$as_me:$LINENO: result: no" >&5
14210echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014211fi
14212
14213 else
14214 MAGIC_CMD=:
14215 fi
14216fi
14217
14218 fi
14219 ;;
14220esac
14221
Reid Spencer17795972004-11-18 09:47:37 +000014222enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014223enable_win32_dll=no
14224
Reid Spencera773bd52006-08-04 18:18:08 +000014225# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014226if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014227 enableval=$enable_libtool_lock;
14228fi
John Criswell47fdd832003-07-14 16:52:07 +000014229
John Criswell47fdd832003-07-14 16:52:07 +000014230test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14231
John Criswell7a73b802003-06-30 21:59:07 +000014232
Reid Spencera773bd52006-08-04 18:18:08 +000014233# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014234if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014235 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014236else
14237 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014238fi
14239
John Criswell7a73b802003-06-30 21:59:07 +000014240test -z "$pic_mode" && pic_mode=default
14241
John Criswell47fdd832003-07-14 16:52:07 +000014242# Use C for the default configuration in the libtool script
14243tagname=
14244lt_save_CC="$CC"
14245ac_ext=c
14246ac_cpp='$CPP $CPPFLAGS'
14247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14249ac_compiler_gnu=$ac_cv_c_compiler_gnu
14250
14251
14252# Source file extension for C test sources.
14253ac_ext=c
14254
14255# Object file extension for compiled C test sources.
14256objext=o
14257objext=$objext
14258
14259# Code to be used in simple compile tests
14260lt_simple_compile_test_code="int some_variable = 0;\n"
14261
14262# Code to be used in simple link tests
14263lt_simple_link_test_code='int main(){return(0);}\n'
14264
14265
14266# If no C compiler was specified, use CC.
14267LTCC=${LTCC-"$CC"}
14268
Reid Spencera773bd52006-08-04 18:18:08 +000014269# If no C compiler flags were specified, use CFLAGS.
14270LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14271
John Criswell47fdd832003-07-14 16:52:07 +000014272# Allow CC to be a program name with arguments.
14273compiler=$CC
14274
14275
Reid Spencera773bd52006-08-04 18:18:08 +000014276# save warnings/boilerplate of simple test code
14277ac_outfile=conftest.$ac_objext
14278printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14279eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14280_lt_compiler_boilerplate=`cat conftest.err`
14281$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014282
Reid Spencera773bd52006-08-04 18:18:08 +000014283ac_outfile=conftest.$ac_objext
14284printf "$lt_simple_link_test_code" >conftest.$ac_ext
14285eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14286_lt_linker_boilerplate=`cat conftest.err`
14287$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014288
14289
John Criswell47fdd832003-07-14 16:52:07 +000014290
14291lt_prog_compiler_no_builtin_flag=
14292
14293if test "$GCC" = yes; then
14294 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14295
Reid Spencer2706f8c2004-09-19 23:53:36 +000014296
Reid Spencera773bd52006-08-04 18:18:08 +000014297{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14298echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014299if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14301else
14302 lt_cv_prog_compiler_rtti_exceptions=no
14303 ac_outfile=conftest.$ac_objext
14304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14305 lt_compiler_flag="-fno-rtti -fno-exceptions"
14306 # Insert the option either (1) after the last *FLAGS variable, or
14307 # (2) before a word containing "conftest.", or (3) at the end.
14308 # Note that $ac_compile itself does not contain backslashes and begins
14309 # with a dollar sign (not a hyphen), so the echo should work correctly.
14310 # The option is referenced via a variable to avoid confusing sed.
14311 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14314 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000014315 (eval echo "\"\$as_me:14315: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014316 (eval "$lt_compile" 2>conftest.err)
14317 ac_status=$?
14318 cat conftest.err >&5
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000014319 echo "$as_me:14319: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014320 if (exit $ac_status) && test -s "$ac_outfile"; then
14321 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014322 # So say no if there are warnings other than the usual output.
14323 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014326 lt_cv_prog_compiler_rtti_exceptions=yes
14327 fi
14328 fi
14329 $rm conftest*
14330
14331fi
Reid Spencera773bd52006-08-04 18:18:08 +000014332{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14333echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014334
14335if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14336 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14337else
14338 :
14339fi
14340
14341fi
14342
14343lt_prog_compiler_wl=
14344lt_prog_compiler_pic=
14345lt_prog_compiler_static=
14346
Reid Spencera773bd52006-08-04 18:18:08 +000014347{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14348echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014349
14350 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014351 lt_prog_compiler_wl='-Wl,'
14352 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014353
14354 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014355 aix*)
14356 # All AIX code is PIC.
14357 if test "$host_cpu" = ia64; then
14358 # AIX 5 now supports IA64 processor
14359 lt_prog_compiler_static='-Bstatic'
14360 fi
John Criswell7a73b802003-06-30 21:59:07 +000014361 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014362
John Criswell7a73b802003-06-30 21:59:07 +000014363 amigaos*)
14364 # FIXME: we need at least 68020 code to build shared libraries, but
14365 # adding the `-m68020' flag to GCC prevents building anything better,
14366 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014367 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014368 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014369
14370 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014371 # PIC is the default for these OSes.
14372 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014373
14374 mingw* | pw32* | os2*)
14375 # This hack is so that the source file can tell whether it is being
14376 # built for inclusion in a dll (and should export symbols for example).
14377 lt_prog_compiler_pic='-DDLL_EXPORT'
14378 ;;
14379
John Criswell7a73b802003-06-30 21:59:07 +000014380 darwin* | rhapsody*)
14381 # PIC is the default on this platform
14382 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014383 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014384 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014385
Reid Spencera773bd52006-08-04 18:18:08 +000014386 interix3*)
14387 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14388 # Instead, we relocate shared libraries at runtime.
14389 ;;
14390
John Criswell47fdd832003-07-14 16:52:07 +000014391 msdosdjgpp*)
14392 # Just because we use GCC doesn't mean we suddenly get shared libraries
14393 # on systems that don't support them.
14394 lt_prog_compiler_can_build_shared=no
14395 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014396 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014397
John Criswell7a73b802003-06-30 21:59:07 +000014398 sysv4*MP*)
14399 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014400 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014401 fi
14402 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014403
14404 hpux*)
14405 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14406 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014407 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014408 hppa*64*|ia64*)
14409 # +Z the default
14410 ;;
14411 *)
14412 lt_prog_compiler_pic='-fPIC'
14413 ;;
14414 esac
14415 ;;
14416
John Criswell7a73b802003-06-30 21:59:07 +000014417 *)
John Criswell47fdd832003-07-14 16:52:07 +000014418 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014419 ;;
14420 esac
14421 else
John Criswell47fdd832003-07-14 16:52:07 +000014422 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014423 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014424 aix*)
14425 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014426 if test "$host_cpu" = ia64; then
14427 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014428 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014429 else
John Criswell47fdd832003-07-14 16:52:07 +000014430 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014431 fi
14432 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014433 darwin*)
14434 # PIC is the default on this platform
14435 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014436 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014437 xlc*)
14438 lt_prog_compiler_pic='-qnocommon'
14439 lt_prog_compiler_wl='-Wl,'
14440 ;;
14441 esac
14442 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014443
John Criswell47fdd832003-07-14 16:52:07 +000014444 mingw* | pw32* | os2*)
14445 # This hack is so that the source file can tell whether it is being
14446 # built for inclusion in a dll (and should export symbols for example).
14447 lt_prog_compiler_pic='-DDLL_EXPORT'
14448 ;;
14449
John Criswell7a73b802003-06-30 21:59:07 +000014450 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014451 lt_prog_compiler_wl='-Wl,'
14452 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14453 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014454 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014455 hppa*64*|ia64*)
14456 # +Z the default
14457 ;;
14458 *)
14459 lt_prog_compiler_pic='+Z'
14460 ;;
14461 esac
14462 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14463 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014464 ;;
14465
John Criswell47fdd832003-07-14 16:52:07 +000014466 irix5* | irix6* | nonstopux*)
14467 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014468 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014469 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014470 ;;
14471
14472 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014473 lt_prog_compiler_pic='-KPIC'
14474 lt_prog_compiler_static='-Bstatic'
14475 ;;
14476
14477 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014478 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014479 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014480 lt_prog_compiler_wl='-Wl,'
14481 lt_prog_compiler_pic='-KPIC'
14482 lt_prog_compiler_static='-static'
14483 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014484 pgcc* | pgf77* | pgf90* | pgf95*)
14485 # Portland Group compilers (*not* the Pentium gcc compiler,
14486 # which looks to be a dead project)
14487 lt_prog_compiler_wl='-Wl,'
14488 lt_prog_compiler_pic='-fpic'
14489 lt_prog_compiler_static='-Bstatic'
14490 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014491 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014492 lt_prog_compiler_wl='-Wl,'
14493 # All Alpha code is PIC.
14494 lt_prog_compiler_static='-non_shared'
14495 ;;
14496 esac
John Criswell7a73b802003-06-30 21:59:07 +000014497 ;;
14498
14499 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014500 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014501 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014502 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014503 ;;
14504
John Criswell7a73b802003-06-30 21:59:07 +000014505 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014506 lt_prog_compiler_pic='-KPIC'
14507 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014508 case $cc_basename in
14509 f77* | f90* | f95*)
14510 lt_prog_compiler_wl='-Qoption ld ';;
14511 *)
14512 lt_prog_compiler_wl='-Wl,';;
14513 esac
John Criswell7a73b802003-06-30 21:59:07 +000014514 ;;
14515
14516 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014517 lt_prog_compiler_wl='-Qoption ld '
14518 lt_prog_compiler_pic='-PIC'
14519 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014520 ;;
14521
Reid Spencera773bd52006-08-04 18:18:08 +000014522 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014523 lt_prog_compiler_wl='-Wl,'
14524 lt_prog_compiler_pic='-KPIC'
14525 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014526 ;;
14527
14528 sysv4*MP*)
14529 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014530 lt_prog_compiler_pic='-Kconform_pic'
14531 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014532 fi
14533 ;;
14534
Reid Spencera773bd52006-08-04 18:18:08 +000014535 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14536 lt_prog_compiler_wl='-Wl,'
14537 lt_prog_compiler_pic='-KPIC'
14538 lt_prog_compiler_static='-Bstatic'
14539 ;;
14540
14541 unicos*)
14542 lt_prog_compiler_wl='-Wl,'
14543 lt_prog_compiler_can_build_shared=no
14544 ;;
14545
John Criswell47fdd832003-07-14 16:52:07 +000014546 uts4*)
14547 lt_prog_compiler_pic='-pic'
14548 lt_prog_compiler_static='-Bstatic'
14549 ;;
14550
John Criswell7a73b802003-06-30 21:59:07 +000014551 *)
John Criswell47fdd832003-07-14 16:52:07 +000014552 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014553 ;;
14554 esac
14555 fi
14556
Reid Spencera773bd52006-08-04 18:18:08 +000014557{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14558echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014559
John Criswell47fdd832003-07-14 16:52:07 +000014560#
14561# Check to make sure the PIC flag actually works.
14562#
14563if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014564
Reid Spencera773bd52006-08-04 18:18:08 +000014565{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14566echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014567if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569else
John Criswell47fdd832003-07-14 16:52:07 +000014570 lt_prog_compiler_pic_works=no
14571 ac_outfile=conftest.$ac_objext
14572 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14573 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14574 # Insert the option either (1) after the last *FLAGS variable, or
14575 # (2) before a word containing "conftest.", or (3) at the end.
14576 # Note that $ac_compile itself does not contain backslashes and begins
14577 # with a dollar sign (not a hyphen), so the echo should work correctly.
14578 # The option is referenced via a variable to avoid confusing sed.
14579 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14582 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000014583 (eval echo "\"\$as_me:14583: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014584 (eval "$lt_compile" 2>conftest.err)
14585 ac_status=$?
14586 cat conftest.err >&5
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000014587 echo "$as_me:14587: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014588 if (exit $ac_status) && test -s "$ac_outfile"; then
14589 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014590 # So say no if there are warnings other than the usual output.
14591 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014594 lt_prog_compiler_pic_works=yes
14595 fi
14596 fi
14597 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014598
John Criswell47fdd832003-07-14 16:52:07 +000014599fi
Reid Spencera773bd52006-08-04 18:18:08 +000014600{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14601echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014602
John Criswell47fdd832003-07-14 16:52:07 +000014603if test x"$lt_prog_compiler_pic_works" = xyes; then
14604 case $lt_prog_compiler_pic in
14605 "" | " "*) ;;
14606 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14607 esac
John Criswell7a73b802003-06-30 21:59:07 +000014608else
John Criswell47fdd832003-07-14 16:52:07 +000014609 lt_prog_compiler_pic=
14610 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014611fi
14612
John Criswell7a73b802003-06-30 21:59:07 +000014613fi
Reid Spencera773bd52006-08-04 18:18:08 +000014614case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014615 # For platforms which do not support PIC, -DPIC is meaningless:
14616 *djgpp*)
14617 lt_prog_compiler_pic=
14618 ;;
14619 *)
14620 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14621 ;;
14622esac
John Criswell7a73b802003-06-30 21:59:07 +000014623
Reid Spencera773bd52006-08-04 18:18:08 +000014624#
14625# Check to make sure the static flag actually works.
14626#
14627wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14628{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14629echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14630if test "${lt_prog_compiler_static_works+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632else
14633 lt_prog_compiler_static_works=no
14634 save_LDFLAGS="$LDFLAGS"
14635 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14636 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14637 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14638 # The linker can only warn and ignore the option if not recognized
14639 # So say no if there are warnings
14640 if test -s conftest.err; then
14641 # Append any errors to the config.log.
14642 cat conftest.err 1>&5
14643 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14645 if diff conftest.exp conftest.er2 >/dev/null; then
14646 lt_prog_compiler_static_works=yes
14647 fi
14648 else
14649 lt_prog_compiler_static_works=yes
14650 fi
14651 fi
14652 $rm conftest*
14653 LDFLAGS="$save_LDFLAGS"
14654
14655fi
14656{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14657echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14658
14659if test x"$lt_prog_compiler_static_works" = xyes; then
14660 :
14661else
14662 lt_prog_compiler_static=
14663fi
14664
14665
14666{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14667echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014668if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014669 echo $ECHO_N "(cached) $ECHO_C" >&6
14670else
John Criswell47fdd832003-07-14 16:52:07 +000014671 lt_cv_prog_compiler_c_o=no
14672 $rm -r conftest 2>/dev/null
14673 mkdir conftest
14674 cd conftest
14675 mkdir out
14676 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014677
John Criswell47fdd832003-07-14 16:52:07 +000014678 lt_compiler_flag="-o out/conftest2.$ac_objext"
14679 # Insert the option either (1) after the last *FLAGS variable, or
14680 # (2) before a word containing "conftest.", or (3) at the end.
14681 # Note that $ac_compile itself does not contain backslashes and begins
14682 # with a dollar sign (not a hyphen), so the echo should work correctly.
14683 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14686 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000014687 (eval echo "\"\$as_me:14687: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014688 (eval "$lt_compile" 2>out/conftest.err)
14689 ac_status=$?
14690 cat out/conftest.err >&5
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000014691 echo "$as_me:14691: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14693 then
14694 # The compiler can only warn and ignore the option if not recognized
14695 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014696 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014699 lt_cv_prog_compiler_c_o=yes
14700 fi
14701 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014702 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014703 $rm conftest*
14704 # SGI C++ compiler will create directory out/ii_files/ for
14705 # template instantiation
14706 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14707 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014708 cd ..
14709 rmdir conftest
14710 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014711
14712fi
Reid Spencera773bd52006-08-04 18:18:08 +000014713{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14714echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014715
John Criswell7a73b802003-06-30 21:59:07 +000014716
John Criswell7a73b802003-06-30 21:59:07 +000014717hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014718if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014719 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014720 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14721echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014722 hard_links=yes
14723 $rm conftest*
14724 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14725 touch conftest.a
14726 ln conftest.a conftest.b 2>&5 || hard_links=no
14727 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014728 { echo "$as_me:$LINENO: result: $hard_links" >&5
14729echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014730 if test "$hard_links" = no; then
14731 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14732echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14733 need_locks=warn
14734 fi
14735else
14736 need_locks=no
14737fi
John Criswell7a73b802003-06-30 21:59:07 +000014738
Reid Spencera773bd52006-08-04 18:18:08 +000014739{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14740echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014741
14742 runpath_var=
14743 allow_undefined_flag=
14744 enable_shared_with_static_runtimes=no
14745 archive_cmds=
14746 archive_expsym_cmds=
14747 old_archive_From_new_cmds=
14748 old_archive_from_expsyms_cmds=
14749 export_dynamic_flag_spec=
14750 whole_archive_flag_spec=
14751 thread_safe_flag_spec=
14752 hardcode_libdir_flag_spec=
14753 hardcode_libdir_flag_spec_ld=
14754 hardcode_libdir_separator=
14755 hardcode_direct=no
14756 hardcode_minus_L=no
14757 hardcode_shlibpath_var=unsupported
14758 link_all_deplibs=unknown
14759 hardcode_automatic=no
14760 module_cmds=
14761 module_expsym_cmds=
14762 always_export_symbols=no
14763 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14764 # include_expsyms should be a list of space-separated symbols to be *always*
14765 # included in the symbol list
14766 include_expsyms=
14767 # exclude_expsyms can be an extended regexp of symbols to exclude
14768 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14769 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14770 # as well as any symbol that contains `d'.
14771 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14772 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14773 # platforms (ab)use it in PIC code, but their linkers get confused if
14774 # the symbol is explicitly referenced. Since portable code cannot
14775 # rely on this symbol name, it's probably fine to never include it in
14776 # preloaded symbol tables.
14777 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014778 # Just being paranoid about ensuring that cc_basename is set.
14779 for cc_temp in $compiler""; do
14780 case $cc_temp in
14781 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14782 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14783 \-*) ;;
14784 *) break;;
14785 esac
14786done
14787cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014788
14789 case $host_os in
14790 cygwin* | mingw* | pw32*)
14791 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14792 # When not using gcc, we currently assume that we are using
14793 # Microsoft Visual C++.
14794 if test "$GCC" != yes; then
14795 with_gnu_ld=no
14796 fi
14797 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014798 interix*)
14799 # we just hope/assume this is gcc and not c89 (= MSVC++)
14800 with_gnu_ld=yes
14801 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014802 openbsd*)
14803 with_gnu_ld=no
14804 ;;
14805 esac
14806
14807 ld_shlibs=yes
14808 if test "$with_gnu_ld" = yes; then
14809 # If archive_cmds runs LD, not CC, wlarc should be empty
14810 wlarc='${wl}'
14811
Reid Spencera773bd52006-08-04 18:18:08 +000014812 # Set some defaults for GNU ld with shared library support. These
14813 # are reset later if shared libraries are not supported. Putting them
14814 # here allows them to be overridden if necessary.
14815 runpath_var=LD_RUN_PATH
14816 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14817 export_dynamic_flag_spec='${wl}--export-dynamic'
14818 # ancient GNU ld didn't support --whole-archive et. al.
14819 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14820 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14821 else
14822 whole_archive_flag_spec=
14823 fi
14824 supports_anon_versioning=no
14825 case `$LD -v 2>/dev/null` in
14826 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14827 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14828 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14829 *\ 2.11.*) ;; # other 2.11 versions
14830 *) supports_anon_versioning=yes ;;
14831 esac
14832
John Criswell47fdd832003-07-14 16:52:07 +000014833 # See if GNU ld supports shared libraries.
14834 case $host_os in
14835 aix3* | aix4* | aix5*)
14836 # On AIX/PPC, the GNU linker is very broken
14837 if test "$host_cpu" != ia64; then
14838 ld_shlibs=no
14839 cat <<EOF 1>&2
14840
14841*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14842*** to be unable to reliably create shared libraries on AIX.
14843*** Therefore, libtool is disabling shared libraries support. If you
14844*** really care for shared libraries, you may want to modify your PATH
14845*** so that a non-GNU linker is found, and then restart.
14846
14847EOF
14848 fi
14849 ;;
14850
14851 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014852 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 +000014853 hardcode_libdir_flag_spec='-L$libdir'
14854 hardcode_minus_L=yes
14855
14856 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14857 # that the semantics of dynamic libraries on AmigaOS, at least up
14858 # to version 4, is to share data among multiple programs linked
14859 # with the same dynamic library. Since this doesn't match the
14860 # behavior of shared libraries on other platforms, we can't use
14861 # them.
14862 ld_shlibs=no
14863 ;;
14864
14865 beos*)
14866 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14867 allow_undefined_flag=unsupported
14868 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14869 # support --undefined. This deserves some investigation. FIXME
14870 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14871 else
14872 ld_shlibs=no
14873 fi
14874 ;;
14875
14876 cygwin* | mingw* | pw32*)
14877 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14878 # as there is no search path for DLLs.
14879 hardcode_libdir_flag_spec='-L$libdir'
14880 allow_undefined_flag=unsupported
14881 always_export_symbols=no
14882 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014883 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 +000014884
14885 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014886 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 +000014887 # If the export-symbols file already is a .def file (1st line
14888 # is EXPORTS), use it as is; otherwise, prepend...
14889 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14890 cp $export_symbols $output_objdir/$soname.def;
14891 else
14892 echo EXPORTS > $output_objdir/$soname.def;
14893 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014894 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014895 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14896 else
14897 ld_shlibs=no
14898 fi
14899 ;;
14900
14901 interix3*)
14902 hardcode_direct=no
14903 hardcode_shlibpath_var=no
14904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14905 export_dynamic_flag_spec='${wl}-E'
14906 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14907 # Instead, shared libraries are loaded at an image base (0x10000000 by
14908 # default) and relocated if they conflict, which is a slow very memory
14909 # consuming and fragmenting process. To avoid this, we pick a random,
14910 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14911 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14912 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14913 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'
14914 ;;
14915
14916 linux*)
14917 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14918 tmp_addflag=
14919 case $cc_basename,$host_cpu in
14920 pgcc*) # Portland Group C compiler
14921 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'
14922 tmp_addflag=' $pic_flag'
14923 ;;
14924 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14925 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'
14926 tmp_addflag=' $pic_flag -Mnomain' ;;
14927 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14928 tmp_addflag=' -i_dynamic' ;;
14929 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14930 tmp_addflag=' -i_dynamic -nofor_main' ;;
14931 ifc* | ifort*) # Intel Fortran compiler
14932 tmp_addflag=' -nofor_main' ;;
14933 esac
14934 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14935
14936 if test $supports_anon_versioning = yes; then
14937 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14938 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14939 $echo "local: *; };" >> $output_objdir/$libname.ver~
14940 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14941 fi
John Criswell47fdd832003-07-14 16:52:07 +000014942 else
14943 ld_shlibs=no
14944 fi
14945 ;;
14946
14947 netbsd*)
14948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14949 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14950 wlarc=
14951 else
14952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14953 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14954 fi
14955 ;;
14956
Reid Spencera773bd52006-08-04 18:18:08 +000014957 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014958 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14959 ld_shlibs=no
14960 cat <<EOF 1>&2
14961
14962*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14963*** create shared libraries on Solaris systems. Therefore, libtool
14964*** is disabling shared libraries support. We urge you to upgrade GNU
14965*** binutils to release 2.9.1 or newer. Another option is to modify
14966*** your PATH or compiler configuration so that the native linker is
14967*** used, and then restart.
14968
14969EOF
14970 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14971 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14972 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14973 else
14974 ld_shlibs=no
14975 fi
14976 ;;
14977
Reid Spencera773bd52006-08-04 18:18:08 +000014978 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14979 case `$LD -v 2>&1` in
14980 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14981 ld_shlibs=no
14982 cat <<_LT_EOF 1>&2
14983
14984*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14985*** reliably create shared libraries on SCO systems. Therefore, libtool
14986*** is disabling shared libraries support. We urge you to upgrade GNU
14987*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14988*** your PATH or compiler configuration so that the native linker is
14989*** used, and then restart.
14990
14991_LT_EOF
14992 ;;
14993 *)
14994 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14995 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14996 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14997 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14998 else
14999 ld_shlibs=no
15000 fi
15001 ;;
15002 esac
15003 ;;
15004
John Criswell47fdd832003-07-14 16:52:07 +000015005 sunos4*)
15006 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15007 wlarc=
15008 hardcode_direct=yes
15009 hardcode_shlibpath_var=no
15010 ;;
15011
15012 *)
15013 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15015 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15016 else
15017 ld_shlibs=no
15018 fi
15019 ;;
15020 esac
15021
Reid Spencera773bd52006-08-04 18:18:08 +000015022 if test "$ld_shlibs" = no; then
15023 runpath_var=
15024 hardcode_libdir_flag_spec=
15025 export_dynamic_flag_spec=
15026 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015027 fi
15028 else
15029 # PORTME fill in a description of your system's linker (not GNU ld)
15030 case $host_os in
15031 aix3*)
15032 allow_undefined_flag=unsupported
15033 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015034 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 +000015035 # Note: this linker hardcodes the directories in LIBPATH if there
15036 # are no directories specified by -L.
15037 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015038 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015039 # Neither direct hardcoding nor static linking is supported with a
15040 # broken collect2.
15041 hardcode_direct=unsupported
15042 fi
15043 ;;
15044
15045 aix4* | aix5*)
15046 if test "$host_cpu" = ia64; then
15047 # On IA64, the linker does run time linking by default, so we don't
15048 # have to do anything special.
15049 aix_use_runtimelinking=no
15050 exp_sym_flag='-Bexport'
15051 no_entry_flag=""
15052 else
15053 # If we're using GNU nm, then we don't want the "-C" option.
15054 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15055 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15056 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'
15057 else
15058 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'
15059 fi
15060 aix_use_runtimelinking=no
15061
15062 # Test if we are trying to use run time linking or normal
15063 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15064 # need to do runtime linking.
15065 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15066 for ld_flag in $LDFLAGS; do
15067 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15068 aix_use_runtimelinking=yes
15069 break
15070 fi
15071 done
Reid Spencera773bd52006-08-04 18:18:08 +000015072 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015073 esac
15074
15075 exp_sym_flag='-bexport'
15076 no_entry_flag='-bnoentry'
15077 fi
15078
15079 # When large executables or shared objects are built, AIX ld can
15080 # have problems creating the table of contents. If linking a library
15081 # or program results in "error TOC overflow" add -mminimal-toc to
15082 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15083 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15084
15085 archive_cmds=''
15086 hardcode_direct=yes
15087 hardcode_libdir_separator=':'
15088 link_all_deplibs=yes
15089
15090 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015091 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015092 # We only want to do this on AIX 4.2 and lower, the check
15093 # below for broken collect2 doesn't work under 4.3+
15094 collect2name=`${CC} -print-prog-name=collect2`
15095 if test -f "$collect2name" && \
15096 strings "$collect2name" | grep resolve_lib_name >/dev/null
15097 then
15098 # We have reworked collect2
15099 hardcode_direct=yes
15100 else
15101 # We have old collect2
15102 hardcode_direct=unsupported
15103 # It fails to find uninstalled libraries when the uninstalled
15104 # path is not listed in the libpath. Setting hardcode_minus_L
15105 # to unsupported forces relinking
15106 hardcode_minus_L=yes
15107 hardcode_libdir_flag_spec='-L$libdir'
15108 hardcode_libdir_separator=
15109 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015110 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015111 esac
15112 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015113 if test "$aix_use_runtimelinking" = yes; then
15114 shared_flag="$shared_flag "'${wl}-G'
15115 fi
John Criswell47fdd832003-07-14 16:52:07 +000015116 else
15117 # not using gcc
15118 if test "$host_cpu" = ia64; then
15119 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15120 # chokes on -Wl,-G. The following line is correct:
15121 shared_flag='-G'
15122 else
Reid Spencera773bd52006-08-04 18:18:08 +000015123 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015124 shared_flag='${wl}-G'
15125 else
15126 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015127 fi
John Criswell47fdd832003-07-14 16:52:07 +000015128 fi
15129 fi
15130
15131 # It seems that -bexpall does not export symbols beginning with
15132 # underscore (_), so it is better to generate a list of symbols to export.
15133 always_export_symbols=yes
15134 if test "$aix_use_runtimelinking" = yes; then
15135 # Warning - without using the other runtime loading flags (-brtl),
15136 # -berok will link without error, but may produce a broken library.
15137 allow_undefined_flag='-berok'
15138 # Determine the default libpath from the value encoded in an empty executable.
15139 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015140/* confdefs.h. */
15141_ACEOF
15142cat confdefs.h >>conftest.$ac_ext
15143cat >>conftest.$ac_ext <<_ACEOF
15144/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015145
John Criswell7a73b802003-06-30 21:59:07 +000015146int
15147main ()
15148{
John Criswell47fdd832003-07-14 16:52:07 +000015149
John Criswell7a73b802003-06-30 21:59:07 +000015150 ;
15151 return 0;
15152}
15153_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015154rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015155if { (ac_try="$ac_link"
15156case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15159esac
15160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015162 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015167 (exit $ac_status); } &&
15168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169 { (case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15172esac
15173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_try") 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest$ac_exeext'
15179 { (case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15182esac
15183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_try") 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015188
John Criswell47fdd832003-07-14 16:52:07 +000015189aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15190}'`
15191# Check for a 64-bit object if we didn't find anything.
15192if 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; }
15193}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015194else
15195 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015196sed 's/^/| /' conftest.$ac_ext >&5
15197
Reid Spencera773bd52006-08-04 18:18:08 +000015198
John Criswell7a73b802003-06-30 21:59:07 +000015199fi
Reid Spencera773bd52006-08-04 18:18:08 +000015200
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015201rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015202 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015203if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015204
John Criswell47fdd832003-07-14 16:52:07 +000015205 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015206 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 +000015207 else
15208 if test "$host_cpu" = ia64; then
15209 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15210 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015211 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 +000015212 else
15213 # Determine the default libpath from the value encoded in an empty executable.
15214 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015215/* confdefs.h. */
15216_ACEOF
15217cat confdefs.h >>conftest.$ac_ext
15218cat >>conftest.$ac_ext <<_ACEOF
15219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015220
John Criswell47fdd832003-07-14 16:52:07 +000015221int
15222main ()
15223{
John Criswell7a73b802003-06-30 21:59:07 +000015224
John Criswell47fdd832003-07-14 16:52:07 +000015225 ;
15226 return 0;
15227}
15228_ACEOF
15229rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015230if { (ac_try="$ac_link"
15231case "(($ac_try" in
15232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15233 *) ac_try_echo=$ac_try;;
15234esac
15235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15236 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015237 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015238 grep -v '^ *+' conftest.er1 >conftest.err
15239 rm -f conftest.er1
15240 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015242 (exit $ac_status); } &&
15243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15244 { (case "(($ac_try" in
15245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246 *) ac_try_echo=$ac_try;;
15247esac
15248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249 (eval "$ac_try") 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest$ac_exeext'
15254 { (case "(($ac_try" in
15255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15256 *) ac_try_echo=$ac_try;;
15257esac
15258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15259 (eval "$ac_try") 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015263
John Criswell47fdd832003-07-14 16:52:07 +000015264aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15265}'`
15266# Check for a 64-bit object if we didn't find anything.
15267if 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; }
15268}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015269else
John Criswell47fdd832003-07-14 16:52:07 +000015270 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015271sed 's/^/| /' conftest.$ac_ext >&5
15272
Reid Spencera773bd52006-08-04 18:18:08 +000015273
John Criswell47fdd832003-07-14 16:52:07 +000015274fi
Reid Spencera773bd52006-08-04 18:18:08 +000015275
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015276rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015277 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015278if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015279
John Criswell47fdd832003-07-14 16:52:07 +000015280 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15281 # Warning - without using the other run time loading flags,
15282 # -berok will link without error, but may produce a broken library.
15283 no_undefined_flag=' ${wl}-bernotok'
15284 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015285 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015286 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015287 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015288 # This is similar to how AIX traditionally builds its shared libraries.
15289 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 +000015290 fi
15291 fi
John Criswell7a73b802003-06-30 21:59:07 +000015292 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015293
15294 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015295 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 +000015296 hardcode_libdir_flag_spec='-L$libdir'
15297 hardcode_minus_L=yes
15298 # see comment about different semantics on the GNU ld section
15299 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015300 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015301
Reid Spencer2706f8c2004-09-19 23:53:36 +000015302 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015303 export_dynamic_flag_spec=-rdynamic
15304 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015305
John Criswell47fdd832003-07-14 16:52:07 +000015306 cygwin* | mingw* | pw32*)
15307 # When not using gcc, we currently assume that we are using
15308 # Microsoft Visual C++.
15309 # hardcode_libdir_flag_spec is actually meaningless, as there is
15310 # no search path for DLLs.
15311 hardcode_libdir_flag_spec=' '
15312 allow_undefined_flag=unsupported
15313 # Tell ltmain to make .lib files, not .a files.
15314 libext=lib
15315 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015316 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015317 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015318 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015319 # The linker will automatically build a .lib file if we build a DLL.
15320 old_archive_From_new_cmds='true'
15321 # FIXME: Should let the user specify the lib program.
15322 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15323 fix_srcfile_path='`cygpath -w "$srcfile"`'
15324 enable_shared_with_static_runtimes=yes
15325 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015326
John Criswell47fdd832003-07-14 16:52:07 +000015327 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015328 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015329 rhapsody* | darwin1.[012])
15330 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15331 ;;
15332 *) # Darwin 1.3 on
15333 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15334 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15335 else
15336 case ${MACOSX_DEPLOYMENT_TARGET} in
15337 10.[012])
15338 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15339 ;;
15340 10.*)
15341 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15342 ;;
15343 esac
15344 fi
15345 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015346 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015347 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015348 hardcode_direct=no
15349 hardcode_automatic=yes
15350 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015351 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015352 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015353 if test "$GCC" = yes ; then
15354 output_verbose_link_cmd='echo'
15355 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15356 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015357 # 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 +000015358 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}'
15359 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 +000015360 else
Reid Spencera773bd52006-08-04 18:18:08 +000015361 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015362 xlc*)
15363 output_verbose_link_cmd='echo'
15364 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15365 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015366 # 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 +000015367 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}'
15368 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 +000015369 ;;
15370 *)
15371 ld_shlibs=no
15372 ;;
15373 esac
John Criswell7a73b802003-06-30 21:59:07 +000015374 fi
John Criswell47fdd832003-07-14 16:52:07 +000015375 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015376
John Criswell47fdd832003-07-14 16:52:07 +000015377 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015379 hardcode_libdir_flag_spec='-L$libdir'
15380 hardcode_shlibpath_var=no
15381 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015382
John Criswell47fdd832003-07-14 16:52:07 +000015383 freebsd1*)
15384 ld_shlibs=no
15385 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015386
John Criswell47fdd832003-07-14 16:52:07 +000015387 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15388 # support. Future versions do this automatically, but an explicit c++rt0.o
15389 # does not break anything, and helps significantly (at the cost of a little
15390 # extra space).
15391 freebsd2.2*)
15392 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15393 hardcode_libdir_flag_spec='-R$libdir'
15394 hardcode_direct=yes
15395 hardcode_shlibpath_var=no
15396 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015397
John Criswell47fdd832003-07-14 16:52:07 +000015398 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15399 freebsd2*)
15400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15401 hardcode_direct=yes
15402 hardcode_minus_L=yes
15403 hardcode_shlibpath_var=no
15404 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015405
John Criswell47fdd832003-07-14 16:52:07 +000015406 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015407 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015408 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15409 hardcode_libdir_flag_spec='-R$libdir'
15410 hardcode_direct=yes
15411 hardcode_shlibpath_var=no
15412 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015413
John Criswell47fdd832003-07-14 16:52:07 +000015414 hpux9*)
15415 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015416 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 +000015417 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015418 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 +000015419 fi
15420 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15421 hardcode_libdir_separator=:
15422 hardcode_direct=yes
15423
15424 # hardcode_minus_L: Not really in the search PATH,
15425 # but as the default location of the library.
15426 hardcode_minus_L=yes
15427 export_dynamic_flag_spec='${wl}-E'
15428 ;;
15429
Reid Spencera773bd52006-08-04 18:18:08 +000015430 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015431 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015432 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15433 else
15434 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15435 fi
15436 if test "$with_gnu_ld" = no; then
15437 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15438 hardcode_libdir_separator=:
15439
15440 hardcode_direct=yes
15441 export_dynamic_flag_spec='${wl}-E'
15442
15443 # hardcode_minus_L: Not really in the search PATH,
15444 # but as the default location of the library.
15445 hardcode_minus_L=yes
15446 fi
15447 ;;
15448
15449 hpux11*)
15450 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15451 case $host_cpu in
15452 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015453 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15454 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015455 ia64*)
15456 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15457 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015458 *)
15459 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15460 ;;
15461 esac
15462 else
Reid Spencera773bd52006-08-04 18:18:08 +000015463 case $host_cpu in
15464 hppa*64*)
15465 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15466 ;;
15467 ia64*)
15468 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015469 ;;
15470 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015471 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 +000015472 ;;
15473 esac
15474 fi
15475 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015476 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15477 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015478
Reid Spencera773bd52006-08-04 18:18:08 +000015479 case $host_cpu in
15480 hppa*64*|ia64*)
15481 hardcode_libdir_flag_spec_ld='+b $libdir'
15482 hardcode_direct=no
15483 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015484 ;;
15485 *)
John Criswell47fdd832003-07-14 16:52:07 +000015486 hardcode_direct=yes
15487 export_dynamic_flag_spec='${wl}-E'
15488
15489 # hardcode_minus_L: Not really in the search PATH,
15490 # but as the default location of the library.
15491 hardcode_minus_L=yes
15492 ;;
15493 esac
15494 fi
15495 ;;
15496
15497 irix5* | irix6* | nonstopux*)
15498 if test "$GCC" = yes; then
15499 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'
15500 else
15501 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'
15502 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15503 fi
15504 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15505 hardcode_libdir_separator=:
15506 link_all_deplibs=yes
15507 ;;
15508
15509 netbsd*)
15510 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15512 else
15513 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15514 fi
15515 hardcode_libdir_flag_spec='-R$libdir'
15516 hardcode_direct=yes
15517 hardcode_shlibpath_var=no
15518 ;;
15519
15520 newsos6)
15521 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15522 hardcode_direct=yes
15523 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15524 hardcode_libdir_separator=:
15525 hardcode_shlibpath_var=no
15526 ;;
15527
15528 openbsd*)
15529 hardcode_direct=yes
15530 hardcode_shlibpath_var=no
15531 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15532 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015533 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 +000015534 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15535 export_dynamic_flag_spec='${wl}-E'
15536 else
15537 case $host_os in
15538 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15540 hardcode_libdir_flag_spec='-R$libdir'
15541 ;;
15542 *)
15543 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15544 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15545 ;;
15546 esac
15547 fi
15548 ;;
15549
15550 os2*)
15551 hardcode_libdir_flag_spec='-L$libdir'
15552 hardcode_minus_L=yes
15553 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015554 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 +000015555 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15556 ;;
15557
15558 osf3*)
15559 if test "$GCC" = yes; then
15560 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15561 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'
15562 else
15563 allow_undefined_flag=' -expect_unresolved \*'
15564 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'
15565 fi
15566 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15567 hardcode_libdir_separator=:
15568 ;;
15569
15570 osf4* | osf5*) # as osf3* with the addition of -msym flag
15571 if test "$GCC" = yes; then
15572 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15573 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'
15574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15575 else
15576 allow_undefined_flag=' -expect_unresolved \*'
15577 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 +000015578 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 +000015579 $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 +000015580
John Criswell47fdd832003-07-14 16:52:07 +000015581 # Both c and cxx compiler support -rpath directly
15582 hardcode_libdir_flag_spec='-rpath $libdir'
15583 fi
15584 hardcode_libdir_separator=:
15585 ;;
15586
John Criswell47fdd832003-07-14 16:52:07 +000015587 solaris*)
15588 no_undefined_flag=' -z text'
15589 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015590 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015591 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015592 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15593 $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 +000015594 else
Reid Spencera773bd52006-08-04 18:18:08 +000015595 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015596 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015597 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15598 $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 +000015599 fi
15600 hardcode_libdir_flag_spec='-R$libdir'
15601 hardcode_shlibpath_var=no
15602 case $host_os in
15603 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015604 *)
15605 # The compiler driver will combine linker options so we
15606 # cannot just pass the convience library names through
15607 # without $wl, iff we do not link with $LD.
15608 # Luckily, gcc supports the same syntax we need for Sun Studio.
15609 # Supported since Solaris 2.6 (maybe 2.5.1?)
15610 case $wlarc in
15611 '')
15612 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15613 *)
15614 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' ;;
15615 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015616 esac
15617 link_all_deplibs=yes
15618 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015619
John Criswell47fdd832003-07-14 16:52:07 +000015620 sunos4*)
15621 if test "x$host_vendor" = xsequent; then
15622 # Use $CC to link under sequent, because it throws in some extra .o
15623 # files that make .init and .fini sections work.
15624 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15625 else
15626 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15627 fi
15628 hardcode_libdir_flag_spec='-L$libdir'
15629 hardcode_direct=yes
15630 hardcode_minus_L=yes
15631 hardcode_shlibpath_var=no
15632 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015633
John Criswell47fdd832003-07-14 16:52:07 +000015634 sysv4)
15635 case $host_vendor in
15636 sni)
15637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15638 hardcode_direct=yes # is this really true???
15639 ;;
15640 siemens)
15641 ## LD is ld it makes a PLAMLIB
15642 ## CC just makes a GrossModule.
15643 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15644 reload_cmds='$CC -r -o $output$reload_objs'
15645 hardcode_direct=no
15646 ;;
15647 motorola)
15648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15650 ;;
15651 esac
15652 runpath_var='LD_RUN_PATH'
15653 hardcode_shlibpath_var=no
15654 ;;
15655
15656 sysv4.3*)
15657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15658 hardcode_shlibpath_var=no
15659 export_dynamic_flag_spec='-Bexport'
15660 ;;
15661
15662 sysv4*MP*)
15663 if test -d /usr/nec; then
15664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15665 hardcode_shlibpath_var=no
15666 runpath_var=LD_RUN_PATH
15667 hardcode_runpath_var=yes
15668 ld_shlibs=yes
15669 fi
15670 ;;
15671
Reid Spencera773bd52006-08-04 18:18:08 +000015672 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15673 no_undefined_flag='${wl}-z,text'
15674 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015675 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015676 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015677
John Criswell47fdd832003-07-14 16:52:07 +000015678 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015679 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15680 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 +000015681 else
Reid Spencera773bd52006-08-04 18:18:08 +000015682 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15683 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 +000015684 fi
John Criswell47fdd832003-07-14 16:52:07 +000015685 ;;
15686
Reid Spencera773bd52006-08-04 18:18:08 +000015687 sysv5* | sco3.2v5* | sco5v6*)
15688 # Note: We can NOT use -z defs as we might desire, because we do not
15689 # link with -lc, and that would cause any symbols used from libc to
15690 # always be unresolved, which means just about no library would
15691 # ever link correctly. If we're not using GNU ld we use -z text
15692 # though, which does catch some bad symbols but isn't as heavy-handed
15693 # as -z defs.
15694 no_undefined_flag='${wl}-z,text'
15695 allow_undefined_flag='${wl}-z,nodefs'
15696 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015697 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015698 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15699 hardcode_libdir_separator=':'
15700 link_all_deplibs=yes
15701 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015702 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015703
15704 if test "$GCC" = yes; then
15705 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15706 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15707 else
15708 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15709 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15710 fi
John Criswell47fdd832003-07-14 16:52:07 +000015711 ;;
15712
15713 uts4*)
15714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15715 hardcode_libdir_flag_spec='-L$libdir'
15716 hardcode_shlibpath_var=no
15717 ;;
15718
15719 *)
15720 ld_shlibs=no
15721 ;;
15722 esac
15723 fi
15724
Reid Spencera773bd52006-08-04 18:18:08 +000015725{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15726echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015727test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015728
John Criswell47fdd832003-07-14 16:52:07 +000015729#
15730# Do we need to explicitly link libc?
15731#
15732case "x$archive_cmds_need_lc" in
15733x|xyes)
15734 # Assume -lc should be added
15735 archive_cmds_need_lc=yes
15736
15737 if test "$enable_shared" = yes && test "$GCC" = yes; then
15738 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015739 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015740 # FIXME: we may have to deal with multi-command sequences.
15741 ;;
15742 '$CC '*)
15743 # Test whether the compiler implicitly links with -lc since on some
15744 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15745 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015746 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15747echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015748 $rm conftest*
15749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15750
15751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15752 (eval $ac_compile) 2>&5
15753 ac_status=$?
15754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755 (exit $ac_status); } 2>conftest.err; then
15756 soname=conftest
15757 lib=conftest
15758 libobjs=conftest.$ac_objext
15759 deplibs=
15760 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015761 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015762 compiler_flags=-v
15763 linker_flags=-v
15764 verstring=
15765 output_objdir=.
15766 libname=conftest
15767 lt_save_allow_undefined_flag=$allow_undefined_flag
15768 allow_undefined_flag=
15769 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15770 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15771 ac_status=$?
15772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773 (exit $ac_status); }
15774 then
15775 archive_cmds_need_lc=no
15776 else
15777 archive_cmds_need_lc=yes
15778 fi
15779 allow_undefined_flag=$lt_save_allow_undefined_flag
15780 else
15781 cat conftest.err 1>&5
15782 fi
15783 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015784 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15785echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015786 ;;
15787 esac
15788 fi
15789 ;;
15790esac
15791
Reid Spencera773bd52006-08-04 18:18:08 +000015792{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15793echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015794library_names_spec=
15795libname_spec='lib$name'
15796soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015797shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015798postinstall_cmds=
15799postuninstall_cmds=
15800finish_cmds=
15801finish_eval=
15802shlibpath_var=
15803shlibpath_overrides_runpath=unknown
15804version_type=none
15805dynamic_linker="$host_os ld.so"
15806sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015807if test "$GCC" = yes; then
15808 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15809 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15810 # if the path contains ";" then we assume it to be the separator
15811 # otherwise default to the standard path separator (i.e. ":") - it is
15812 # assumed that no part of a normal pathname contains ";" but that should
15813 # okay in the real world where ";" in dirpaths is itself problematic.
15814 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15815 else
15816 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15817 fi
15818else
15819 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15820fi
15821need_lib_prefix=unknown
15822hardcode_into_libs=no
15823
15824# when you set need_version to no, make sure it does not cause -set_version
15825# flags to be left without arguments
15826need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015827
15828case $host_os in
15829aix3*)
15830 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015832 shlibpath_var=LIBPATH
15833
John Criswell47fdd832003-07-14 16:52:07 +000015834 # AIX 3 has no versioning support, so we append a major version to the name.
15835 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015836 ;;
15837
15838aix4* | aix5*)
15839 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015840 need_lib_prefix=no
15841 need_version=no
15842 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015843 if test "$host_cpu" = ia64; then
15844 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015845 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015846 shlibpath_var=LD_LIBRARY_PATH
15847 else
15848 # With GCC up to 2.95.x, collect2 would create an import file
15849 # for dependence libraries. The import file would start with
15850 # the line `#! .'. This would cause the generated library to
15851 # depend on `.', always an invalid library. This was fixed in
15852 # development snapshots of GCC prior to 3.0.
15853 case $host_os in
15854 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015855 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15856 echo ' yes '
15857 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15858 :
15859 else
15860 can_build_shared=no
15861 fi
15862 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015863 esac
John Criswell47fdd832003-07-14 16:52:07 +000015864 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15865 # soname into executable. Probably we can add versioning support to
15866 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015867 if test "$aix_use_runtimelinking" = yes; then
15868 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15869 # instead of lib<name>.a to let people know that these are not
15870 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015872 else
15873 # We preserve .a as extension for shared libraries through AIX4.2
15874 # and later when we are not doing run time linking.
15875 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015876 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015877 fi
15878 shlibpath_var=LIBPATH
15879 fi
15880 ;;
15881
15882amigaos*)
15883 library_names_spec='$libname.ixlibrary $libname.a'
15884 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015885 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 +000015886 ;;
15887
15888beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015889 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015890 dynamic_linker="$host_os ld.so"
15891 shlibpath_var=LIBRARY_PATH
15892 ;;
15893
Reid Spencer2706f8c2004-09-19 23:53:36 +000015894bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015895 version_type=linux
15896 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15900 shlibpath_var=LD_LIBRARY_PATH
15901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015903 # the default ld.so.conf also contains /usr/contrib/lib and
15904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15905 # libtool to hard-code these into programs
15906 ;;
15907
15908cygwin* | mingw* | pw32*)
15909 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015910 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015911 need_version=no
15912 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015913
John Criswell7a73b802003-06-30 21:59:07 +000015914 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015915 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015916 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015917 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015918 postinstall_cmds='base_file=`basename \${file}`~
15919 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15920 dldir=$destdir/`dirname \$dlpath`~
15921 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015922 $install_prog $dir/$dlname \$dldir/$dlname~
15923 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015924 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15925 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015926 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015927 shlibpath_overrides_runpath=yes
15928
15929 case $host_os in
15930 cygwin*)
15931 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15932 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 +000015933 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015934 ;;
15935 mingw*)
15936 # MinGW DLLs use traditional 'lib' prefix
15937 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15938 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15939 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15940 # It is most probably a Windows format PATH printed by
15941 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15942 # path with ; separators, and with drive letters. We can handle the
15943 # drive letters (cygwin fileutils understands them), so leave them,
15944 # especially as we might pass files found there to a mingw objdump,
15945 # which wouldn't understand a cygwinified path. Ahh.
15946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15947 else
15948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15949 fi
15950 ;;
15951 pw32*)
15952 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015953 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 +000015954 ;;
15955 esac
John Criswell7a73b802003-06-30 21:59:07 +000015956 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015957
John Criswell7a73b802003-06-30 21:59:07 +000015958 *)
John Criswell47fdd832003-07-14 16:52:07 +000015959 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015960 ;;
15961 esac
15962 dynamic_linker='Win32 ld.exe'
15963 # FIXME: first we should search . and the directory the executable is in
15964 shlibpath_var=PATH
15965 ;;
15966
15967darwin* | rhapsody*)
15968 dynamic_linker="$host_os dyld"
15969 version_type=darwin
15970 need_lib_prefix=no
15971 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015972 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015973 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015974 shlibpath_overrides_runpath=yes
15975 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000015976 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000015977 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015978 if test "$GCC" = yes; then
15979 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"`
15980 else
15981 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015982 fi
15983 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15984 ;;
15985
15986dgux*)
15987 version_type=linux
15988 need_lib_prefix=no
15989 need_version=no
15990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15991 soname_spec='${libname}${release}${shared_ext}$major'
15992 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015993 ;;
15994
15995freebsd1*)
15996 dynamic_linker=no
15997 ;;
15998
Reid Spencer2706f8c2004-09-19 23:53:36 +000015999kfreebsd*-gnu)
16000 version_type=linux
16001 need_lib_prefix=no
16002 need_version=no
16003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16004 soname_spec='${libname}${release}${shared_ext}$major'
16005 shlibpath_var=LD_LIBRARY_PATH
16006 shlibpath_overrides_runpath=no
16007 hardcode_into_libs=yes
16008 dynamic_linker='GNU ld.so'
16009 ;;
16010
Reid Spencera773bd52006-08-04 18:18:08 +000016011freebsd* | dragonfly*)
16012 # DragonFly does not have aout. When/if they implement a new
16013 # versioning mechanism, adjust this.
16014 if test -x /usr/bin/objformat; then
16015 objformat=`/usr/bin/objformat`
16016 else
16017 case $host_os in
16018 freebsd[123]*) objformat=aout ;;
16019 *) objformat=elf ;;
16020 esac
16021 fi
John Criswell7a73b802003-06-30 21:59:07 +000016022 version_type=freebsd-$objformat
16023 case $version_type in
16024 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016026 need_version=no
16027 need_lib_prefix=no
16028 ;;
16029 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016030 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016031 need_version=yes
16032 ;;
16033 esac
16034 shlibpath_var=LD_LIBRARY_PATH
16035 case $host_os in
16036 freebsd2*)
16037 shlibpath_overrides_runpath=yes
16038 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016039 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016040 shlibpath_overrides_runpath=yes
16041 hardcode_into_libs=yes
16042 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016043 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16044 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016045 shlibpath_overrides_runpath=no
16046 hardcode_into_libs=yes
16047 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016048 freebsd*) # from 4.6 on
16049 shlibpath_overrides_runpath=yes
16050 hardcode_into_libs=yes
16051 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016052 esac
16053 ;;
16054
16055gnu*)
16056 version_type=linux
16057 need_lib_prefix=no
16058 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16060 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016061 shlibpath_var=LD_LIBRARY_PATH
16062 hardcode_into_libs=yes
16063 ;;
16064
16065hpux9* | hpux10* | hpux11*)
16066 # Give a soname corresponding to the major version so that dld.sl refuses to
16067 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016068 version_type=sunos
16069 need_lib_prefix=no
16070 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016071 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016072 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016073 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016074 hardcode_into_libs=yes
16075 dynamic_linker="$host_os dld.so"
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 if test "X$HPUX_IA64_MODE" = X32; then
16081 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16082 else
16083 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16084 fi
16085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16086 ;;
16087 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016088 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016089 hardcode_into_libs=yes
16090 dynamic_linker="$host_os dld.sl"
16091 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16092 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16094 soname_spec='${libname}${release}${shared_ext}$major'
16095 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16096 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16097 ;;
16098 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016099 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016100 dynamic_linker="$host_os dld.sl"
16101 shlibpath_var=SHLIB_PATH
16102 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104 soname_spec='${libname}${release}${shared_ext}$major'
16105 ;;
16106 esac
John Criswell7a73b802003-06-30 21:59:07 +000016107 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16108 postinstall_cmds='chmod 555 $lib'
16109 ;;
16110
Reid Spencera773bd52006-08-04 18:18:08 +000016111interix3*)
16112 version_type=linux
16113 need_lib_prefix=no
16114 need_version=no
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16118 shlibpath_var=LD_LIBRARY_PATH
16119 shlibpath_overrides_runpath=no
16120 hardcode_into_libs=yes
16121 ;;
16122
John Criswell47fdd832003-07-14 16:52:07 +000016123irix5* | irix6* | nonstopux*)
16124 case $host_os in
16125 nonstopux*) version_type=nonstopux ;;
16126 *)
16127 if test "$lt_cv_prog_gnu_ld" = yes; then
16128 version_type=linux
16129 else
16130 version_type=irix
16131 fi ;;
16132 esac
John Criswell7a73b802003-06-30 21:59:07 +000016133 need_lib_prefix=no
16134 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016135 soname_spec='${libname}${release}${shared_ext}$major'
16136 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 +000016137 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016138 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016139 libsuff= shlibsuff=
16140 ;;
16141 *)
16142 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16144 libsuff= shlibsuff= libmagic=32-bit;;
16145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16146 libsuff=32 shlibsuff=N32 libmagic=N32;;
16147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16148 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016149 *) libsuff= shlibsuff= libmagic=never-match;;
16150 esac
16151 ;;
16152 esac
16153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16154 shlibpath_overrides_runpath=no
16155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016157 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016158 ;;
16159
16160# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016161linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016162 dynamic_linker=no
16163 ;;
16164
16165# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016166linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016167 version_type=linux
16168 need_lib_prefix=no
16169 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16171 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16173 shlibpath_var=LD_LIBRARY_PATH
16174 shlibpath_overrides_runpath=no
16175 # This implies no fast_install, which is unacceptable.
16176 # Some rework will be needed to allow for fast_install
16177 # before this can be enabled.
16178 hardcode_into_libs=yes
16179
Reid Spencer2706f8c2004-09-19 23:53:36 +000016180 # Append ld.so.conf contents to the search path
16181 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016182 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 +000016183 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16184 fi
16185
John Criswell7a73b802003-06-30 21:59:07 +000016186 # We used to test for /lib/ld.so.1 and disable shared libraries on
16187 # powerpc, because MkLinux only supported shared libraries with the
16188 # GNU dynamic linker. Since this was broken with cross compilers,
16189 # most powerpc-linux boxes support dynamic linking these days and
16190 # people can always --disable-shared, the test was removed, and we
16191 # assume the GNU/Linux dynamic linker is in use.
16192 dynamic_linker='GNU/Linux ld.so'
16193 ;;
16194
Reid Spencer2706f8c2004-09-19 23:53:36 +000016195knetbsd*-gnu)
16196 version_type=linux
16197 need_lib_prefix=no
16198 need_version=no
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16200 soname_spec='${libname}${release}${shared_ext}$major'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 shlibpath_overrides_runpath=no
16203 hardcode_into_libs=yes
16204 dynamic_linker='GNU ld.so'
16205 ;;
16206
John Criswell7a73b802003-06-30 21:59:07 +000016207netbsd*)
16208 version_type=sunos
16209 need_lib_prefix=no
16210 need_version=no
16211 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016213 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16214 dynamic_linker='NetBSD (a.out) ld.so'
16215 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016217 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016218 dynamic_linker='NetBSD ld.elf_so'
16219 fi
16220 shlibpath_var=LD_LIBRARY_PATH
16221 shlibpath_overrides_runpath=yes
16222 hardcode_into_libs=yes
16223 ;;
16224
16225newsos6)
16226 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228 shlibpath_var=LD_LIBRARY_PATH
16229 shlibpath_overrides_runpath=yes
16230 ;;
16231
Reid Spencer2706f8c2004-09-19 23:53:36 +000016232nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016233 version_type=linux
16234 need_lib_prefix=no
16235 need_version=no
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016238 shlibpath_var=LD_LIBRARY_PATH
16239 shlibpath_overrides_runpath=yes
16240 ;;
16241
16242openbsd*)
16243 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016244 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016245 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016246 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16247 case $host_os in
16248 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16249 *) need_version=no ;;
16250 esac
John Criswell47fdd832003-07-14 16:52:07 +000016251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16253 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016254 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 +000016255 case $host_os in
16256 openbsd2.[89] | openbsd2.[89].*)
16257 shlibpath_overrides_runpath=no
16258 ;;
16259 *)
16260 shlibpath_overrides_runpath=yes
16261 ;;
16262 esac
John Criswell7a73b802003-06-30 21:59:07 +000016263 else
16264 shlibpath_overrides_runpath=yes
16265 fi
John Criswell7a73b802003-06-30 21:59:07 +000016266 ;;
16267
16268os2*)
16269 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016270 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016271 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016272 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016273 dynamic_linker='OS/2 ld.exe'
16274 shlibpath_var=LIBPATH
16275 ;;
16276
16277osf3* | osf4* | osf5*)
16278 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016279 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016280 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016281 soname_spec='${libname}${release}${shared_ext}$major'
16282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016283 shlibpath_var=LD_LIBRARY_PATH
16284 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16285 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16286 ;;
16287
John Criswell7a73b802003-06-30 21:59:07 +000016288solaris*)
16289 version_type=linux
16290 need_lib_prefix=no
16291 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016294 shlibpath_var=LD_LIBRARY_PATH
16295 shlibpath_overrides_runpath=yes
16296 hardcode_into_libs=yes
16297 # ldd complains unless libraries are executable
16298 postinstall_cmds='chmod +x $lib'
16299 ;;
16300
16301sunos4*)
16302 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016304 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16305 shlibpath_var=LD_LIBRARY_PATH
16306 shlibpath_overrides_runpath=yes
16307 if test "$with_gnu_ld" = yes; then
16308 need_lib_prefix=no
16309 fi
16310 need_version=yes
16311 ;;
16312
Reid Spencera773bd52006-08-04 18:18:08 +000016313sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016314 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16316 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016317 shlibpath_var=LD_LIBRARY_PATH
16318 case $host_vendor in
16319 sni)
16320 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016321 need_lib_prefix=no
16322 export_dynamic_flag_spec='${wl}-Blargedynsym'
16323 runpath_var=LD_RUN_PATH
16324 ;;
16325 siemens)
16326 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016327 ;;
16328 motorola)
16329 need_lib_prefix=no
16330 need_version=no
16331 shlibpath_overrides_runpath=no
16332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16333 ;;
16334 esac
16335 ;;
16336
John Criswell7a73b802003-06-30 21:59:07 +000016337sysv4*MP*)
16338 if test -d /usr/nec ;then
16339 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016340 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16341 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016342 shlibpath_var=LD_LIBRARY_PATH
16343 fi
16344 ;;
16345
Reid Spencera773bd52006-08-04 18:18:08 +000016346sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16347 version_type=freebsd-elf
16348 need_lib_prefix=no
16349 need_version=no
16350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16351 soname_spec='${libname}${release}${shared_ext}$major'
16352 shlibpath_var=LD_LIBRARY_PATH
16353 hardcode_into_libs=yes
16354 if test "$with_gnu_ld" = yes; then
16355 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16356 shlibpath_overrides_runpath=no
16357 else
16358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16359 shlibpath_overrides_runpath=yes
16360 case $host_os in
16361 sco3.2v5*)
16362 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16363 ;;
16364 esac
16365 fi
16366 sys_lib_dlsearch_path_spec='/usr/lib'
16367 ;;
16368
John Criswell47fdd832003-07-14 16:52:07 +000016369uts4*)
16370 version_type=linux
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16372 soname_spec='${libname}${release}${shared_ext}$major'
16373 shlibpath_var=LD_LIBRARY_PATH
16374 ;;
16375
John Criswell7a73b802003-06-30 21:59:07 +000016376*)
16377 dynamic_linker=no
16378 ;;
16379esac
Reid Spencera773bd52006-08-04 18:18:08 +000016380{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16381echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016382test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016383
Reid Spencera773bd52006-08-04 18:18:08 +000016384variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16385if test "$GCC" = yes; then
16386 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16387fi
16388
16389{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16390echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016391hardcode_action=
16392if test -n "$hardcode_libdir_flag_spec" || \
16393 test -n "$runpath_var" || \
16394 test "X$hardcode_automatic" = "Xyes" ; then
16395
16396 # We can hardcode non-existant directories.
16397 if test "$hardcode_direct" != no &&
16398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16399 # have to relink, otherwise we might link with an installed library
16400 # when we should be linking with a yet-to-be-installed one
16401 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16402 test "$hardcode_minus_L" != no; then
16403 # Linking always hardcodes the temporary library directory.
16404 hardcode_action=relink
16405 else
16406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16407 hardcode_action=immediate
16408 fi
16409else
16410 # We cannot hardcode anything, or else we can only hardcode existing
16411 # directories.
16412 hardcode_action=unsupported
16413fi
Reid Spencera773bd52006-08-04 18:18:08 +000016414{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16415echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016416
16417if test "$hardcode_action" = relink; then
16418 # Fast installation is not supported
16419 enable_fast_install=no
16420elif test "$shlibpath_overrides_runpath" = yes ||
16421 test "$enable_shared" = no; then
16422 # Fast installation is not necessary
16423 enable_fast_install=needless
16424fi
16425
16426striplib=
16427old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016428{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16429echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016430if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16431 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16432 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016433 { echo "$as_me:$LINENO: result: yes" >&5
16434echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016435else
16436# FIXME - insert some real tests, host_os isn't really good enough
16437 case $host_os in
16438 darwin*)
16439 if test -n "$STRIP" ; then
16440 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016441 { echo "$as_me:$LINENO: result: yes" >&5
16442echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016443 else
Reid Spencera773bd52006-08-04 18:18:08 +000016444 { echo "$as_me:$LINENO: result: no" >&5
16445echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016446fi
16447 ;;
16448 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016449 { echo "$as_me:$LINENO: result: no" >&5
16450echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016451 ;;
16452 esac
16453fi
16454
John Criswell7a73b802003-06-30 21:59:07 +000016455if test "x$enable_dlopen" != xyes; then
16456 enable_dlopen=unknown
16457 enable_dlopen_self=unknown
16458 enable_dlopen_self_static=unknown
16459else
16460 lt_cv_dlopen=no
16461 lt_cv_dlopen_libs=
16462
16463 case $host_os in
16464 beos*)
16465 lt_cv_dlopen="load_add_on"
16466 lt_cv_dlopen_libs=
16467 lt_cv_dlopen_self=yes
16468 ;;
16469
John Criswell47fdd832003-07-14 16:52:07 +000016470 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016471 lt_cv_dlopen="LoadLibrary"
16472 lt_cv_dlopen_libs=
16473 ;;
16474
John Criswell47fdd832003-07-14 16:52:07 +000016475 cygwin*)
16476 lt_cv_dlopen="dlopen"
16477 lt_cv_dlopen_libs=
16478 ;;
16479
16480 darwin*)
16481 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016482 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16483echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016484if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16485 echo $ECHO_N "(cached) $ECHO_C" >&6
16486else
16487 ac_check_lib_save_LIBS=$LIBS
16488LIBS="-ldl $LIBS"
16489cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016490/* confdefs.h. */
16491_ACEOF
16492cat confdefs.h >>conftest.$ac_ext
16493cat >>conftest.$ac_ext <<_ACEOF
16494/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016495
Reid Spencera773bd52006-08-04 18:18:08 +000016496/* Override any GCC internal prototype to avoid an error.
16497 Use char because int might match the return type of a GCC
16498 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016499#ifdef __cplusplus
16500extern "C"
16501#endif
John Criswell47fdd832003-07-14 16:52:07 +000016502char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016503int
16504main ()
16505{
Reid Spencera773bd52006-08-04 18:18:08 +000016506return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016507 ;
16508 return 0;
16509}
16510_ACEOF
16511rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016512if { (ac_try="$ac_link"
16513case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16516esac
16517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016519 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016520 grep -v '^ *+' conftest.er1 >conftest.err
16521 rm -f conftest.er1
16522 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016524 (exit $ac_status); } &&
16525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16526 { (case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16529esac
16530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_try") 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest$ac_exeext'
16536 { (case "(($ac_try" in
16537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16538 *) ac_try_echo=$ac_try;;
16539esac
16540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16541 (eval "$ac_try") 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016545 ac_cv_lib_dl_dlopen=yes
16546else
16547 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016548sed 's/^/| /' conftest.$ac_ext >&5
16549
Reid Spencera773bd52006-08-04 18:18:08 +000016550 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016551fi
Reid Spencera773bd52006-08-04 18:18:08 +000016552
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016553rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016554 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016555LIBS=$ac_check_lib_save_LIBS
16556fi
Reid Spencera773bd52006-08-04 18:18:08 +000016557{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16558echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016559if test $ac_cv_lib_dl_dlopen = yes; then
16560 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16561else
16562
16563 lt_cv_dlopen="dyld"
16564 lt_cv_dlopen_libs=
16565 lt_cv_dlopen_self=yes
16566
16567fi
16568
16569 ;;
16570
John Criswell7a73b802003-06-30 21:59:07 +000016571 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016572 { echo "$as_me:$LINENO: checking for shl_load" >&5
16573echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016574if test "${ac_cv_func_shl_load+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16576else
16577 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016578/* confdefs.h. */
16579_ACEOF
16580cat confdefs.h >>conftest.$ac_ext
16581cat >>conftest.$ac_ext <<_ACEOF
16582/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016583/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16585#define shl_load innocuous_shl_load
16586
John Criswell7a73b802003-06-30 21:59:07 +000016587/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016588 which can conflict with char shl_load (); below.
16589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16590 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016591
John Criswell0c38eaf2003-09-10 15:17:25 +000016592#ifdef __STDC__
16593# include <limits.h>
16594#else
16595# include <assert.h>
16596#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016597
16598#undef shl_load
16599
Reid Spencera773bd52006-08-04 18:18:08 +000016600/* Override any GCC internal prototype to avoid an error.
16601 Use char because int might match the return type of a GCC
16602 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016603#ifdef __cplusplus
16604extern "C"
16605#endif
John Criswell7a73b802003-06-30 21:59:07 +000016606char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016607/* The GNU C library defines this for functions which it implements
16608 to always fail with ENOSYS. Some functions are actually named
16609 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016610#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016611choke me
John Criswell7a73b802003-06-30 21:59:07 +000016612#endif
16613
John Criswell0c38eaf2003-09-10 15:17:25 +000016614int
16615main ()
16616{
Reid Spencera773bd52006-08-04 18:18:08 +000016617return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016618 ;
16619 return 0;
16620}
16621_ACEOF
16622rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016623if { (ac_try="$ac_link"
16624case "(($ac_try" in
16625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626 *) ac_try_echo=$ac_try;;
16627esac
16628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016630 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016635 (exit $ac_status); } &&
16636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16637 { (case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16640esac
16641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642 (eval "$ac_try") 2>&5
16643 ac_status=$?
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); }; } &&
16646 { ac_try='test -s conftest$ac_exeext'
16647 { (case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16650esac
16651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_try") 2>&5
16653 ac_status=$?
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016656 ac_cv_func_shl_load=yes
16657else
16658 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016659sed 's/^/| /' conftest.$ac_ext >&5
16660
Reid Spencera773bd52006-08-04 18:18:08 +000016661 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016662fi
Reid Spencera773bd52006-08-04 18:18:08 +000016663
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016664rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016665 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016666fi
Reid Spencera773bd52006-08-04 18:18:08 +000016667{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16668echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016669if test $ac_cv_func_shl_load = yes; then
16670 lt_cv_dlopen="shl_load"
16671else
Reid Spencera773bd52006-08-04 18:18:08 +000016672 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16673echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016674if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16676else
16677 ac_check_lib_save_LIBS=$LIBS
16678LIBS="-ldld $LIBS"
16679cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016680/* confdefs.h. */
16681_ACEOF
16682cat confdefs.h >>conftest.$ac_ext
16683cat >>conftest.$ac_ext <<_ACEOF
16684/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016685
Reid Spencera773bd52006-08-04 18:18:08 +000016686/* Override any GCC internal prototype to avoid an error.
16687 Use char because int might match the return type of a GCC
16688 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016689#ifdef __cplusplus
16690extern "C"
16691#endif
John Criswell7a73b802003-06-30 21:59:07 +000016692char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016693int
16694main ()
16695{
Reid Spencera773bd52006-08-04 18:18:08 +000016696return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016697 ;
16698 return 0;
16699}
16700_ACEOF
16701rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016702if { (ac_try="$ac_link"
16703case "(($ac_try" in
16704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705 *) ac_try_echo=$ac_try;;
16706esac
16707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016709 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016710 grep -v '^ *+' conftest.er1 >conftest.err
16711 rm -f conftest.er1
16712 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016714 (exit $ac_status); } &&
16715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16716 { (case "(($ac_try" in
16717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718 *) ac_try_echo=$ac_try;;
16719esac
16720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721 (eval "$ac_try") 2>&5
16722 ac_status=$?
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); }; } &&
16725 { ac_try='test -s conftest$ac_exeext'
16726 { (case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16729esac
16730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_try") 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016735 ac_cv_lib_dld_shl_load=yes
16736else
16737 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016738sed 's/^/| /' conftest.$ac_ext >&5
16739
Reid Spencera773bd52006-08-04 18:18:08 +000016740 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016741fi
Reid Spencera773bd52006-08-04 18:18:08 +000016742
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016743rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016744 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016745LIBS=$ac_check_lib_save_LIBS
16746fi
Reid Spencera773bd52006-08-04 18:18:08 +000016747{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16748echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016749if test $ac_cv_lib_dld_shl_load = yes; then
16750 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16751else
Reid Spencera773bd52006-08-04 18:18:08 +000016752 { echo "$as_me:$LINENO: checking for dlopen" >&5
16753echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016754if test "${ac_cv_func_dlopen+set}" = set; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16756else
16757 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016758/* confdefs.h. */
16759_ACEOF
16760cat confdefs.h >>conftest.$ac_ext
16761cat >>conftest.$ac_ext <<_ACEOF
16762/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016763/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16765#define dlopen innocuous_dlopen
16766
John Criswell7a73b802003-06-30 21:59:07 +000016767/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016768 which can conflict with char dlopen (); below.
16769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16770 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016771
John Criswell0c38eaf2003-09-10 15:17:25 +000016772#ifdef __STDC__
16773# include <limits.h>
16774#else
16775# include <assert.h>
16776#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016777
16778#undef dlopen
16779
Reid Spencera773bd52006-08-04 18:18:08 +000016780/* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016783#ifdef __cplusplus
16784extern "C"
16785#endif
John Criswell7a73b802003-06-30 21:59:07 +000016786char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016787/* The GNU C library defines this for functions which it implements
16788 to always fail with ENOSYS. Some functions are actually named
16789 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016790#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016791choke me
John Criswell7a73b802003-06-30 21:59:07 +000016792#endif
16793
John Criswell0c38eaf2003-09-10 15:17:25 +000016794int
16795main ()
16796{
Reid Spencera773bd52006-08-04 18:18:08 +000016797return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016798 ;
16799 return 0;
16800}
16801_ACEOF
16802rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016803if { (ac_try="$ac_link"
16804case "(($ac_try" in
16805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806 *) ac_try_echo=$ac_try;;
16807esac
16808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016810 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016811 grep -v '^ *+' conftest.er1 >conftest.err
16812 rm -f conftest.er1
16813 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016815 (exit $ac_status); } &&
16816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16817 { (case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16820esac
16821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_try") 2>&5
16823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; } &&
16826 { ac_try='test -s conftest$ac_exeext'
16827 { (case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16830esac
16831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_try") 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016836 ac_cv_func_dlopen=yes
16837else
16838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016839sed 's/^/| /' conftest.$ac_ext >&5
16840
Reid Spencera773bd52006-08-04 18:18:08 +000016841 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016842fi
Reid Spencera773bd52006-08-04 18:18:08 +000016843
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016844rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016845 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016846fi
Reid Spencera773bd52006-08-04 18:18:08 +000016847{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16848echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016849if test $ac_cv_func_dlopen = yes; then
16850 lt_cv_dlopen="dlopen"
16851else
Reid Spencera773bd52006-08-04 18:18:08 +000016852 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16853echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016854if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16856else
16857 ac_check_lib_save_LIBS=$LIBS
16858LIBS="-ldl $LIBS"
16859cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016860/* confdefs.h. */
16861_ACEOF
16862cat confdefs.h >>conftest.$ac_ext
16863cat >>conftest.$ac_ext <<_ACEOF
16864/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016865
Reid Spencera773bd52006-08-04 18:18:08 +000016866/* Override any GCC internal prototype to avoid an error.
16867 Use char because int might match the return type of a GCC
16868 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016869#ifdef __cplusplus
16870extern "C"
16871#endif
John Criswell7a73b802003-06-30 21:59:07 +000016872char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016873int
16874main ()
16875{
Reid Spencera773bd52006-08-04 18:18:08 +000016876return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016877 ;
16878 return 0;
16879}
16880_ACEOF
16881rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016882if { (ac_try="$ac_link"
16883case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16886esac
16887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016889 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016890 grep -v '^ *+' conftest.er1 >conftest.err
16891 rm -f conftest.er1
16892 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016894 (exit $ac_status); } &&
16895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16896 { (case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16899esac
16900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_try") 2>&5
16902 ac_status=$?
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; } &&
16905 { ac_try='test -s conftest$ac_exeext'
16906 { (case "(($ac_try" in
16907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16908 *) ac_try_echo=$ac_try;;
16909esac
16910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16911 (eval "$ac_try") 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016915 ac_cv_lib_dl_dlopen=yes
16916else
16917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016918sed 's/^/| /' conftest.$ac_ext >&5
16919
Reid Spencera773bd52006-08-04 18:18:08 +000016920 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016921fi
Reid Spencera773bd52006-08-04 18:18:08 +000016922
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016923rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016924 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016925LIBS=$ac_check_lib_save_LIBS
16926fi
Reid Spencera773bd52006-08-04 18:18:08 +000016927{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16928echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016929if test $ac_cv_lib_dl_dlopen = yes; then
16930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16931else
Reid Spencera773bd52006-08-04 18:18:08 +000016932 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16933echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016934if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16935 echo $ECHO_N "(cached) $ECHO_C" >&6
16936else
16937 ac_check_lib_save_LIBS=$LIBS
16938LIBS="-lsvld $LIBS"
16939cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016940/* confdefs.h. */
16941_ACEOF
16942cat confdefs.h >>conftest.$ac_ext
16943cat >>conftest.$ac_ext <<_ACEOF
16944/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016945
Reid Spencera773bd52006-08-04 18:18:08 +000016946/* Override any GCC internal prototype to avoid an error.
16947 Use char because int might match the return type of a GCC
16948 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016949#ifdef __cplusplus
16950extern "C"
16951#endif
John Criswell7a73b802003-06-30 21:59:07 +000016952char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016953int
16954main ()
16955{
Reid Spencera773bd52006-08-04 18:18:08 +000016956return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016957 ;
16958 return 0;
16959}
16960_ACEOF
16961rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016962if { (ac_try="$ac_link"
16963case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16966esac
16967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016969 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016974 (exit $ac_status); } &&
16975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976 { (case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16979esac
16980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_try") 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; } &&
16985 { ac_try='test -s conftest$ac_exeext'
16986 { (case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16989esac
16990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_try") 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016995 ac_cv_lib_svld_dlopen=yes
16996else
16997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016998sed 's/^/| /' conftest.$ac_ext >&5
16999
Reid Spencera773bd52006-08-04 18:18:08 +000017000 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017001fi
Reid Spencera773bd52006-08-04 18:18:08 +000017002
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017003rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017004 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017005LIBS=$ac_check_lib_save_LIBS
17006fi
Reid Spencera773bd52006-08-04 18:18:08 +000017007{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17008echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017009if test $ac_cv_lib_svld_dlopen = yes; then
17010 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17011else
Reid Spencera773bd52006-08-04 18:18:08 +000017012 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17013echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017014if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17016else
17017 ac_check_lib_save_LIBS=$LIBS
17018LIBS="-ldld $LIBS"
17019cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017020/* confdefs.h. */
17021_ACEOF
17022cat confdefs.h >>conftest.$ac_ext
17023cat >>conftest.$ac_ext <<_ACEOF
17024/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017025
Reid Spencera773bd52006-08-04 18:18:08 +000017026/* Override any GCC internal prototype to avoid an error.
17027 Use char because int might match the return type of a GCC
17028 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017029#ifdef __cplusplus
17030extern "C"
17031#endif
John Criswell7a73b802003-06-30 21:59:07 +000017032char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017033int
17034main ()
17035{
Reid Spencera773bd52006-08-04 18:18:08 +000017036return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017037 ;
17038 return 0;
17039}
17040_ACEOF
17041rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017042if { (ac_try="$ac_link"
17043case "(($ac_try" in
17044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045 *) ac_try_echo=$ac_try;;
17046esac
17047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017049 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017050 grep -v '^ *+' conftest.er1 >conftest.err
17051 rm -f conftest.er1
17052 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017054 (exit $ac_status); } &&
17055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17056 { (case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17059esac
17060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_try") 2>&5
17062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; } &&
17065 { ac_try='test -s conftest$ac_exeext'
17066 { (case "(($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_try") 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017075 ac_cv_lib_dld_dld_link=yes
17076else
17077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017078sed 's/^/| /' conftest.$ac_ext >&5
17079
Reid Spencera773bd52006-08-04 18:18:08 +000017080 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017081fi
Reid Spencera773bd52006-08-04 18:18:08 +000017082
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017083rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017084 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017085LIBS=$ac_check_lib_save_LIBS
17086fi
Reid Spencera773bd52006-08-04 18:18:08 +000017087{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17088echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017089if test $ac_cv_lib_dld_dld_link = yes; then
17090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17091fi
17092
17093
17094fi
17095
17096
17097fi
17098
17099
17100fi
17101
17102
17103fi
17104
17105
17106fi
17107
17108 ;;
17109 esac
17110
17111 if test "x$lt_cv_dlopen" != xno; then
17112 enable_dlopen=yes
17113 else
17114 enable_dlopen=no
17115 fi
17116
17117 case $lt_cv_dlopen in
17118 dlopen)
17119 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017121
17122 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017124
17125 save_LIBS="$LIBS"
17126 LIBS="$lt_cv_dlopen_libs $LIBS"
17127
Reid Spencera773bd52006-08-04 18:18:08 +000017128 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17129echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017130if test "${lt_cv_dlopen_self+set}" = set; then
17131 echo $ECHO_N "(cached) $ECHO_C" >&6
17132else
17133 if test "$cross_compiling" = yes; then :
17134 lt_cv_dlopen_self=cross
17135else
John Criswell47fdd832003-07-14 16:52:07 +000017136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017137 lt_status=$lt_dlunknown
17138 cat > conftest.$ac_ext <<EOF
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000017139#line 17139 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017140#include "confdefs.h"
17141
17142#if HAVE_DLFCN_H
17143#include <dlfcn.h>
17144#endif
17145
17146#include <stdio.h>
17147
17148#ifdef RTLD_GLOBAL
17149# define LT_DLGLOBAL RTLD_GLOBAL
17150#else
17151# ifdef DL_GLOBAL
17152# define LT_DLGLOBAL DL_GLOBAL
17153# else
17154# define LT_DLGLOBAL 0
17155# endif
17156#endif
17157
17158/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17159 find out it does not work in some platform. */
17160#ifndef LT_DLLAZY_OR_NOW
17161# ifdef RTLD_LAZY
17162# define LT_DLLAZY_OR_NOW RTLD_LAZY
17163# else
17164# ifdef DL_LAZY
17165# define LT_DLLAZY_OR_NOW DL_LAZY
17166# else
17167# ifdef RTLD_NOW
17168# define LT_DLLAZY_OR_NOW RTLD_NOW
17169# else
17170# ifdef DL_NOW
17171# define LT_DLLAZY_OR_NOW DL_NOW
17172# else
17173# define LT_DLLAZY_OR_NOW 0
17174# endif
17175# endif
17176# endif
17177# endif
17178#endif
17179
17180#ifdef __cplusplus
17181extern "C" void exit (int);
17182#endif
17183
17184void fnord() { int i=42;}
17185int main ()
17186{
17187 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17188 int status = $lt_dlunknown;
17189
17190 if (self)
17191 {
17192 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17193 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17194 /* dlclose (self); */
17195 }
Reid Spencera773bd52006-08-04 18:18:08 +000017196 else
17197 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017198
17199 exit (status);
17200}
17201EOF
17202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17203 (eval $ac_link) 2>&5
17204 ac_status=$?
17205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017207 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017208 lt_status=$?
17209 case x$lt_status in
17210 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17211 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017212 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017213 esac
17214 else :
17215 # compilation failed
17216 lt_cv_dlopen_self=no
17217 fi
17218fi
17219rm -fr conftest*
17220
17221
17222fi
Reid Spencera773bd52006-08-04 18:18:08 +000017223{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17224echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017225
17226 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017227 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17228 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17229echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017230if test "${lt_cv_dlopen_self_static+set}" = set; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17232else
17233 if test "$cross_compiling" = yes; then :
17234 lt_cv_dlopen_self_static=cross
17235else
John Criswell47fdd832003-07-14 16:52:07 +000017236 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017237 lt_status=$lt_dlunknown
17238 cat > conftest.$ac_ext <<EOF
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000017239#line 17239 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017240#include "confdefs.h"
17241
17242#if HAVE_DLFCN_H
17243#include <dlfcn.h>
17244#endif
17245
17246#include <stdio.h>
17247
17248#ifdef RTLD_GLOBAL
17249# define LT_DLGLOBAL RTLD_GLOBAL
17250#else
17251# ifdef DL_GLOBAL
17252# define LT_DLGLOBAL DL_GLOBAL
17253# else
17254# define LT_DLGLOBAL 0
17255# endif
17256#endif
17257
17258/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17259 find out it does not work in some platform. */
17260#ifndef LT_DLLAZY_OR_NOW
17261# ifdef RTLD_LAZY
17262# define LT_DLLAZY_OR_NOW RTLD_LAZY
17263# else
17264# ifdef DL_LAZY
17265# define LT_DLLAZY_OR_NOW DL_LAZY
17266# else
17267# ifdef RTLD_NOW
17268# define LT_DLLAZY_OR_NOW RTLD_NOW
17269# else
17270# ifdef DL_NOW
17271# define LT_DLLAZY_OR_NOW DL_NOW
17272# else
17273# define LT_DLLAZY_OR_NOW 0
17274# endif
17275# endif
17276# endif
17277# endif
17278#endif
17279
17280#ifdef __cplusplus
17281extern "C" void exit (int);
17282#endif
17283
17284void fnord() { int i=42;}
17285int main ()
17286{
17287 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17288 int status = $lt_dlunknown;
17289
17290 if (self)
17291 {
17292 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17293 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17294 /* dlclose (self); */
17295 }
Reid Spencera773bd52006-08-04 18:18:08 +000017296 else
17297 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017298
17299 exit (status);
17300}
17301EOF
17302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17303 (eval $ac_link) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017307 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017308 lt_status=$?
17309 case x$lt_status in
17310 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17311 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017312 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017313 esac
17314 else :
17315 # compilation failed
17316 lt_cv_dlopen_self_static=no
17317 fi
17318fi
17319rm -fr conftest*
17320
17321
17322fi
Reid Spencera773bd52006-08-04 18:18:08 +000017323{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17324echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017325 fi
17326
17327 CPPFLAGS="$save_CPPFLAGS"
17328 LDFLAGS="$save_LDFLAGS"
17329 LIBS="$save_LIBS"
17330 ;;
17331 esac
17332
17333 case $lt_cv_dlopen_self in
17334 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17335 *) enable_dlopen_self=unknown ;;
17336 esac
17337
17338 case $lt_cv_dlopen_self_static in
17339 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17340 *) enable_dlopen_self_static=unknown ;;
17341 esac
17342fi
17343
17344
Reid Spencera773bd52006-08-04 18:18:08 +000017345# Report which library types will actually be built
17346{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17347echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17348{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17349echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017350
Reid Spencera773bd52006-08-04 18:18:08 +000017351{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17352echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017353test "$can_build_shared" = "no" && enable_shared=no
17354
17355# On AIX, shared libraries and static libraries use the same namespace, and
17356# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017357case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017358aix3*)
17359 test "$enable_shared" = yes && enable_static=no
17360 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017361 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017362 postinstall_cmds='$RANLIB $lib'
17363 fi
17364 ;;
17365
Reid Spencer2706f8c2004-09-19 23:53:36 +000017366aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017367 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17368 test "$enable_shared" = yes && enable_static=no
17369 fi
John Criswell7a73b802003-06-30 21:59:07 +000017370 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017371esac
Reid Spencera773bd52006-08-04 18:18:08 +000017372{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17373echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017374
Reid Spencera773bd52006-08-04 18:18:08 +000017375{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17376echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017377# Make sure either enable_shared or enable_static is yes.
17378test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017379{ echo "$as_me:$LINENO: result: $enable_static" >&5
17380echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017381
17382# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017383# libtool distribution, otherwise you forgot to ship ltmain.sh
17384# with your package, and you will get complaints that there are
17385# no rules to generate ltmain.sh.
17386if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017387 # See if we are running on zsh, and set the options which allow our commands through
17388 # without removal of \ escapes.
17389 if test -n "${ZSH_VERSION+set}" ; then
17390 setopt NO_GLOB_SUBST
17391 fi
John Criswell7a73b802003-06-30 21:59:07 +000017392 # Now quote all the things that may contain metacharacters while being
17393 # careful not to overquote the AC_SUBSTed values. We take copies of the
17394 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017395 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 +000017396 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017397 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17398 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17399 deplibs_check_method reload_flag reload_cmds need_locks \
17400 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17401 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017402 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017403 old_postinstall_cmds old_postuninstall_cmds \
17404 compiler \
17405 CC \
17406 LD \
17407 lt_prog_compiler_wl \
17408 lt_prog_compiler_pic \
17409 lt_prog_compiler_static \
17410 lt_prog_compiler_no_builtin_flag \
17411 export_dynamic_flag_spec \
17412 thread_safe_flag_spec \
17413 whole_archive_flag_spec \
17414 enable_shared_with_static_runtimes \
17415 old_archive_cmds \
17416 old_archive_from_new_cmds \
17417 predep_objects \
17418 postdep_objects \
17419 predeps \
17420 postdeps \
17421 compiler_lib_search_path \
17422 archive_cmds \
17423 archive_expsym_cmds \
17424 postinstall_cmds \
17425 postuninstall_cmds \
17426 old_archive_from_expsyms_cmds \
17427 allow_undefined_flag \
17428 no_undefined_flag \
17429 export_symbols_cmds \
17430 hardcode_libdir_flag_spec \
17431 hardcode_libdir_flag_spec_ld \
17432 hardcode_libdir_separator \
17433 hardcode_automatic \
17434 module_cmds \
17435 module_expsym_cmds \
17436 lt_cv_prog_compiler_c_o \
17437 exclude_expsyms \
17438 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017439
17440 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017441 old_archive_cmds | \
17442 old_archive_from_new_cmds | \
17443 archive_cmds | \
17444 archive_expsym_cmds | \
17445 module_cmds | \
17446 module_expsym_cmds | \
17447 old_archive_from_expsyms_cmds | \
17448 export_symbols_cmds | \
17449 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017450 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017451 old_postinstall_cmds | old_postuninstall_cmds | \
17452 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017453 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017454 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 +000017455 ;;
17456 *)
17457 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17458 ;;
17459 esac
17460 done
17461
John Criswell47fdd832003-07-14 16:52:07 +000017462 case $lt_echo in
17463 *'\$0 --fallback-echo"')
17464 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17465 ;;
17466 esac
17467
17468cfgfile="${ofile}T"
17469 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17470 $rm -f "$cfgfile"
17471 { echo "$as_me:$LINENO: creating $ofile" >&5
17472echo "$as_me: creating $ofile" >&6;}
17473
17474 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017475#! $SHELL
17476
John Criswell47fdd832003-07-14 16:52:07 +000017477# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017478# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17479# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17480#
John Criswell47fdd832003-07-14 16:52:07 +000017481# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17482# Free Software Foundation, Inc.
17483#
17484# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017485# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17486#
17487# This program is free software; you can redistribute it and/or modify
17488# it under the terms of the GNU General Public License as published by
17489# the Free Software Foundation; either version 2 of the License, or
17490# (at your option) any later version.
17491#
17492# This program is distributed in the hope that it will be useful, but
17493# WITHOUT ANY WARRANTY; without even the implied warranty of
17494# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17495# General Public License for more details.
17496#
17497# You should have received a copy of the GNU General Public License
17498# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017499# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017500#
17501# As a special exception to the GNU General Public License, if you
17502# distribute this file as part of a program that contains a
17503# configuration script generated by Autoconf, you may include it under
17504# the same distribution terms that you use for the rest of that program.
17505
John Criswell47fdd832003-07-14 16:52:07 +000017506# A sed program that does not truncate output.
17507SED=$lt_SED
17508
John Criswell7a73b802003-06-30 21:59:07 +000017509# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017510Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017511
17512# The HP-UX ksh and POSIX shell print the target directory to stdout
17513# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017514(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017515
John Criswell47fdd832003-07-14 16:52:07 +000017516# The names of the tagged configurations supported by this script.
17517available_tags=
17518
John Criswell7a73b802003-06-30 21:59:07 +000017519# ### BEGIN LIBTOOL CONFIG
17520
17521# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17522
17523# Shell to use when invoking shell scripts.
17524SHELL=$lt_SHELL
17525
17526# Whether or not to build shared libraries.
17527build_libtool_libs=$enable_shared
17528
17529# Whether or not to build static libraries.
17530build_old_libs=$enable_static
17531
17532# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017533build_libtool_need_lc=$archive_cmds_need_lc
17534
17535# Whether or not to disallow shared libs when runtime libs are static
17536allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017537
17538# Whether or not to optimize for fast installation.
17539fast_install=$enable_fast_install
17540
17541# The host system.
17542host_alias=$host_alias
17543host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017544host_os=$host_os
17545
17546# The build system.
17547build_alias=$build_alias
17548build=$build
17549build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017550
17551# An echo program that does not interpret backslashes.
17552echo=$lt_echo
17553
17554# The archiver.
17555AR=$lt_AR
17556AR_FLAGS=$lt_AR_FLAGS
17557
John Criswell47fdd832003-07-14 16:52:07 +000017558# A C compiler.
17559LTCC=$lt_LTCC
17560
Reid Spencera773bd52006-08-04 18:18:08 +000017561# LTCC compiler flags.
17562LTCFLAGS=$lt_LTCFLAGS
17563
John Criswell47fdd832003-07-14 16:52:07 +000017564# A language-specific compiler.
17565CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017566
17567# Is the compiler the GNU C compiler?
17568with_gcc=$GCC
17569
John Criswell47fdd832003-07-14 16:52:07 +000017570# An ERE matcher.
17571EGREP=$lt_EGREP
17572
John Criswell7a73b802003-06-30 21:59:07 +000017573# The linker used to build libraries.
17574LD=$lt_LD
17575
17576# Whether we need hard or soft links.
17577LN_S=$lt_LN_S
17578
17579# A BSD-compatible nm program.
17580NM=$lt_NM
17581
17582# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017583STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017584
17585# Used to examine libraries when file_magic_cmd begins "file"
17586MAGIC_CMD=$MAGIC_CMD
17587
17588# Used on cygwin: DLL creation program.
17589DLLTOOL="$DLLTOOL"
17590
17591# Used on cygwin: object dumper.
17592OBJDUMP="$OBJDUMP"
17593
17594# Used on cygwin: assembler.
17595AS="$AS"
17596
17597# The name of the directory that contains temporary libtool files.
17598objdir=$objdir
17599
17600# How to create reloadable object files.
17601reload_flag=$lt_reload_flag
17602reload_cmds=$lt_reload_cmds
17603
17604# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017605wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017606
17607# Object file suffix (normally "o").
17608objext="$ac_objext"
17609
17610# Old archive suffix (normally "a").
17611libext="$libext"
17612
John Criswell47fdd832003-07-14 16:52:07 +000017613# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017614shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017615
John Criswell7a73b802003-06-30 21:59:07 +000017616# Executable file suffix (normally "").
17617exeext="$exeext"
17618
17619# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017620pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017621pic_mode=$pic_mode
17622
John Criswell47fdd832003-07-14 16:52:07 +000017623# What is the maximum length of a command?
17624max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017625
John Criswell47fdd832003-07-14 16:52:07 +000017626# Does compiler simultaneously support -c and -o options?
17627compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017628
Reid Spencera773bd52006-08-04 18:18:08 +000017629# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017630need_locks=$lt_need_locks
17631
17632# Do we need the lib prefix for modules?
17633need_lib_prefix=$need_lib_prefix
17634
17635# Do we need a version for libraries?
17636need_version=$need_version
17637
17638# Whether dlopen is supported.
17639dlopen_support=$enable_dlopen
17640
17641# Whether dlopen of programs is supported.
17642dlopen_self=$enable_dlopen_self
17643
17644# Whether dlopen of statically linked programs is supported.
17645dlopen_self_static=$enable_dlopen_self_static
17646
17647# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017648link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017649
17650# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017651no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017652
17653# Compiler flag to allow reflexive dlopens.
17654export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17655
17656# Compiler flag to generate shared objects directly from archives.
17657whole_archive_flag_spec=$lt_whole_archive_flag_spec
17658
17659# Compiler flag to generate thread-safe objects.
17660thread_safe_flag_spec=$lt_thread_safe_flag_spec
17661
17662# Library versioning type.
17663version_type=$version_type
17664
17665# Format of library name prefix.
17666libname_spec=$lt_libname_spec
17667
17668# List of archive names. First name is the real one, the rest are links.
17669# The last name is the one that the linker finds with -lNAME.
17670library_names_spec=$lt_library_names_spec
17671
17672# The coded name of the library, if different from the real name.
17673soname_spec=$lt_soname_spec
17674
17675# Commands used to build and install an old-style archive.
17676RANLIB=$lt_RANLIB
17677old_archive_cmds=$lt_old_archive_cmds
17678old_postinstall_cmds=$lt_old_postinstall_cmds
17679old_postuninstall_cmds=$lt_old_postuninstall_cmds
17680
17681# Create an old-style archive from a shared archive.
17682old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17683
17684# Create a temporary old-style archive to link instead of a shared archive.
17685old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17686
17687# Commands used to build and install a shared archive.
17688archive_cmds=$lt_archive_cmds
17689archive_expsym_cmds=$lt_archive_expsym_cmds
17690postinstall_cmds=$lt_postinstall_cmds
17691postuninstall_cmds=$lt_postuninstall_cmds
17692
John Criswell47fdd832003-07-14 16:52:07 +000017693# Commands used to build a loadable module (assumed same as above if empty)
17694module_cmds=$lt_module_cmds
17695module_expsym_cmds=$lt_module_expsym_cmds
17696
John Criswell7a73b802003-06-30 21:59:07 +000017697# Commands to strip libraries.
17698old_striplib=$lt_old_striplib
17699striplib=$lt_striplib
17700
John Criswell47fdd832003-07-14 16:52:07 +000017701# Dependencies to place before the objects being linked to create a
17702# shared library.
17703predep_objects=$lt_predep_objects
17704
17705# Dependencies to place after the objects being linked to create a
17706# shared library.
17707postdep_objects=$lt_postdep_objects
17708
17709# Dependencies to place before the objects being linked to create a
17710# shared library.
17711predeps=$lt_predeps
17712
17713# Dependencies to place after the objects being linked to create a
17714# shared library.
17715postdeps=$lt_postdeps
17716
17717# The library search path used internally by the compiler when linking
17718# a shared library.
17719compiler_lib_search_path=$lt_compiler_lib_search_path
17720
John Criswell7a73b802003-06-30 21:59:07 +000017721# Method to check whether dependent libraries are shared objects.
17722deplibs_check_method=$lt_deplibs_check_method
17723
17724# Command to use when deplibs_check_method == file_magic.
17725file_magic_cmd=$lt_file_magic_cmd
17726
17727# Flag that allows shared libraries with undefined symbols to be built.
17728allow_undefined_flag=$lt_allow_undefined_flag
17729
17730# Flag that forces no undefined symbols.
17731no_undefined_flag=$lt_no_undefined_flag
17732
17733# Commands used to finish a libtool library installation in a directory.
17734finish_cmds=$lt_finish_cmds
17735
17736# Same as above, but a single script fragment to be evaled but not shown.
17737finish_eval=$lt_finish_eval
17738
17739# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017740global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017741
17742# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017743global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017744
17745# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017746global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017747
17748# This is the shared library runtime path variable.
17749runpath_var=$runpath_var
17750
17751# This is the shared library path variable.
17752shlibpath_var=$shlibpath_var
17753
17754# Is shlibpath searched before the hard-coded library search path?
17755shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17756
17757# How to hardcode a shared library path into an executable.
17758hardcode_action=$hardcode_action
17759
17760# Whether we should hardcode library paths into libraries.
17761hardcode_into_libs=$hardcode_into_libs
17762
17763# Flag to hardcode \$libdir into a binary during linking.
17764# This must work even if \$libdir does not exist.
17765hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17766
John Criswell47fdd832003-07-14 16:52:07 +000017767# If ld is used when linking, flag to hardcode \$libdir into
17768# a binary during linking. This must work even if \$libdir does
17769# not exist.
17770hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17771
John Criswell7a73b802003-06-30 21:59:07 +000017772# Whether we need a single -rpath flag with a separated argument.
17773hardcode_libdir_separator=$lt_hardcode_libdir_separator
17774
John Criswell47fdd832003-07-14 16:52:07 +000017775# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017776# resulting binary.
17777hardcode_direct=$hardcode_direct
17778
17779# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17780# resulting binary.
17781hardcode_minus_L=$hardcode_minus_L
17782
17783# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17784# the resulting binary.
17785hardcode_shlibpath_var=$hardcode_shlibpath_var
17786
John Criswell47fdd832003-07-14 16:52:07 +000017787# Set to yes if building a shared library automatically hardcodes DIR into the library
17788# and all subsequent libraries and executables linked against it.
17789hardcode_automatic=$hardcode_automatic
17790
John Criswell7a73b802003-06-30 21:59:07 +000017791# Variables whose values should be saved in libtool wrapper scripts and
17792# restored at relink time.
17793variables_saved_for_relink="$variables_saved_for_relink"
17794
17795# Whether libtool must link a program against all its dependency libraries.
17796link_all_deplibs=$link_all_deplibs
17797
17798# Compile-time system search path for libraries
17799sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17800
17801# Run-time system search path for libraries
17802sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17803
17804# Fix the shell variable \$srcfile for the compiler.
17805fix_srcfile_path="$fix_srcfile_path"
17806
17807# Set to yes if exported symbols are required.
17808always_export_symbols=$always_export_symbols
17809
17810# The commands to list exported symbols.
17811export_symbols_cmds=$lt_export_symbols_cmds
17812
17813# The commands to extract the exported symbol list from a shared archive.
17814extract_expsyms_cmds=$lt_extract_expsyms_cmds
17815
17816# Symbols that should not be listed in the preloaded symbols.
17817exclude_expsyms=$lt_exclude_expsyms
17818
17819# Symbols that must always be exported.
17820include_expsyms=$lt_include_expsyms
17821
17822# ### END LIBTOOL CONFIG
17823
17824__EOF__
17825
John Criswell47fdd832003-07-14 16:52:07 +000017826
John Criswell7a73b802003-06-30 21:59:07 +000017827 case $host_os in
17828 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017829 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017830
17831# AIX sometimes has problems with the GCC collect2 program. For some
17832# reason, if we set the COLLECT_NAMES environment variable, the problems
17833# vanish in a puff of smoke.
17834if test "X${COLLECT_NAMES+set}" != Xset; then
17835 COLLECT_NAMES=
17836 export COLLECT_NAMES
17837fi
17838EOF
17839 ;;
17840 esac
17841
John Criswell7a73b802003-06-30 21:59:07 +000017842 # We use sed instead of cat because bash on DJGPP gets confused if
17843 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17844 # text mode, it properly converts lines to CR/LF. This bash problem
17845 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017846 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017847
John Criswell47fdd832003-07-14 16:52:07 +000017848 mv -f "$cfgfile" "$ofile" || \
17849 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017850 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017851
17852else
17853 # If there is no Makefile yet, we rely on a make rule to execute
17854 # `config.status --recheck' to rerun these tests and create the
17855 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017856 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17857 if test -f "$ltmain_in"; then
17858 test -f Makefile && make "$ltmain"
17859 fi
John Criswell7a73b802003-06-30 21:59:07 +000017860fi
John Criswell7a73b802003-06-30 21:59:07 +000017861
17862
John Criswell47fdd832003-07-14 16:52:07 +000017863ac_ext=c
17864ac_cpp='$CPP $CPPFLAGS'
17865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17867ac_compiler_gnu=$ac_cv_c_compiler_gnu
17868
17869CC="$lt_save_CC"
17870
17871
Reid Spencera773bd52006-08-04 18:18:08 +000017872# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017873if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017874 withval=$with_tags; tagnames="$withval"
17875fi
17876
John Criswell47fdd832003-07-14 16:52:07 +000017877
17878if test -f "$ltmain" && test -n "$tagnames"; then
17879 if test ! -f "${ofile}"; then
17880 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17881echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17882 fi
17883
17884 if test -z "$LTCC"; then
17885 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17886 if test -z "$LTCC"; then
17887 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17888echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17889 else
17890 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17891echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17892 fi
17893 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017894 if test -z "$LTCFLAGS"; then
17895 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17896 fi
John Criswell47fdd832003-07-14 16:52:07 +000017897
17898 # Extract list of available tagged configurations in $ofile.
17899 # Note that this assumes the entire list is on one line.
17900 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17901
17902 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17903 for tagname in $tagnames; do
17904 IFS="$lt_save_ifs"
17905 # Check whether tagname contains only valid characters
17906 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17907 "") ;;
17908 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17909echo "$as_me: error: invalid tag name: $tagname" >&2;}
17910 { (exit 1); exit 1; }; }
17911 ;;
17912 esac
17913
17914 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17915 then
17916 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17917echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17918 { (exit 1); exit 1; }; }
17919 fi
17920
17921 # Update the list of available tags.
17922 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017923 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017924
17925 case $tagname in
17926 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017927 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17928 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17929 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017930 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017931ac_cpp='$CXXCPP $CPPFLAGS'
17932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17935
17936
17937
17938
17939archive_cmds_need_lc_CXX=no
17940allow_undefined_flag_CXX=
17941always_export_symbols_CXX=no
17942archive_expsym_cmds_CXX=
17943export_dynamic_flag_spec_CXX=
17944hardcode_direct_CXX=no
17945hardcode_libdir_flag_spec_CXX=
17946hardcode_libdir_flag_spec_ld_CXX=
17947hardcode_libdir_separator_CXX=
17948hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017949hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017950hardcode_automatic_CXX=no
17951module_cmds_CXX=
17952module_expsym_cmds_CXX=
17953link_all_deplibs_CXX=unknown
17954old_archive_cmds_CXX=$old_archive_cmds
17955no_undefined_flag_CXX=
17956whole_archive_flag_spec_CXX=
17957enable_shared_with_static_runtimes_CXX=no
17958
17959# Dependencies to place before and after the object being linked:
17960predep_objects_CXX=
17961postdep_objects_CXX=
17962predeps_CXX=
17963postdeps_CXX=
17964compiler_lib_search_path_CXX=
17965
17966# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017967ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017968
17969# Object file extension for compiled C++ test sources.
17970objext=o
17971objext_CXX=$objext
17972
17973# Code to be used in simple compile tests
17974lt_simple_compile_test_code="int some_variable = 0;\n"
17975
17976# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017977lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017978
17979# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17980
17981# If no C compiler was specified, use CC.
17982LTCC=${LTCC-"$CC"}
17983
Reid Spencera773bd52006-08-04 18:18:08 +000017984# If no C compiler flags were specified, use CFLAGS.
17985LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17986
John Criswell47fdd832003-07-14 16:52:07 +000017987# Allow CC to be a program name with arguments.
17988compiler=$CC
17989
17990
Reid Spencera773bd52006-08-04 18:18:08 +000017991# save warnings/boilerplate of simple test code
17992ac_outfile=conftest.$ac_objext
17993printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17994eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17995_lt_compiler_boilerplate=`cat conftest.err`
17996$rm conftest*
17997
17998ac_outfile=conftest.$ac_objext
17999printf "$lt_simple_link_test_code" >conftest.$ac_ext
18000eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18001_lt_linker_boilerplate=`cat conftest.err`
18002$rm conftest*
18003
18004
John Criswell47fdd832003-07-14 16:52:07 +000018005# Allow CC to be a program name with arguments.
18006lt_save_CC=$CC
18007lt_save_LD=$LD
18008lt_save_GCC=$GCC
18009GCC=$GXX
18010lt_save_with_gnu_ld=$with_gnu_ld
18011lt_save_path_LD=$lt_cv_path_LD
18012if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18013 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18014else
Reid Spencera773bd52006-08-04 18:18:08 +000018015 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018016fi
18017if test -n "${lt_cv_path_LDCXX+set}"; then
18018 lt_cv_path_LD=$lt_cv_path_LDCXX
18019else
Reid Spencera773bd52006-08-04 18:18:08 +000018020 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018021fi
18022test -z "${LDCXX+set}" || LD=$LDCXX
18023CC=${CXX-"c++"}
18024compiler=$CC
18025compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018026for cc_temp in $compiler""; do
18027 case $cc_temp in
18028 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18029 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18030 \-*) ;;
18031 *) break;;
18032 esac
18033done
18034cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18035
John Criswell47fdd832003-07-14 16:52:07 +000018036
18037# We don't want -fno-exception wen compiling C++ code, so set the
18038# no_builtin_flag separately
18039if test "$GXX" = yes; then
18040 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18041else
18042 lt_prog_compiler_no_builtin_flag_CXX=
18043fi
18044
18045if test "$GXX" = yes; then
18046 # Set up default GNU C++ configuration
18047
18048
Reid Spencera773bd52006-08-04 18:18:08 +000018049# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018050if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018051 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018052else
18053 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018054fi
18055
John Criswell47fdd832003-07-14 16:52:07 +000018056ac_prog=ld
18057if test "$GCC" = yes; then
18058 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018059 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18060echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018061 case $host in
18062 *-*-mingw*)
18063 # gcc leaves a trailing carriage return which upsets mingw
18064 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18065 *)
18066 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18067 esac
18068 case $ac_prog in
18069 # Accept absolute paths.
18070 [\\/]* | ?:[\\/]*)
18071 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018072 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018073 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18074 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18075 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18076 done
18077 test -z "$LD" && LD="$ac_prog"
18078 ;;
18079 "")
18080 # If it fails, then pretend we aren't using GCC.
18081 ac_prog=ld
18082 ;;
18083 *)
18084 # If it is relative, then search for the first ld in PATH.
18085 with_gnu_ld=unknown
18086 ;;
18087 esac
18088elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018089 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18090echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018091else
Reid Spencera773bd52006-08-04 18:18:08 +000018092 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18093echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018094fi
18095if test "${lt_cv_path_LD+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18097else
18098 if test -z "$LD"; then
18099 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18100 for ac_dir in $PATH; do
18101 IFS="$lt_save_ifs"
18102 test -z "$ac_dir" && ac_dir=.
18103 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18104 lt_cv_path_LD="$ac_dir/$ac_prog"
18105 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018106 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018107 # Break only if it was the GNU/non-GNU ld that we prefer.
18108 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18109 *GNU* | *'with BFD'*)
18110 test "$with_gnu_ld" != no && break
18111 ;;
18112 *)
18113 test "$with_gnu_ld" != yes && break
18114 ;;
18115 esac
18116 fi
18117 done
18118 IFS="$lt_save_ifs"
18119else
18120 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18121fi
18122fi
18123
18124LD="$lt_cv_path_LD"
18125if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018126 { echo "$as_me:$LINENO: result: $LD" >&5
18127echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018128else
Reid Spencera773bd52006-08-04 18:18:08 +000018129 { echo "$as_me:$LINENO: result: no" >&5
18130echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018131fi
18132test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18133echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18134 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018135{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18136echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018137if test "${lt_cv_prog_gnu_ld+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
18139else
Reid Spencera773bd52006-08-04 18:18:08 +000018140 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018141case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018142*GNU* | *'with BFD'*)
18143 lt_cv_prog_gnu_ld=yes
18144 ;;
18145*)
18146 lt_cv_prog_gnu_ld=no
18147 ;;
18148esac
18149fi
Reid Spencera773bd52006-08-04 18:18:08 +000018150{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18151echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018152with_gnu_ld=$lt_cv_prog_gnu_ld
18153
18154
18155
18156 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18157 # archiving commands below assume that GNU ld is being used.
18158 if test "$with_gnu_ld" = yes; then
18159 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18160 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'
18161
18162 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18163 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18164
18165 # If archive_cmds runs LD, not CC, wlarc should be empty
18166 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18167 # investigate it a little bit more. (MM)
18168 wlarc='${wl}'
18169
18170 # ancient GNU ld didn't support --whole-archive et. al.
18171 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18172 grep 'no-whole-archive' > /dev/null; then
18173 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18174 else
18175 whole_archive_flag_spec_CXX=
18176 fi
18177 else
18178 with_gnu_ld=no
18179 wlarc=
18180
18181 # A generic and very simple default shared library creation
18182 # command for GNU C++ for the case where it uses the native
18183 # linker, instead of GNU ld. If possible, this setting should
18184 # overridden to take advantage of the native linker features on
18185 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018186 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018187 fi
18188
18189 # Commands to make compiler produce verbose output that lists
18190 # what "hidden" libraries, object files and flags are used when
18191 # linking a shared library.
18192 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18193
18194else
18195 GXX=no
18196 with_gnu_ld=no
18197 wlarc=
18198fi
18199
18200# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018201{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18202echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018203ld_shlibs_CXX=yes
18204case $host_os in
18205 aix3*)
18206 # FIXME: insert proper C++ library support
18207 ld_shlibs_CXX=no
18208 ;;
18209 aix4* | aix5*)
18210 if test "$host_cpu" = ia64; then
18211 # On IA64, the linker does run time linking by default, so we don't
18212 # have to do anything special.
18213 aix_use_runtimelinking=no
18214 exp_sym_flag='-Bexport'
18215 no_entry_flag=""
18216 else
18217 aix_use_runtimelinking=no
18218
18219 # Test if we are trying to use run time linking or normal
18220 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18221 # need to do runtime linking.
18222 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18223 for ld_flag in $LDFLAGS; do
18224 case $ld_flag in
18225 *-brtl*)
18226 aix_use_runtimelinking=yes
18227 break
18228 ;;
18229 esac
18230 done
Reid Spencera773bd52006-08-04 18:18:08 +000018231 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018232 esac
18233
18234 exp_sym_flag='-bexport'
18235 no_entry_flag='-bnoentry'
18236 fi
18237
18238 # When large executables or shared objects are built, AIX ld can
18239 # have problems creating the table of contents. If linking a library
18240 # or program results in "error TOC overflow" add -mminimal-toc to
18241 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18242 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18243
18244 archive_cmds_CXX=''
18245 hardcode_direct_CXX=yes
18246 hardcode_libdir_separator_CXX=':'
18247 link_all_deplibs_CXX=yes
18248
18249 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018250 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018251 # We only want to do this on AIX 4.2 and lower, the check
18252 # below for broken collect2 doesn't work under 4.3+
18253 collect2name=`${CC} -print-prog-name=collect2`
18254 if test -f "$collect2name" && \
18255 strings "$collect2name" | grep resolve_lib_name >/dev/null
18256 then
18257 # We have reworked collect2
18258 hardcode_direct_CXX=yes
18259 else
18260 # We have old collect2
18261 hardcode_direct_CXX=unsupported
18262 # It fails to find uninstalled libraries when the uninstalled
18263 # path is not listed in the libpath. Setting hardcode_minus_L
18264 # to unsupported forces relinking
18265 hardcode_minus_L_CXX=yes
18266 hardcode_libdir_flag_spec_CXX='-L$libdir'
18267 hardcode_libdir_separator_CXX=
18268 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018269 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018270 esac
18271 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018272 if test "$aix_use_runtimelinking" = yes; then
18273 shared_flag="$shared_flag "'${wl}-G'
18274 fi
John Criswell47fdd832003-07-14 16:52:07 +000018275 else
18276 # not using gcc
18277 if test "$host_cpu" = ia64; then
18278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18279 # chokes on -Wl,-G. The following line is correct:
18280 shared_flag='-G'
18281 else
18282 if test "$aix_use_runtimelinking" = yes; then
18283 shared_flag='${wl}-G'
18284 else
18285 shared_flag='${wl}-bM:SRE'
18286 fi
18287 fi
18288 fi
18289
18290 # It seems that -bexpall does not export symbols beginning with
18291 # underscore (_), so it is better to generate a list of symbols to export.
18292 always_export_symbols_CXX=yes
18293 if test "$aix_use_runtimelinking" = yes; then
18294 # Warning - without using the other runtime loading flags (-brtl),
18295 # -berok will link without error, but may produce a broken library.
18296 allow_undefined_flag_CXX='-berok'
18297 # Determine the default libpath from the value encoded in an empty executable.
18298 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018299/* confdefs.h. */
18300_ACEOF
18301cat confdefs.h >>conftest.$ac_ext
18302cat >>conftest.$ac_ext <<_ACEOF
18303/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018304
John Criswell47fdd832003-07-14 16:52:07 +000018305int
18306main ()
18307{
18308
18309 ;
18310 return 0;
18311}
18312_ACEOF
18313rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018314if { (ac_try="$ac_link"
18315case "(($ac_try" in
18316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18317 *) ac_try_echo=$ac_try;;
18318esac
18319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18320 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018321 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018322 grep -v '^ *+' conftest.er1 >conftest.err
18323 rm -f conftest.er1
18324 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018326 (exit $ac_status); } &&
18327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18328 { (case "(($ac_try" in
18329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330 *) ac_try_echo=$ac_try;;
18331esac
18332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333 (eval "$ac_try") 2>&5
18334 ac_status=$?
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); }; } &&
18337 { ac_try='test -s conftest$ac_exeext'
18338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18341esac
18342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018347
18348aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18349}'`
18350# Check for a 64-bit object if we didn't find anything.
18351if 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; }
18352}'`; fi
18353else
18354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018355sed 's/^/| /' conftest.$ac_ext >&5
18356
Reid Spencera773bd52006-08-04 18:18:08 +000018357
John Criswell47fdd832003-07-14 16:52:07 +000018358fi
Reid Spencera773bd52006-08-04 18:18:08 +000018359
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018360rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018361 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018362if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18363
18364 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18365
Reid Spencera773bd52006-08-04 18:18:08 +000018366 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 +000018367 else
18368 if test "$host_cpu" = ia64; then
18369 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18370 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018371 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 +000018372 else
18373 # Determine the default libpath from the value encoded in an empty executable.
18374 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018375/* confdefs.h. */
18376_ACEOF
18377cat confdefs.h >>conftest.$ac_ext
18378cat >>conftest.$ac_ext <<_ACEOF
18379/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018380
John Criswell47fdd832003-07-14 16:52:07 +000018381int
18382main ()
18383{
18384
18385 ;
18386 return 0;
18387}
18388_ACEOF
18389rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018390if { (ac_try="$ac_link"
18391case "(($ac_try" in
18392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393 *) ac_try_echo=$ac_try;;
18394esac
18395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18396 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018397 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018398 grep -v '^ *+' conftest.er1 >conftest.err
18399 rm -f conftest.er1
18400 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018402 (exit $ac_status); } &&
18403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18404 { (case "(($ac_try" in
18405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18406 *) ac_try_echo=$ac_try;;
18407esac
18408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18409 (eval "$ac_try") 2>&5
18410 ac_status=$?
18411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412 (exit $ac_status); }; } &&
18413 { ac_try='test -s conftest$ac_exeext'
18414 { (case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18417esac
18418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18419 (eval "$ac_try") 2>&5
18420 ac_status=$?
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018423
18424aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18425}'`
18426# Check for a 64-bit object if we didn't find anything.
18427if 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; }
18428}'`; fi
18429else
18430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018431sed 's/^/| /' conftest.$ac_ext >&5
18432
Reid Spencera773bd52006-08-04 18:18:08 +000018433
John Criswell47fdd832003-07-14 16:52:07 +000018434fi
Reid Spencera773bd52006-08-04 18:18:08 +000018435
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018436rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018437 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018438if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18439
18440 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18441 # Warning - without using the other run time loading flags,
18442 # -berok will link without error, but may produce a broken library.
18443 no_undefined_flag_CXX=' ${wl}-bernotok'
18444 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018445 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018446 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018447 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018448 # This is similar to how AIX traditionally builds its shared libraries.
18449 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 +000018450 fi
18451 fi
18452 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018453
18454 beos*)
18455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18456 allow_undefined_flag_CXX=unsupported
18457 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18458 # support --undefined. This deserves some investigation. FIXME
18459 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18460 else
18461 ld_shlibs_CXX=no
18462 fi
18463 ;;
18464
John Criswell47fdd832003-07-14 16:52:07 +000018465 chorus*)
18466 case $cc_basename in
18467 *)
18468 # FIXME: insert proper C++ library support
18469 ld_shlibs_CXX=no
18470 ;;
18471 esac
18472 ;;
18473
18474 cygwin* | mingw* | pw32*)
18475 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18476 # as there is no search path for DLLs.
18477 hardcode_libdir_flag_spec_CXX='-L$libdir'
18478 allow_undefined_flag_CXX=unsupported
18479 always_export_symbols_CXX=no
18480 enable_shared_with_static_runtimes_CXX=yes
18481
18482 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018483 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 +000018484 # If the export-symbols file already is a .def file (1st line
18485 # is EXPORTS), use it as is; otherwise, prepend...
18486 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18487 cp $export_symbols $output_objdir/$soname.def;
18488 else
18489 echo EXPORTS > $output_objdir/$soname.def;
18490 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018491 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018492 $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 +000018493 else
18494 ld_shlibs_CXX=no
18495 fi
18496 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018497 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018498 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018499 rhapsody* | darwin1.[012])
18500 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18501 ;;
18502 *) # Darwin 1.3 on
18503 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18504 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18505 else
18506 case ${MACOSX_DEPLOYMENT_TARGET} in
18507 10.[012])
18508 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18509 ;;
18510 10.*)
18511 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18512 ;;
18513 esac
18514 fi
18515 ;;
18516 esac
18517 archive_cmds_need_lc_CXX=no
18518 hardcode_direct_CXX=no
18519 hardcode_automatic_CXX=yes
18520 hardcode_shlibpath_var_CXX=unsupported
18521 whole_archive_flag_spec_CXX=''
18522 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018523
Reid Spencer2706f8c2004-09-19 23:53:36 +000018524 if test "$GXX" = yes ; then
18525 lt_int_apple_cc_single_mod=no
18526 output_verbose_link_cmd='echo'
18527 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18528 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018529 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018530 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018531 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 +000018532 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018533 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 +000018534 fi
18535 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018536 # 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 +000018537 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018538 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 +000018539 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018540 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 +000018541 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018542 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 +000018543 else
Reid Spencera773bd52006-08-04 18:18:08 +000018544 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018545 xlc*)
18546 output_verbose_link_cmd='echo'
18547 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'
18548 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018549 # 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 +000018550 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}'
18551 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 +000018552 ;;
18553 *)
18554 ld_shlibs_CXX=no
18555 ;;
18556 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018557 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018558 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018559
18560 dgux*)
18561 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018562 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018563 # FIXME: insert proper C++ library support
18564 ld_shlibs_CXX=no
18565 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018566 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018567 # Green Hills C++ Compiler
18568 # FIXME: insert proper C++ library support
18569 ld_shlibs_CXX=no
18570 ;;
18571 *)
18572 # FIXME: insert proper C++ library support
18573 ld_shlibs_CXX=no
18574 ;;
18575 esac
18576 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018577 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018578 # C++ shared libraries reported to be fairly broken before switch to ELF
18579 ld_shlibs_CXX=no
18580 ;;
18581 freebsd-elf*)
18582 archive_cmds_need_lc_CXX=no
18583 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018584 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018585 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18586 # conventions
18587 ld_shlibs_CXX=yes
18588 ;;
18589 gnu*)
18590 ;;
18591 hpux9*)
18592 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18593 hardcode_libdir_separator_CXX=:
18594 export_dynamic_flag_spec_CXX='${wl}-E'
18595 hardcode_direct_CXX=yes
18596 hardcode_minus_L_CXX=yes # Not in the search PATH,
18597 # but as the default
18598 # location of the library.
18599
18600 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018601 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018602 # FIXME: insert proper C++ library support
18603 ld_shlibs_CXX=no
18604 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018605 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018606 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 +000018607 # Commands to make compiler produce verbose output that lists
18608 # what "hidden" libraries, object files and flags are used when
18609 # linking a shared library.
18610 #
18611 # There doesn't appear to be a way to prevent this compiler from
18612 # explicitly linking system object files so we need to strip them
18613 # from the output so that they don't get included in the library
18614 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018615 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 +000018616 ;;
18617 *)
18618 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018619 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 +000018620 else
18621 # FIXME: insert proper C++ library support
18622 ld_shlibs_CXX=no
18623 fi
18624 ;;
18625 esac
18626 ;;
18627 hpux10*|hpux11*)
18628 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018629 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18630 hardcode_libdir_separator_CXX=:
18631
18632 case $host_cpu in
18633 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018634 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018635 ;;
18636 *)
John Criswell47fdd832003-07-14 16:52:07 +000018637 export_dynamic_flag_spec_CXX='${wl}-E'
18638 ;;
18639 esac
18640 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018641 case $host_cpu in
18642 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018643 hardcode_direct_CXX=no
18644 hardcode_shlibpath_var_CXX=no
18645 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018646 *)
18647 hardcode_direct_CXX=yes
18648 hardcode_minus_L_CXX=yes # Not in the search PATH,
18649 # but as the default
18650 # location of the library.
18651 ;;
18652 esac
18653
18654 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018655 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018656 # FIXME: insert proper C++ library support
18657 ld_shlibs_CXX=no
18658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018659 aCC*)
18660 case $host_cpu in
18661 hppa*64*)
18662 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18663 ;;
18664 ia64*)
18665 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 +000018666 ;;
18667 *)
18668 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18669 ;;
18670 esac
18671 # Commands to make compiler produce verbose output that lists
18672 # what "hidden" libraries, object files and flags are used when
18673 # linking a shared library.
18674 #
18675 # There doesn't appear to be a way to prevent this compiler from
18676 # explicitly linking system object files so we need to strip them
18677 # from the output so that they don't get included in the library
18678 # dependencies.
18679 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'
18680 ;;
18681 *)
18682 if test "$GXX" = yes; then
18683 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018684 case $host_cpu in
18685 hppa*64*)
18686 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18687 ;;
18688 ia64*)
18689 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 +000018690 ;;
18691 *)
18692 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'
18693 ;;
18694 esac
18695 fi
18696 else
18697 # FIXME: insert proper C++ library support
18698 ld_shlibs_CXX=no
18699 fi
18700 ;;
18701 esac
18702 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018703 interix3*)
18704 hardcode_direct_CXX=no
18705 hardcode_shlibpath_var_CXX=no
18706 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18707 export_dynamic_flag_spec_CXX='${wl}-E'
18708 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18709 # Instead, shared libraries are loaded at an image base (0x10000000 by
18710 # default) and relocated if they conflict, which is a slow very memory
18711 # consuming and fragmenting process. To avoid this, we pick a random,
18712 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18713 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18714 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'
18715 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'
18716 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018717 irix5* | irix6*)
18718 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018719 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018720 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018721 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 +000018722
18723 # Archives containing C++ object files must be created using
18724 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18725 # necessary to make sure instantiated templates are included
18726 # in the archive.
18727 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18728 ;;
18729 *)
18730 if test "$GXX" = yes; then
18731 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018732 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 +000018733 else
18734 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'
18735 fi
18736 fi
18737 link_all_deplibs_CXX=yes
18738 ;;
18739 esac
18740 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18741 hardcode_libdir_separator_CXX=:
18742 ;;
18743 linux*)
18744 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018745 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018746 # Kuck and Associates, Inc. (KAI) C++ Compiler
18747
18748 # KCC will only create a shared library if the output file
18749 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18750 # to its proper name (with version) after linking.
18751 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'
18752 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'
18753 # Commands to make compiler produce verbose output that lists
18754 # what "hidden" libraries, object files and flags are used when
18755 # linking a shared library.
18756 #
18757 # There doesn't appear to be a way to prevent this compiler from
18758 # explicitly linking system object files so we need to strip them
18759 # from the output so that they don't get included in the library
18760 # dependencies.
18761 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'
18762
18763 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18764 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18765
18766 # Archives containing C++ object files must be created using
18767 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18768 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18769 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018770 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018771 # Intel C++
18772 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018773 # version 8.0 and above of icpc choke on multiply defined symbols
18774 # if we add $predep_objects and $postdep_objects, however 7.1 and
18775 # earlier do not add the objects themselves.
18776 case `$CC -V 2>&1` in
18777 *"Version 7."*)
18778 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18779 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'
18780 ;;
18781 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018782 tmp_idyn=
18783 case $host_cpu in
18784 ia64*) tmp_idyn=' -i_dynamic';;
18785 esac
18786 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18787 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 +000018788 ;;
18789 esac
John Criswell47fdd832003-07-14 16:52:07 +000018790 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018791 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18792 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18793 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18794 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018795 pgCC*)
18796 # Portland Group C++ compiler
18797 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18798 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'
18799
18800 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18801 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18802 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'
18803 ;;
18804 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018805 # Compaq C++
18806 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18807 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'
18808
18809 runpath_var=LD_RUN_PATH
18810 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18811 hardcode_libdir_separator_CXX=:
18812
18813 # Commands to make compiler produce verbose output that lists
18814 # what "hidden" libraries, object files and flags are used when
18815 # linking a shared library.
18816 #
18817 # There doesn't appear to be a way to prevent this compiler from
18818 # explicitly linking system object files so we need to strip them
18819 # from the output so that they don't get included in the library
18820 # dependencies.
18821 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'
18822 ;;
18823 esac
18824 ;;
18825 lynxos*)
18826 # FIXME: insert proper C++ library support
18827 ld_shlibs_CXX=no
18828 ;;
18829 m88k*)
18830 # FIXME: insert proper C++ library support
18831 ld_shlibs_CXX=no
18832 ;;
18833 mvs*)
18834 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018835 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018836 # FIXME: insert proper C++ library support
18837 ld_shlibs_CXX=no
18838 ;;
18839 *)
18840 # FIXME: insert proper C++ library support
18841 ld_shlibs_CXX=no
18842 ;;
18843 esac
18844 ;;
18845 netbsd*)
18846 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18847 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18848 wlarc=
18849 hardcode_libdir_flag_spec_CXX='-R$libdir'
18850 hardcode_direct_CXX=yes
18851 hardcode_shlibpath_var_CXX=no
18852 fi
18853 # Workaround some broken pre-1.5 toolchains
18854 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18855 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018856 openbsd2*)
18857 # C++ shared libraries are fairly broken
18858 ld_shlibs_CXX=no
18859 ;;
18860 openbsd*)
18861 hardcode_direct_CXX=yes
18862 hardcode_shlibpath_var_CXX=no
18863 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18864 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18866 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18867 export_dynamic_flag_spec_CXX='${wl}-E'
18868 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18869 fi
18870 output_verbose_link_cmd='echo'
18871 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018872 osf3*)
18873 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018874 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018875 # Kuck and Associates, Inc. (KAI) C++ Compiler
18876
18877 # KCC will only create a shared library if the output file
18878 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18879 # to its proper name (with version) after linking.
18880 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'
18881
18882 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18883 hardcode_libdir_separator_CXX=:
18884
18885 # Archives containing C++ object files must be created using
18886 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18887 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18888
18889 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018890 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018891 # Rational C++ 2.4.1
18892 # FIXME: insert proper C++ library support
18893 ld_shlibs_CXX=no
18894 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018895 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018896 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018897 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 +000018898
18899 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18900 hardcode_libdir_separator_CXX=:
18901
18902 # Commands to make compiler produce verbose output that lists
18903 # what "hidden" libraries, object files and flags are used when
18904 # linking a shared library.
18905 #
18906 # There doesn't appear to be a way to prevent this compiler from
18907 # explicitly linking system object files so we need to strip them
18908 # from the output so that they don't get included in the library
18909 # dependencies.
18910 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'
18911 ;;
18912 *)
18913 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18914 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018915 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 +000018916
18917 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18918 hardcode_libdir_separator_CXX=:
18919
18920 # Commands to make compiler produce verbose output that lists
18921 # what "hidden" libraries, object files and flags are used when
18922 # linking a shared library.
18923 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18924
18925 else
18926 # FIXME: insert proper C++ library support
18927 ld_shlibs_CXX=no
18928 fi
18929 ;;
18930 esac
18931 ;;
18932 osf4* | osf5*)
18933 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018934 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018935 # Kuck and Associates, Inc. (KAI) C++ Compiler
18936
18937 # KCC will only create a shared library if the output file
18938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18939 # to its proper name (with version) after linking.
18940 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'
18941
18942 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18943 hardcode_libdir_separator_CXX=:
18944
18945 # Archives containing C++ object files must be created using
18946 # the KAI C++ compiler.
18947 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18948 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018949 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018950 # Rational C++ 2.4.1
18951 # FIXME: insert proper C++ library support
18952 ld_shlibs_CXX=no
18953 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018954 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018955 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018956 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 +000018957 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18958 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018959 $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 +000018960 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018961
18962 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18963 hardcode_libdir_separator_CXX=:
18964
18965 # Commands to make compiler produce verbose output that lists
18966 # what "hidden" libraries, object files and flags are used when
18967 # linking a shared library.
18968 #
18969 # There doesn't appear to be a way to prevent this compiler from
18970 # explicitly linking system object files so we need to strip them
18971 # from the output so that they don't get included in the library
18972 # dependencies.
18973 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'
18974 ;;
18975 *)
18976 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18977 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018978 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 +000018979
18980 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18981 hardcode_libdir_separator_CXX=:
18982
18983 # Commands to make compiler produce verbose output that lists
18984 # what "hidden" libraries, object files and flags are used when
18985 # linking a shared library.
18986 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18987
18988 else
18989 # FIXME: insert proper C++ library support
18990 ld_shlibs_CXX=no
18991 fi
18992 ;;
18993 esac
18994 ;;
18995 psos*)
18996 # FIXME: insert proper C++ library support
18997 ld_shlibs_CXX=no
18998 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018999 sunos4*)
19000 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019001 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019002 # Sun C++ 4.x
19003 # FIXME: insert proper C++ library support
19004 ld_shlibs_CXX=no
19005 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019006 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019007 # Lucid
19008 # FIXME: insert proper C++ library support
19009 ld_shlibs_CXX=no
19010 ;;
19011 *)
19012 # FIXME: insert proper C++ library support
19013 ld_shlibs_CXX=no
19014 ;;
19015 esac
19016 ;;
19017 solaris*)
19018 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019019 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019020 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019021 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019022 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019023 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 +000019024 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 +000019025 $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 +000019026
19027 hardcode_libdir_flag_spec_CXX='-R$libdir'
19028 hardcode_shlibpath_var_CXX=no
19029 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019030 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019031 *)
19032 # The C++ compiler is used as linker so we must use $wl
19033 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019034 # linker. We must also pass each convience library through
19035 # to the system linker between allextract/defaultextract.
19036 # The C++ compiler will combine linker options so we
19037 # cannot just pass the convience library names through
19038 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019039 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019040 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 +000019041 ;;
19042 esac
19043 link_all_deplibs_CXX=yes
19044
Reid Spencera773bd52006-08-04 18:18:08 +000019045 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019046
19047 # Archives containing C++ object files must be created using
19048 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19049 # necessary to make sure instantiated templates are included
19050 # in the archive.
19051 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19052 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019053 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019054 # Green Hills C++ Compiler
19055 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19056
19057 # The C++ compiler must be used to create the archive.
19058 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19059 ;;
19060 *)
19061 # GNU C++ compiler with Solaris linker
19062 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19063 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19064 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019065 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 +000019066 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19067 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19068
John Criswell47fdd832003-07-14 16:52:07 +000019069 # Commands to make compiler produce verbose output that lists
19070 # what "hidden" libraries, object files and flags are used when
19071 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019072 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019073 else
19074 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19075 # platform.
19076 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 +000019077 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19078 $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 +000019079
19080 # Commands to make compiler produce verbose output that lists
19081 # what "hidden" libraries, object files and flags are used when
19082 # linking a shared library.
19083 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19084 fi
19085
19086 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19087 fi
19088 ;;
19089 esac
19090 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019091 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19092 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019093 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019094 hardcode_shlibpath_var_CXX=no
19095 runpath_var='LD_RUN_PATH'
19096
19097 case $cc_basename in
19098 CC*)
19099 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19100 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19101 ;;
19102 *)
19103 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19104 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19105 ;;
19106 esac
19107 ;;
19108 sysv5* | sco3.2v5* | sco5v6*)
19109 # Note: We can NOT use -z defs as we might desire, because we do not
19110 # link with -lc, and that would cause any symbols used from libc to
19111 # always be unresolved, which means just about no library would
19112 # ever link correctly. If we're not using GNU ld we use -z text
19113 # though, which does catch some bad symbols but isn't as heavy-handed
19114 # as -z defs.
19115 # For security reasons, it is highly recommended that you always
19116 # use absolute paths for naming shared libraries, and exclude the
19117 # DT_RUNPATH tag from executables and libraries. But doing so
19118 # requires that you compile everything twice, which is a pain.
19119 # So that behaviour is only enabled if SCOABSPATH is set to a
19120 # non-empty value in the environment. Most likely only useful for
19121 # creating official distributions of packages.
19122 # This is a hack until libtool officially supports absolute path
19123 # names for shared libraries.
19124 no_undefined_flag_CXX='${wl}-z,text'
19125 allow_undefined_flag_CXX='${wl}-z,nodefs'
19126 archive_cmds_need_lc_CXX=no
19127 hardcode_shlibpath_var_CXX=no
19128 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19129 hardcode_libdir_separator_CXX=':'
19130 link_all_deplibs_CXX=yes
19131 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19132 runpath_var='LD_RUN_PATH'
19133
19134 case $cc_basename in
19135 CC*)
19136 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19137 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19138 ;;
19139 *)
19140 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19141 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19142 ;;
19143 esac
John Criswell47fdd832003-07-14 16:52:07 +000019144 ;;
19145 tandem*)
19146 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019147 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019148 # NonStop-UX NCC 3.20
19149 # FIXME: insert proper C++ library support
19150 ld_shlibs_CXX=no
19151 ;;
19152 *)
19153 # FIXME: insert proper C++ library support
19154 ld_shlibs_CXX=no
19155 ;;
19156 esac
19157 ;;
19158 vxworks*)
19159 # FIXME: insert proper C++ library support
19160 ld_shlibs_CXX=no
19161 ;;
19162 *)
19163 # FIXME: insert proper C++ library support
19164 ld_shlibs_CXX=no
19165 ;;
19166esac
Reid Spencera773bd52006-08-04 18:18:08 +000019167{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19168echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019169test "$ld_shlibs_CXX" = no && can_build_shared=no
19170
19171GCC_CXX="$GXX"
19172LD_CXX="$LD"
19173
John Criswell47fdd832003-07-14 16:52:07 +000019174
19175cat > conftest.$ac_ext <<EOF
19176class Foo
19177{
19178public:
19179 Foo (void) { a = 0; }
19180private:
19181 int a;
19182};
19183EOF
19184
19185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19186 (eval $ac_compile) 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; then
19190 # Parse the compiler output and extract the necessary
19191 # objects, libraries and library flags.
19192
19193 # Sentinel used to keep track of whether or not we are before
19194 # the conftest object file.
19195 pre_test_object_deps_done=no
19196
19197 # The `*' in the case matches for architectures that use `case' in
19198 # $output_verbose_cmd can trigger glob expansion during the loop
19199 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019200 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019201
19202 for p in `eval $output_verbose_link_cmd`; do
19203 case $p in
19204
19205 -L* | -R* | -l*)
19206 # Some compilers place space between "-{L,R}" and the path.
19207 # Remove the space.
19208 if test $p = "-L" \
19209 || test $p = "-R"; then
19210 prev=$p
19211 continue
19212 else
19213 prev=
19214 fi
19215
19216 if test "$pre_test_object_deps_done" = no; then
19217 case $p in
19218 -L* | -R*)
19219 # Internal compiler library paths should come after those
19220 # provided the user. The postdeps already come after the
19221 # user supplied libs so there is no need to process them.
19222 if test -z "$compiler_lib_search_path_CXX"; then
19223 compiler_lib_search_path_CXX="${prev}${p}"
19224 else
19225 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19226 fi
19227 ;;
19228 # The "-l" case would never come before the object being
19229 # linked, so don't bother handling this case.
19230 esac
19231 else
19232 if test -z "$postdeps_CXX"; then
19233 postdeps_CXX="${prev}${p}"
19234 else
19235 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19236 fi
19237 fi
19238 ;;
19239
19240 *.$objext)
19241 # This assumes that the test object file only shows up
19242 # once in the compiler output.
19243 if test "$p" = "conftest.$objext"; then
19244 pre_test_object_deps_done=yes
19245 continue
19246 fi
19247
19248 if test "$pre_test_object_deps_done" = no; then
19249 if test -z "$predep_objects_CXX"; then
19250 predep_objects_CXX="$p"
19251 else
19252 predep_objects_CXX="$predep_objects_CXX $p"
19253 fi
19254 else
19255 if test -z "$postdep_objects_CXX"; then
19256 postdep_objects_CXX="$p"
19257 else
19258 postdep_objects_CXX="$postdep_objects_CXX $p"
19259 fi
19260 fi
19261 ;;
19262
19263 *) ;; # Ignore the rest.
19264
19265 esac
19266 done
19267
19268 # Clean up.
19269 rm -f a.out a.exe
19270else
19271 echo "libtool.m4: error: problem compiling CXX test program"
19272fi
19273
19274$rm -f confest.$objext
19275
Reid Spencera773bd52006-08-04 18:18:08 +000019276# PORTME: override above test on systems where it is broken
19277case $host_os in
19278interix3*)
19279 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19280 # hack all around it, let's just trust "g++" to DTRT.
19281 predep_objects_CXX=
19282 postdep_objects_CXX=
19283 postdeps_CXX=
19284 ;;
19285
19286solaris*)
19287 case $cc_basename in
19288 CC*)
19289 # Adding this requires a known-good setup of shared libraries for
19290 # Sun compiler versions before 5.6, else PIC objects from an old
19291 # archive will be linked into the output, leading to subtle bugs.
19292 postdeps_CXX='-lCstd -lCrun'
19293 ;;
19294 esac
19295 ;;
19296esac
19297
19298
John Criswell47fdd832003-07-14 16:52:07 +000019299case " $postdeps_CXX " in
19300*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19301esac
19302
19303lt_prog_compiler_wl_CXX=
19304lt_prog_compiler_pic_CXX=
19305lt_prog_compiler_static_CXX=
19306
Reid Spencera773bd52006-08-04 18:18:08 +000019307{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19308echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019309
19310 # C++ specific cases for pic, static, wl, etc.
19311 if test "$GXX" = yes; then
19312 lt_prog_compiler_wl_CXX='-Wl,'
19313 lt_prog_compiler_static_CXX='-static'
19314
19315 case $host_os in
19316 aix*)
19317 # All AIX code is PIC.
19318 if test "$host_cpu" = ia64; then
19319 # AIX 5 now supports IA64 processor
19320 lt_prog_compiler_static_CXX='-Bstatic'
19321 fi
19322 ;;
19323 amigaos*)
19324 # FIXME: we need at least 68020 code to build shared libraries, but
19325 # adding the `-m68020' flag to GCC prevents building anything better,
19326 # like `-m68040'.
19327 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19328 ;;
19329 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19330 # PIC is the default for these OSes.
19331 ;;
19332 mingw* | os2* | pw32*)
19333 # This hack is so that the source file can tell whether it is being
19334 # built for inclusion in a dll (and should export symbols for example).
19335 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19336 ;;
19337 darwin* | rhapsody*)
19338 # PIC is the default on this platform
19339 # Common symbols not allowed in MH_DYLIB files
19340 lt_prog_compiler_pic_CXX='-fno-common'
19341 ;;
19342 *djgpp*)
19343 # DJGPP does not support shared libraries at all
19344 lt_prog_compiler_pic_CXX=
19345 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019346 interix3*)
19347 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19348 # Instead, we relocate shared libraries at runtime.
19349 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019350 sysv4*MP*)
19351 if test -d /usr/nec; then
19352 lt_prog_compiler_pic_CXX=-Kconform_pic
19353 fi
19354 ;;
19355 hpux*)
19356 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19357 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019358 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019359 hppa*64*|ia64*)
19360 ;;
19361 *)
19362 lt_prog_compiler_pic_CXX='-fPIC'
19363 ;;
19364 esac
19365 ;;
19366 *)
19367 lt_prog_compiler_pic_CXX='-fPIC'
19368 ;;
19369 esac
19370 else
19371 case $host_os in
19372 aix4* | aix5*)
19373 # All AIX code is PIC.
19374 if test "$host_cpu" = ia64; then
19375 # AIX 5 now supports IA64 processor
19376 lt_prog_compiler_static_CXX='-Bstatic'
19377 else
19378 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19379 fi
19380 ;;
19381 chorus*)
19382 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019383 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019384 # Green Hills C++ Compiler
19385 # _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"
19386 ;;
19387 esac
19388 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019389 darwin*)
19390 # PIC is the default on this platform
19391 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019392 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019393 xlc*)
19394 lt_prog_compiler_pic_CXX='-qnocommon'
19395 lt_prog_compiler_wl_CXX='-Wl,'
19396 ;;
19397 esac
19398 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019399 dgux*)
19400 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019401 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019402 lt_prog_compiler_pic_CXX='-KPIC'
19403 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019404 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019405 # Green Hills C++ Compiler
19406 lt_prog_compiler_pic_CXX='-pic'
19407 ;;
19408 *)
19409 ;;
19410 esac
19411 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019412 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019413 # FreeBSD uses GNU C++
19414 ;;
19415 hpux9* | hpux10* | hpux11*)
19416 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019417 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019418 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019419 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019420 if test "$host_cpu" != ia64; then
19421 lt_prog_compiler_pic_CXX='+Z'
19422 fi
19423 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019424 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019425 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019426 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19427 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019428 hppa*64*|ia64*)
19429 # +Z the default
19430 ;;
19431 *)
19432 lt_prog_compiler_pic_CXX='+Z'
19433 ;;
19434 esac
19435 ;;
19436 *)
19437 ;;
19438 esac
19439 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019440 interix*)
19441 # This is c89, which is MS Visual C++ (no shared libs)
19442 # Anyone wants to do a port?
19443 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019444 irix5* | irix6* | nonstopux*)
19445 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019446 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019447 lt_prog_compiler_wl_CXX='-Wl,'
19448 lt_prog_compiler_static_CXX='-non_shared'
19449 # CC pic flag -KPIC is the default.
19450 ;;
19451 *)
19452 ;;
19453 esac
19454 ;;
19455 linux*)
19456 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019457 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019458 # KAI C++ Compiler
19459 lt_prog_compiler_wl_CXX='--backend -Wl,'
19460 lt_prog_compiler_pic_CXX='-fPIC'
19461 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019462 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019463 # Intel C++
19464 lt_prog_compiler_wl_CXX='-Wl,'
19465 lt_prog_compiler_pic_CXX='-KPIC'
19466 lt_prog_compiler_static_CXX='-static'
19467 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019468 pgCC*)
19469 # Portland Group C++ compiler.
19470 lt_prog_compiler_wl_CXX='-Wl,'
19471 lt_prog_compiler_pic_CXX='-fpic'
19472 lt_prog_compiler_static_CXX='-Bstatic'
19473 ;;
19474 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019475 # Compaq C++
19476 # Make sure the PIC flag is empty. It appears that all Alpha
19477 # Linux and Compaq Tru64 Unix objects are PIC.
19478 lt_prog_compiler_pic_CXX=
19479 lt_prog_compiler_static_CXX='-non_shared'
19480 ;;
19481 *)
19482 ;;
19483 esac
19484 ;;
19485 lynxos*)
19486 ;;
19487 m88k*)
19488 ;;
19489 mvs*)
19490 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019491 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019492 lt_prog_compiler_pic_CXX='-W c,exportall'
19493 ;;
19494 *)
19495 ;;
19496 esac
19497 ;;
19498 netbsd*)
19499 ;;
19500 osf3* | osf4* | osf5*)
19501 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019502 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019503 lt_prog_compiler_wl_CXX='--backend -Wl,'
19504 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019505 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019506 # Rational C++ 2.4.1
19507 lt_prog_compiler_pic_CXX='-pic'
19508 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019509 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019510 # Digital/Compaq C++
19511 lt_prog_compiler_wl_CXX='-Wl,'
19512 # Make sure the PIC flag is empty. It appears that all Alpha
19513 # Linux and Compaq Tru64 Unix objects are PIC.
19514 lt_prog_compiler_pic_CXX=
19515 lt_prog_compiler_static_CXX='-non_shared'
19516 ;;
19517 *)
19518 ;;
19519 esac
19520 ;;
19521 psos*)
19522 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019523 solaris*)
19524 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019525 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019526 # Sun C++ 4.2, 5.x and Centerline C++
19527 lt_prog_compiler_pic_CXX='-KPIC'
19528 lt_prog_compiler_static_CXX='-Bstatic'
19529 lt_prog_compiler_wl_CXX='-Qoption ld '
19530 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019531 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019532 # Green Hills C++ Compiler
19533 lt_prog_compiler_pic_CXX='-PIC'
19534 ;;
19535 *)
19536 ;;
19537 esac
19538 ;;
19539 sunos4*)
19540 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019541 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019542 # Sun C++ 4.x
19543 lt_prog_compiler_pic_CXX='-pic'
19544 lt_prog_compiler_static_CXX='-Bstatic'
19545 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019546 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019547 # Lucid
19548 lt_prog_compiler_pic_CXX='-pic'
19549 ;;
19550 *)
19551 ;;
19552 esac
19553 ;;
19554 tandem*)
19555 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019556 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019557 # NonStop-UX NCC 3.20
19558 lt_prog_compiler_pic_CXX='-KPIC'
19559 ;;
19560 *)
19561 ;;
19562 esac
19563 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019564 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19565 case $cc_basename in
19566 CC*)
19567 lt_prog_compiler_wl_CXX='-Wl,'
19568 lt_prog_compiler_pic_CXX='-KPIC'
19569 lt_prog_compiler_static_CXX='-Bstatic'
19570 ;;
19571 esac
John Criswell47fdd832003-07-14 16:52:07 +000019572 ;;
19573 vxworks*)
19574 ;;
19575 *)
19576 lt_prog_compiler_can_build_shared_CXX=no
19577 ;;
19578 esac
19579 fi
19580
Reid Spencera773bd52006-08-04 18:18:08 +000019581{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19582echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019583
19584#
19585# Check to make sure the PIC flag actually works.
19586#
19587if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019588
Reid Spencera773bd52006-08-04 18:18:08 +000019589{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19590echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019591if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19593else
19594 lt_prog_compiler_pic_works_CXX=no
19595 ac_outfile=conftest.$ac_objext
19596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19597 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19598 # Insert the option either (1) after the last *FLAGS variable, or
19599 # (2) before a word containing "conftest.", or (3) at the end.
19600 # Note that $ac_compile itself does not contain backslashes and begins
19601 # with a dollar sign (not a hyphen), so the echo should work correctly.
19602 # The option is referenced via a variable to avoid confusing sed.
19603 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19606 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000019607 (eval echo "\"\$as_me:19607: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019608 (eval "$lt_compile" 2>conftest.err)
19609 ac_status=$?
19610 cat conftest.err >&5
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000019611 echo "$as_me:19611: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019612 if (exit $ac_status) && test -s "$ac_outfile"; then
19613 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019614 # So say no if there are warnings other than the usual output.
19615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19617 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019618 lt_prog_compiler_pic_works_CXX=yes
19619 fi
19620 fi
19621 $rm conftest*
19622
19623fi
Reid Spencera773bd52006-08-04 18:18:08 +000019624{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19625echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019626
19627if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19628 case $lt_prog_compiler_pic_CXX in
19629 "" | " "*) ;;
19630 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19631 esac
19632else
19633 lt_prog_compiler_pic_CXX=
19634 lt_prog_compiler_can_build_shared_CXX=no
19635fi
19636
19637fi
Reid Spencera773bd52006-08-04 18:18:08 +000019638case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019639 # For platforms which do not support PIC, -DPIC is meaningless:
19640 *djgpp*)
19641 lt_prog_compiler_pic_CXX=
19642 ;;
19643 *)
19644 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19645 ;;
19646esac
19647
Reid Spencera773bd52006-08-04 18:18:08 +000019648#
19649# Check to make sure the static flag actually works.
19650#
19651wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19652{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19653echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19654if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19656else
19657 lt_prog_compiler_static_works_CXX=no
19658 save_LDFLAGS="$LDFLAGS"
19659 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19660 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19661 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19662 # The linker can only warn and ignore the option if not recognized
19663 # So say no if there are warnings
19664 if test -s conftest.err; then
19665 # Append any errors to the config.log.
19666 cat conftest.err 1>&5
19667 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19669 if diff conftest.exp conftest.er2 >/dev/null; then
19670 lt_prog_compiler_static_works_CXX=yes
19671 fi
19672 else
19673 lt_prog_compiler_static_works_CXX=yes
19674 fi
19675 fi
19676 $rm conftest*
19677 LDFLAGS="$save_LDFLAGS"
19678
19679fi
19680{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19681echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19682
19683if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19684 :
19685else
19686 lt_prog_compiler_static_CXX=
19687fi
19688
19689
19690{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19691echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019692if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19693 echo $ECHO_N "(cached) $ECHO_C" >&6
19694else
19695 lt_cv_prog_compiler_c_o_CXX=no
19696 $rm -r conftest 2>/dev/null
19697 mkdir conftest
19698 cd conftest
19699 mkdir out
19700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19701
John Criswell47fdd832003-07-14 16:52:07 +000019702 lt_compiler_flag="-o out/conftest2.$ac_objext"
19703 # Insert the option either (1) after the last *FLAGS variable, or
19704 # (2) before a word containing "conftest.", or (3) at the end.
19705 # Note that $ac_compile itself does not contain backslashes and begins
19706 # with a dollar sign (not a hyphen), so the echo should work correctly.
19707 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19710 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000019711 (eval echo "\"\$as_me:19711: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019712 (eval "$lt_compile" 2>out/conftest.err)
19713 ac_status=$?
19714 cat out/conftest.err >&5
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000019715 echo "$as_me:19715: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19717 then
19718 # The compiler can only warn and ignore the option if not recognized
19719 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019720 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019723 lt_cv_prog_compiler_c_o_CXX=yes
19724 fi
19725 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019726 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019727 $rm conftest*
19728 # SGI C++ compiler will create directory out/ii_files/ for
19729 # template instantiation
19730 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19731 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019732 cd ..
19733 rmdir conftest
19734 $rm conftest*
19735
19736fi
Reid Spencera773bd52006-08-04 18:18:08 +000019737{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19738echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019739
19740
19741hard_links="nottested"
19742if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19743 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019744 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19745echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019746 hard_links=yes
19747 $rm conftest*
19748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19749 touch conftest.a
19750 ln conftest.a conftest.b 2>&5 || hard_links=no
19751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019752 { echo "$as_me:$LINENO: result: $hard_links" >&5
19753echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019754 if test "$hard_links" = no; then
19755 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19756echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19757 need_locks=warn
19758 fi
19759else
19760 need_locks=no
19761fi
19762
Reid Spencera773bd52006-08-04 18:18:08 +000019763{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19764echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019765
19766 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19767 case $host_os in
19768 aix4* | aix5*)
19769 # If we're using GNU nm, then we don't want the "-C" option.
19770 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19771 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19772 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'
19773 else
19774 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'
19775 fi
19776 ;;
19777 pw32*)
19778 export_symbols_cmds_CXX="$ltdll_cmds"
19779 ;;
19780 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019781 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 +000019782 ;;
19783 *)
19784 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19785 ;;
19786 esac
19787
Reid Spencera773bd52006-08-04 18:18:08 +000019788{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19789echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019790test "$ld_shlibs_CXX" = no && can_build_shared=no
19791
John Criswell47fdd832003-07-14 16:52:07 +000019792#
19793# Do we need to explicitly link libc?
19794#
19795case "x$archive_cmds_need_lc_CXX" in
19796x|xyes)
19797 # Assume -lc should be added
19798 archive_cmds_need_lc_CXX=yes
19799
19800 if test "$enable_shared" = yes && test "$GCC" = yes; then
19801 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019802 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019803 # FIXME: we may have to deal with multi-command sequences.
19804 ;;
19805 '$CC '*)
19806 # Test whether the compiler implicitly links with -lc since on some
19807 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19808 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019809 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19810echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019811 $rm conftest*
19812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19813
19814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19815 (eval $ac_compile) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); } 2>conftest.err; then
19819 soname=conftest
19820 lib=conftest
19821 libobjs=conftest.$ac_objext
19822 deplibs=
19823 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019824 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019825 compiler_flags=-v
19826 linker_flags=-v
19827 verstring=
19828 output_objdir=.
19829 libname=conftest
19830 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19831 allow_undefined_flag_CXX=
19832 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19833 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }
19837 then
19838 archive_cmds_need_lc_CXX=no
19839 else
19840 archive_cmds_need_lc_CXX=yes
19841 fi
19842 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19843 else
19844 cat conftest.err 1>&5
19845 fi
19846 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019847 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19848echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019849 ;;
19850 esac
19851 fi
19852 ;;
19853esac
19854
Reid Spencera773bd52006-08-04 18:18:08 +000019855{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19856echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019857library_names_spec=
19858libname_spec='lib$name'
19859soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019860shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019861postinstall_cmds=
19862postuninstall_cmds=
19863finish_cmds=
19864finish_eval=
19865shlibpath_var=
19866shlibpath_overrides_runpath=unknown
19867version_type=none
19868dynamic_linker="$host_os ld.so"
19869sys_lib_dlsearch_path_spec="/lib /usr/lib"
19870if test "$GCC" = yes; then
19871 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19872 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19873 # if the path contains ";" then we assume it to be the separator
19874 # otherwise default to the standard path separator (i.e. ":") - it is
19875 # assumed that no part of a normal pathname contains ";" but that should
19876 # okay in the real world where ";" in dirpaths is itself problematic.
19877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19878 else
19879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19880 fi
19881else
19882 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19883fi
19884need_lib_prefix=unknown
19885hardcode_into_libs=no
19886
19887# when you set need_version to no, make sure it does not cause -set_version
19888# flags to be left without arguments
19889need_version=unknown
19890
19891case $host_os in
19892aix3*)
19893 version_type=linux
19894 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19895 shlibpath_var=LIBPATH
19896
19897 # AIX 3 has no versioning support, so we append a major version to the name.
19898 soname_spec='${libname}${release}${shared_ext}$major'
19899 ;;
19900
19901aix4* | aix5*)
19902 version_type=linux
19903 need_lib_prefix=no
19904 need_version=no
19905 hardcode_into_libs=yes
19906 if test "$host_cpu" = ia64; then
19907 # AIX 5 supports IA64
19908 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19909 shlibpath_var=LD_LIBRARY_PATH
19910 else
19911 # With GCC up to 2.95.x, collect2 would create an import file
19912 # for dependence libraries. The import file would start with
19913 # the line `#! .'. This would cause the generated library to
19914 # depend on `.', always an invalid library. This was fixed in
19915 # development snapshots of GCC prior to 3.0.
19916 case $host_os in
19917 aix4 | aix4.[01] | aix4.[01].*)
19918 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19919 echo ' yes '
19920 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19921 :
19922 else
19923 can_build_shared=no
19924 fi
19925 ;;
19926 esac
19927 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19928 # soname into executable. Probably we can add versioning support to
19929 # collect2, so additional links can be useful in future.
19930 if test "$aix_use_runtimelinking" = yes; then
19931 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19932 # instead of lib<name>.a to let people know that these are not
19933 # typical AIX shared libraries.
19934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19935 else
19936 # We preserve .a as extension for shared libraries through AIX4.2
19937 # and later when we are not doing run time linking.
19938 library_names_spec='${libname}${release}.a $libname.a'
19939 soname_spec='${libname}${release}${shared_ext}$major'
19940 fi
19941 shlibpath_var=LIBPATH
19942 fi
19943 ;;
19944
19945amigaos*)
19946 library_names_spec='$libname.ixlibrary $libname.a'
19947 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019948 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 +000019949 ;;
19950
19951beos*)
19952 library_names_spec='${libname}${shared_ext}'
19953 dynamic_linker="$host_os ld.so"
19954 shlibpath_var=LIBRARY_PATH
19955 ;;
19956
Reid Spencer2706f8c2004-09-19 23:53:36 +000019957bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019958 version_type=linux
19959 need_version=no
19960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19961 soname_spec='${libname}${release}${shared_ext}$major'
19962 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19963 shlibpath_var=LD_LIBRARY_PATH
19964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19966 # the default ld.so.conf also contains /usr/contrib/lib and
19967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19968 # libtool to hard-code these into programs
19969 ;;
19970
19971cygwin* | mingw* | pw32*)
19972 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019973 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019974 need_version=no
19975 need_lib_prefix=no
19976
19977 case $GCC,$host_os in
19978 yes,cygwin* | yes,mingw* | yes,pw32*)
19979 library_names_spec='$libname.dll.a'
19980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019981 postinstall_cmds='base_file=`basename \${file}`~
19982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19983 dldir=$destdir/`dirname \$dlpath`~
19984 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019985 $install_prog $dir/$dlname \$dldir/$dlname~
19986 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019987 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19988 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019989 $rm \$dlpath'
19990 shlibpath_overrides_runpath=yes
19991
19992 case $host_os in
19993 cygwin*)
19994 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19995 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 +000019996 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019997 ;;
19998 mingw*)
19999 # MinGW DLLs use traditional 'lib' prefix
20000 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20001 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20002 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20003 # It is most probably a Windows format PATH printed by
20004 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20005 # path with ; separators, and with drive letters. We can handle the
20006 # drive letters (cygwin fileutils understands them), so leave them,
20007 # especially as we might pass files found there to a mingw objdump,
20008 # which wouldn't understand a cygwinified path. Ahh.
20009 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20010 else
20011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20012 fi
20013 ;;
20014 pw32*)
20015 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020016 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 +000020017 ;;
20018 esac
20019 ;;
20020
20021 *)
20022 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20023 ;;
20024 esac
20025 dynamic_linker='Win32 ld.exe'
20026 # FIXME: first we should search . and the directory the executable is in
20027 shlibpath_var=PATH
20028 ;;
20029
20030darwin* | rhapsody*)
20031 dynamic_linker="$host_os dyld"
20032 version_type=darwin
20033 need_lib_prefix=no
20034 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020035 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020036 soname_spec='${libname}${release}${major}$shared_ext'
20037 shlibpath_overrides_runpath=yes
20038 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020039 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020040 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020041 if test "$GCC" = yes; then
20042 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"`
20043 else
20044 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020045 fi
20046 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20047 ;;
20048
20049dgux*)
20050 version_type=linux
20051 need_lib_prefix=no
20052 need_version=no
20053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20054 soname_spec='${libname}${release}${shared_ext}$major'
20055 shlibpath_var=LD_LIBRARY_PATH
20056 ;;
20057
20058freebsd1*)
20059 dynamic_linker=no
20060 ;;
20061
Reid Spencer2706f8c2004-09-19 23:53:36 +000020062kfreebsd*-gnu)
20063 version_type=linux
20064 need_lib_prefix=no
20065 need_version=no
20066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20067 soname_spec='${libname}${release}${shared_ext}$major'
20068 shlibpath_var=LD_LIBRARY_PATH
20069 shlibpath_overrides_runpath=no
20070 hardcode_into_libs=yes
20071 dynamic_linker='GNU ld.so'
20072 ;;
20073
Reid Spencera773bd52006-08-04 18:18:08 +000020074freebsd* | dragonfly*)
20075 # DragonFly does not have aout. When/if they implement a new
20076 # versioning mechanism, adjust this.
20077 if test -x /usr/bin/objformat; then
20078 objformat=`/usr/bin/objformat`
20079 else
20080 case $host_os in
20081 freebsd[123]*) objformat=aout ;;
20082 *) objformat=elf ;;
20083 esac
20084 fi
John Criswell47fdd832003-07-14 16:52:07 +000020085 version_type=freebsd-$objformat
20086 case $version_type in
20087 freebsd-elf*)
20088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20089 need_version=no
20090 need_lib_prefix=no
20091 ;;
20092 freebsd-*)
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20094 need_version=yes
20095 ;;
20096 esac
20097 shlibpath_var=LD_LIBRARY_PATH
20098 case $host_os in
20099 freebsd2*)
20100 shlibpath_overrides_runpath=yes
20101 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020102 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020103 shlibpath_overrides_runpath=yes
20104 hardcode_into_libs=yes
20105 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020106 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20107 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020108 shlibpath_overrides_runpath=no
20109 hardcode_into_libs=yes
20110 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020111 freebsd*) # from 4.6 on
20112 shlibpath_overrides_runpath=yes
20113 hardcode_into_libs=yes
20114 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020115 esac
20116 ;;
20117
20118gnu*)
20119 version_type=linux
20120 need_lib_prefix=no
20121 need_version=no
20122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20123 soname_spec='${libname}${release}${shared_ext}$major'
20124 shlibpath_var=LD_LIBRARY_PATH
20125 hardcode_into_libs=yes
20126 ;;
20127
20128hpux9* | hpux10* | hpux11*)
20129 # Give a soname corresponding to the major version so that dld.sl refuses to
20130 # link against other versions.
20131 version_type=sunos
20132 need_lib_prefix=no
20133 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020134 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020135 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020136 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020137 hardcode_into_libs=yes
20138 dynamic_linker="$host_os dld.so"
20139 shlibpath_var=LD_LIBRARY_PATH
20140 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 if test "X$HPUX_IA64_MODE" = X32; then
20144 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20145 else
20146 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20147 fi
20148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20149 ;;
20150 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020151 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020152 hardcode_into_libs=yes
20153 dynamic_linker="$host_os dld.sl"
20154 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20157 soname_spec='${libname}${release}${shared_ext}$major'
20158 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20159 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20160 ;;
20161 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020162 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020163 dynamic_linker="$host_os dld.sl"
20164 shlibpath_var=SHLIB_PATH
20165 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20167 soname_spec='${libname}${release}${shared_ext}$major'
20168 ;;
20169 esac
20170 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20171 postinstall_cmds='chmod 555 $lib'
20172 ;;
20173
Reid Spencera773bd52006-08-04 18:18:08 +000020174interix3*)
20175 version_type=linux
20176 need_lib_prefix=no
20177 need_version=no
20178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20181 shlibpath_var=LD_LIBRARY_PATH
20182 shlibpath_overrides_runpath=no
20183 hardcode_into_libs=yes
20184 ;;
20185
John Criswell47fdd832003-07-14 16:52:07 +000020186irix5* | irix6* | nonstopux*)
20187 case $host_os in
20188 nonstopux*) version_type=nonstopux ;;
20189 *)
20190 if test "$lt_cv_prog_gnu_ld" = yes; then
20191 version_type=linux
20192 else
20193 version_type=irix
20194 fi ;;
20195 esac
20196 need_lib_prefix=no
20197 need_version=no
20198 soname_spec='${libname}${release}${shared_ext}$major'
20199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20200 case $host_os in
20201 irix5* | nonstopux*)
20202 libsuff= shlibsuff=
20203 ;;
20204 *)
20205 case $LD in # libtool.m4 will add one of these switches to LD
20206 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20207 libsuff= shlibsuff= libmagic=32-bit;;
20208 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20209 libsuff=32 shlibsuff=N32 libmagic=N32;;
20210 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20211 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20212 *) libsuff= shlibsuff= libmagic=never-match;;
20213 esac
20214 ;;
20215 esac
20216 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20217 shlibpath_overrides_runpath=no
20218 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20219 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20220 hardcode_into_libs=yes
20221 ;;
20222
20223# No shared lib support for Linux oldld, aout, or coff.
20224linux*oldld* | linux*aout* | linux*coff*)
20225 dynamic_linker=no
20226 ;;
20227
20228# This must be Linux ELF.
20229linux*)
20230 version_type=linux
20231 need_lib_prefix=no
20232 need_version=no
20233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20234 soname_spec='${libname}${release}${shared_ext}$major'
20235 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20236 shlibpath_var=LD_LIBRARY_PATH
20237 shlibpath_overrides_runpath=no
20238 # This implies no fast_install, which is unacceptable.
20239 # Some rework will be needed to allow for fast_install
20240 # before this can be enabled.
20241 hardcode_into_libs=yes
20242
Reid Spencer2706f8c2004-09-19 23:53:36 +000020243 # Append ld.so.conf contents to the search path
20244 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020245 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 +000020246 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20247 fi
20248
John Criswell47fdd832003-07-14 16:52:07 +000020249 # We used to test for /lib/ld.so.1 and disable shared libraries on
20250 # powerpc, because MkLinux only supported shared libraries with the
20251 # GNU dynamic linker. Since this was broken with cross compilers,
20252 # most powerpc-linux boxes support dynamic linking these days and
20253 # people can always --disable-shared, the test was removed, and we
20254 # assume the GNU/Linux dynamic linker is in use.
20255 dynamic_linker='GNU/Linux ld.so'
20256 ;;
20257
Reid Spencer2706f8c2004-09-19 23:53:36 +000020258knetbsd*-gnu)
20259 version_type=linux
20260 need_lib_prefix=no
20261 need_version=no
20262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20263 soname_spec='${libname}${release}${shared_ext}$major'
20264 shlibpath_var=LD_LIBRARY_PATH
20265 shlibpath_overrides_runpath=no
20266 hardcode_into_libs=yes
20267 dynamic_linker='GNU ld.so'
20268 ;;
20269
John Criswell47fdd832003-07-14 16:52:07 +000020270netbsd*)
20271 version_type=sunos
20272 need_lib_prefix=no
20273 need_version=no
20274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20277 dynamic_linker='NetBSD (a.out) ld.so'
20278 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020280 soname_spec='${libname}${release}${shared_ext}$major'
20281 dynamic_linker='NetBSD ld.elf_so'
20282 fi
20283 shlibpath_var=LD_LIBRARY_PATH
20284 shlibpath_overrides_runpath=yes
20285 hardcode_into_libs=yes
20286 ;;
20287
20288newsos6)
20289 version_type=linux
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 shlibpath_overrides_runpath=yes
20293 ;;
20294
Reid Spencer2706f8c2004-09-19 23:53:36 +000020295nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020296 version_type=linux
20297 need_lib_prefix=no
20298 need_version=no
20299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20300 soname_spec='${libname}${release}${shared_ext}$major'
20301 shlibpath_var=LD_LIBRARY_PATH
20302 shlibpath_overrides_runpath=yes
20303 ;;
20304
20305openbsd*)
20306 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020307 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020308 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020309 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20310 case $host_os in
20311 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20312 *) need_version=no ;;
20313 esac
John Criswell47fdd832003-07-14 16:52:07 +000020314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20316 shlibpath_var=LD_LIBRARY_PATH
20317 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20318 case $host_os in
20319 openbsd2.[89] | openbsd2.[89].*)
20320 shlibpath_overrides_runpath=no
20321 ;;
20322 *)
20323 shlibpath_overrides_runpath=yes
20324 ;;
20325 esac
20326 else
20327 shlibpath_overrides_runpath=yes
20328 fi
20329 ;;
20330
20331os2*)
20332 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020333 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020334 need_lib_prefix=no
20335 library_names_spec='$libname${shared_ext} $libname.a'
20336 dynamic_linker='OS/2 ld.exe'
20337 shlibpath_var=LIBPATH
20338 ;;
20339
20340osf3* | osf4* | osf5*)
20341 version_type=osf
20342 need_lib_prefix=no
20343 need_version=no
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20346 shlibpath_var=LD_LIBRARY_PATH
20347 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20348 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20349 ;;
20350
John Criswell47fdd832003-07-14 16:52:07 +000020351solaris*)
20352 version_type=linux
20353 need_lib_prefix=no
20354 need_version=no
20355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20356 soname_spec='${libname}${release}${shared_ext}$major'
20357 shlibpath_var=LD_LIBRARY_PATH
20358 shlibpath_overrides_runpath=yes
20359 hardcode_into_libs=yes
20360 # ldd complains unless libraries are executable
20361 postinstall_cmds='chmod +x $lib'
20362 ;;
20363
20364sunos4*)
20365 version_type=sunos
20366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20367 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20368 shlibpath_var=LD_LIBRARY_PATH
20369 shlibpath_overrides_runpath=yes
20370 if test "$with_gnu_ld" = yes; then
20371 need_lib_prefix=no
20372 fi
20373 need_version=yes
20374 ;;
20375
Reid Spencera773bd52006-08-04 18:18:08 +000020376sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020377 version_type=linux
20378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20379 soname_spec='${libname}${release}${shared_ext}$major'
20380 shlibpath_var=LD_LIBRARY_PATH
20381 case $host_vendor in
20382 sni)
20383 shlibpath_overrides_runpath=no
20384 need_lib_prefix=no
20385 export_dynamic_flag_spec='${wl}-Blargedynsym'
20386 runpath_var=LD_RUN_PATH
20387 ;;
20388 siemens)
20389 need_lib_prefix=no
20390 ;;
20391 motorola)
20392 need_lib_prefix=no
20393 need_version=no
20394 shlibpath_overrides_runpath=no
20395 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20396 ;;
20397 esac
20398 ;;
20399
20400sysv4*MP*)
20401 if test -d /usr/nec ;then
20402 version_type=linux
20403 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20404 soname_spec='$libname${shared_ext}.$major'
20405 shlibpath_var=LD_LIBRARY_PATH
20406 fi
20407 ;;
20408
Reid Spencera773bd52006-08-04 18:18:08 +000020409sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20410 version_type=freebsd-elf
20411 need_lib_prefix=no
20412 need_version=no
20413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20414 soname_spec='${libname}${release}${shared_ext}$major'
20415 shlibpath_var=LD_LIBRARY_PATH
20416 hardcode_into_libs=yes
20417 if test "$with_gnu_ld" = yes; then
20418 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20419 shlibpath_overrides_runpath=no
20420 else
20421 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20422 shlibpath_overrides_runpath=yes
20423 case $host_os in
20424 sco3.2v5*)
20425 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20426 ;;
20427 esac
20428 fi
20429 sys_lib_dlsearch_path_spec='/usr/lib'
20430 ;;
20431
John Criswell47fdd832003-07-14 16:52:07 +000020432uts4*)
20433 version_type=linux
20434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20435 soname_spec='${libname}${release}${shared_ext}$major'
20436 shlibpath_var=LD_LIBRARY_PATH
20437 ;;
20438
20439*)
20440 dynamic_linker=no
20441 ;;
20442esac
Reid Spencera773bd52006-08-04 18:18:08 +000020443{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20444echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020445test "$dynamic_linker" = no && can_build_shared=no
20446
Reid Spencera773bd52006-08-04 18:18:08 +000020447variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20448if test "$GCC" = yes; then
20449 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20450fi
20451
20452{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20453echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020454hardcode_action_CXX=
20455if test -n "$hardcode_libdir_flag_spec_CXX" || \
20456 test -n "$runpath_var_CXX" || \
20457 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20458
20459 # We can hardcode non-existant directories.
20460 if test "$hardcode_direct_CXX" != no &&
20461 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20462 # have to relink, otherwise we might link with an installed library
20463 # when we should be linking with a yet-to-be-installed one
20464 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20465 test "$hardcode_minus_L_CXX" != no; then
20466 # Linking always hardcodes the temporary library directory.
20467 hardcode_action_CXX=relink
20468 else
20469 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20470 hardcode_action_CXX=immediate
20471 fi
20472else
20473 # We cannot hardcode anything, or else we can only hardcode existing
20474 # directories.
20475 hardcode_action_CXX=unsupported
20476fi
Reid Spencera773bd52006-08-04 18:18:08 +000020477{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20478echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020479
20480if test "$hardcode_action_CXX" = relink; then
20481 # Fast installation is not supported
20482 enable_fast_install=no
20483elif test "$shlibpath_overrides_runpath" = yes ||
20484 test "$enable_shared" = no; then
20485 # Fast installation is not necessary
20486 enable_fast_install=needless
20487fi
20488
John Criswell47fdd832003-07-14 16:52:07 +000020489
20490# The else clause should only fire when bootstrapping the
20491# libtool distribution, otherwise you forgot to ship ltmain.sh
20492# with your package, and you will get complaints that there are
20493# no rules to generate ltmain.sh.
20494if test -f "$ltmain"; then
20495 # See if we are running on zsh, and set the options which allow our commands through
20496 # without removal of \ escapes.
20497 if test -n "${ZSH_VERSION+set}" ; then
20498 setopt NO_GLOB_SUBST
20499 fi
20500 # Now quote all the things that may contain metacharacters while being
20501 # careful not to overquote the AC_SUBSTed values. We take copies of the
20502 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020503 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 +000020504 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020505 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20506 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20507 deplibs_check_method reload_flag reload_cmds need_locks \
20508 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20509 lt_cv_sys_global_symbol_to_c_name_address \
20510 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20511 old_postinstall_cmds old_postuninstall_cmds \
20512 compiler_CXX \
20513 CC_CXX \
20514 LD_CXX \
20515 lt_prog_compiler_wl_CXX \
20516 lt_prog_compiler_pic_CXX \
20517 lt_prog_compiler_static_CXX \
20518 lt_prog_compiler_no_builtin_flag_CXX \
20519 export_dynamic_flag_spec_CXX \
20520 thread_safe_flag_spec_CXX \
20521 whole_archive_flag_spec_CXX \
20522 enable_shared_with_static_runtimes_CXX \
20523 old_archive_cmds_CXX \
20524 old_archive_from_new_cmds_CXX \
20525 predep_objects_CXX \
20526 postdep_objects_CXX \
20527 predeps_CXX \
20528 postdeps_CXX \
20529 compiler_lib_search_path_CXX \
20530 archive_cmds_CXX \
20531 archive_expsym_cmds_CXX \
20532 postinstall_cmds_CXX \
20533 postuninstall_cmds_CXX \
20534 old_archive_from_expsyms_cmds_CXX \
20535 allow_undefined_flag_CXX \
20536 no_undefined_flag_CXX \
20537 export_symbols_cmds_CXX \
20538 hardcode_libdir_flag_spec_CXX \
20539 hardcode_libdir_flag_spec_ld_CXX \
20540 hardcode_libdir_separator_CXX \
20541 hardcode_automatic_CXX \
20542 module_cmds_CXX \
20543 module_expsym_cmds_CXX \
20544 lt_cv_prog_compiler_c_o_CXX \
20545 exclude_expsyms_CXX \
20546 include_expsyms_CXX; do
20547
20548 case $var in
20549 old_archive_cmds_CXX | \
20550 old_archive_from_new_cmds_CXX | \
20551 archive_cmds_CXX | \
20552 archive_expsym_cmds_CXX | \
20553 module_cmds_CXX | \
20554 module_expsym_cmds_CXX | \
20555 old_archive_from_expsyms_cmds_CXX | \
20556 export_symbols_cmds_CXX | \
20557 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20558 postinstall_cmds | postuninstall_cmds | \
20559 old_postinstall_cmds | old_postuninstall_cmds | \
20560 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20561 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020562 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 +000020563 ;;
20564 *)
20565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20566 ;;
20567 esac
20568 done
20569
20570 case $lt_echo in
20571 *'\$0 --fallback-echo"')
20572 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20573 ;;
20574 esac
20575
20576cfgfile="$ofile"
20577
20578 cat <<__EOF__ >> "$cfgfile"
20579# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20580
20581# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20582
20583# Shell to use when invoking shell scripts.
20584SHELL=$lt_SHELL
20585
20586# Whether or not to build shared libraries.
20587build_libtool_libs=$enable_shared
20588
20589# Whether or not to build static libraries.
20590build_old_libs=$enable_static
20591
20592# Whether or not to add -lc for building shared libraries.
20593build_libtool_need_lc=$archive_cmds_need_lc_CXX
20594
20595# Whether or not to disallow shared libs when runtime libs are static
20596allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20597
20598# Whether or not to optimize for fast installation.
20599fast_install=$enable_fast_install
20600
20601# The host system.
20602host_alias=$host_alias
20603host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020604host_os=$host_os
20605
20606# The build system.
20607build_alias=$build_alias
20608build=$build
20609build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020610
20611# An echo program that does not interpret backslashes.
20612echo=$lt_echo
20613
20614# The archiver.
20615AR=$lt_AR
20616AR_FLAGS=$lt_AR_FLAGS
20617
20618# A C compiler.
20619LTCC=$lt_LTCC
20620
Reid Spencera773bd52006-08-04 18:18:08 +000020621# LTCC compiler flags.
20622LTCFLAGS=$lt_LTCFLAGS
20623
John Criswell47fdd832003-07-14 16:52:07 +000020624# A language-specific compiler.
20625CC=$lt_compiler_CXX
20626
20627# Is the compiler the GNU C compiler?
20628with_gcc=$GCC_CXX
20629
20630# An ERE matcher.
20631EGREP=$lt_EGREP
20632
20633# The linker used to build libraries.
20634LD=$lt_LD_CXX
20635
20636# Whether we need hard or soft links.
20637LN_S=$lt_LN_S
20638
20639# A BSD-compatible nm program.
20640NM=$lt_NM
20641
20642# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020643STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020644
20645# Used to examine libraries when file_magic_cmd begins "file"
20646MAGIC_CMD=$MAGIC_CMD
20647
20648# Used on cygwin: DLL creation program.
20649DLLTOOL="$DLLTOOL"
20650
20651# Used on cygwin: object dumper.
20652OBJDUMP="$OBJDUMP"
20653
20654# Used on cygwin: assembler.
20655AS="$AS"
20656
20657# The name of the directory that contains temporary libtool files.
20658objdir=$objdir
20659
20660# How to create reloadable object files.
20661reload_flag=$lt_reload_flag
20662reload_cmds=$lt_reload_cmds
20663
20664# How to pass a linker flag through the compiler.
20665wl=$lt_lt_prog_compiler_wl_CXX
20666
20667# Object file suffix (normally "o").
20668objext="$ac_objext"
20669
20670# Old archive suffix (normally "a").
20671libext="$libext"
20672
20673# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020674shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020675
20676# Executable file suffix (normally "").
20677exeext="$exeext"
20678
20679# Additional compiler flags for building library objects.
20680pic_flag=$lt_lt_prog_compiler_pic_CXX
20681pic_mode=$pic_mode
20682
20683# What is the maximum length of a command?
20684max_cmd_len=$lt_cv_sys_max_cmd_len
20685
20686# Does compiler simultaneously support -c and -o options?
20687compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20688
Reid Spencera773bd52006-08-04 18:18:08 +000020689# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020690need_locks=$lt_need_locks
20691
20692# Do we need the lib prefix for modules?
20693need_lib_prefix=$need_lib_prefix
20694
20695# Do we need a version for libraries?
20696need_version=$need_version
20697
20698# Whether dlopen is supported.
20699dlopen_support=$enable_dlopen
20700
20701# Whether dlopen of programs is supported.
20702dlopen_self=$enable_dlopen_self
20703
20704# Whether dlopen of statically linked programs is supported.
20705dlopen_self_static=$enable_dlopen_self_static
20706
20707# Compiler flag to prevent dynamic linking.
20708link_static_flag=$lt_lt_prog_compiler_static_CXX
20709
20710# Compiler flag to turn off builtin functions.
20711no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20712
20713# Compiler flag to allow reflexive dlopens.
20714export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20715
20716# Compiler flag to generate shared objects directly from archives.
20717whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20718
20719# Compiler flag to generate thread-safe objects.
20720thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20721
20722# Library versioning type.
20723version_type=$version_type
20724
20725# Format of library name prefix.
20726libname_spec=$lt_libname_spec
20727
20728# List of archive names. First name is the real one, the rest are links.
20729# The last name is the one that the linker finds with -lNAME.
20730library_names_spec=$lt_library_names_spec
20731
20732# The coded name of the library, if different from the real name.
20733soname_spec=$lt_soname_spec
20734
20735# Commands used to build and install an old-style archive.
20736RANLIB=$lt_RANLIB
20737old_archive_cmds=$lt_old_archive_cmds_CXX
20738old_postinstall_cmds=$lt_old_postinstall_cmds
20739old_postuninstall_cmds=$lt_old_postuninstall_cmds
20740
20741# Create an old-style archive from a shared archive.
20742old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20743
20744# Create a temporary old-style archive to link instead of a shared archive.
20745old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20746
20747# Commands used to build and install a shared archive.
20748archive_cmds=$lt_archive_cmds_CXX
20749archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20750postinstall_cmds=$lt_postinstall_cmds
20751postuninstall_cmds=$lt_postuninstall_cmds
20752
20753# Commands used to build a loadable module (assumed same as above if empty)
20754module_cmds=$lt_module_cmds_CXX
20755module_expsym_cmds=$lt_module_expsym_cmds_CXX
20756
20757# Commands to strip libraries.
20758old_striplib=$lt_old_striplib
20759striplib=$lt_striplib
20760
20761# Dependencies to place before the objects being linked to create a
20762# shared library.
20763predep_objects=$lt_predep_objects_CXX
20764
20765# Dependencies to place after the objects being linked to create a
20766# shared library.
20767postdep_objects=$lt_postdep_objects_CXX
20768
20769# Dependencies to place before the objects being linked to create a
20770# shared library.
20771predeps=$lt_predeps_CXX
20772
20773# Dependencies to place after the objects being linked to create a
20774# shared library.
20775postdeps=$lt_postdeps_CXX
20776
20777# The library search path used internally by the compiler when linking
20778# a shared library.
20779compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20780
20781# Method to check whether dependent libraries are shared objects.
20782deplibs_check_method=$lt_deplibs_check_method
20783
20784# Command to use when deplibs_check_method == file_magic.
20785file_magic_cmd=$lt_file_magic_cmd
20786
20787# Flag that allows shared libraries with undefined symbols to be built.
20788allow_undefined_flag=$lt_allow_undefined_flag_CXX
20789
20790# Flag that forces no undefined symbols.
20791no_undefined_flag=$lt_no_undefined_flag_CXX
20792
20793# Commands used to finish a libtool library installation in a directory.
20794finish_cmds=$lt_finish_cmds
20795
20796# Same as above, but a single script fragment to be evaled but not shown.
20797finish_eval=$lt_finish_eval
20798
20799# Take the output of nm and produce a listing of raw symbols and C names.
20800global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20801
20802# Transform the output of nm in a proper C declaration
20803global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20804
20805# Transform the output of nm in a C name address pair
20806global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20807
20808# This is the shared library runtime path variable.
20809runpath_var=$runpath_var
20810
20811# This is the shared library path variable.
20812shlibpath_var=$shlibpath_var
20813
20814# Is shlibpath searched before the hard-coded library search path?
20815shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20816
20817# How to hardcode a shared library path into an executable.
20818hardcode_action=$hardcode_action_CXX
20819
20820# Whether we should hardcode library paths into libraries.
20821hardcode_into_libs=$hardcode_into_libs
20822
20823# Flag to hardcode \$libdir into a binary during linking.
20824# This must work even if \$libdir does not exist.
20825hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20826
20827# If ld is used when linking, flag to hardcode \$libdir into
20828# a binary during linking. This must work even if \$libdir does
20829# not exist.
20830hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20831
20832# Whether we need a single -rpath flag with a separated argument.
20833hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20834
20835# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20836# resulting binary.
20837hardcode_direct=$hardcode_direct_CXX
20838
20839# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20840# resulting binary.
20841hardcode_minus_L=$hardcode_minus_L_CXX
20842
20843# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20844# the resulting binary.
20845hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20846
20847# Set to yes if building a shared library automatically hardcodes DIR into the library
20848# and all subsequent libraries and executables linked against it.
20849hardcode_automatic=$hardcode_automatic_CXX
20850
20851# Variables whose values should be saved in libtool wrapper scripts and
20852# restored at relink time.
20853variables_saved_for_relink="$variables_saved_for_relink"
20854
20855# Whether libtool must link a program against all its dependency libraries.
20856link_all_deplibs=$link_all_deplibs_CXX
20857
20858# Compile-time system search path for libraries
20859sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20860
20861# Run-time system search path for libraries
20862sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20863
20864# Fix the shell variable \$srcfile for the compiler.
20865fix_srcfile_path="$fix_srcfile_path_CXX"
20866
20867# Set to yes if exported symbols are required.
20868always_export_symbols=$always_export_symbols_CXX
20869
20870# The commands to list exported symbols.
20871export_symbols_cmds=$lt_export_symbols_cmds_CXX
20872
20873# The commands to extract the exported symbol list from a shared archive.
20874extract_expsyms_cmds=$lt_extract_expsyms_cmds
20875
20876# Symbols that should not be listed in the preloaded symbols.
20877exclude_expsyms=$lt_exclude_expsyms_CXX
20878
20879# Symbols that must always be exported.
20880include_expsyms=$lt_include_expsyms_CXX
20881
20882# ### END LIBTOOL TAG CONFIG: $tagname
20883
20884__EOF__
20885
20886
20887else
20888 # If there is no Makefile yet, we rely on a make rule to execute
20889 # `config.status --recheck' to rerun these tests and create the
20890 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020891 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20892 if test -f "$ltmain_in"; then
20893 test -f Makefile && make "$ltmain"
20894 fi
John Criswell47fdd832003-07-14 16:52:07 +000020895fi
20896
20897
20898ac_ext=c
20899ac_cpp='$CPP $CPPFLAGS'
20900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20902ac_compiler_gnu=$ac_cv_c_compiler_gnu
20903
20904CC=$lt_save_CC
20905LDCXX=$LD
20906LD=$lt_save_LD
20907GCC=$lt_save_GCC
20908with_gnu_ldcxx=$with_gnu_ld
20909with_gnu_ld=$lt_save_with_gnu_ld
20910lt_cv_path_LDCXX=$lt_cv_path_LD
20911lt_cv_path_LD=$lt_save_path_LD
20912lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20913lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20914
20915 else
20916 tagname=""
20917 fi
20918 ;;
20919
20920 F77)
20921 if test -n "$F77" && test "X$F77" != "Xno"; then
20922
20923ac_ext=f
20924ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20925ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20927
20928
20929archive_cmds_need_lc_F77=no
20930allow_undefined_flag_F77=
20931always_export_symbols_F77=no
20932archive_expsym_cmds_F77=
20933export_dynamic_flag_spec_F77=
20934hardcode_direct_F77=no
20935hardcode_libdir_flag_spec_F77=
20936hardcode_libdir_flag_spec_ld_F77=
20937hardcode_libdir_separator_F77=
20938hardcode_minus_L_F77=no
20939hardcode_automatic_F77=no
20940module_cmds_F77=
20941module_expsym_cmds_F77=
20942link_all_deplibs_F77=unknown
20943old_archive_cmds_F77=$old_archive_cmds
20944no_undefined_flag_F77=
20945whole_archive_flag_spec_F77=
20946enable_shared_with_static_runtimes_F77=no
20947
20948# Source file extension for f77 test sources.
20949ac_ext=f
20950
20951# Object file extension for compiled f77 test sources.
20952objext=o
20953objext_F77=$objext
20954
20955# Code to be used in simple compile tests
20956lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20957
20958# Code to be used in simple link tests
20959lt_simple_link_test_code=" program t\n end\n"
20960
20961# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20962
20963# If no C compiler was specified, use CC.
20964LTCC=${LTCC-"$CC"}
20965
Reid Spencera773bd52006-08-04 18:18:08 +000020966# If no C compiler flags were specified, use CFLAGS.
20967LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20968
John Criswell47fdd832003-07-14 16:52:07 +000020969# Allow CC to be a program name with arguments.
20970compiler=$CC
20971
20972
Reid Spencera773bd52006-08-04 18:18:08 +000020973# save warnings/boilerplate of simple test code
20974ac_outfile=conftest.$ac_objext
20975printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20976eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20977_lt_compiler_boilerplate=`cat conftest.err`
20978$rm conftest*
20979
20980ac_outfile=conftest.$ac_objext
20981printf "$lt_simple_link_test_code" >conftest.$ac_ext
20982eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20983_lt_linker_boilerplate=`cat conftest.err`
20984$rm conftest*
20985
20986
John Criswell47fdd832003-07-14 16:52:07 +000020987# Allow CC to be a program name with arguments.
20988lt_save_CC="$CC"
20989CC=${F77-"f77"}
20990compiler=$CC
20991compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020992for cc_temp in $compiler""; do
20993 case $cc_temp in
20994 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20995 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20996 \-*) ;;
20997 *) break;;
20998 esac
20999done
21000cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021001
John Criswell47fdd832003-07-14 16:52:07 +000021002
Reid Spencera773bd52006-08-04 18:18:08 +000021003{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21004echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21005{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21006echo "${ECHO_T}$can_build_shared" >&6; }
21007
21008{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21009echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021010test "$can_build_shared" = "no" && enable_shared=no
21011
21012# On AIX, shared libraries and static libraries use the same namespace, and
21013# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021014case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021015aix3*)
21016 test "$enable_shared" = yes && enable_static=no
21017 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021018 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021019 postinstall_cmds='$RANLIB $lib'
21020 fi
21021 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021022aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021023 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21024 test "$enable_shared" = yes && enable_static=no
21025 fi
John Criswell47fdd832003-07-14 16:52:07 +000021026 ;;
21027esac
Reid Spencera773bd52006-08-04 18:18:08 +000021028{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21029echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021030
Reid Spencera773bd52006-08-04 18:18:08 +000021031{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21032echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021033# Make sure either enable_shared or enable_static is yes.
21034test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021035{ echo "$as_me:$LINENO: result: $enable_static" >&5
21036echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021037
21038GCC_F77="$G77"
21039LD_F77="$LD"
21040
21041lt_prog_compiler_wl_F77=
21042lt_prog_compiler_pic_F77=
21043lt_prog_compiler_static_F77=
21044
Reid Spencera773bd52006-08-04 18:18:08 +000021045{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21046echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021047
21048 if test "$GCC" = yes; then
21049 lt_prog_compiler_wl_F77='-Wl,'
21050 lt_prog_compiler_static_F77='-static'
21051
21052 case $host_os in
21053 aix*)
21054 # All AIX code is PIC.
21055 if test "$host_cpu" = ia64; then
21056 # AIX 5 now supports IA64 processor
21057 lt_prog_compiler_static_F77='-Bstatic'
21058 fi
21059 ;;
21060
21061 amigaos*)
21062 # FIXME: we need at least 68020 code to build shared libraries, but
21063 # adding the `-m68020' flag to GCC prevents building anything better,
21064 # like `-m68040'.
21065 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21066 ;;
21067
21068 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21069 # PIC is the default for these OSes.
21070 ;;
21071
21072 mingw* | pw32* | os2*)
21073 # This hack is so that the source file can tell whether it is being
21074 # built for inclusion in a dll (and should export symbols for example).
21075 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21076 ;;
21077
21078 darwin* | rhapsody*)
21079 # PIC is the default on this platform
21080 # Common symbols not allowed in MH_DYLIB files
21081 lt_prog_compiler_pic_F77='-fno-common'
21082 ;;
21083
Reid Spencera773bd52006-08-04 18:18:08 +000021084 interix3*)
21085 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21086 # Instead, we relocate shared libraries at runtime.
21087 ;;
21088
John Criswell47fdd832003-07-14 16:52:07 +000021089 msdosdjgpp*)
21090 # Just because we use GCC doesn't mean we suddenly get shared libraries
21091 # on systems that don't support them.
21092 lt_prog_compiler_can_build_shared_F77=no
21093 enable_shared=no
21094 ;;
21095
21096 sysv4*MP*)
21097 if test -d /usr/nec; then
21098 lt_prog_compiler_pic_F77=-Kconform_pic
21099 fi
21100 ;;
21101
21102 hpux*)
21103 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21104 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021105 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021106 hppa*64*|ia64*)
21107 # +Z the default
21108 ;;
21109 *)
21110 lt_prog_compiler_pic_F77='-fPIC'
21111 ;;
21112 esac
21113 ;;
21114
21115 *)
21116 lt_prog_compiler_pic_F77='-fPIC'
21117 ;;
21118 esac
21119 else
21120 # PORTME Check for flag to pass linker flags through the system compiler.
21121 case $host_os in
21122 aix*)
21123 lt_prog_compiler_wl_F77='-Wl,'
21124 if test "$host_cpu" = ia64; then
21125 # AIX 5 now supports IA64 processor
21126 lt_prog_compiler_static_F77='-Bstatic'
21127 else
21128 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21129 fi
21130 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021131 darwin*)
21132 # PIC is the default on this platform
21133 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021134 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021135 xlc*)
21136 lt_prog_compiler_pic_F77='-qnocommon'
21137 lt_prog_compiler_wl_F77='-Wl,'
21138 ;;
21139 esac
21140 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021141
21142 mingw* | pw32* | os2*)
21143 # This hack is so that the source file can tell whether it is being
21144 # built for inclusion in a dll (and should export symbols for example).
21145 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21146 ;;
21147
21148 hpux9* | hpux10* | hpux11*)
21149 lt_prog_compiler_wl_F77='-Wl,'
21150 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21151 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021152 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021153 hppa*64*|ia64*)
21154 # +Z the default
21155 ;;
21156 *)
21157 lt_prog_compiler_pic_F77='+Z'
21158 ;;
21159 esac
21160 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21161 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21162 ;;
21163
21164 irix5* | irix6* | nonstopux*)
21165 lt_prog_compiler_wl_F77='-Wl,'
21166 # PIC (with -KPIC) is the default.
21167 lt_prog_compiler_static_F77='-non_shared'
21168 ;;
21169
21170 newsos6)
21171 lt_prog_compiler_pic_F77='-KPIC'
21172 lt_prog_compiler_static_F77='-Bstatic'
21173 ;;
21174
21175 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021176 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021177 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021178 lt_prog_compiler_wl_F77='-Wl,'
21179 lt_prog_compiler_pic_F77='-KPIC'
21180 lt_prog_compiler_static_F77='-static'
21181 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021182 pgcc* | pgf77* | pgf90* | pgf95*)
21183 # Portland Group compilers (*not* the Pentium gcc compiler,
21184 # which looks to be a dead project)
21185 lt_prog_compiler_wl_F77='-Wl,'
21186 lt_prog_compiler_pic_F77='-fpic'
21187 lt_prog_compiler_static_F77='-Bstatic'
21188 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021189 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021190 lt_prog_compiler_wl_F77='-Wl,'
21191 # All Alpha code is PIC.
21192 lt_prog_compiler_static_F77='-non_shared'
21193 ;;
21194 esac
21195 ;;
21196
21197 osf3* | osf4* | osf5*)
21198 lt_prog_compiler_wl_F77='-Wl,'
21199 # All OSF/1 code is PIC.
21200 lt_prog_compiler_static_F77='-non_shared'
21201 ;;
21202
John Criswell47fdd832003-07-14 16:52:07 +000021203 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021204 lt_prog_compiler_pic_F77='-KPIC'
21205 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021206 case $cc_basename in
21207 f77* | f90* | f95*)
21208 lt_prog_compiler_wl_F77='-Qoption ld ';;
21209 *)
21210 lt_prog_compiler_wl_F77='-Wl,';;
21211 esac
John Criswell47fdd832003-07-14 16:52:07 +000021212 ;;
21213
21214 sunos4*)
21215 lt_prog_compiler_wl_F77='-Qoption ld '
21216 lt_prog_compiler_pic_F77='-PIC'
21217 lt_prog_compiler_static_F77='-Bstatic'
21218 ;;
21219
Reid Spencera773bd52006-08-04 18:18:08 +000021220 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021221 lt_prog_compiler_wl_F77='-Wl,'
21222 lt_prog_compiler_pic_F77='-KPIC'
21223 lt_prog_compiler_static_F77='-Bstatic'
21224 ;;
21225
21226 sysv4*MP*)
21227 if test -d /usr/nec ;then
21228 lt_prog_compiler_pic_F77='-Kconform_pic'
21229 lt_prog_compiler_static_F77='-Bstatic'
21230 fi
21231 ;;
21232
Reid Spencera773bd52006-08-04 18:18:08 +000021233 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21234 lt_prog_compiler_wl_F77='-Wl,'
21235 lt_prog_compiler_pic_F77='-KPIC'
21236 lt_prog_compiler_static_F77='-Bstatic'
21237 ;;
21238
21239 unicos*)
21240 lt_prog_compiler_wl_F77='-Wl,'
21241 lt_prog_compiler_can_build_shared_F77=no
21242 ;;
21243
John Criswell47fdd832003-07-14 16:52:07 +000021244 uts4*)
21245 lt_prog_compiler_pic_F77='-pic'
21246 lt_prog_compiler_static_F77='-Bstatic'
21247 ;;
21248
21249 *)
21250 lt_prog_compiler_can_build_shared_F77=no
21251 ;;
21252 esac
21253 fi
21254
Reid Spencera773bd52006-08-04 18:18:08 +000021255{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21256echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021257
21258#
21259# Check to make sure the PIC flag actually works.
21260#
21261if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021262
Reid Spencera773bd52006-08-04 18:18:08 +000021263{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21264echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021265if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21266 echo $ECHO_N "(cached) $ECHO_C" >&6
21267else
21268 lt_prog_compiler_pic_works_F77=no
21269 ac_outfile=conftest.$ac_objext
21270 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21271 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21272 # Insert the option either (1) after the last *FLAGS variable, or
21273 # (2) before a word containing "conftest.", or (3) at the end.
21274 # Note that $ac_compile itself does not contain backslashes and begins
21275 # with a dollar sign (not a hyphen), so the echo should work correctly.
21276 # The option is referenced via a variable to avoid confusing sed.
21277 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021278 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021279 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21280 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000021281 (eval echo "\"\$as_me:21281: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021282 (eval "$lt_compile" 2>conftest.err)
21283 ac_status=$?
21284 cat conftest.err >&5
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000021285 echo "$as_me:21285: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021286 if (exit $ac_status) && test -s "$ac_outfile"; then
21287 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021288 # So say no if there are warnings other than the usual output.
21289 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21290 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21291 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021292 lt_prog_compiler_pic_works_F77=yes
21293 fi
21294 fi
21295 $rm conftest*
21296
21297fi
Reid Spencera773bd52006-08-04 18:18:08 +000021298{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21299echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021300
21301if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21302 case $lt_prog_compiler_pic_F77 in
21303 "" | " "*) ;;
21304 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21305 esac
21306else
21307 lt_prog_compiler_pic_F77=
21308 lt_prog_compiler_can_build_shared_F77=no
21309fi
21310
21311fi
Reid Spencera773bd52006-08-04 18:18:08 +000021312case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021313 # For platforms which do not support PIC, -DPIC is meaningless:
21314 *djgpp*)
21315 lt_prog_compiler_pic_F77=
21316 ;;
21317 *)
21318 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21319 ;;
21320esac
21321
Reid Spencera773bd52006-08-04 18:18:08 +000021322#
21323# Check to make sure the static flag actually works.
21324#
21325wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21326{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21327echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21328if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21329 echo $ECHO_N "(cached) $ECHO_C" >&6
21330else
21331 lt_prog_compiler_static_works_F77=no
21332 save_LDFLAGS="$LDFLAGS"
21333 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21334 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21335 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21336 # The linker can only warn and ignore the option if not recognized
21337 # So say no if there are warnings
21338 if test -s conftest.err; then
21339 # Append any errors to the config.log.
21340 cat conftest.err 1>&5
21341 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21343 if diff conftest.exp conftest.er2 >/dev/null; then
21344 lt_prog_compiler_static_works_F77=yes
21345 fi
21346 else
21347 lt_prog_compiler_static_works_F77=yes
21348 fi
21349 fi
21350 $rm conftest*
21351 LDFLAGS="$save_LDFLAGS"
21352
21353fi
21354{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21355echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21356
21357if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21358 :
21359else
21360 lt_prog_compiler_static_F77=
21361fi
21362
21363
21364{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21365echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021366if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21368else
21369 lt_cv_prog_compiler_c_o_F77=no
21370 $rm -r conftest 2>/dev/null
21371 mkdir conftest
21372 cd conftest
21373 mkdir out
21374 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21375
John Criswell47fdd832003-07-14 16:52:07 +000021376 lt_compiler_flag="-o out/conftest2.$ac_objext"
21377 # Insert the option either (1) after the last *FLAGS variable, or
21378 # (2) before a word containing "conftest.", or (3) at the end.
21379 # Note that $ac_compile itself does not contain backslashes and begins
21380 # with a dollar sign (not a hyphen), so the echo should work correctly.
21381 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21384 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000021385 (eval echo "\"\$as_me:21385: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021386 (eval "$lt_compile" 2>out/conftest.err)
21387 ac_status=$?
21388 cat out/conftest.err >&5
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000021389 echo "$as_me:21389: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021390 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21391 then
21392 # The compiler can only warn and ignore the option if not recognized
21393 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021394 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021397 lt_cv_prog_compiler_c_o_F77=yes
21398 fi
21399 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021400 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021401 $rm conftest*
21402 # SGI C++ compiler will create directory out/ii_files/ for
21403 # template instantiation
21404 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21405 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021406 cd ..
21407 rmdir conftest
21408 $rm conftest*
21409
21410fi
Reid Spencera773bd52006-08-04 18:18:08 +000021411{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21412echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021413
21414
21415hard_links="nottested"
21416if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21417 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021418 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21419echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021420 hard_links=yes
21421 $rm conftest*
21422 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21423 touch conftest.a
21424 ln conftest.a conftest.b 2>&5 || hard_links=no
21425 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021426 { echo "$as_me:$LINENO: result: $hard_links" >&5
21427echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021428 if test "$hard_links" = no; then
21429 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21430echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21431 need_locks=warn
21432 fi
21433else
21434 need_locks=no
21435fi
21436
Reid Spencera773bd52006-08-04 18:18:08 +000021437{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21438echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021439
21440 runpath_var=
21441 allow_undefined_flag_F77=
21442 enable_shared_with_static_runtimes_F77=no
21443 archive_cmds_F77=
21444 archive_expsym_cmds_F77=
21445 old_archive_From_new_cmds_F77=
21446 old_archive_from_expsyms_cmds_F77=
21447 export_dynamic_flag_spec_F77=
21448 whole_archive_flag_spec_F77=
21449 thread_safe_flag_spec_F77=
21450 hardcode_libdir_flag_spec_F77=
21451 hardcode_libdir_flag_spec_ld_F77=
21452 hardcode_libdir_separator_F77=
21453 hardcode_direct_F77=no
21454 hardcode_minus_L_F77=no
21455 hardcode_shlibpath_var_F77=unsupported
21456 link_all_deplibs_F77=unknown
21457 hardcode_automatic_F77=no
21458 module_cmds_F77=
21459 module_expsym_cmds_F77=
21460 always_export_symbols_F77=no
21461 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21462 # include_expsyms should be a list of space-separated symbols to be *always*
21463 # included in the symbol list
21464 include_expsyms_F77=
21465 # exclude_expsyms can be an extended regexp of symbols to exclude
21466 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21467 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21468 # as well as any symbol that contains `d'.
21469 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21470 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21471 # platforms (ab)use it in PIC code, but their linkers get confused if
21472 # the symbol is explicitly referenced. Since portable code cannot
21473 # rely on this symbol name, it's probably fine to never include it in
21474 # preloaded symbol tables.
21475 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021476 # Just being paranoid about ensuring that cc_basename is set.
21477 for cc_temp in $compiler""; do
21478 case $cc_temp in
21479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21481 \-*) ;;
21482 *) break;;
21483 esac
21484done
21485cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021486
21487 case $host_os in
21488 cygwin* | mingw* | pw32*)
21489 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21490 # When not using gcc, we currently assume that we are using
21491 # Microsoft Visual C++.
21492 if test "$GCC" != yes; then
21493 with_gnu_ld=no
21494 fi
21495 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021496 interix*)
21497 # we just hope/assume this is gcc and not c89 (= MSVC++)
21498 with_gnu_ld=yes
21499 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021500 openbsd*)
21501 with_gnu_ld=no
21502 ;;
21503 esac
21504
21505 ld_shlibs_F77=yes
21506 if test "$with_gnu_ld" = yes; then
21507 # If archive_cmds runs LD, not CC, wlarc should be empty
21508 wlarc='${wl}'
21509
Reid Spencera773bd52006-08-04 18:18:08 +000021510 # Set some defaults for GNU ld with shared library support. These
21511 # are reset later if shared libraries are not supported. Putting them
21512 # here allows them to be overridden if necessary.
21513 runpath_var=LD_RUN_PATH
21514 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21515 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21516 # ancient GNU ld didn't support --whole-archive et. al.
21517 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21518 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21519 else
21520 whole_archive_flag_spec_F77=
21521 fi
21522 supports_anon_versioning=no
21523 case `$LD -v 2>/dev/null` in
21524 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21525 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21526 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21527 *\ 2.11.*) ;; # other 2.11 versions
21528 *) supports_anon_versioning=yes ;;
21529 esac
21530
John Criswell47fdd832003-07-14 16:52:07 +000021531 # See if GNU ld supports shared libraries.
21532 case $host_os in
21533 aix3* | aix4* | aix5*)
21534 # On AIX/PPC, the GNU linker is very broken
21535 if test "$host_cpu" != ia64; then
21536 ld_shlibs_F77=no
21537 cat <<EOF 1>&2
21538
21539*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21540*** to be unable to reliably create shared libraries on AIX.
21541*** Therefore, libtool is disabling shared libraries support. If you
21542*** really care for shared libraries, you may want to modify your PATH
21543*** so that a non-GNU linker is found, and then restart.
21544
21545EOF
21546 fi
21547 ;;
21548
21549 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021550 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 +000021551 hardcode_libdir_flag_spec_F77='-L$libdir'
21552 hardcode_minus_L_F77=yes
21553
21554 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21555 # that the semantics of dynamic libraries on AmigaOS, at least up
21556 # to version 4, is to share data among multiple programs linked
21557 # with the same dynamic library. Since this doesn't match the
21558 # behavior of shared libraries on other platforms, we can't use
21559 # them.
21560 ld_shlibs_F77=no
21561 ;;
21562
21563 beos*)
21564 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21565 allow_undefined_flag_F77=unsupported
21566 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21567 # support --undefined. This deserves some investigation. FIXME
21568 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21569 else
21570 ld_shlibs_F77=no
21571 fi
21572 ;;
21573
21574 cygwin* | mingw* | pw32*)
21575 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21576 # as there is no search path for DLLs.
21577 hardcode_libdir_flag_spec_F77='-L$libdir'
21578 allow_undefined_flag_F77=unsupported
21579 always_export_symbols_F77=no
21580 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021581 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 +000021582
21583 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021584 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 +000021585 # If the export-symbols file already is a .def file (1st line
21586 # is EXPORTS), use it as is; otherwise, prepend...
21587 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21588 cp $export_symbols $output_objdir/$soname.def;
21589 else
21590 echo EXPORTS > $output_objdir/$soname.def;
21591 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021592 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021593 $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 +000021594 else
Reid Spencera773bd52006-08-04 18:18:08 +000021595 ld_shlibs_F77=no
21596 fi
21597 ;;
21598
21599 interix3*)
21600 hardcode_direct_F77=no
21601 hardcode_shlibpath_var_F77=no
21602 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21603 export_dynamic_flag_spec_F77='${wl}-E'
21604 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21605 # Instead, shared libraries are loaded at an image base (0x10000000 by
21606 # default) and relocated if they conflict, which is a slow very memory
21607 # consuming and fragmenting process. To avoid this, we pick a random,
21608 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21609 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21610 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'
21611 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'
21612 ;;
21613
21614 linux*)
21615 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21616 tmp_addflag=
21617 case $cc_basename,$host_cpu in
21618 pgcc*) # Portland Group C compiler
21619 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'
21620 tmp_addflag=' $pic_flag'
21621 ;;
21622 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21623 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'
21624 tmp_addflag=' $pic_flag -Mnomain' ;;
21625 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21626 tmp_addflag=' -i_dynamic' ;;
21627 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21628 tmp_addflag=' -i_dynamic -nofor_main' ;;
21629 ifc* | ifort*) # Intel Fortran compiler
21630 tmp_addflag=' -nofor_main' ;;
21631 esac
21632 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21633
21634 if test $supports_anon_versioning = yes; then
21635 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21636 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21637 $echo "local: *; };" >> $output_objdir/$libname.ver~
21638 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21639 fi
21640 else
21641 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021642 fi
21643 ;;
21644
21645 netbsd*)
21646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21647 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21648 wlarc=
21649 else
21650 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21651 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21652 fi
21653 ;;
21654
Reid Spencera773bd52006-08-04 18:18:08 +000021655 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021656 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21657 ld_shlibs_F77=no
21658 cat <<EOF 1>&2
21659
21660*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21661*** create shared libraries on Solaris systems. Therefore, libtool
21662*** is disabling shared libraries support. We urge you to upgrade GNU
21663*** binutils to release 2.9.1 or newer. Another option is to modify
21664*** your PATH or compiler configuration so that the native linker is
21665*** used, and then restart.
21666
21667EOF
21668 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21669 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21670 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21671 else
21672 ld_shlibs_F77=no
21673 fi
21674 ;;
21675
Reid Spencera773bd52006-08-04 18:18:08 +000021676 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21677 case `$LD -v 2>&1` in
21678 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21679 ld_shlibs_F77=no
21680 cat <<_LT_EOF 1>&2
21681
21682*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21683*** reliably create shared libraries on SCO systems. Therefore, libtool
21684*** is disabling shared libraries support. We urge you to upgrade GNU
21685*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21686*** your PATH or compiler configuration so that the native linker is
21687*** used, and then restart.
21688
21689_LT_EOF
21690 ;;
21691 *)
21692 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21693 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21694 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21695 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21696 else
21697 ld_shlibs_F77=no
21698 fi
21699 ;;
21700 esac
21701 ;;
21702
John Criswell47fdd832003-07-14 16:52:07 +000021703 sunos4*)
21704 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21705 wlarc=
21706 hardcode_direct_F77=yes
21707 hardcode_shlibpath_var_F77=no
21708 ;;
21709
21710 *)
21711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21712 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21713 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21714 else
21715 ld_shlibs_F77=no
21716 fi
21717 ;;
21718 esac
21719
Reid Spencera773bd52006-08-04 18:18:08 +000021720 if test "$ld_shlibs_F77" = no; then
21721 runpath_var=
21722 hardcode_libdir_flag_spec_F77=
21723 export_dynamic_flag_spec_F77=
21724 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021725 fi
21726 else
21727 # PORTME fill in a description of your system's linker (not GNU ld)
21728 case $host_os in
21729 aix3*)
21730 allow_undefined_flag_F77=unsupported
21731 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021732 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 +000021733 # Note: this linker hardcodes the directories in LIBPATH if there
21734 # are no directories specified by -L.
21735 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021736 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021737 # Neither direct hardcoding nor static linking is supported with a
21738 # broken collect2.
21739 hardcode_direct_F77=unsupported
21740 fi
21741 ;;
21742
21743 aix4* | aix5*)
21744 if test "$host_cpu" = ia64; then
21745 # On IA64, the linker does run time linking by default, so we don't
21746 # have to do anything special.
21747 aix_use_runtimelinking=no
21748 exp_sym_flag='-Bexport'
21749 no_entry_flag=""
21750 else
21751 # If we're using GNU nm, then we don't want the "-C" option.
21752 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21753 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21754 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'
21755 else
21756 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'
21757 fi
21758 aix_use_runtimelinking=no
21759
21760 # Test if we are trying to use run time linking or normal
21761 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21762 # need to do runtime linking.
21763 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21764 for ld_flag in $LDFLAGS; do
21765 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21766 aix_use_runtimelinking=yes
21767 break
21768 fi
21769 done
Reid Spencera773bd52006-08-04 18:18:08 +000021770 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021771 esac
21772
21773 exp_sym_flag='-bexport'
21774 no_entry_flag='-bnoentry'
21775 fi
21776
21777 # When large executables or shared objects are built, AIX ld can
21778 # have problems creating the table of contents. If linking a library
21779 # or program results in "error TOC overflow" add -mminimal-toc to
21780 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21781 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21782
21783 archive_cmds_F77=''
21784 hardcode_direct_F77=yes
21785 hardcode_libdir_separator_F77=':'
21786 link_all_deplibs_F77=yes
21787
21788 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021789 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021790 # We only want to do this on AIX 4.2 and lower, the check
21791 # below for broken collect2 doesn't work under 4.3+
21792 collect2name=`${CC} -print-prog-name=collect2`
21793 if test -f "$collect2name" && \
21794 strings "$collect2name" | grep resolve_lib_name >/dev/null
21795 then
21796 # We have reworked collect2
21797 hardcode_direct_F77=yes
21798 else
21799 # We have old collect2
21800 hardcode_direct_F77=unsupported
21801 # It fails to find uninstalled libraries when the uninstalled
21802 # path is not listed in the libpath. Setting hardcode_minus_L
21803 # to unsupported forces relinking
21804 hardcode_minus_L_F77=yes
21805 hardcode_libdir_flag_spec_F77='-L$libdir'
21806 hardcode_libdir_separator_F77=
21807 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021808 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021809 esac
21810 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021811 if test "$aix_use_runtimelinking" = yes; then
21812 shared_flag="$shared_flag "'${wl}-G'
21813 fi
John Criswell47fdd832003-07-14 16:52:07 +000021814 else
21815 # not using gcc
21816 if test "$host_cpu" = ia64; then
21817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21818 # chokes on -Wl,-G. The following line is correct:
21819 shared_flag='-G'
21820 else
Reid Spencera773bd52006-08-04 18:18:08 +000021821 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021822 shared_flag='${wl}-G'
21823 else
21824 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021825 fi
John Criswell47fdd832003-07-14 16:52:07 +000021826 fi
21827 fi
21828
21829 # It seems that -bexpall does not export symbols beginning with
21830 # underscore (_), so it is better to generate a list of symbols to export.
21831 always_export_symbols_F77=yes
21832 if test "$aix_use_runtimelinking" = yes; then
21833 # Warning - without using the other runtime loading flags (-brtl),
21834 # -berok will link without error, but may produce a broken library.
21835 allow_undefined_flag_F77='-berok'
21836 # Determine the default libpath from the value encoded in an empty executable.
21837 cat >conftest.$ac_ext <<_ACEOF
21838 program main
21839
21840 end
21841_ACEOF
21842rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021843if { (ac_try="$ac_link"
21844case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847esac
21848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021850 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021851 grep -v '^ *+' conftest.er1 >conftest.err
21852 rm -f conftest.er1
21853 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000021855 (exit $ac_status); } &&
21856 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21857 { (case "(($ac_try" in
21858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859 *) ac_try_echo=$ac_try;;
21860esac
21861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21862 (eval "$ac_try") 2>&5
21863 ac_status=$?
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; } &&
21866 { ac_try='test -s conftest$ac_exeext'
21867 { (case "(($ac_try" in
21868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21869 *) ac_try_echo=$ac_try;;
21870esac
21871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21872 (eval "$ac_try") 2>&5
21873 ac_status=$?
21874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21875 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000021876
21877aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21878}'`
21879# Check for a 64-bit object if we didn't find anything.
21880if 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; }
21881}'`; fi
21882else
21883 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021884sed 's/^/| /' conftest.$ac_ext >&5
21885
Reid Spencera773bd52006-08-04 18:18:08 +000021886
John Criswell47fdd832003-07-14 16:52:07 +000021887fi
Reid Spencera773bd52006-08-04 18:18:08 +000021888
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000021889rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021890 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021891if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21892
21893 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021894 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 +000021895 else
21896 if test "$host_cpu" = ia64; then
21897 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21898 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021899 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 +000021900 else
21901 # Determine the default libpath from the value encoded in an empty executable.
21902 cat >conftest.$ac_ext <<_ACEOF
21903 program main
21904
21905 end
21906_ACEOF
21907rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021908if { (ac_try="$ac_link"
21909case "(($ac_try" in
21910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21911 *) ac_try_echo=$ac_try;;
21912esac
21913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21914 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021915 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021916 grep -v '^ *+' conftest.er1 >conftest.err
21917 rm -f conftest.er1
21918 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000021920 (exit $ac_status); } &&
21921 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21922 { (case "(($ac_try" in
21923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924 *) ac_try_echo=$ac_try;;
21925esac
21926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21927 (eval "$ac_try") 2>&5
21928 ac_status=$?
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); }; } &&
21931 { ac_try='test -s conftest$ac_exeext'
21932 { (case "(($ac_try" in
21933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21934 *) ac_try_echo=$ac_try;;
21935esac
21936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21937 (eval "$ac_try") 2>&5
21938 ac_status=$?
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000021941
21942aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21943}'`
21944# Check for a 64-bit object if we didn't find anything.
21945if 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; }
21946}'`; fi
21947else
21948 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021949sed 's/^/| /' conftest.$ac_ext >&5
21950
Reid Spencera773bd52006-08-04 18:18:08 +000021951
John Criswell47fdd832003-07-14 16:52:07 +000021952fi
Reid Spencera773bd52006-08-04 18:18:08 +000021953
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000021954rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021955 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021956if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21957
21958 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21959 # Warning - without using the other run time loading flags,
21960 # -berok will link without error, but may produce a broken library.
21961 no_undefined_flag_F77=' ${wl}-bernotok'
21962 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021963 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021964 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021965 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021966 # This is similar to how AIX traditionally builds its shared libraries.
21967 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 +000021968 fi
21969 fi
21970 ;;
21971
21972 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021973 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 +000021974 hardcode_libdir_flag_spec_F77='-L$libdir'
21975 hardcode_minus_L_F77=yes
21976 # see comment about different semantics on the GNU ld section
21977 ld_shlibs_F77=no
21978 ;;
21979
Reid Spencer2706f8c2004-09-19 23:53:36 +000021980 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021981 export_dynamic_flag_spec_F77=-rdynamic
21982 ;;
21983
21984 cygwin* | mingw* | pw32*)
21985 # When not using gcc, we currently assume that we are using
21986 # Microsoft Visual C++.
21987 # hardcode_libdir_flag_spec is actually meaningless, as there is
21988 # no search path for DLLs.
21989 hardcode_libdir_flag_spec_F77=' '
21990 allow_undefined_flag_F77=unsupported
21991 # Tell ltmain to make .lib files, not .a files.
21992 libext=lib
21993 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021994 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021995 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021996 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 +000021997 # The linker will automatically build a .lib file if we build a DLL.
21998 old_archive_From_new_cmds_F77='true'
21999 # FIXME: Should let the user specify the lib program.
22000 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022001 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022002 enable_shared_with_static_runtimes_F77=yes
22003 ;;
22004
22005 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022006 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022007 rhapsody* | darwin1.[012])
22008 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22009 ;;
22010 *) # Darwin 1.3 on
22011 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22012 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22013 else
22014 case ${MACOSX_DEPLOYMENT_TARGET} in
22015 10.[012])
22016 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22017 ;;
22018 10.*)
22019 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22020 ;;
22021 esac
22022 fi
22023 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022024 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022025 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022026 hardcode_direct_F77=no
22027 hardcode_automatic_F77=yes
22028 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022029 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022030 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022031 if test "$GCC" = yes ; then
22032 output_verbose_link_cmd='echo'
22033 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22034 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022035 # 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 +000022036 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}'
22037 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 +000022038 else
Reid Spencera773bd52006-08-04 18:18:08 +000022039 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022040 xlc*)
22041 output_verbose_link_cmd='echo'
22042 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22043 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022044 # 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 +000022045 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}'
22046 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 +000022047 ;;
22048 *)
22049 ld_shlibs_F77=no
22050 ;;
22051 esac
John Criswell47fdd832003-07-14 16:52:07 +000022052 fi
22053 ;;
22054
22055 dgux*)
22056 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22057 hardcode_libdir_flag_spec_F77='-L$libdir'
22058 hardcode_shlibpath_var_F77=no
22059 ;;
22060
22061 freebsd1*)
22062 ld_shlibs_F77=no
22063 ;;
22064
22065 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22066 # support. Future versions do this automatically, but an explicit c++rt0.o
22067 # does not break anything, and helps significantly (at the cost of a little
22068 # extra space).
22069 freebsd2.2*)
22070 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22071 hardcode_libdir_flag_spec_F77='-R$libdir'
22072 hardcode_direct_F77=yes
22073 hardcode_shlibpath_var_F77=no
22074 ;;
22075
22076 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22077 freebsd2*)
22078 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22079 hardcode_direct_F77=yes
22080 hardcode_minus_L_F77=yes
22081 hardcode_shlibpath_var_F77=no
22082 ;;
22083
22084 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022085 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022086 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22087 hardcode_libdir_flag_spec_F77='-R$libdir'
22088 hardcode_direct_F77=yes
22089 hardcode_shlibpath_var_F77=no
22090 ;;
22091
22092 hpux9*)
22093 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022094 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 +000022095 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022096 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 +000022097 fi
22098 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22099 hardcode_libdir_separator_F77=:
22100 hardcode_direct_F77=yes
22101
22102 # hardcode_minus_L: Not really in the search PATH,
22103 # but as the default location of the library.
22104 hardcode_minus_L_F77=yes
22105 export_dynamic_flag_spec_F77='${wl}-E'
22106 ;;
22107
Reid Spencera773bd52006-08-04 18:18:08 +000022108 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022109 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022110 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22111 else
22112 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22113 fi
22114 if test "$with_gnu_ld" = no; then
22115 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22116 hardcode_libdir_separator_F77=:
22117
22118 hardcode_direct_F77=yes
22119 export_dynamic_flag_spec_F77='${wl}-E'
22120
22121 # hardcode_minus_L: Not really in the search PATH,
22122 # but as the default location of the library.
22123 hardcode_minus_L_F77=yes
22124 fi
22125 ;;
22126
22127 hpux11*)
22128 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22129 case $host_cpu in
22130 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022131 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22132 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022133 ia64*)
22134 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22135 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022136 *)
22137 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22138 ;;
22139 esac
22140 else
Reid Spencera773bd52006-08-04 18:18:08 +000022141 case $host_cpu in
22142 hppa*64*)
22143 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22144 ;;
22145 ia64*)
22146 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022147 ;;
22148 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022149 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 +000022150 ;;
22151 esac
22152 fi
22153 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022154 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22155 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022156
Reid Spencera773bd52006-08-04 18:18:08 +000022157 case $host_cpu in
22158 hppa*64*|ia64*)
22159 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22160 hardcode_direct_F77=no
22161 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022162 ;;
22163 *)
John Criswell47fdd832003-07-14 16:52:07 +000022164 hardcode_direct_F77=yes
22165 export_dynamic_flag_spec_F77='${wl}-E'
22166
22167 # hardcode_minus_L: Not really in the search PATH,
22168 # but as the default location of the library.
22169 hardcode_minus_L_F77=yes
22170 ;;
22171 esac
22172 fi
22173 ;;
22174
22175 irix5* | irix6* | nonstopux*)
22176 if test "$GCC" = yes; then
22177 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'
22178 else
22179 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'
22180 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22181 fi
22182 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22183 hardcode_libdir_separator_F77=:
22184 link_all_deplibs_F77=yes
22185 ;;
22186
22187 netbsd*)
22188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22189 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22190 else
22191 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22192 fi
22193 hardcode_libdir_flag_spec_F77='-R$libdir'
22194 hardcode_direct_F77=yes
22195 hardcode_shlibpath_var_F77=no
22196 ;;
22197
22198 newsos6)
22199 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22200 hardcode_direct_F77=yes
22201 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22202 hardcode_libdir_separator_F77=:
22203 hardcode_shlibpath_var_F77=no
22204 ;;
22205
22206 openbsd*)
22207 hardcode_direct_F77=yes
22208 hardcode_shlibpath_var_F77=no
22209 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22210 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022211 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 +000022212 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22213 export_dynamic_flag_spec_F77='${wl}-E'
22214 else
22215 case $host_os in
22216 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22217 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22218 hardcode_libdir_flag_spec_F77='-R$libdir'
22219 ;;
22220 *)
22221 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22222 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22223 ;;
22224 esac
22225 fi
22226 ;;
22227
22228 os2*)
22229 hardcode_libdir_flag_spec_F77='-L$libdir'
22230 hardcode_minus_L_F77=yes
22231 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022232 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 +000022233 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22234 ;;
22235
22236 osf3*)
22237 if test "$GCC" = yes; then
22238 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22239 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'
22240 else
22241 allow_undefined_flag_F77=' -expect_unresolved \*'
22242 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'
22243 fi
22244 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22245 hardcode_libdir_separator_F77=:
22246 ;;
22247
22248 osf4* | osf5*) # as osf3* with the addition of -msym flag
22249 if test "$GCC" = yes; then
22250 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22251 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'
22252 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22253 else
22254 allow_undefined_flag_F77=' -expect_unresolved \*'
22255 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 +000022256 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 +000022257 $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 +000022258
John Criswell47fdd832003-07-14 16:52:07 +000022259 # Both c and cxx compiler support -rpath directly
22260 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22261 fi
22262 hardcode_libdir_separator_F77=:
22263 ;;
22264
John Criswell47fdd832003-07-14 16:52:07 +000022265 solaris*)
22266 no_undefined_flag_F77=' -z text'
22267 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022268 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022269 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022270 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22271 $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 +000022272 else
Reid Spencera773bd52006-08-04 18:18:08 +000022273 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022274 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022275 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22276 $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 +000022277 fi
22278 hardcode_libdir_flag_spec_F77='-R$libdir'
22279 hardcode_shlibpath_var_F77=no
22280 case $host_os in
22281 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022282 *)
22283 # The compiler driver will combine linker options so we
22284 # cannot just pass the convience library names through
22285 # without $wl, iff we do not link with $LD.
22286 # Luckily, gcc supports the same syntax we need for Sun Studio.
22287 # Supported since Solaris 2.6 (maybe 2.5.1?)
22288 case $wlarc in
22289 '')
22290 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22291 *)
22292 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' ;;
22293 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022294 esac
22295 link_all_deplibs_F77=yes
22296 ;;
22297
22298 sunos4*)
22299 if test "x$host_vendor" = xsequent; then
22300 # Use $CC to link under sequent, because it throws in some extra .o
22301 # files that make .init and .fini sections work.
22302 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22303 else
22304 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22305 fi
22306 hardcode_libdir_flag_spec_F77='-L$libdir'
22307 hardcode_direct_F77=yes
22308 hardcode_minus_L_F77=yes
22309 hardcode_shlibpath_var_F77=no
22310 ;;
22311
22312 sysv4)
22313 case $host_vendor in
22314 sni)
22315 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22316 hardcode_direct_F77=yes # is this really true???
22317 ;;
22318 siemens)
22319 ## LD is ld it makes a PLAMLIB
22320 ## CC just makes a GrossModule.
22321 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22322 reload_cmds_F77='$CC -r -o $output$reload_objs'
22323 hardcode_direct_F77=no
22324 ;;
22325 motorola)
22326 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22327 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22328 ;;
22329 esac
22330 runpath_var='LD_RUN_PATH'
22331 hardcode_shlibpath_var_F77=no
22332 ;;
22333
22334 sysv4.3*)
22335 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22336 hardcode_shlibpath_var_F77=no
22337 export_dynamic_flag_spec_F77='-Bexport'
22338 ;;
22339
22340 sysv4*MP*)
22341 if test -d /usr/nec; then
22342 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22343 hardcode_shlibpath_var_F77=no
22344 runpath_var=LD_RUN_PATH
22345 hardcode_runpath_var=yes
22346 ld_shlibs_F77=yes
22347 fi
22348 ;;
22349
Reid Spencera773bd52006-08-04 18:18:08 +000022350 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22351 no_undefined_flag_F77='${wl}-z,text'
22352 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022353 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022354 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022355
John Criswell47fdd832003-07-14 16:52:07 +000022356 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022357 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22358 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 +000022359 else
Reid Spencera773bd52006-08-04 18:18:08 +000022360 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22361 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 +000022362 fi
John Criswell47fdd832003-07-14 16:52:07 +000022363 ;;
22364
Reid Spencera773bd52006-08-04 18:18:08 +000022365 sysv5* | sco3.2v5* | sco5v6*)
22366 # Note: We can NOT use -z defs as we might desire, because we do not
22367 # link with -lc, and that would cause any symbols used from libc to
22368 # always be unresolved, which means just about no library would
22369 # ever link correctly. If we're not using GNU ld we use -z text
22370 # though, which does catch some bad symbols but isn't as heavy-handed
22371 # as -z defs.
22372 no_undefined_flag_F77='${wl}-z,text'
22373 allow_undefined_flag_F77='${wl}-z,nodefs'
22374 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022375 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022376 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22377 hardcode_libdir_separator_F77=':'
22378 link_all_deplibs_F77=yes
22379 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022380 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022381
22382 if test "$GCC" = yes; then
22383 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22384 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22385 else
22386 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22387 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22388 fi
John Criswell47fdd832003-07-14 16:52:07 +000022389 ;;
22390
22391 uts4*)
22392 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22393 hardcode_libdir_flag_spec_F77='-L$libdir'
22394 hardcode_shlibpath_var_F77=no
22395 ;;
22396
22397 *)
22398 ld_shlibs_F77=no
22399 ;;
22400 esac
22401 fi
22402
Reid Spencera773bd52006-08-04 18:18:08 +000022403{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22404echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022405test "$ld_shlibs_F77" = no && can_build_shared=no
22406
John Criswell47fdd832003-07-14 16:52:07 +000022407#
22408# Do we need to explicitly link libc?
22409#
22410case "x$archive_cmds_need_lc_F77" in
22411x|xyes)
22412 # Assume -lc should be added
22413 archive_cmds_need_lc_F77=yes
22414
22415 if test "$enable_shared" = yes && test "$GCC" = yes; then
22416 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022417 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022418 # FIXME: we may have to deal with multi-command sequences.
22419 ;;
22420 '$CC '*)
22421 # Test whether the compiler implicitly links with -lc since on some
22422 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22423 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022424 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22425echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022426 $rm conftest*
22427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22428
22429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22430 (eval $ac_compile) 2>&5
22431 ac_status=$?
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } 2>conftest.err; then
22434 soname=conftest
22435 lib=conftest
22436 libobjs=conftest.$ac_objext
22437 deplibs=
22438 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022439 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022440 compiler_flags=-v
22441 linker_flags=-v
22442 verstring=
22443 output_objdir=.
22444 libname=conftest
22445 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22446 allow_undefined_flag_F77=
22447 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22448 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22449 ac_status=$?
22450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); }
22452 then
22453 archive_cmds_need_lc_F77=no
22454 else
22455 archive_cmds_need_lc_F77=yes
22456 fi
22457 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22458 else
22459 cat conftest.err 1>&5
22460 fi
22461 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022462 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22463echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022464 ;;
22465 esac
22466 fi
22467 ;;
22468esac
22469
Reid Spencera773bd52006-08-04 18:18:08 +000022470{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22471echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022472library_names_spec=
22473libname_spec='lib$name'
22474soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022475shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022476postinstall_cmds=
22477postuninstall_cmds=
22478finish_cmds=
22479finish_eval=
22480shlibpath_var=
22481shlibpath_overrides_runpath=unknown
22482version_type=none
22483dynamic_linker="$host_os ld.so"
22484sys_lib_dlsearch_path_spec="/lib /usr/lib"
22485if test "$GCC" = yes; then
22486 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22487 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22488 # if the path contains ";" then we assume it to be the separator
22489 # otherwise default to the standard path separator (i.e. ":") - it is
22490 # assumed that no part of a normal pathname contains ";" but that should
22491 # okay in the real world where ";" in dirpaths is itself problematic.
22492 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22493 else
22494 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22495 fi
22496else
22497 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22498fi
22499need_lib_prefix=unknown
22500hardcode_into_libs=no
22501
22502# when you set need_version to no, make sure it does not cause -set_version
22503# flags to be left without arguments
22504need_version=unknown
22505
22506case $host_os in
22507aix3*)
22508 version_type=linux
22509 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22510 shlibpath_var=LIBPATH
22511
22512 # AIX 3 has no versioning support, so we append a major version to the name.
22513 soname_spec='${libname}${release}${shared_ext}$major'
22514 ;;
22515
22516aix4* | aix5*)
22517 version_type=linux
22518 need_lib_prefix=no
22519 need_version=no
22520 hardcode_into_libs=yes
22521 if test "$host_cpu" = ia64; then
22522 # AIX 5 supports IA64
22523 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22524 shlibpath_var=LD_LIBRARY_PATH
22525 else
22526 # With GCC up to 2.95.x, collect2 would create an import file
22527 # for dependence libraries. The import file would start with
22528 # the line `#! .'. This would cause the generated library to
22529 # depend on `.', always an invalid library. This was fixed in
22530 # development snapshots of GCC prior to 3.0.
22531 case $host_os in
22532 aix4 | aix4.[01] | aix4.[01].*)
22533 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22534 echo ' yes '
22535 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22536 :
22537 else
22538 can_build_shared=no
22539 fi
22540 ;;
22541 esac
22542 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22543 # soname into executable. Probably we can add versioning support to
22544 # collect2, so additional links can be useful in future.
22545 if test "$aix_use_runtimelinking" = yes; then
22546 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22547 # instead of lib<name>.a to let people know that these are not
22548 # typical AIX shared libraries.
22549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22550 else
22551 # We preserve .a as extension for shared libraries through AIX4.2
22552 # and later when we are not doing run time linking.
22553 library_names_spec='${libname}${release}.a $libname.a'
22554 soname_spec='${libname}${release}${shared_ext}$major'
22555 fi
22556 shlibpath_var=LIBPATH
22557 fi
22558 ;;
22559
22560amigaos*)
22561 library_names_spec='$libname.ixlibrary $libname.a'
22562 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022563 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 +000022564 ;;
22565
22566beos*)
22567 library_names_spec='${libname}${shared_ext}'
22568 dynamic_linker="$host_os ld.so"
22569 shlibpath_var=LIBRARY_PATH
22570 ;;
22571
Reid Spencer2706f8c2004-09-19 23:53:36 +000022572bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022573 version_type=linux
22574 need_version=no
22575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22576 soname_spec='${libname}${release}${shared_ext}$major'
22577 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22578 shlibpath_var=LD_LIBRARY_PATH
22579 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22580 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22581 # the default ld.so.conf also contains /usr/contrib/lib and
22582 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22583 # libtool to hard-code these into programs
22584 ;;
22585
22586cygwin* | mingw* | pw32*)
22587 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022588 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022589 need_version=no
22590 need_lib_prefix=no
22591
22592 case $GCC,$host_os in
22593 yes,cygwin* | yes,mingw* | yes,pw32*)
22594 library_names_spec='$libname.dll.a'
22595 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022596 postinstall_cmds='base_file=`basename \${file}`~
22597 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22598 dldir=$destdir/`dirname \$dlpath`~
22599 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022600 $install_prog $dir/$dlname \$dldir/$dlname~
22601 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022602 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22603 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022604 $rm \$dlpath'
22605 shlibpath_overrides_runpath=yes
22606
22607 case $host_os in
22608 cygwin*)
22609 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22610 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 +000022611 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022612 ;;
22613 mingw*)
22614 # MinGW DLLs use traditional 'lib' prefix
22615 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22616 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22617 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22618 # It is most probably a Windows format PATH printed by
22619 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22620 # path with ; separators, and with drive letters. We can handle the
22621 # drive letters (cygwin fileutils understands them), so leave them,
22622 # especially as we might pass files found there to a mingw objdump,
22623 # which wouldn't understand a cygwinified path. Ahh.
22624 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22625 else
22626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22627 fi
22628 ;;
22629 pw32*)
22630 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022631 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 +000022632 ;;
22633 esac
22634 ;;
22635
22636 *)
22637 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22638 ;;
22639 esac
22640 dynamic_linker='Win32 ld.exe'
22641 # FIXME: first we should search . and the directory the executable is in
22642 shlibpath_var=PATH
22643 ;;
22644
22645darwin* | rhapsody*)
22646 dynamic_linker="$host_os dyld"
22647 version_type=darwin
22648 need_lib_prefix=no
22649 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022650 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022651 soname_spec='${libname}${release}${major}$shared_ext'
22652 shlibpath_overrides_runpath=yes
22653 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022654 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022655 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022656 if test "$GCC" = yes; then
22657 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"`
22658 else
22659 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022660 fi
22661 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22662 ;;
22663
22664dgux*)
22665 version_type=linux
22666 need_lib_prefix=no
22667 need_version=no
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22669 soname_spec='${libname}${release}${shared_ext}$major'
22670 shlibpath_var=LD_LIBRARY_PATH
22671 ;;
22672
22673freebsd1*)
22674 dynamic_linker=no
22675 ;;
22676
Reid Spencer2706f8c2004-09-19 23:53:36 +000022677kfreebsd*-gnu)
22678 version_type=linux
22679 need_lib_prefix=no
22680 need_version=no
22681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22682 soname_spec='${libname}${release}${shared_ext}$major'
22683 shlibpath_var=LD_LIBRARY_PATH
22684 shlibpath_overrides_runpath=no
22685 hardcode_into_libs=yes
22686 dynamic_linker='GNU ld.so'
22687 ;;
22688
Reid Spencera773bd52006-08-04 18:18:08 +000022689freebsd* | dragonfly*)
22690 # DragonFly does not have aout. When/if they implement a new
22691 # versioning mechanism, adjust this.
22692 if test -x /usr/bin/objformat; then
22693 objformat=`/usr/bin/objformat`
22694 else
22695 case $host_os in
22696 freebsd[123]*) objformat=aout ;;
22697 *) objformat=elf ;;
22698 esac
22699 fi
John Criswell47fdd832003-07-14 16:52:07 +000022700 version_type=freebsd-$objformat
22701 case $version_type in
22702 freebsd-elf*)
22703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22704 need_version=no
22705 need_lib_prefix=no
22706 ;;
22707 freebsd-*)
22708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22709 need_version=yes
22710 ;;
22711 esac
22712 shlibpath_var=LD_LIBRARY_PATH
22713 case $host_os in
22714 freebsd2*)
22715 shlibpath_overrides_runpath=yes
22716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022717 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022718 shlibpath_overrides_runpath=yes
22719 hardcode_into_libs=yes
22720 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022721 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22722 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022723 shlibpath_overrides_runpath=no
22724 hardcode_into_libs=yes
22725 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022726 freebsd*) # from 4.6 on
22727 shlibpath_overrides_runpath=yes
22728 hardcode_into_libs=yes
22729 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022730 esac
22731 ;;
22732
22733gnu*)
22734 version_type=linux
22735 need_lib_prefix=no
22736 need_version=no
22737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22738 soname_spec='${libname}${release}${shared_ext}$major'
22739 shlibpath_var=LD_LIBRARY_PATH
22740 hardcode_into_libs=yes
22741 ;;
22742
22743hpux9* | hpux10* | hpux11*)
22744 # Give a soname corresponding to the major version so that dld.sl refuses to
22745 # link against other versions.
22746 version_type=sunos
22747 need_lib_prefix=no
22748 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022749 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022750 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022751 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022752 hardcode_into_libs=yes
22753 dynamic_linker="$host_os dld.so"
22754 shlibpath_var=LD_LIBRARY_PATH
22755 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22757 soname_spec='${libname}${release}${shared_ext}$major'
22758 if test "X$HPUX_IA64_MODE" = X32; then
22759 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22760 else
22761 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22762 fi
22763 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22764 ;;
22765 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022766 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022767 hardcode_into_libs=yes
22768 dynamic_linker="$host_os dld.sl"
22769 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22770 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22772 soname_spec='${libname}${release}${shared_ext}$major'
22773 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22774 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22775 ;;
22776 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022777 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022778 dynamic_linker="$host_os dld.sl"
22779 shlibpath_var=SHLIB_PATH
22780 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22782 soname_spec='${libname}${release}${shared_ext}$major'
22783 ;;
22784 esac
22785 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22786 postinstall_cmds='chmod 555 $lib'
22787 ;;
22788
Reid Spencera773bd52006-08-04 18:18:08 +000022789interix3*)
22790 version_type=linux
22791 need_lib_prefix=no
22792 need_version=no
22793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22794 soname_spec='${libname}${release}${shared_ext}$major'
22795 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22796 shlibpath_var=LD_LIBRARY_PATH
22797 shlibpath_overrides_runpath=no
22798 hardcode_into_libs=yes
22799 ;;
22800
John Criswell47fdd832003-07-14 16:52:07 +000022801irix5* | irix6* | nonstopux*)
22802 case $host_os in
22803 nonstopux*) version_type=nonstopux ;;
22804 *)
22805 if test "$lt_cv_prog_gnu_ld" = yes; then
22806 version_type=linux
22807 else
22808 version_type=irix
22809 fi ;;
22810 esac
22811 need_lib_prefix=no
22812 need_version=no
22813 soname_spec='${libname}${release}${shared_ext}$major'
22814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22815 case $host_os in
22816 irix5* | nonstopux*)
22817 libsuff= shlibsuff=
22818 ;;
22819 *)
22820 case $LD in # libtool.m4 will add one of these switches to LD
22821 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22822 libsuff= shlibsuff= libmagic=32-bit;;
22823 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22824 libsuff=32 shlibsuff=N32 libmagic=N32;;
22825 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22826 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22827 *) libsuff= shlibsuff= libmagic=never-match;;
22828 esac
22829 ;;
22830 esac
22831 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22832 shlibpath_overrides_runpath=no
22833 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22834 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22835 hardcode_into_libs=yes
22836 ;;
22837
22838# No shared lib support for Linux oldld, aout, or coff.
22839linux*oldld* | linux*aout* | linux*coff*)
22840 dynamic_linker=no
22841 ;;
22842
22843# This must be Linux ELF.
22844linux*)
22845 version_type=linux
22846 need_lib_prefix=no
22847 need_version=no
22848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22849 soname_spec='${libname}${release}${shared_ext}$major'
22850 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22851 shlibpath_var=LD_LIBRARY_PATH
22852 shlibpath_overrides_runpath=no
22853 # This implies no fast_install, which is unacceptable.
22854 # Some rework will be needed to allow for fast_install
22855 # before this can be enabled.
22856 hardcode_into_libs=yes
22857
Reid Spencer2706f8c2004-09-19 23:53:36 +000022858 # Append ld.so.conf contents to the search path
22859 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022860 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 +000022861 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22862 fi
22863
John Criswell47fdd832003-07-14 16:52:07 +000022864 # We used to test for /lib/ld.so.1 and disable shared libraries on
22865 # powerpc, because MkLinux only supported shared libraries with the
22866 # GNU dynamic linker. Since this was broken with cross compilers,
22867 # most powerpc-linux boxes support dynamic linking these days and
22868 # people can always --disable-shared, the test was removed, and we
22869 # assume the GNU/Linux dynamic linker is in use.
22870 dynamic_linker='GNU/Linux ld.so'
22871 ;;
22872
Reid Spencer2706f8c2004-09-19 23:53:36 +000022873knetbsd*-gnu)
22874 version_type=linux
22875 need_lib_prefix=no
22876 need_version=no
22877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22878 soname_spec='${libname}${release}${shared_ext}$major'
22879 shlibpath_var=LD_LIBRARY_PATH
22880 shlibpath_overrides_runpath=no
22881 hardcode_into_libs=yes
22882 dynamic_linker='GNU ld.so'
22883 ;;
22884
John Criswell47fdd832003-07-14 16:52:07 +000022885netbsd*)
22886 version_type=sunos
22887 need_lib_prefix=no
22888 need_version=no
22889 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22892 dynamic_linker='NetBSD (a.out) ld.so'
22893 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022895 soname_spec='${libname}${release}${shared_ext}$major'
22896 dynamic_linker='NetBSD ld.elf_so'
22897 fi
22898 shlibpath_var=LD_LIBRARY_PATH
22899 shlibpath_overrides_runpath=yes
22900 hardcode_into_libs=yes
22901 ;;
22902
22903newsos6)
22904 version_type=linux
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22906 shlibpath_var=LD_LIBRARY_PATH
22907 shlibpath_overrides_runpath=yes
22908 ;;
22909
Reid Spencer2706f8c2004-09-19 23:53:36 +000022910nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022911 version_type=linux
22912 need_lib_prefix=no
22913 need_version=no
22914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22915 soname_spec='${libname}${release}${shared_ext}$major'
22916 shlibpath_var=LD_LIBRARY_PATH
22917 shlibpath_overrides_runpath=yes
22918 ;;
22919
22920openbsd*)
22921 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022922 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022923 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022924 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22925 case $host_os in
22926 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22927 *) need_version=no ;;
22928 esac
John Criswell47fdd832003-07-14 16:52:07 +000022929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22931 shlibpath_var=LD_LIBRARY_PATH
22932 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22933 case $host_os in
22934 openbsd2.[89] | openbsd2.[89].*)
22935 shlibpath_overrides_runpath=no
22936 ;;
22937 *)
22938 shlibpath_overrides_runpath=yes
22939 ;;
22940 esac
22941 else
22942 shlibpath_overrides_runpath=yes
22943 fi
22944 ;;
22945
22946os2*)
22947 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022948 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022949 need_lib_prefix=no
22950 library_names_spec='$libname${shared_ext} $libname.a'
22951 dynamic_linker='OS/2 ld.exe'
22952 shlibpath_var=LIBPATH
22953 ;;
22954
22955osf3* | osf4* | osf5*)
22956 version_type=osf
22957 need_lib_prefix=no
22958 need_version=no
22959 soname_spec='${libname}${release}${shared_ext}$major'
22960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22961 shlibpath_var=LD_LIBRARY_PATH
22962 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22963 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22964 ;;
22965
John Criswell47fdd832003-07-14 16:52:07 +000022966solaris*)
22967 version_type=linux
22968 need_lib_prefix=no
22969 need_version=no
22970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22971 soname_spec='${libname}${release}${shared_ext}$major'
22972 shlibpath_var=LD_LIBRARY_PATH
22973 shlibpath_overrides_runpath=yes
22974 hardcode_into_libs=yes
22975 # ldd complains unless libraries are executable
22976 postinstall_cmds='chmod +x $lib'
22977 ;;
22978
22979sunos4*)
22980 version_type=sunos
22981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22982 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22983 shlibpath_var=LD_LIBRARY_PATH
22984 shlibpath_overrides_runpath=yes
22985 if test "$with_gnu_ld" = yes; then
22986 need_lib_prefix=no
22987 fi
22988 need_version=yes
22989 ;;
22990
Reid Spencera773bd52006-08-04 18:18:08 +000022991sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022992 version_type=linux
22993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22994 soname_spec='${libname}${release}${shared_ext}$major'
22995 shlibpath_var=LD_LIBRARY_PATH
22996 case $host_vendor in
22997 sni)
22998 shlibpath_overrides_runpath=no
22999 need_lib_prefix=no
23000 export_dynamic_flag_spec='${wl}-Blargedynsym'
23001 runpath_var=LD_RUN_PATH
23002 ;;
23003 siemens)
23004 need_lib_prefix=no
23005 ;;
23006 motorola)
23007 need_lib_prefix=no
23008 need_version=no
23009 shlibpath_overrides_runpath=no
23010 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23011 ;;
23012 esac
23013 ;;
23014
23015sysv4*MP*)
23016 if test -d /usr/nec ;then
23017 version_type=linux
23018 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23019 soname_spec='$libname${shared_ext}.$major'
23020 shlibpath_var=LD_LIBRARY_PATH
23021 fi
23022 ;;
23023
Reid Spencera773bd52006-08-04 18:18:08 +000023024sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23025 version_type=freebsd-elf
23026 need_lib_prefix=no
23027 need_version=no
23028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23029 soname_spec='${libname}${release}${shared_ext}$major'
23030 shlibpath_var=LD_LIBRARY_PATH
23031 hardcode_into_libs=yes
23032 if test "$with_gnu_ld" = yes; then
23033 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23034 shlibpath_overrides_runpath=no
23035 else
23036 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23037 shlibpath_overrides_runpath=yes
23038 case $host_os in
23039 sco3.2v5*)
23040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23041 ;;
23042 esac
23043 fi
23044 sys_lib_dlsearch_path_spec='/usr/lib'
23045 ;;
23046
John Criswell47fdd832003-07-14 16:52:07 +000023047uts4*)
23048 version_type=linux
23049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23050 soname_spec='${libname}${release}${shared_ext}$major'
23051 shlibpath_var=LD_LIBRARY_PATH
23052 ;;
23053
23054*)
23055 dynamic_linker=no
23056 ;;
23057esac
Reid Spencera773bd52006-08-04 18:18:08 +000023058{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23059echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023060test "$dynamic_linker" = no && can_build_shared=no
23061
Reid Spencera773bd52006-08-04 18:18:08 +000023062variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23063if test "$GCC" = yes; then
23064 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23065fi
23066
23067{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23068echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023069hardcode_action_F77=
23070if test -n "$hardcode_libdir_flag_spec_F77" || \
23071 test -n "$runpath_var_F77" || \
23072 test "X$hardcode_automatic_F77" = "Xyes" ; then
23073
23074 # We can hardcode non-existant directories.
23075 if test "$hardcode_direct_F77" != no &&
23076 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23077 # have to relink, otherwise we might link with an installed library
23078 # when we should be linking with a yet-to-be-installed one
23079 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23080 test "$hardcode_minus_L_F77" != no; then
23081 # Linking always hardcodes the temporary library directory.
23082 hardcode_action_F77=relink
23083 else
23084 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23085 hardcode_action_F77=immediate
23086 fi
23087else
23088 # We cannot hardcode anything, or else we can only hardcode existing
23089 # directories.
23090 hardcode_action_F77=unsupported
23091fi
Reid Spencera773bd52006-08-04 18:18:08 +000023092{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23093echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023094
23095if test "$hardcode_action_F77" = relink; then
23096 # Fast installation is not supported
23097 enable_fast_install=no
23098elif test "$shlibpath_overrides_runpath" = yes ||
23099 test "$enable_shared" = no; then
23100 # Fast installation is not necessary
23101 enable_fast_install=needless
23102fi
23103
John Criswell47fdd832003-07-14 16:52:07 +000023104
23105# The else clause should only fire when bootstrapping the
23106# libtool distribution, otherwise you forgot to ship ltmain.sh
23107# with your package, and you will get complaints that there are
23108# no rules to generate ltmain.sh.
23109if test -f "$ltmain"; then
23110 # See if we are running on zsh, and set the options which allow our commands through
23111 # without removal of \ escapes.
23112 if test -n "${ZSH_VERSION+set}" ; then
23113 setopt NO_GLOB_SUBST
23114 fi
23115 # Now quote all the things that may contain metacharacters while being
23116 # careful not to overquote the AC_SUBSTed values. We take copies of the
23117 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023118 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 +000023119 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023120 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23121 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23122 deplibs_check_method reload_flag reload_cmds need_locks \
23123 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23124 lt_cv_sys_global_symbol_to_c_name_address \
23125 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23126 old_postinstall_cmds old_postuninstall_cmds \
23127 compiler_F77 \
23128 CC_F77 \
23129 LD_F77 \
23130 lt_prog_compiler_wl_F77 \
23131 lt_prog_compiler_pic_F77 \
23132 lt_prog_compiler_static_F77 \
23133 lt_prog_compiler_no_builtin_flag_F77 \
23134 export_dynamic_flag_spec_F77 \
23135 thread_safe_flag_spec_F77 \
23136 whole_archive_flag_spec_F77 \
23137 enable_shared_with_static_runtimes_F77 \
23138 old_archive_cmds_F77 \
23139 old_archive_from_new_cmds_F77 \
23140 predep_objects_F77 \
23141 postdep_objects_F77 \
23142 predeps_F77 \
23143 postdeps_F77 \
23144 compiler_lib_search_path_F77 \
23145 archive_cmds_F77 \
23146 archive_expsym_cmds_F77 \
23147 postinstall_cmds_F77 \
23148 postuninstall_cmds_F77 \
23149 old_archive_from_expsyms_cmds_F77 \
23150 allow_undefined_flag_F77 \
23151 no_undefined_flag_F77 \
23152 export_symbols_cmds_F77 \
23153 hardcode_libdir_flag_spec_F77 \
23154 hardcode_libdir_flag_spec_ld_F77 \
23155 hardcode_libdir_separator_F77 \
23156 hardcode_automatic_F77 \
23157 module_cmds_F77 \
23158 module_expsym_cmds_F77 \
23159 lt_cv_prog_compiler_c_o_F77 \
23160 exclude_expsyms_F77 \
23161 include_expsyms_F77; do
23162
23163 case $var in
23164 old_archive_cmds_F77 | \
23165 old_archive_from_new_cmds_F77 | \
23166 archive_cmds_F77 | \
23167 archive_expsym_cmds_F77 | \
23168 module_cmds_F77 | \
23169 module_expsym_cmds_F77 | \
23170 old_archive_from_expsyms_cmds_F77 | \
23171 export_symbols_cmds_F77 | \
23172 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23173 postinstall_cmds | postuninstall_cmds | \
23174 old_postinstall_cmds | old_postuninstall_cmds | \
23175 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23176 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023177 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 +000023178 ;;
23179 *)
23180 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23181 ;;
23182 esac
23183 done
23184
23185 case $lt_echo in
23186 *'\$0 --fallback-echo"')
23187 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23188 ;;
23189 esac
23190
23191cfgfile="$ofile"
23192
23193 cat <<__EOF__ >> "$cfgfile"
23194# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23195
23196# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23197
23198# Shell to use when invoking shell scripts.
23199SHELL=$lt_SHELL
23200
23201# Whether or not to build shared libraries.
23202build_libtool_libs=$enable_shared
23203
23204# Whether or not to build static libraries.
23205build_old_libs=$enable_static
23206
23207# Whether or not to add -lc for building shared libraries.
23208build_libtool_need_lc=$archive_cmds_need_lc_F77
23209
23210# Whether or not to disallow shared libs when runtime libs are static
23211allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23212
23213# Whether or not to optimize for fast installation.
23214fast_install=$enable_fast_install
23215
23216# The host system.
23217host_alias=$host_alias
23218host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023219host_os=$host_os
23220
23221# The build system.
23222build_alias=$build_alias
23223build=$build
23224build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023225
23226# An echo program that does not interpret backslashes.
23227echo=$lt_echo
23228
23229# The archiver.
23230AR=$lt_AR
23231AR_FLAGS=$lt_AR_FLAGS
23232
23233# A C compiler.
23234LTCC=$lt_LTCC
23235
Reid Spencera773bd52006-08-04 18:18:08 +000023236# LTCC compiler flags.
23237LTCFLAGS=$lt_LTCFLAGS
23238
John Criswell47fdd832003-07-14 16:52:07 +000023239# A language-specific compiler.
23240CC=$lt_compiler_F77
23241
23242# Is the compiler the GNU C compiler?
23243with_gcc=$GCC_F77
23244
23245# An ERE matcher.
23246EGREP=$lt_EGREP
23247
23248# The linker used to build libraries.
23249LD=$lt_LD_F77
23250
23251# Whether we need hard or soft links.
23252LN_S=$lt_LN_S
23253
23254# A BSD-compatible nm program.
23255NM=$lt_NM
23256
23257# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023258STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023259
23260# Used to examine libraries when file_magic_cmd begins "file"
23261MAGIC_CMD=$MAGIC_CMD
23262
23263# Used on cygwin: DLL creation program.
23264DLLTOOL="$DLLTOOL"
23265
23266# Used on cygwin: object dumper.
23267OBJDUMP="$OBJDUMP"
23268
23269# Used on cygwin: assembler.
23270AS="$AS"
23271
23272# The name of the directory that contains temporary libtool files.
23273objdir=$objdir
23274
23275# How to create reloadable object files.
23276reload_flag=$lt_reload_flag
23277reload_cmds=$lt_reload_cmds
23278
23279# How to pass a linker flag through the compiler.
23280wl=$lt_lt_prog_compiler_wl_F77
23281
23282# Object file suffix (normally "o").
23283objext="$ac_objext"
23284
23285# Old archive suffix (normally "a").
23286libext="$libext"
23287
23288# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023289shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023290
23291# Executable file suffix (normally "").
23292exeext="$exeext"
23293
23294# Additional compiler flags for building library objects.
23295pic_flag=$lt_lt_prog_compiler_pic_F77
23296pic_mode=$pic_mode
23297
23298# What is the maximum length of a command?
23299max_cmd_len=$lt_cv_sys_max_cmd_len
23300
23301# Does compiler simultaneously support -c and -o options?
23302compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23303
Reid Spencera773bd52006-08-04 18:18:08 +000023304# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023305need_locks=$lt_need_locks
23306
23307# Do we need the lib prefix for modules?
23308need_lib_prefix=$need_lib_prefix
23309
23310# Do we need a version for libraries?
23311need_version=$need_version
23312
23313# Whether dlopen is supported.
23314dlopen_support=$enable_dlopen
23315
23316# Whether dlopen of programs is supported.
23317dlopen_self=$enable_dlopen_self
23318
23319# Whether dlopen of statically linked programs is supported.
23320dlopen_self_static=$enable_dlopen_self_static
23321
23322# Compiler flag to prevent dynamic linking.
23323link_static_flag=$lt_lt_prog_compiler_static_F77
23324
23325# Compiler flag to turn off builtin functions.
23326no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23327
23328# Compiler flag to allow reflexive dlopens.
23329export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23330
23331# Compiler flag to generate shared objects directly from archives.
23332whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23333
23334# Compiler flag to generate thread-safe objects.
23335thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23336
23337# Library versioning type.
23338version_type=$version_type
23339
23340# Format of library name prefix.
23341libname_spec=$lt_libname_spec
23342
23343# List of archive names. First name is the real one, the rest are links.
23344# The last name is the one that the linker finds with -lNAME.
23345library_names_spec=$lt_library_names_spec
23346
23347# The coded name of the library, if different from the real name.
23348soname_spec=$lt_soname_spec
23349
23350# Commands used to build and install an old-style archive.
23351RANLIB=$lt_RANLIB
23352old_archive_cmds=$lt_old_archive_cmds_F77
23353old_postinstall_cmds=$lt_old_postinstall_cmds
23354old_postuninstall_cmds=$lt_old_postuninstall_cmds
23355
23356# Create an old-style archive from a shared archive.
23357old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23358
23359# Create a temporary old-style archive to link instead of a shared archive.
23360old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23361
23362# Commands used to build and install a shared archive.
23363archive_cmds=$lt_archive_cmds_F77
23364archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23365postinstall_cmds=$lt_postinstall_cmds
23366postuninstall_cmds=$lt_postuninstall_cmds
23367
23368# Commands used to build a loadable module (assumed same as above if empty)
23369module_cmds=$lt_module_cmds_F77
23370module_expsym_cmds=$lt_module_expsym_cmds_F77
23371
23372# Commands to strip libraries.
23373old_striplib=$lt_old_striplib
23374striplib=$lt_striplib
23375
23376# Dependencies to place before the objects being linked to create a
23377# shared library.
23378predep_objects=$lt_predep_objects_F77
23379
23380# Dependencies to place after the objects being linked to create a
23381# shared library.
23382postdep_objects=$lt_postdep_objects_F77
23383
23384# Dependencies to place before the objects being linked to create a
23385# shared library.
23386predeps=$lt_predeps_F77
23387
23388# Dependencies to place after the objects being linked to create a
23389# shared library.
23390postdeps=$lt_postdeps_F77
23391
23392# The library search path used internally by the compiler when linking
23393# a shared library.
23394compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23395
23396# Method to check whether dependent libraries are shared objects.
23397deplibs_check_method=$lt_deplibs_check_method
23398
23399# Command to use when deplibs_check_method == file_magic.
23400file_magic_cmd=$lt_file_magic_cmd
23401
23402# Flag that allows shared libraries with undefined symbols to be built.
23403allow_undefined_flag=$lt_allow_undefined_flag_F77
23404
23405# Flag that forces no undefined symbols.
23406no_undefined_flag=$lt_no_undefined_flag_F77
23407
23408# Commands used to finish a libtool library installation in a directory.
23409finish_cmds=$lt_finish_cmds
23410
23411# Same as above, but a single script fragment to be evaled but not shown.
23412finish_eval=$lt_finish_eval
23413
23414# Take the output of nm and produce a listing of raw symbols and C names.
23415global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23416
23417# Transform the output of nm in a proper C declaration
23418global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23419
23420# Transform the output of nm in a C name address pair
23421global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23422
23423# This is the shared library runtime path variable.
23424runpath_var=$runpath_var
23425
23426# This is the shared library path variable.
23427shlibpath_var=$shlibpath_var
23428
23429# Is shlibpath searched before the hard-coded library search path?
23430shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23431
23432# How to hardcode a shared library path into an executable.
23433hardcode_action=$hardcode_action_F77
23434
23435# Whether we should hardcode library paths into libraries.
23436hardcode_into_libs=$hardcode_into_libs
23437
23438# Flag to hardcode \$libdir into a binary during linking.
23439# This must work even if \$libdir does not exist.
23440hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23441
23442# If ld is used when linking, flag to hardcode \$libdir into
23443# a binary during linking. This must work even if \$libdir does
23444# not exist.
23445hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23446
23447# Whether we need a single -rpath flag with a separated argument.
23448hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23449
23450# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23451# resulting binary.
23452hardcode_direct=$hardcode_direct_F77
23453
23454# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23455# resulting binary.
23456hardcode_minus_L=$hardcode_minus_L_F77
23457
23458# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23459# the resulting binary.
23460hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23461
23462# Set to yes if building a shared library automatically hardcodes DIR into the library
23463# and all subsequent libraries and executables linked against it.
23464hardcode_automatic=$hardcode_automatic_F77
23465
23466# Variables whose values should be saved in libtool wrapper scripts and
23467# restored at relink time.
23468variables_saved_for_relink="$variables_saved_for_relink"
23469
23470# Whether libtool must link a program against all its dependency libraries.
23471link_all_deplibs=$link_all_deplibs_F77
23472
23473# Compile-time system search path for libraries
23474sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23475
23476# Run-time system search path for libraries
23477sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23478
23479# Fix the shell variable \$srcfile for the compiler.
23480fix_srcfile_path="$fix_srcfile_path_F77"
23481
23482# Set to yes if exported symbols are required.
23483always_export_symbols=$always_export_symbols_F77
23484
23485# The commands to list exported symbols.
23486export_symbols_cmds=$lt_export_symbols_cmds_F77
23487
23488# The commands to extract the exported symbol list from a shared archive.
23489extract_expsyms_cmds=$lt_extract_expsyms_cmds
23490
23491# Symbols that should not be listed in the preloaded symbols.
23492exclude_expsyms=$lt_exclude_expsyms_F77
23493
23494# Symbols that must always be exported.
23495include_expsyms=$lt_include_expsyms_F77
23496
23497# ### END LIBTOOL TAG CONFIG: $tagname
23498
23499__EOF__
23500
23501
23502else
23503 # If there is no Makefile yet, we rely on a make rule to execute
23504 # `config.status --recheck' to rerun these tests and create the
23505 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023506 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23507 if test -f "$ltmain_in"; then
23508 test -f Makefile && make "$ltmain"
23509 fi
John Criswell47fdd832003-07-14 16:52:07 +000023510fi
23511
23512
23513ac_ext=c
23514ac_cpp='$CPP $CPPFLAGS'
23515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23517ac_compiler_gnu=$ac_cv_c_compiler_gnu
23518
23519CC="$lt_save_CC"
23520
23521 else
23522 tagname=""
23523 fi
23524 ;;
23525
23526 GCJ)
23527 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023528 ac_ext=c
23529ac_cpp='$CPP $CPPFLAGS'
23530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23532ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023533
23534
23535# Source file extension for Java test sources.
23536ac_ext=java
23537
23538# Object file extension for compiled Java test sources.
23539objext=o
23540objext_GCJ=$objext
23541
23542# Code to be used in simple compile tests
23543lt_simple_compile_test_code="class foo {}\n"
23544
23545# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023546lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023547
23548# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23549
23550# If no C compiler was specified, use CC.
23551LTCC=${LTCC-"$CC"}
23552
Reid Spencera773bd52006-08-04 18:18:08 +000023553# If no C compiler flags were specified, use CFLAGS.
23554LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23555
John Criswell47fdd832003-07-14 16:52:07 +000023556# Allow CC to be a program name with arguments.
23557compiler=$CC
23558
23559
Reid Spencera773bd52006-08-04 18:18:08 +000023560# save warnings/boilerplate of simple test code
23561ac_outfile=conftest.$ac_objext
23562printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23563eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23564_lt_compiler_boilerplate=`cat conftest.err`
23565$rm conftest*
23566
23567ac_outfile=conftest.$ac_objext
23568printf "$lt_simple_link_test_code" >conftest.$ac_ext
23569eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23570_lt_linker_boilerplate=`cat conftest.err`
23571$rm conftest*
23572
23573
John Criswell47fdd832003-07-14 16:52:07 +000023574# Allow CC to be a program name with arguments.
23575lt_save_CC="$CC"
23576CC=${GCJ-"gcj"}
23577compiler=$CC
23578compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023579for cc_temp in $compiler""; do
23580 case $cc_temp in
23581 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23582 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23583 \-*) ;;
23584 *) break;;
23585 esac
23586done
23587cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23588
John Criswell47fdd832003-07-14 16:52:07 +000023589
23590# GCJ did not exist at the time GCC didn't implicitly link libc in.
23591archive_cmds_need_lc_GCJ=no
23592
Reid Spencera773bd52006-08-04 18:18:08 +000023593old_archive_cmds_GCJ=$old_archive_cmds
23594
John Criswell47fdd832003-07-14 16:52:07 +000023595
23596lt_prog_compiler_no_builtin_flag_GCJ=
23597
23598if test "$GCC" = yes; then
23599 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23600
Reid Spencer2706f8c2004-09-19 23:53:36 +000023601
Reid Spencera773bd52006-08-04 18:18:08 +000023602{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23603echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023604if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23605 echo $ECHO_N "(cached) $ECHO_C" >&6
23606else
23607 lt_cv_prog_compiler_rtti_exceptions=no
23608 ac_outfile=conftest.$ac_objext
23609 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23610 lt_compiler_flag="-fno-rtti -fno-exceptions"
23611 # Insert the option either (1) after the last *FLAGS variable, or
23612 # (2) before a word containing "conftest.", or (3) at the end.
23613 # Note that $ac_compile itself does not contain backslashes and begins
23614 # with a dollar sign (not a hyphen), so the echo should work correctly.
23615 # The option is referenced via a variable to avoid confusing sed.
23616 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23619 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000023620 (eval echo "\"\$as_me:23620: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023621 (eval "$lt_compile" 2>conftest.err)
23622 ac_status=$?
23623 cat conftest.err >&5
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000023624 echo "$as_me:23624: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023625 if (exit $ac_status) && test -s "$ac_outfile"; then
23626 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023627 # So say no if there are warnings other than the usual output.
23628 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23630 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023631 lt_cv_prog_compiler_rtti_exceptions=yes
23632 fi
23633 fi
23634 $rm conftest*
23635
23636fi
Reid Spencera773bd52006-08-04 18:18:08 +000023637{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23638echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023639
23640if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23641 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23642else
23643 :
23644fi
23645
23646fi
23647
23648lt_prog_compiler_wl_GCJ=
23649lt_prog_compiler_pic_GCJ=
23650lt_prog_compiler_static_GCJ=
23651
Reid Spencera773bd52006-08-04 18:18:08 +000023652{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23653echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023654
23655 if test "$GCC" = yes; then
23656 lt_prog_compiler_wl_GCJ='-Wl,'
23657 lt_prog_compiler_static_GCJ='-static'
23658
23659 case $host_os in
23660 aix*)
23661 # All AIX code is PIC.
23662 if test "$host_cpu" = ia64; then
23663 # AIX 5 now supports IA64 processor
23664 lt_prog_compiler_static_GCJ='-Bstatic'
23665 fi
23666 ;;
23667
23668 amigaos*)
23669 # FIXME: we need at least 68020 code to build shared libraries, but
23670 # adding the `-m68020' flag to GCC prevents building anything better,
23671 # like `-m68040'.
23672 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23673 ;;
23674
23675 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23676 # PIC is the default for these OSes.
23677 ;;
23678
23679 mingw* | pw32* | os2*)
23680 # This hack is so that the source file can tell whether it is being
23681 # built for inclusion in a dll (and should export symbols for example).
23682 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23683 ;;
23684
23685 darwin* | rhapsody*)
23686 # PIC is the default on this platform
23687 # Common symbols not allowed in MH_DYLIB files
23688 lt_prog_compiler_pic_GCJ='-fno-common'
23689 ;;
23690
Reid Spencera773bd52006-08-04 18:18:08 +000023691 interix3*)
23692 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23693 # Instead, we relocate shared libraries at runtime.
23694 ;;
23695
John Criswell47fdd832003-07-14 16:52:07 +000023696 msdosdjgpp*)
23697 # Just because we use GCC doesn't mean we suddenly get shared libraries
23698 # on systems that don't support them.
23699 lt_prog_compiler_can_build_shared_GCJ=no
23700 enable_shared=no
23701 ;;
23702
23703 sysv4*MP*)
23704 if test -d /usr/nec; then
23705 lt_prog_compiler_pic_GCJ=-Kconform_pic
23706 fi
23707 ;;
23708
23709 hpux*)
23710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23711 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023712 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023713 hppa*64*|ia64*)
23714 # +Z the default
23715 ;;
23716 *)
23717 lt_prog_compiler_pic_GCJ='-fPIC'
23718 ;;
23719 esac
23720 ;;
23721
23722 *)
23723 lt_prog_compiler_pic_GCJ='-fPIC'
23724 ;;
23725 esac
23726 else
23727 # PORTME Check for flag to pass linker flags through the system compiler.
23728 case $host_os in
23729 aix*)
23730 lt_prog_compiler_wl_GCJ='-Wl,'
23731 if test "$host_cpu" = ia64; then
23732 # AIX 5 now supports IA64 processor
23733 lt_prog_compiler_static_GCJ='-Bstatic'
23734 else
23735 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23736 fi
23737 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023738 darwin*)
23739 # PIC is the default on this platform
23740 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023741 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023742 xlc*)
23743 lt_prog_compiler_pic_GCJ='-qnocommon'
23744 lt_prog_compiler_wl_GCJ='-Wl,'
23745 ;;
23746 esac
23747 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023748
23749 mingw* | pw32* | os2*)
23750 # This hack is so that the source file can tell whether it is being
23751 # built for inclusion in a dll (and should export symbols for example).
23752 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23753 ;;
23754
23755 hpux9* | hpux10* | hpux11*)
23756 lt_prog_compiler_wl_GCJ='-Wl,'
23757 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23758 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023759 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023760 hppa*64*|ia64*)
23761 # +Z the default
23762 ;;
23763 *)
23764 lt_prog_compiler_pic_GCJ='+Z'
23765 ;;
23766 esac
23767 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23768 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23769 ;;
23770
23771 irix5* | irix6* | nonstopux*)
23772 lt_prog_compiler_wl_GCJ='-Wl,'
23773 # PIC (with -KPIC) is the default.
23774 lt_prog_compiler_static_GCJ='-non_shared'
23775 ;;
23776
23777 newsos6)
23778 lt_prog_compiler_pic_GCJ='-KPIC'
23779 lt_prog_compiler_static_GCJ='-Bstatic'
23780 ;;
23781
23782 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023783 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023784 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023785 lt_prog_compiler_wl_GCJ='-Wl,'
23786 lt_prog_compiler_pic_GCJ='-KPIC'
23787 lt_prog_compiler_static_GCJ='-static'
23788 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023789 pgcc* | pgf77* | pgf90* | pgf95*)
23790 # Portland Group compilers (*not* the Pentium gcc compiler,
23791 # which looks to be a dead project)
23792 lt_prog_compiler_wl_GCJ='-Wl,'
23793 lt_prog_compiler_pic_GCJ='-fpic'
23794 lt_prog_compiler_static_GCJ='-Bstatic'
23795 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023796 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023797 lt_prog_compiler_wl_GCJ='-Wl,'
23798 # All Alpha code is PIC.
23799 lt_prog_compiler_static_GCJ='-non_shared'
23800 ;;
23801 esac
23802 ;;
23803
23804 osf3* | osf4* | osf5*)
23805 lt_prog_compiler_wl_GCJ='-Wl,'
23806 # All OSF/1 code is PIC.
23807 lt_prog_compiler_static_GCJ='-non_shared'
23808 ;;
23809
John Criswell47fdd832003-07-14 16:52:07 +000023810 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023811 lt_prog_compiler_pic_GCJ='-KPIC'
23812 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023813 case $cc_basename in
23814 f77* | f90* | f95*)
23815 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23816 *)
23817 lt_prog_compiler_wl_GCJ='-Wl,';;
23818 esac
John Criswell47fdd832003-07-14 16:52:07 +000023819 ;;
23820
23821 sunos4*)
23822 lt_prog_compiler_wl_GCJ='-Qoption ld '
23823 lt_prog_compiler_pic_GCJ='-PIC'
23824 lt_prog_compiler_static_GCJ='-Bstatic'
23825 ;;
23826
Reid Spencera773bd52006-08-04 18:18:08 +000023827 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023828 lt_prog_compiler_wl_GCJ='-Wl,'
23829 lt_prog_compiler_pic_GCJ='-KPIC'
23830 lt_prog_compiler_static_GCJ='-Bstatic'
23831 ;;
23832
23833 sysv4*MP*)
23834 if test -d /usr/nec ;then
23835 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23836 lt_prog_compiler_static_GCJ='-Bstatic'
23837 fi
23838 ;;
23839
Reid Spencera773bd52006-08-04 18:18:08 +000023840 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23841 lt_prog_compiler_wl_GCJ='-Wl,'
23842 lt_prog_compiler_pic_GCJ='-KPIC'
23843 lt_prog_compiler_static_GCJ='-Bstatic'
23844 ;;
23845
23846 unicos*)
23847 lt_prog_compiler_wl_GCJ='-Wl,'
23848 lt_prog_compiler_can_build_shared_GCJ=no
23849 ;;
23850
John Criswell47fdd832003-07-14 16:52:07 +000023851 uts4*)
23852 lt_prog_compiler_pic_GCJ='-pic'
23853 lt_prog_compiler_static_GCJ='-Bstatic'
23854 ;;
23855
23856 *)
23857 lt_prog_compiler_can_build_shared_GCJ=no
23858 ;;
23859 esac
23860 fi
23861
Reid Spencera773bd52006-08-04 18:18:08 +000023862{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23863echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023864
23865#
23866# Check to make sure the PIC flag actually works.
23867#
23868if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023869
Reid Spencera773bd52006-08-04 18:18:08 +000023870{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23871echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023872if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23873 echo $ECHO_N "(cached) $ECHO_C" >&6
23874else
23875 lt_prog_compiler_pic_works_GCJ=no
23876 ac_outfile=conftest.$ac_objext
23877 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23878 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23879 # Insert the option either (1) after the last *FLAGS variable, or
23880 # (2) before a word containing "conftest.", or (3) at the end.
23881 # Note that $ac_compile itself does not contain backslashes and begins
23882 # with a dollar sign (not a hyphen), so the echo should work correctly.
23883 # The option is referenced via a variable to avoid confusing sed.
23884 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023885 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023886 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23887 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000023888 (eval echo "\"\$as_me:23888: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023889 (eval "$lt_compile" 2>conftest.err)
23890 ac_status=$?
23891 cat conftest.err >&5
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000023892 echo "$as_me:23892: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023893 if (exit $ac_status) && test -s "$ac_outfile"; then
23894 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023895 # So say no if there are warnings other than the usual output.
23896 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23898 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023899 lt_prog_compiler_pic_works_GCJ=yes
23900 fi
23901 fi
23902 $rm conftest*
23903
23904fi
Reid Spencera773bd52006-08-04 18:18:08 +000023905{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23906echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023907
23908if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23909 case $lt_prog_compiler_pic_GCJ in
23910 "" | " "*) ;;
23911 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23912 esac
23913else
23914 lt_prog_compiler_pic_GCJ=
23915 lt_prog_compiler_can_build_shared_GCJ=no
23916fi
23917
23918fi
Reid Spencera773bd52006-08-04 18:18:08 +000023919case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023920 # For platforms which do not support PIC, -DPIC is meaningless:
23921 *djgpp*)
23922 lt_prog_compiler_pic_GCJ=
23923 ;;
23924 *)
23925 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23926 ;;
23927esac
23928
Reid Spencera773bd52006-08-04 18:18:08 +000023929#
23930# Check to make sure the static flag actually works.
23931#
23932wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23933{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23934echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23935if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23936 echo $ECHO_N "(cached) $ECHO_C" >&6
23937else
23938 lt_prog_compiler_static_works_GCJ=no
23939 save_LDFLAGS="$LDFLAGS"
23940 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23941 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23942 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23943 # The linker can only warn and ignore the option if not recognized
23944 # So say no if there are warnings
23945 if test -s conftest.err; then
23946 # Append any errors to the config.log.
23947 cat conftest.err 1>&5
23948 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23949 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23950 if diff conftest.exp conftest.er2 >/dev/null; then
23951 lt_prog_compiler_static_works_GCJ=yes
23952 fi
23953 else
23954 lt_prog_compiler_static_works_GCJ=yes
23955 fi
23956 fi
23957 $rm conftest*
23958 LDFLAGS="$save_LDFLAGS"
23959
23960fi
23961{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23962echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23963
23964if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23965 :
23966else
23967 lt_prog_compiler_static_GCJ=
23968fi
23969
23970
23971{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23972echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023973if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23974 echo $ECHO_N "(cached) $ECHO_C" >&6
23975else
23976 lt_cv_prog_compiler_c_o_GCJ=no
23977 $rm -r conftest 2>/dev/null
23978 mkdir conftest
23979 cd conftest
23980 mkdir out
23981 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23982
John Criswell47fdd832003-07-14 16:52:07 +000023983 lt_compiler_flag="-o out/conftest2.$ac_objext"
23984 # Insert the option either (1) after the last *FLAGS variable, or
23985 # (2) before a word containing "conftest.", or (3) at the end.
23986 # Note that $ac_compile itself does not contain backslashes and begins
23987 # with a dollar sign (not a hyphen), so the echo should work correctly.
23988 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023989 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023990 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23991 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000023992 (eval echo "\"\$as_me:23992: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023993 (eval "$lt_compile" 2>out/conftest.err)
23994 ac_status=$?
23995 cat out/conftest.err >&5
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000023996 echo "$as_me:23996: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023997 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23998 then
23999 # The compiler can only warn and ignore the option if not recognized
24000 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024001 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24002 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24003 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024004 lt_cv_prog_compiler_c_o_GCJ=yes
24005 fi
24006 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024007 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024008 $rm conftest*
24009 # SGI C++ compiler will create directory out/ii_files/ for
24010 # template instantiation
24011 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24012 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024013 cd ..
24014 rmdir conftest
24015 $rm conftest*
24016
24017fi
Reid Spencera773bd52006-08-04 18:18:08 +000024018{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24019echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024020
24021
24022hard_links="nottested"
24023if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24024 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024025 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24026echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024027 hard_links=yes
24028 $rm conftest*
24029 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24030 touch conftest.a
24031 ln conftest.a conftest.b 2>&5 || hard_links=no
24032 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024033 { echo "$as_me:$LINENO: result: $hard_links" >&5
24034echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024035 if test "$hard_links" = no; then
24036 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24037echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24038 need_locks=warn
24039 fi
24040else
24041 need_locks=no
24042fi
24043
Reid Spencera773bd52006-08-04 18:18:08 +000024044{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24045echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024046
24047 runpath_var=
24048 allow_undefined_flag_GCJ=
24049 enable_shared_with_static_runtimes_GCJ=no
24050 archive_cmds_GCJ=
24051 archive_expsym_cmds_GCJ=
24052 old_archive_From_new_cmds_GCJ=
24053 old_archive_from_expsyms_cmds_GCJ=
24054 export_dynamic_flag_spec_GCJ=
24055 whole_archive_flag_spec_GCJ=
24056 thread_safe_flag_spec_GCJ=
24057 hardcode_libdir_flag_spec_GCJ=
24058 hardcode_libdir_flag_spec_ld_GCJ=
24059 hardcode_libdir_separator_GCJ=
24060 hardcode_direct_GCJ=no
24061 hardcode_minus_L_GCJ=no
24062 hardcode_shlibpath_var_GCJ=unsupported
24063 link_all_deplibs_GCJ=unknown
24064 hardcode_automatic_GCJ=no
24065 module_cmds_GCJ=
24066 module_expsym_cmds_GCJ=
24067 always_export_symbols_GCJ=no
24068 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24069 # include_expsyms should be a list of space-separated symbols to be *always*
24070 # included in the symbol list
24071 include_expsyms_GCJ=
24072 # exclude_expsyms can be an extended regexp of symbols to exclude
24073 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24074 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24075 # as well as any symbol that contains `d'.
24076 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24077 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24078 # platforms (ab)use it in PIC code, but their linkers get confused if
24079 # the symbol is explicitly referenced. Since portable code cannot
24080 # rely on this symbol name, it's probably fine to never include it in
24081 # preloaded symbol tables.
24082 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024083 # Just being paranoid about ensuring that cc_basename is set.
24084 for cc_temp in $compiler""; do
24085 case $cc_temp in
24086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24088 \-*) ;;
24089 *) break;;
24090 esac
24091done
24092cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024093
24094 case $host_os in
24095 cygwin* | mingw* | pw32*)
24096 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24097 # When not using gcc, we currently assume that we are using
24098 # Microsoft Visual C++.
24099 if test "$GCC" != yes; then
24100 with_gnu_ld=no
24101 fi
24102 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024103 interix*)
24104 # we just hope/assume this is gcc and not c89 (= MSVC++)
24105 with_gnu_ld=yes
24106 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024107 openbsd*)
24108 with_gnu_ld=no
24109 ;;
24110 esac
24111
24112 ld_shlibs_GCJ=yes
24113 if test "$with_gnu_ld" = yes; then
24114 # If archive_cmds runs LD, not CC, wlarc should be empty
24115 wlarc='${wl}'
24116
Reid Spencera773bd52006-08-04 18:18:08 +000024117 # Set some defaults for GNU ld with shared library support. These
24118 # are reset later if shared libraries are not supported. Putting them
24119 # here allows them to be overridden if necessary.
24120 runpath_var=LD_RUN_PATH
24121 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24122 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24123 # ancient GNU ld didn't support --whole-archive et. al.
24124 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24125 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24126 else
24127 whole_archive_flag_spec_GCJ=
24128 fi
24129 supports_anon_versioning=no
24130 case `$LD -v 2>/dev/null` in
24131 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24132 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24133 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24134 *\ 2.11.*) ;; # other 2.11 versions
24135 *) supports_anon_versioning=yes ;;
24136 esac
24137
John Criswell47fdd832003-07-14 16:52:07 +000024138 # See if GNU ld supports shared libraries.
24139 case $host_os in
24140 aix3* | aix4* | aix5*)
24141 # On AIX/PPC, the GNU linker is very broken
24142 if test "$host_cpu" != ia64; then
24143 ld_shlibs_GCJ=no
24144 cat <<EOF 1>&2
24145
24146*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24147*** to be unable to reliably create shared libraries on AIX.
24148*** Therefore, libtool is disabling shared libraries support. If you
24149*** really care for shared libraries, you may want to modify your PATH
24150*** so that a non-GNU linker is found, and then restart.
24151
24152EOF
24153 fi
24154 ;;
24155
24156 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024157 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 +000024158 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24159 hardcode_minus_L_GCJ=yes
24160
24161 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24162 # that the semantics of dynamic libraries on AmigaOS, at least up
24163 # to version 4, is to share data among multiple programs linked
24164 # with the same dynamic library. Since this doesn't match the
24165 # behavior of shared libraries on other platforms, we can't use
24166 # them.
24167 ld_shlibs_GCJ=no
24168 ;;
24169
24170 beos*)
24171 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24172 allow_undefined_flag_GCJ=unsupported
24173 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24174 # support --undefined. This deserves some investigation. FIXME
24175 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24176 else
24177 ld_shlibs_GCJ=no
24178 fi
24179 ;;
24180
24181 cygwin* | mingw* | pw32*)
24182 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24183 # as there is no search path for DLLs.
24184 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24185 allow_undefined_flag_GCJ=unsupported
24186 always_export_symbols_GCJ=no
24187 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024188 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 +000024189
24190 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024191 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 +000024192 # If the export-symbols file already is a .def file (1st line
24193 # is EXPORTS), use it as is; otherwise, prepend...
24194 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24195 cp $export_symbols $output_objdir/$soname.def;
24196 else
24197 echo EXPORTS > $output_objdir/$soname.def;
24198 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024199 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024200 $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 +000024201 else
Reid Spencera773bd52006-08-04 18:18:08 +000024202 ld_shlibs_GCJ=no
24203 fi
24204 ;;
24205
24206 interix3*)
24207 hardcode_direct_GCJ=no
24208 hardcode_shlibpath_var_GCJ=no
24209 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24210 export_dynamic_flag_spec_GCJ='${wl}-E'
24211 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24212 # Instead, shared libraries are loaded at an image base (0x10000000 by
24213 # default) and relocated if they conflict, which is a slow very memory
24214 # consuming and fragmenting process. To avoid this, we pick a random,
24215 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24216 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24217 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'
24218 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'
24219 ;;
24220
24221 linux*)
24222 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24223 tmp_addflag=
24224 case $cc_basename,$host_cpu in
24225 pgcc*) # Portland Group C compiler
24226 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'
24227 tmp_addflag=' $pic_flag'
24228 ;;
24229 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24230 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'
24231 tmp_addflag=' $pic_flag -Mnomain' ;;
24232 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24233 tmp_addflag=' -i_dynamic' ;;
24234 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24235 tmp_addflag=' -i_dynamic -nofor_main' ;;
24236 ifc* | ifort*) # Intel Fortran compiler
24237 tmp_addflag=' -nofor_main' ;;
24238 esac
24239 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24240
24241 if test $supports_anon_versioning = yes; then
24242 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24243 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24244 $echo "local: *; };" >> $output_objdir/$libname.ver~
24245 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24246 fi
24247 else
24248 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024249 fi
24250 ;;
24251
24252 netbsd*)
24253 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24254 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24255 wlarc=
24256 else
24257 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24258 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24259 fi
24260 ;;
24261
Reid Spencera773bd52006-08-04 18:18:08 +000024262 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024263 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24264 ld_shlibs_GCJ=no
24265 cat <<EOF 1>&2
24266
24267*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24268*** create shared libraries on Solaris systems. Therefore, libtool
24269*** is disabling shared libraries support. We urge you to upgrade GNU
24270*** binutils to release 2.9.1 or newer. Another option is to modify
24271*** your PATH or compiler configuration so that the native linker is
24272*** used, and then restart.
24273
24274EOF
24275 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24276 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24277 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24278 else
24279 ld_shlibs_GCJ=no
24280 fi
24281 ;;
24282
Reid Spencera773bd52006-08-04 18:18:08 +000024283 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24284 case `$LD -v 2>&1` in
24285 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24286 ld_shlibs_GCJ=no
24287 cat <<_LT_EOF 1>&2
24288
24289*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24290*** reliably create shared libraries on SCO systems. Therefore, libtool
24291*** is disabling shared libraries support. We urge you to upgrade GNU
24292*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24293*** your PATH or compiler configuration so that the native linker is
24294*** used, and then restart.
24295
24296_LT_EOF
24297 ;;
24298 *)
24299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24300 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24301 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24302 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24303 else
24304 ld_shlibs_GCJ=no
24305 fi
24306 ;;
24307 esac
24308 ;;
24309
John Criswell47fdd832003-07-14 16:52:07 +000024310 sunos4*)
24311 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24312 wlarc=
24313 hardcode_direct_GCJ=yes
24314 hardcode_shlibpath_var_GCJ=no
24315 ;;
24316
24317 *)
24318 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24319 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24320 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24321 else
24322 ld_shlibs_GCJ=no
24323 fi
24324 ;;
24325 esac
24326
Reid Spencera773bd52006-08-04 18:18:08 +000024327 if test "$ld_shlibs_GCJ" = no; then
24328 runpath_var=
24329 hardcode_libdir_flag_spec_GCJ=
24330 export_dynamic_flag_spec_GCJ=
24331 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024332 fi
24333 else
24334 # PORTME fill in a description of your system's linker (not GNU ld)
24335 case $host_os in
24336 aix3*)
24337 allow_undefined_flag_GCJ=unsupported
24338 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024339 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 +000024340 # Note: this linker hardcodes the directories in LIBPATH if there
24341 # are no directories specified by -L.
24342 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024343 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024344 # Neither direct hardcoding nor static linking is supported with a
24345 # broken collect2.
24346 hardcode_direct_GCJ=unsupported
24347 fi
24348 ;;
24349
24350 aix4* | aix5*)
24351 if test "$host_cpu" = ia64; then
24352 # On IA64, the linker does run time linking by default, so we don't
24353 # have to do anything special.
24354 aix_use_runtimelinking=no
24355 exp_sym_flag='-Bexport'
24356 no_entry_flag=""
24357 else
24358 # If we're using GNU nm, then we don't want the "-C" option.
24359 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24360 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24361 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'
24362 else
24363 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'
24364 fi
24365 aix_use_runtimelinking=no
24366
24367 # Test if we are trying to use run time linking or normal
24368 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24369 # need to do runtime linking.
24370 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24371 for ld_flag in $LDFLAGS; do
24372 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24373 aix_use_runtimelinking=yes
24374 break
24375 fi
24376 done
Reid Spencera773bd52006-08-04 18:18:08 +000024377 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024378 esac
24379
24380 exp_sym_flag='-bexport'
24381 no_entry_flag='-bnoentry'
24382 fi
24383
24384 # When large executables or shared objects are built, AIX ld can
24385 # have problems creating the table of contents. If linking a library
24386 # or program results in "error TOC overflow" add -mminimal-toc to
24387 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24388 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24389
24390 archive_cmds_GCJ=''
24391 hardcode_direct_GCJ=yes
24392 hardcode_libdir_separator_GCJ=':'
24393 link_all_deplibs_GCJ=yes
24394
24395 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024396 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024397 # We only want to do this on AIX 4.2 and lower, the check
24398 # below for broken collect2 doesn't work under 4.3+
24399 collect2name=`${CC} -print-prog-name=collect2`
24400 if test -f "$collect2name" && \
24401 strings "$collect2name" | grep resolve_lib_name >/dev/null
24402 then
24403 # We have reworked collect2
24404 hardcode_direct_GCJ=yes
24405 else
24406 # We have old collect2
24407 hardcode_direct_GCJ=unsupported
24408 # It fails to find uninstalled libraries when the uninstalled
24409 # path is not listed in the libpath. Setting hardcode_minus_L
24410 # to unsupported forces relinking
24411 hardcode_minus_L_GCJ=yes
24412 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24413 hardcode_libdir_separator_GCJ=
24414 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024415 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024416 esac
24417 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024418 if test "$aix_use_runtimelinking" = yes; then
24419 shared_flag="$shared_flag "'${wl}-G'
24420 fi
John Criswell47fdd832003-07-14 16:52:07 +000024421 else
24422 # not using gcc
24423 if test "$host_cpu" = ia64; then
24424 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24425 # chokes on -Wl,-G. The following line is correct:
24426 shared_flag='-G'
24427 else
Reid Spencera773bd52006-08-04 18:18:08 +000024428 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024429 shared_flag='${wl}-G'
24430 else
24431 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024432 fi
John Criswell47fdd832003-07-14 16:52:07 +000024433 fi
24434 fi
24435
24436 # It seems that -bexpall does not export symbols beginning with
24437 # underscore (_), so it is better to generate a list of symbols to export.
24438 always_export_symbols_GCJ=yes
24439 if test "$aix_use_runtimelinking" = yes; then
24440 # Warning - without using the other runtime loading flags (-brtl),
24441 # -berok will link without error, but may produce a broken library.
24442 allow_undefined_flag_GCJ='-berok'
24443 # Determine the default libpath from the value encoded in an empty executable.
24444 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024445/* confdefs.h. */
24446_ACEOF
24447cat confdefs.h >>conftest.$ac_ext
24448cat >>conftest.$ac_ext <<_ACEOF
24449/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024450
John Criswell47fdd832003-07-14 16:52:07 +000024451int
24452main ()
24453{
24454
24455 ;
24456 return 0;
24457}
24458_ACEOF
24459rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024460if { (ac_try="$ac_link"
24461case "(($ac_try" in
24462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463 *) ac_try_echo=$ac_try;;
24464esac
24465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24466 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024467 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024468 grep -v '^ *+' conftest.er1 >conftest.err
24469 rm -f conftest.er1
24470 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024472 (exit $ac_status); } &&
24473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24474 { (case "(($ac_try" in
24475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24476 *) ac_try_echo=$ac_try;;
24477esac
24478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24479 (eval "$ac_try") 2>&5
24480 ac_status=$?
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; } &&
24483 { ac_try='test -s conftest$ac_exeext'
24484 { (case "(($ac_try" in
24485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486 *) ac_try_echo=$ac_try;;
24487esac
24488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489 (eval "$ac_try") 2>&5
24490 ac_status=$?
24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024493
24494aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24495}'`
24496# Check for a 64-bit object if we didn't find anything.
24497if 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; }
24498}'`; fi
24499else
24500 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024501sed 's/^/| /' conftest.$ac_ext >&5
24502
Reid Spencera773bd52006-08-04 18:18:08 +000024503
John Criswell47fdd832003-07-14 16:52:07 +000024504fi
Reid Spencera773bd52006-08-04 18:18:08 +000024505
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024506rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024507 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024508if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24509
24510 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024511 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 +000024512 else
24513 if test "$host_cpu" = ia64; then
24514 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24515 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024516 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 +000024517 else
24518 # Determine the default libpath from the value encoded in an empty executable.
24519 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024520/* confdefs.h. */
24521_ACEOF
24522cat confdefs.h >>conftest.$ac_ext
24523cat >>conftest.$ac_ext <<_ACEOF
24524/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024525
John Criswell47fdd832003-07-14 16:52:07 +000024526int
24527main ()
24528{
24529
24530 ;
24531 return 0;
24532}
24533_ACEOF
24534rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024535if { (ac_try="$ac_link"
24536case "(($ac_try" in
24537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538 *) ac_try_echo=$ac_try;;
24539esac
24540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24541 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024542 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024543 grep -v '^ *+' conftest.er1 >conftest.err
24544 rm -f conftest.er1
24545 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024547 (exit $ac_status); } &&
24548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24549 { (case "(($ac_try" in
24550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551 *) ac_try_echo=$ac_try;;
24552esac
24553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24554 (eval "$ac_try") 2>&5
24555 ac_status=$?
24556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); }; } &&
24558 { ac_try='test -s conftest$ac_exeext'
24559 { (case "(($ac_try" in
24560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561 *) ac_try_echo=$ac_try;;
24562esac
24563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564 (eval "$ac_try") 2>&5
24565 ac_status=$?
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024568
24569aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24570}'`
24571# Check for a 64-bit object if we didn't find anything.
24572if 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; }
24573}'`; fi
24574else
24575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024576sed 's/^/| /' conftest.$ac_ext >&5
24577
Reid Spencera773bd52006-08-04 18:18:08 +000024578
John Criswell47fdd832003-07-14 16:52:07 +000024579fi
Reid Spencera773bd52006-08-04 18:18:08 +000024580
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024581rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024582 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024583if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24584
24585 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24586 # Warning - without using the other run time loading flags,
24587 # -berok will link without error, but may produce a broken library.
24588 no_undefined_flag_GCJ=' ${wl}-bernotok'
24589 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024590 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024591 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024592 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024593 # This is similar to how AIX traditionally builds its shared libraries.
24594 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 +000024595 fi
24596 fi
24597 ;;
24598
24599 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024600 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 +000024601 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24602 hardcode_minus_L_GCJ=yes
24603 # see comment about different semantics on the GNU ld section
24604 ld_shlibs_GCJ=no
24605 ;;
24606
Reid Spencer2706f8c2004-09-19 23:53:36 +000024607 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024608 export_dynamic_flag_spec_GCJ=-rdynamic
24609 ;;
24610
24611 cygwin* | mingw* | pw32*)
24612 # When not using gcc, we currently assume that we are using
24613 # Microsoft Visual C++.
24614 # hardcode_libdir_flag_spec is actually meaningless, as there is
24615 # no search path for DLLs.
24616 hardcode_libdir_flag_spec_GCJ=' '
24617 allow_undefined_flag_GCJ=unsupported
24618 # Tell ltmain to make .lib files, not .a files.
24619 libext=lib
24620 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024621 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024622 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024623 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 +000024624 # The linker will automatically build a .lib file if we build a DLL.
24625 old_archive_From_new_cmds_GCJ='true'
24626 # FIXME: Should let the user specify the lib program.
24627 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024628 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024629 enable_shared_with_static_runtimes_GCJ=yes
24630 ;;
24631
24632 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024633 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024634 rhapsody* | darwin1.[012])
24635 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24636 ;;
24637 *) # Darwin 1.3 on
24638 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24639 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24640 else
24641 case ${MACOSX_DEPLOYMENT_TARGET} in
24642 10.[012])
24643 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24644 ;;
24645 10.*)
24646 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24647 ;;
24648 esac
24649 fi
24650 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024651 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024652 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024653 hardcode_direct_GCJ=no
24654 hardcode_automatic_GCJ=yes
24655 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024656 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024657 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024658 if test "$GCC" = yes ; then
24659 output_verbose_link_cmd='echo'
24660 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24661 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024662 # 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 +000024663 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}'
24664 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 +000024665 else
Reid Spencera773bd52006-08-04 18:18:08 +000024666 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024667 xlc*)
24668 output_verbose_link_cmd='echo'
24669 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24670 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024671 # 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 +000024672 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}'
24673 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 +000024674 ;;
24675 *)
24676 ld_shlibs_GCJ=no
24677 ;;
24678 esac
John Criswell47fdd832003-07-14 16:52:07 +000024679 fi
24680 ;;
24681
24682 dgux*)
24683 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24684 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24685 hardcode_shlibpath_var_GCJ=no
24686 ;;
24687
24688 freebsd1*)
24689 ld_shlibs_GCJ=no
24690 ;;
24691
24692 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24693 # support. Future versions do this automatically, but an explicit c++rt0.o
24694 # does not break anything, and helps significantly (at the cost of a little
24695 # extra space).
24696 freebsd2.2*)
24697 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24698 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24699 hardcode_direct_GCJ=yes
24700 hardcode_shlibpath_var_GCJ=no
24701 ;;
24702
24703 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24704 freebsd2*)
24705 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24706 hardcode_direct_GCJ=yes
24707 hardcode_minus_L_GCJ=yes
24708 hardcode_shlibpath_var_GCJ=no
24709 ;;
24710
24711 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024712 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024713 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24714 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24715 hardcode_direct_GCJ=yes
24716 hardcode_shlibpath_var_GCJ=no
24717 ;;
24718
24719 hpux9*)
24720 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024721 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 +000024722 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024723 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 +000024724 fi
24725 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24726 hardcode_libdir_separator_GCJ=:
24727 hardcode_direct_GCJ=yes
24728
24729 # hardcode_minus_L: Not really in the search PATH,
24730 # but as the default location of the library.
24731 hardcode_minus_L_GCJ=yes
24732 export_dynamic_flag_spec_GCJ='${wl}-E'
24733 ;;
24734
Reid Spencera773bd52006-08-04 18:18:08 +000024735 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024736 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024737 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24738 else
24739 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24740 fi
24741 if test "$with_gnu_ld" = no; then
24742 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24743 hardcode_libdir_separator_GCJ=:
24744
24745 hardcode_direct_GCJ=yes
24746 export_dynamic_flag_spec_GCJ='${wl}-E'
24747
24748 # hardcode_minus_L: Not really in the search PATH,
24749 # but as the default location of the library.
24750 hardcode_minus_L_GCJ=yes
24751 fi
24752 ;;
24753
24754 hpux11*)
24755 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24756 case $host_cpu in
24757 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024758 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24759 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024760 ia64*)
24761 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24762 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024763 *)
24764 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24765 ;;
24766 esac
24767 else
Reid Spencera773bd52006-08-04 18:18:08 +000024768 case $host_cpu in
24769 hppa*64*)
24770 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24771 ;;
24772 ia64*)
24773 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024774 ;;
24775 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024776 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 +000024777 ;;
24778 esac
24779 fi
24780 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024781 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24782 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024783
Reid Spencera773bd52006-08-04 18:18:08 +000024784 case $host_cpu in
24785 hppa*64*|ia64*)
24786 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24787 hardcode_direct_GCJ=no
24788 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024789 ;;
24790 *)
John Criswell47fdd832003-07-14 16:52:07 +000024791 hardcode_direct_GCJ=yes
24792 export_dynamic_flag_spec_GCJ='${wl}-E'
24793
24794 # hardcode_minus_L: Not really in the search PATH,
24795 # but as the default location of the library.
24796 hardcode_minus_L_GCJ=yes
24797 ;;
24798 esac
24799 fi
24800 ;;
24801
24802 irix5* | irix6* | nonstopux*)
24803 if test "$GCC" = yes; then
24804 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'
24805 else
24806 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'
24807 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24808 fi
24809 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24810 hardcode_libdir_separator_GCJ=:
24811 link_all_deplibs_GCJ=yes
24812 ;;
24813
24814 netbsd*)
24815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24816 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24817 else
24818 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24819 fi
24820 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24821 hardcode_direct_GCJ=yes
24822 hardcode_shlibpath_var_GCJ=no
24823 ;;
24824
24825 newsos6)
24826 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24827 hardcode_direct_GCJ=yes
24828 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24829 hardcode_libdir_separator_GCJ=:
24830 hardcode_shlibpath_var_GCJ=no
24831 ;;
24832
24833 openbsd*)
24834 hardcode_direct_GCJ=yes
24835 hardcode_shlibpath_var_GCJ=no
24836 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24837 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024838 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 +000024839 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24840 export_dynamic_flag_spec_GCJ='${wl}-E'
24841 else
24842 case $host_os in
24843 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24844 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24845 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24846 ;;
24847 *)
24848 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24849 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24850 ;;
24851 esac
24852 fi
24853 ;;
24854
24855 os2*)
24856 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24857 hardcode_minus_L_GCJ=yes
24858 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024859 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 +000024860 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24861 ;;
24862
24863 osf3*)
24864 if test "$GCC" = yes; then
24865 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24866 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'
24867 else
24868 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24869 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'
24870 fi
24871 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24872 hardcode_libdir_separator_GCJ=:
24873 ;;
24874
24875 osf4* | osf5*) # as osf3* with the addition of -msym flag
24876 if test "$GCC" = yes; then
24877 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24878 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'
24879 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24880 else
24881 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24882 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 +000024883 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 +000024884 $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 +000024885
John Criswell47fdd832003-07-14 16:52:07 +000024886 # Both c and cxx compiler support -rpath directly
24887 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24888 fi
24889 hardcode_libdir_separator_GCJ=:
24890 ;;
24891
John Criswell47fdd832003-07-14 16:52:07 +000024892 solaris*)
24893 no_undefined_flag_GCJ=' -z text'
24894 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024895 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024896 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024897 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24898 $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 +000024899 else
Reid Spencera773bd52006-08-04 18:18:08 +000024900 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024901 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024902 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24903 $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 +000024904 fi
24905 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24906 hardcode_shlibpath_var_GCJ=no
24907 case $host_os in
24908 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024909 *)
24910 # The compiler driver will combine linker options so we
24911 # cannot just pass the convience library names through
24912 # without $wl, iff we do not link with $LD.
24913 # Luckily, gcc supports the same syntax we need for Sun Studio.
24914 # Supported since Solaris 2.6 (maybe 2.5.1?)
24915 case $wlarc in
24916 '')
24917 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24918 *)
24919 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' ;;
24920 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024921 esac
24922 link_all_deplibs_GCJ=yes
24923 ;;
24924
24925 sunos4*)
24926 if test "x$host_vendor" = xsequent; then
24927 # Use $CC to link under sequent, because it throws in some extra .o
24928 # files that make .init and .fini sections work.
24929 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24930 else
24931 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24932 fi
24933 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24934 hardcode_direct_GCJ=yes
24935 hardcode_minus_L_GCJ=yes
24936 hardcode_shlibpath_var_GCJ=no
24937 ;;
24938
24939 sysv4)
24940 case $host_vendor in
24941 sni)
24942 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24943 hardcode_direct_GCJ=yes # is this really true???
24944 ;;
24945 siemens)
24946 ## LD is ld it makes a PLAMLIB
24947 ## CC just makes a GrossModule.
24948 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24949 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24950 hardcode_direct_GCJ=no
24951 ;;
24952 motorola)
24953 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24954 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24955 ;;
24956 esac
24957 runpath_var='LD_RUN_PATH'
24958 hardcode_shlibpath_var_GCJ=no
24959 ;;
24960
24961 sysv4.3*)
24962 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24963 hardcode_shlibpath_var_GCJ=no
24964 export_dynamic_flag_spec_GCJ='-Bexport'
24965 ;;
24966
24967 sysv4*MP*)
24968 if test -d /usr/nec; then
24969 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24970 hardcode_shlibpath_var_GCJ=no
24971 runpath_var=LD_RUN_PATH
24972 hardcode_runpath_var=yes
24973 ld_shlibs_GCJ=yes
24974 fi
24975 ;;
24976
Reid Spencera773bd52006-08-04 18:18:08 +000024977 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24978 no_undefined_flag_GCJ='${wl}-z,text'
24979 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024980 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024981 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024982
John Criswell47fdd832003-07-14 16:52:07 +000024983 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024984 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24985 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 +000024986 else
Reid Spencera773bd52006-08-04 18:18:08 +000024987 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24988 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 +000024989 fi
John Criswell47fdd832003-07-14 16:52:07 +000024990 ;;
24991
Reid Spencera773bd52006-08-04 18:18:08 +000024992 sysv5* | sco3.2v5* | sco5v6*)
24993 # Note: We can NOT use -z defs as we might desire, because we do not
24994 # link with -lc, and that would cause any symbols used from libc to
24995 # always be unresolved, which means just about no library would
24996 # ever link correctly. If we're not using GNU ld we use -z text
24997 # though, which does catch some bad symbols but isn't as heavy-handed
24998 # as -z defs.
24999 no_undefined_flag_GCJ='${wl}-z,text'
25000 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25001 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025002 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025003 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25004 hardcode_libdir_separator_GCJ=':'
25005 link_all_deplibs_GCJ=yes
25006 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025007 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025008
25009 if test "$GCC" = yes; then
25010 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25011 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25012 else
25013 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25014 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25015 fi
John Criswell47fdd832003-07-14 16:52:07 +000025016 ;;
25017
25018 uts4*)
25019 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25020 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25021 hardcode_shlibpath_var_GCJ=no
25022 ;;
25023
25024 *)
25025 ld_shlibs_GCJ=no
25026 ;;
25027 esac
25028 fi
25029
Reid Spencera773bd52006-08-04 18:18:08 +000025030{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25031echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025032test "$ld_shlibs_GCJ" = no && can_build_shared=no
25033
John Criswell47fdd832003-07-14 16:52:07 +000025034#
25035# Do we need to explicitly link libc?
25036#
25037case "x$archive_cmds_need_lc_GCJ" in
25038x|xyes)
25039 # Assume -lc should be added
25040 archive_cmds_need_lc_GCJ=yes
25041
25042 if test "$enable_shared" = yes && test "$GCC" = yes; then
25043 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025044 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025045 # FIXME: we may have to deal with multi-command sequences.
25046 ;;
25047 '$CC '*)
25048 # Test whether the compiler implicitly links with -lc since on some
25049 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25050 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025051 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25052echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025053 $rm conftest*
25054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25055
25056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25057 (eval $ac_compile) 2>&5
25058 ac_status=$?
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); } 2>conftest.err; then
25061 soname=conftest
25062 lib=conftest
25063 libobjs=conftest.$ac_objext
25064 deplibs=
25065 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025066 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025067 compiler_flags=-v
25068 linker_flags=-v
25069 verstring=
25070 output_objdir=.
25071 libname=conftest
25072 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25073 allow_undefined_flag_GCJ=
25074 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25075 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25076 ac_status=$?
25077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); }
25079 then
25080 archive_cmds_need_lc_GCJ=no
25081 else
25082 archive_cmds_need_lc_GCJ=yes
25083 fi
25084 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25085 else
25086 cat conftest.err 1>&5
25087 fi
25088 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025089 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25090echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025091 ;;
25092 esac
25093 fi
25094 ;;
25095esac
25096
Reid Spencera773bd52006-08-04 18:18:08 +000025097{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25098echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025099library_names_spec=
25100libname_spec='lib$name'
25101soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025102shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025103postinstall_cmds=
25104postuninstall_cmds=
25105finish_cmds=
25106finish_eval=
25107shlibpath_var=
25108shlibpath_overrides_runpath=unknown
25109version_type=none
25110dynamic_linker="$host_os ld.so"
25111sys_lib_dlsearch_path_spec="/lib /usr/lib"
25112if test "$GCC" = yes; then
25113 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25114 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25115 # if the path contains ";" then we assume it to be the separator
25116 # otherwise default to the standard path separator (i.e. ":") - it is
25117 # assumed that no part of a normal pathname contains ";" but that should
25118 # okay in the real world where ";" in dirpaths is itself problematic.
25119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25120 else
25121 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25122 fi
25123else
25124 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25125fi
25126need_lib_prefix=unknown
25127hardcode_into_libs=no
25128
25129# when you set need_version to no, make sure it does not cause -set_version
25130# flags to be left without arguments
25131need_version=unknown
25132
25133case $host_os in
25134aix3*)
25135 version_type=linux
25136 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25137 shlibpath_var=LIBPATH
25138
25139 # AIX 3 has no versioning support, so we append a major version to the name.
25140 soname_spec='${libname}${release}${shared_ext}$major'
25141 ;;
25142
25143aix4* | aix5*)
25144 version_type=linux
25145 need_lib_prefix=no
25146 need_version=no
25147 hardcode_into_libs=yes
25148 if test "$host_cpu" = ia64; then
25149 # AIX 5 supports IA64
25150 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25151 shlibpath_var=LD_LIBRARY_PATH
25152 else
25153 # With GCC up to 2.95.x, collect2 would create an import file
25154 # for dependence libraries. The import file would start with
25155 # the line `#! .'. This would cause the generated library to
25156 # depend on `.', always an invalid library. This was fixed in
25157 # development snapshots of GCC prior to 3.0.
25158 case $host_os in
25159 aix4 | aix4.[01] | aix4.[01].*)
25160 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25161 echo ' yes '
25162 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25163 :
25164 else
25165 can_build_shared=no
25166 fi
25167 ;;
25168 esac
25169 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25170 # soname into executable. Probably we can add versioning support to
25171 # collect2, so additional links can be useful in future.
25172 if test "$aix_use_runtimelinking" = yes; then
25173 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25174 # instead of lib<name>.a to let people know that these are not
25175 # typical AIX shared libraries.
25176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25177 else
25178 # We preserve .a as extension for shared libraries through AIX4.2
25179 # and later when we are not doing run time linking.
25180 library_names_spec='${libname}${release}.a $libname.a'
25181 soname_spec='${libname}${release}${shared_ext}$major'
25182 fi
25183 shlibpath_var=LIBPATH
25184 fi
25185 ;;
25186
25187amigaos*)
25188 library_names_spec='$libname.ixlibrary $libname.a'
25189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025190 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 +000025191 ;;
25192
25193beos*)
25194 library_names_spec='${libname}${shared_ext}'
25195 dynamic_linker="$host_os ld.so"
25196 shlibpath_var=LIBRARY_PATH
25197 ;;
25198
Reid Spencer2706f8c2004-09-19 23:53:36 +000025199bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025200 version_type=linux
25201 need_version=no
25202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25203 soname_spec='${libname}${release}${shared_ext}$major'
25204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25205 shlibpath_var=LD_LIBRARY_PATH
25206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25208 # the default ld.so.conf also contains /usr/contrib/lib and
25209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25210 # libtool to hard-code these into programs
25211 ;;
25212
25213cygwin* | mingw* | pw32*)
25214 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025215 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025216 need_version=no
25217 need_lib_prefix=no
25218
25219 case $GCC,$host_os in
25220 yes,cygwin* | yes,mingw* | yes,pw32*)
25221 library_names_spec='$libname.dll.a'
25222 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025223 postinstall_cmds='base_file=`basename \${file}`~
25224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25225 dldir=$destdir/`dirname \$dlpath`~
25226 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025227 $install_prog $dir/$dlname \$dldir/$dlname~
25228 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025229 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25230 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025231 $rm \$dlpath'
25232 shlibpath_overrides_runpath=yes
25233
25234 case $host_os in
25235 cygwin*)
25236 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25237 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 +000025238 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025239 ;;
25240 mingw*)
25241 # MinGW DLLs use traditional 'lib' prefix
25242 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25243 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25244 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25245 # It is most probably a Windows format PATH printed by
25246 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25247 # path with ; separators, and with drive letters. We can handle the
25248 # drive letters (cygwin fileutils understands them), so leave them,
25249 # especially as we might pass files found there to a mingw objdump,
25250 # which wouldn't understand a cygwinified path. Ahh.
25251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25252 else
25253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25254 fi
25255 ;;
25256 pw32*)
25257 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025258 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 +000025259 ;;
25260 esac
25261 ;;
25262
25263 *)
25264 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25265 ;;
25266 esac
25267 dynamic_linker='Win32 ld.exe'
25268 # FIXME: first we should search . and the directory the executable is in
25269 shlibpath_var=PATH
25270 ;;
25271
25272darwin* | rhapsody*)
25273 dynamic_linker="$host_os dyld"
25274 version_type=darwin
25275 need_lib_prefix=no
25276 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025277 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025278 soname_spec='${libname}${release}${major}$shared_ext'
25279 shlibpath_overrides_runpath=yes
25280 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025281 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025282 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025283 if test "$GCC" = yes; then
25284 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"`
25285 else
25286 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025287 fi
25288 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25289 ;;
25290
25291dgux*)
25292 version_type=linux
25293 need_lib_prefix=no
25294 need_version=no
25295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25296 soname_spec='${libname}${release}${shared_ext}$major'
25297 shlibpath_var=LD_LIBRARY_PATH
25298 ;;
25299
25300freebsd1*)
25301 dynamic_linker=no
25302 ;;
25303
Reid Spencer2706f8c2004-09-19 23:53:36 +000025304kfreebsd*-gnu)
25305 version_type=linux
25306 need_lib_prefix=no
25307 need_version=no
25308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25309 soname_spec='${libname}${release}${shared_ext}$major'
25310 shlibpath_var=LD_LIBRARY_PATH
25311 shlibpath_overrides_runpath=no
25312 hardcode_into_libs=yes
25313 dynamic_linker='GNU ld.so'
25314 ;;
25315
Reid Spencera773bd52006-08-04 18:18:08 +000025316freebsd* | dragonfly*)
25317 # DragonFly does not have aout. When/if they implement a new
25318 # versioning mechanism, adjust this.
25319 if test -x /usr/bin/objformat; then
25320 objformat=`/usr/bin/objformat`
25321 else
25322 case $host_os in
25323 freebsd[123]*) objformat=aout ;;
25324 *) objformat=elf ;;
25325 esac
25326 fi
John Criswell47fdd832003-07-14 16:52:07 +000025327 version_type=freebsd-$objformat
25328 case $version_type in
25329 freebsd-elf*)
25330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25331 need_version=no
25332 need_lib_prefix=no
25333 ;;
25334 freebsd-*)
25335 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25336 need_version=yes
25337 ;;
25338 esac
25339 shlibpath_var=LD_LIBRARY_PATH
25340 case $host_os in
25341 freebsd2*)
25342 shlibpath_overrides_runpath=yes
25343 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025344 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025345 shlibpath_overrides_runpath=yes
25346 hardcode_into_libs=yes
25347 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025348 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25349 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025350 shlibpath_overrides_runpath=no
25351 hardcode_into_libs=yes
25352 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025353 freebsd*) # from 4.6 on
25354 shlibpath_overrides_runpath=yes
25355 hardcode_into_libs=yes
25356 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025357 esac
25358 ;;
25359
25360gnu*)
25361 version_type=linux
25362 need_lib_prefix=no
25363 need_version=no
25364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25365 soname_spec='${libname}${release}${shared_ext}$major'
25366 shlibpath_var=LD_LIBRARY_PATH
25367 hardcode_into_libs=yes
25368 ;;
25369
25370hpux9* | hpux10* | hpux11*)
25371 # Give a soname corresponding to the major version so that dld.sl refuses to
25372 # link against other versions.
25373 version_type=sunos
25374 need_lib_prefix=no
25375 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025376 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025377 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025378 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025379 hardcode_into_libs=yes
25380 dynamic_linker="$host_os dld.so"
25381 shlibpath_var=LD_LIBRARY_PATH
25382 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25384 soname_spec='${libname}${release}${shared_ext}$major'
25385 if test "X$HPUX_IA64_MODE" = X32; then
25386 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25387 else
25388 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25389 fi
25390 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25391 ;;
25392 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025393 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025394 hardcode_into_libs=yes
25395 dynamic_linker="$host_os dld.sl"
25396 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25399 soname_spec='${libname}${release}${shared_ext}$major'
25400 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25402 ;;
25403 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025404 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025405 dynamic_linker="$host_os dld.sl"
25406 shlibpath_var=SHLIB_PATH
25407 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25409 soname_spec='${libname}${release}${shared_ext}$major'
25410 ;;
25411 esac
25412 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25413 postinstall_cmds='chmod 555 $lib'
25414 ;;
25415
Reid Spencera773bd52006-08-04 18:18:08 +000025416interix3*)
25417 version_type=linux
25418 need_lib_prefix=no
25419 need_version=no
25420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25421 soname_spec='${libname}${release}${shared_ext}$major'
25422 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25423 shlibpath_var=LD_LIBRARY_PATH
25424 shlibpath_overrides_runpath=no
25425 hardcode_into_libs=yes
25426 ;;
25427
John Criswell47fdd832003-07-14 16:52:07 +000025428irix5* | irix6* | nonstopux*)
25429 case $host_os in
25430 nonstopux*) version_type=nonstopux ;;
25431 *)
25432 if test "$lt_cv_prog_gnu_ld" = yes; then
25433 version_type=linux
25434 else
25435 version_type=irix
25436 fi ;;
25437 esac
25438 need_lib_prefix=no
25439 need_version=no
25440 soname_spec='${libname}${release}${shared_ext}$major'
25441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25442 case $host_os in
25443 irix5* | nonstopux*)
25444 libsuff= shlibsuff=
25445 ;;
25446 *)
25447 case $LD in # libtool.m4 will add one of these switches to LD
25448 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25449 libsuff= shlibsuff= libmagic=32-bit;;
25450 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25451 libsuff=32 shlibsuff=N32 libmagic=N32;;
25452 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25453 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25454 *) libsuff= shlibsuff= libmagic=never-match;;
25455 esac
25456 ;;
25457 esac
25458 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25459 shlibpath_overrides_runpath=no
25460 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25461 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25462 hardcode_into_libs=yes
25463 ;;
25464
25465# No shared lib support for Linux oldld, aout, or coff.
25466linux*oldld* | linux*aout* | linux*coff*)
25467 dynamic_linker=no
25468 ;;
25469
25470# This must be Linux ELF.
25471linux*)
25472 version_type=linux
25473 need_lib_prefix=no
25474 need_version=no
25475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25476 soname_spec='${libname}${release}${shared_ext}$major'
25477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25478 shlibpath_var=LD_LIBRARY_PATH
25479 shlibpath_overrides_runpath=no
25480 # This implies no fast_install, which is unacceptable.
25481 # Some rework will be needed to allow for fast_install
25482 # before this can be enabled.
25483 hardcode_into_libs=yes
25484
Reid Spencer2706f8c2004-09-19 23:53:36 +000025485 # Append ld.so.conf contents to the search path
25486 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025487 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 +000025488 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25489 fi
25490
John Criswell47fdd832003-07-14 16:52:07 +000025491 # We used to test for /lib/ld.so.1 and disable shared libraries on
25492 # powerpc, because MkLinux only supported shared libraries with the
25493 # GNU dynamic linker. Since this was broken with cross compilers,
25494 # most powerpc-linux boxes support dynamic linking these days and
25495 # people can always --disable-shared, the test was removed, and we
25496 # assume the GNU/Linux dynamic linker is in use.
25497 dynamic_linker='GNU/Linux ld.so'
25498 ;;
25499
Reid Spencer2706f8c2004-09-19 23:53:36 +000025500knetbsd*-gnu)
25501 version_type=linux
25502 need_lib_prefix=no
25503 need_version=no
25504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25505 soname_spec='${libname}${release}${shared_ext}$major'
25506 shlibpath_var=LD_LIBRARY_PATH
25507 shlibpath_overrides_runpath=no
25508 hardcode_into_libs=yes
25509 dynamic_linker='GNU ld.so'
25510 ;;
25511
John Criswell47fdd832003-07-14 16:52:07 +000025512netbsd*)
25513 version_type=sunos
25514 need_lib_prefix=no
25515 need_version=no
25516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25519 dynamic_linker='NetBSD (a.out) ld.so'
25520 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025522 soname_spec='${libname}${release}${shared_ext}$major'
25523 dynamic_linker='NetBSD ld.elf_so'
25524 fi
25525 shlibpath_var=LD_LIBRARY_PATH
25526 shlibpath_overrides_runpath=yes
25527 hardcode_into_libs=yes
25528 ;;
25529
25530newsos6)
25531 version_type=linux
25532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25533 shlibpath_var=LD_LIBRARY_PATH
25534 shlibpath_overrides_runpath=yes
25535 ;;
25536
Reid Spencer2706f8c2004-09-19 23:53:36 +000025537nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025538 version_type=linux
25539 need_lib_prefix=no
25540 need_version=no
25541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25542 soname_spec='${libname}${release}${shared_ext}$major'
25543 shlibpath_var=LD_LIBRARY_PATH
25544 shlibpath_overrides_runpath=yes
25545 ;;
25546
25547openbsd*)
25548 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025549 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025550 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025551 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25552 case $host_os in
25553 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25554 *) need_version=no ;;
25555 esac
John Criswell47fdd832003-07-14 16:52:07 +000025556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25558 shlibpath_var=LD_LIBRARY_PATH
25559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25560 case $host_os in
25561 openbsd2.[89] | openbsd2.[89].*)
25562 shlibpath_overrides_runpath=no
25563 ;;
25564 *)
25565 shlibpath_overrides_runpath=yes
25566 ;;
25567 esac
25568 else
25569 shlibpath_overrides_runpath=yes
25570 fi
25571 ;;
25572
25573os2*)
25574 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025575 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025576 need_lib_prefix=no
25577 library_names_spec='$libname${shared_ext} $libname.a'
25578 dynamic_linker='OS/2 ld.exe'
25579 shlibpath_var=LIBPATH
25580 ;;
25581
25582osf3* | osf4* | osf5*)
25583 version_type=osf
25584 need_lib_prefix=no
25585 need_version=no
25586 soname_spec='${libname}${release}${shared_ext}$major'
25587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25588 shlibpath_var=LD_LIBRARY_PATH
25589 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25590 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25591 ;;
25592
John Criswell47fdd832003-07-14 16:52:07 +000025593solaris*)
25594 version_type=linux
25595 need_lib_prefix=no
25596 need_version=no
25597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25598 soname_spec='${libname}${release}${shared_ext}$major'
25599 shlibpath_var=LD_LIBRARY_PATH
25600 shlibpath_overrides_runpath=yes
25601 hardcode_into_libs=yes
25602 # ldd complains unless libraries are executable
25603 postinstall_cmds='chmod +x $lib'
25604 ;;
25605
25606sunos4*)
25607 version_type=sunos
25608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25609 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25610 shlibpath_var=LD_LIBRARY_PATH
25611 shlibpath_overrides_runpath=yes
25612 if test "$with_gnu_ld" = yes; then
25613 need_lib_prefix=no
25614 fi
25615 need_version=yes
25616 ;;
25617
Reid Spencera773bd52006-08-04 18:18:08 +000025618sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025619 version_type=linux
25620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25621 soname_spec='${libname}${release}${shared_ext}$major'
25622 shlibpath_var=LD_LIBRARY_PATH
25623 case $host_vendor in
25624 sni)
25625 shlibpath_overrides_runpath=no
25626 need_lib_prefix=no
25627 export_dynamic_flag_spec='${wl}-Blargedynsym'
25628 runpath_var=LD_RUN_PATH
25629 ;;
25630 siemens)
25631 need_lib_prefix=no
25632 ;;
25633 motorola)
25634 need_lib_prefix=no
25635 need_version=no
25636 shlibpath_overrides_runpath=no
25637 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25638 ;;
25639 esac
25640 ;;
25641
25642sysv4*MP*)
25643 if test -d /usr/nec ;then
25644 version_type=linux
25645 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25646 soname_spec='$libname${shared_ext}.$major'
25647 shlibpath_var=LD_LIBRARY_PATH
25648 fi
25649 ;;
25650
Reid Spencera773bd52006-08-04 18:18:08 +000025651sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25652 version_type=freebsd-elf
25653 need_lib_prefix=no
25654 need_version=no
25655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25656 soname_spec='${libname}${release}${shared_ext}$major'
25657 shlibpath_var=LD_LIBRARY_PATH
25658 hardcode_into_libs=yes
25659 if test "$with_gnu_ld" = yes; then
25660 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25661 shlibpath_overrides_runpath=no
25662 else
25663 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25664 shlibpath_overrides_runpath=yes
25665 case $host_os in
25666 sco3.2v5*)
25667 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25668 ;;
25669 esac
25670 fi
25671 sys_lib_dlsearch_path_spec='/usr/lib'
25672 ;;
25673
John Criswell47fdd832003-07-14 16:52:07 +000025674uts4*)
25675 version_type=linux
25676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25677 soname_spec='${libname}${release}${shared_ext}$major'
25678 shlibpath_var=LD_LIBRARY_PATH
25679 ;;
25680
25681*)
25682 dynamic_linker=no
25683 ;;
25684esac
Reid Spencera773bd52006-08-04 18:18:08 +000025685{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25686echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025687test "$dynamic_linker" = no && can_build_shared=no
25688
Reid Spencera773bd52006-08-04 18:18:08 +000025689variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25690if test "$GCC" = yes; then
25691 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25692fi
25693
25694{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25695echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025696hardcode_action_GCJ=
25697if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25698 test -n "$runpath_var_GCJ" || \
25699 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25700
25701 # We can hardcode non-existant directories.
25702 if test "$hardcode_direct_GCJ" != no &&
25703 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25704 # have to relink, otherwise we might link with an installed library
25705 # when we should be linking with a yet-to-be-installed one
25706 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25707 test "$hardcode_minus_L_GCJ" != no; then
25708 # Linking always hardcodes the temporary library directory.
25709 hardcode_action_GCJ=relink
25710 else
25711 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25712 hardcode_action_GCJ=immediate
25713 fi
25714else
25715 # We cannot hardcode anything, or else we can only hardcode existing
25716 # directories.
25717 hardcode_action_GCJ=unsupported
25718fi
Reid Spencera773bd52006-08-04 18:18:08 +000025719{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25720echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025721
25722if test "$hardcode_action_GCJ" = relink; then
25723 # Fast installation is not supported
25724 enable_fast_install=no
25725elif test "$shlibpath_overrides_runpath" = yes ||
25726 test "$enable_shared" = no; then
25727 # Fast installation is not necessary
25728 enable_fast_install=needless
25729fi
25730
John Criswell47fdd832003-07-14 16:52:07 +000025731
25732# The else clause should only fire when bootstrapping the
25733# libtool distribution, otherwise you forgot to ship ltmain.sh
25734# with your package, and you will get complaints that there are
25735# no rules to generate ltmain.sh.
25736if test -f "$ltmain"; then
25737 # See if we are running on zsh, and set the options which allow our commands through
25738 # without removal of \ escapes.
25739 if test -n "${ZSH_VERSION+set}" ; then
25740 setopt NO_GLOB_SUBST
25741 fi
25742 # Now quote all the things that may contain metacharacters while being
25743 # careful not to overquote the AC_SUBSTed values. We take copies of the
25744 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025745 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 +000025746 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025747 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25748 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25749 deplibs_check_method reload_flag reload_cmds need_locks \
25750 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25751 lt_cv_sys_global_symbol_to_c_name_address \
25752 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25753 old_postinstall_cmds old_postuninstall_cmds \
25754 compiler_GCJ \
25755 CC_GCJ \
25756 LD_GCJ \
25757 lt_prog_compiler_wl_GCJ \
25758 lt_prog_compiler_pic_GCJ \
25759 lt_prog_compiler_static_GCJ \
25760 lt_prog_compiler_no_builtin_flag_GCJ \
25761 export_dynamic_flag_spec_GCJ \
25762 thread_safe_flag_spec_GCJ \
25763 whole_archive_flag_spec_GCJ \
25764 enable_shared_with_static_runtimes_GCJ \
25765 old_archive_cmds_GCJ \
25766 old_archive_from_new_cmds_GCJ \
25767 predep_objects_GCJ \
25768 postdep_objects_GCJ \
25769 predeps_GCJ \
25770 postdeps_GCJ \
25771 compiler_lib_search_path_GCJ \
25772 archive_cmds_GCJ \
25773 archive_expsym_cmds_GCJ \
25774 postinstall_cmds_GCJ \
25775 postuninstall_cmds_GCJ \
25776 old_archive_from_expsyms_cmds_GCJ \
25777 allow_undefined_flag_GCJ \
25778 no_undefined_flag_GCJ \
25779 export_symbols_cmds_GCJ \
25780 hardcode_libdir_flag_spec_GCJ \
25781 hardcode_libdir_flag_spec_ld_GCJ \
25782 hardcode_libdir_separator_GCJ \
25783 hardcode_automatic_GCJ \
25784 module_cmds_GCJ \
25785 module_expsym_cmds_GCJ \
25786 lt_cv_prog_compiler_c_o_GCJ \
25787 exclude_expsyms_GCJ \
25788 include_expsyms_GCJ; do
25789
25790 case $var in
25791 old_archive_cmds_GCJ | \
25792 old_archive_from_new_cmds_GCJ | \
25793 archive_cmds_GCJ | \
25794 archive_expsym_cmds_GCJ | \
25795 module_cmds_GCJ | \
25796 module_expsym_cmds_GCJ | \
25797 old_archive_from_expsyms_cmds_GCJ | \
25798 export_symbols_cmds_GCJ | \
25799 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25800 postinstall_cmds | postuninstall_cmds | \
25801 old_postinstall_cmds | old_postuninstall_cmds | \
25802 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25803 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025804 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 +000025805 ;;
25806 *)
25807 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25808 ;;
25809 esac
25810 done
25811
25812 case $lt_echo in
25813 *'\$0 --fallback-echo"')
25814 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25815 ;;
25816 esac
25817
25818cfgfile="$ofile"
25819
25820 cat <<__EOF__ >> "$cfgfile"
25821# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25822
25823# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25824
25825# Shell to use when invoking shell scripts.
25826SHELL=$lt_SHELL
25827
25828# Whether or not to build shared libraries.
25829build_libtool_libs=$enable_shared
25830
25831# Whether or not to build static libraries.
25832build_old_libs=$enable_static
25833
25834# Whether or not to add -lc for building shared libraries.
25835build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25836
25837# Whether or not to disallow shared libs when runtime libs are static
25838allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25839
25840# Whether or not to optimize for fast installation.
25841fast_install=$enable_fast_install
25842
25843# The host system.
25844host_alias=$host_alias
25845host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025846host_os=$host_os
25847
25848# The build system.
25849build_alias=$build_alias
25850build=$build
25851build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025852
25853# An echo program that does not interpret backslashes.
25854echo=$lt_echo
25855
25856# The archiver.
25857AR=$lt_AR
25858AR_FLAGS=$lt_AR_FLAGS
25859
25860# A C compiler.
25861LTCC=$lt_LTCC
25862
Reid Spencera773bd52006-08-04 18:18:08 +000025863# LTCC compiler flags.
25864LTCFLAGS=$lt_LTCFLAGS
25865
John Criswell47fdd832003-07-14 16:52:07 +000025866# A language-specific compiler.
25867CC=$lt_compiler_GCJ
25868
25869# Is the compiler the GNU C compiler?
25870with_gcc=$GCC_GCJ
25871
25872# An ERE matcher.
25873EGREP=$lt_EGREP
25874
25875# The linker used to build libraries.
25876LD=$lt_LD_GCJ
25877
25878# Whether we need hard or soft links.
25879LN_S=$lt_LN_S
25880
25881# A BSD-compatible nm program.
25882NM=$lt_NM
25883
25884# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025885STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025886
25887# Used to examine libraries when file_magic_cmd begins "file"
25888MAGIC_CMD=$MAGIC_CMD
25889
25890# Used on cygwin: DLL creation program.
25891DLLTOOL="$DLLTOOL"
25892
25893# Used on cygwin: object dumper.
25894OBJDUMP="$OBJDUMP"
25895
25896# Used on cygwin: assembler.
25897AS="$AS"
25898
25899# The name of the directory that contains temporary libtool files.
25900objdir=$objdir
25901
25902# How to create reloadable object files.
25903reload_flag=$lt_reload_flag
25904reload_cmds=$lt_reload_cmds
25905
25906# How to pass a linker flag through the compiler.
25907wl=$lt_lt_prog_compiler_wl_GCJ
25908
25909# Object file suffix (normally "o").
25910objext="$ac_objext"
25911
25912# Old archive suffix (normally "a").
25913libext="$libext"
25914
25915# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025916shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025917
25918# Executable file suffix (normally "").
25919exeext="$exeext"
25920
25921# Additional compiler flags for building library objects.
25922pic_flag=$lt_lt_prog_compiler_pic_GCJ
25923pic_mode=$pic_mode
25924
25925# What is the maximum length of a command?
25926max_cmd_len=$lt_cv_sys_max_cmd_len
25927
25928# Does compiler simultaneously support -c and -o options?
25929compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25930
Reid Spencera773bd52006-08-04 18:18:08 +000025931# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025932need_locks=$lt_need_locks
25933
25934# Do we need the lib prefix for modules?
25935need_lib_prefix=$need_lib_prefix
25936
25937# Do we need a version for libraries?
25938need_version=$need_version
25939
25940# Whether dlopen is supported.
25941dlopen_support=$enable_dlopen
25942
25943# Whether dlopen of programs is supported.
25944dlopen_self=$enable_dlopen_self
25945
25946# Whether dlopen of statically linked programs is supported.
25947dlopen_self_static=$enable_dlopen_self_static
25948
25949# Compiler flag to prevent dynamic linking.
25950link_static_flag=$lt_lt_prog_compiler_static_GCJ
25951
25952# Compiler flag to turn off builtin functions.
25953no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25954
25955# Compiler flag to allow reflexive dlopens.
25956export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25957
25958# Compiler flag to generate shared objects directly from archives.
25959whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25960
25961# Compiler flag to generate thread-safe objects.
25962thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25963
25964# Library versioning type.
25965version_type=$version_type
25966
25967# Format of library name prefix.
25968libname_spec=$lt_libname_spec
25969
25970# List of archive names. First name is the real one, the rest are links.
25971# The last name is the one that the linker finds with -lNAME.
25972library_names_spec=$lt_library_names_spec
25973
25974# The coded name of the library, if different from the real name.
25975soname_spec=$lt_soname_spec
25976
25977# Commands used to build and install an old-style archive.
25978RANLIB=$lt_RANLIB
25979old_archive_cmds=$lt_old_archive_cmds_GCJ
25980old_postinstall_cmds=$lt_old_postinstall_cmds
25981old_postuninstall_cmds=$lt_old_postuninstall_cmds
25982
25983# Create an old-style archive from a shared archive.
25984old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25985
25986# Create a temporary old-style archive to link instead of a shared archive.
25987old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25988
25989# Commands used to build and install a shared archive.
25990archive_cmds=$lt_archive_cmds_GCJ
25991archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25992postinstall_cmds=$lt_postinstall_cmds
25993postuninstall_cmds=$lt_postuninstall_cmds
25994
25995# Commands used to build a loadable module (assumed same as above if empty)
25996module_cmds=$lt_module_cmds_GCJ
25997module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25998
25999# Commands to strip libraries.
26000old_striplib=$lt_old_striplib
26001striplib=$lt_striplib
26002
26003# Dependencies to place before the objects being linked to create a
26004# shared library.
26005predep_objects=$lt_predep_objects_GCJ
26006
26007# Dependencies to place after the objects being linked to create a
26008# shared library.
26009postdep_objects=$lt_postdep_objects_GCJ
26010
26011# Dependencies to place before the objects being linked to create a
26012# shared library.
26013predeps=$lt_predeps_GCJ
26014
26015# Dependencies to place after the objects being linked to create a
26016# shared library.
26017postdeps=$lt_postdeps_GCJ
26018
26019# The library search path used internally by the compiler when linking
26020# a shared library.
26021compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26022
26023# Method to check whether dependent libraries are shared objects.
26024deplibs_check_method=$lt_deplibs_check_method
26025
26026# Command to use when deplibs_check_method == file_magic.
26027file_magic_cmd=$lt_file_magic_cmd
26028
26029# Flag that allows shared libraries with undefined symbols to be built.
26030allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26031
26032# Flag that forces no undefined symbols.
26033no_undefined_flag=$lt_no_undefined_flag_GCJ
26034
26035# Commands used to finish a libtool library installation in a directory.
26036finish_cmds=$lt_finish_cmds
26037
26038# Same as above, but a single script fragment to be evaled but not shown.
26039finish_eval=$lt_finish_eval
26040
26041# Take the output of nm and produce a listing of raw symbols and C names.
26042global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26043
26044# Transform the output of nm in a proper C declaration
26045global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26046
26047# Transform the output of nm in a C name address pair
26048global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26049
26050# This is the shared library runtime path variable.
26051runpath_var=$runpath_var
26052
26053# This is the shared library path variable.
26054shlibpath_var=$shlibpath_var
26055
26056# Is shlibpath searched before the hard-coded library search path?
26057shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26058
26059# How to hardcode a shared library path into an executable.
26060hardcode_action=$hardcode_action_GCJ
26061
26062# Whether we should hardcode library paths into libraries.
26063hardcode_into_libs=$hardcode_into_libs
26064
26065# Flag to hardcode \$libdir into a binary during linking.
26066# This must work even if \$libdir does not exist.
26067hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26068
26069# If ld is used when linking, flag to hardcode \$libdir into
26070# a binary during linking. This must work even if \$libdir does
26071# not exist.
26072hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26073
26074# Whether we need a single -rpath flag with a separated argument.
26075hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26076
26077# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26078# resulting binary.
26079hardcode_direct=$hardcode_direct_GCJ
26080
26081# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26082# resulting binary.
26083hardcode_minus_L=$hardcode_minus_L_GCJ
26084
26085# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26086# the resulting binary.
26087hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26088
26089# Set to yes if building a shared library automatically hardcodes DIR into the library
26090# and all subsequent libraries and executables linked against it.
26091hardcode_automatic=$hardcode_automatic_GCJ
26092
26093# Variables whose values should be saved in libtool wrapper scripts and
26094# restored at relink time.
26095variables_saved_for_relink="$variables_saved_for_relink"
26096
26097# Whether libtool must link a program against all its dependency libraries.
26098link_all_deplibs=$link_all_deplibs_GCJ
26099
26100# Compile-time system search path for libraries
26101sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26102
26103# Run-time system search path for libraries
26104sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26105
26106# Fix the shell variable \$srcfile for the compiler.
26107fix_srcfile_path="$fix_srcfile_path_GCJ"
26108
26109# Set to yes if exported symbols are required.
26110always_export_symbols=$always_export_symbols_GCJ
26111
26112# The commands to list exported symbols.
26113export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26114
26115# The commands to extract the exported symbol list from a shared archive.
26116extract_expsyms_cmds=$lt_extract_expsyms_cmds
26117
26118# Symbols that should not be listed in the preloaded symbols.
26119exclude_expsyms=$lt_exclude_expsyms_GCJ
26120
26121# Symbols that must always be exported.
26122include_expsyms=$lt_include_expsyms_GCJ
26123
26124# ### END LIBTOOL TAG CONFIG: $tagname
26125
26126__EOF__
26127
26128
26129else
26130 # If there is no Makefile yet, we rely on a make rule to execute
26131 # `config.status --recheck' to rerun these tests and create the
26132 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026133 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26134 if test -f "$ltmain_in"; then
26135 test -f Makefile && make "$ltmain"
26136 fi
John Criswell47fdd832003-07-14 16:52:07 +000026137fi
26138
26139
26140ac_ext=c
26141ac_cpp='$CPP $CPPFLAGS'
26142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26144ac_compiler_gnu=$ac_cv_c_compiler_gnu
26145
26146CC="$lt_save_CC"
26147
26148 else
26149 tagname=""
26150 fi
26151 ;;
26152
26153 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026154 ac_ext=c
26155ac_cpp='$CPP $CPPFLAGS'
26156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26158ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026159
26160
26161# Source file extension for RC test sources.
26162ac_ext=rc
26163
26164# Object file extension for compiled RC test sources.
26165objext=o
26166objext_RC=$objext
26167
26168# Code to be used in simple compile tests
26169lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26170
26171# Code to be used in simple link tests
26172lt_simple_link_test_code="$lt_simple_compile_test_code"
26173
26174# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26175
26176# If no C compiler was specified, use CC.
26177LTCC=${LTCC-"$CC"}
26178
Reid Spencera773bd52006-08-04 18:18:08 +000026179# If no C compiler flags were specified, use CFLAGS.
26180LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26181
John Criswell47fdd832003-07-14 16:52:07 +000026182# Allow CC to be a program name with arguments.
26183compiler=$CC
26184
26185
Reid Spencera773bd52006-08-04 18:18:08 +000026186# save warnings/boilerplate of simple test code
26187ac_outfile=conftest.$ac_objext
26188printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26189eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26190_lt_compiler_boilerplate=`cat conftest.err`
26191$rm conftest*
26192
26193ac_outfile=conftest.$ac_objext
26194printf "$lt_simple_link_test_code" >conftest.$ac_ext
26195eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26196_lt_linker_boilerplate=`cat conftest.err`
26197$rm conftest*
26198
26199
John Criswell47fdd832003-07-14 16:52:07 +000026200# Allow CC to be a program name with arguments.
26201lt_save_CC="$CC"
26202CC=${RC-"windres"}
26203compiler=$CC
26204compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026205for cc_temp in $compiler""; do
26206 case $cc_temp in
26207 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26208 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26209 \-*) ;;
26210 *) break;;
26211 esac
26212done
26213cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26214
John Criswell47fdd832003-07-14 16:52:07 +000026215lt_cv_prog_compiler_c_o_RC=yes
26216
26217# The else clause should only fire when bootstrapping the
26218# libtool distribution, otherwise you forgot to ship ltmain.sh
26219# with your package, and you will get complaints that there are
26220# no rules to generate ltmain.sh.
26221if test -f "$ltmain"; then
26222 # See if we are running on zsh, and set the options which allow our commands through
26223 # without removal of \ escapes.
26224 if test -n "${ZSH_VERSION+set}" ; then
26225 setopt NO_GLOB_SUBST
26226 fi
26227 # Now quote all the things that may contain metacharacters while being
26228 # careful not to overquote the AC_SUBSTed values. We take copies of the
26229 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026230 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 +000026231 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026232 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26233 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26234 deplibs_check_method reload_flag reload_cmds need_locks \
26235 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26236 lt_cv_sys_global_symbol_to_c_name_address \
26237 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26238 old_postinstall_cmds old_postuninstall_cmds \
26239 compiler_RC \
26240 CC_RC \
26241 LD_RC \
26242 lt_prog_compiler_wl_RC \
26243 lt_prog_compiler_pic_RC \
26244 lt_prog_compiler_static_RC \
26245 lt_prog_compiler_no_builtin_flag_RC \
26246 export_dynamic_flag_spec_RC \
26247 thread_safe_flag_spec_RC \
26248 whole_archive_flag_spec_RC \
26249 enable_shared_with_static_runtimes_RC \
26250 old_archive_cmds_RC \
26251 old_archive_from_new_cmds_RC \
26252 predep_objects_RC \
26253 postdep_objects_RC \
26254 predeps_RC \
26255 postdeps_RC \
26256 compiler_lib_search_path_RC \
26257 archive_cmds_RC \
26258 archive_expsym_cmds_RC \
26259 postinstall_cmds_RC \
26260 postuninstall_cmds_RC \
26261 old_archive_from_expsyms_cmds_RC \
26262 allow_undefined_flag_RC \
26263 no_undefined_flag_RC \
26264 export_symbols_cmds_RC \
26265 hardcode_libdir_flag_spec_RC \
26266 hardcode_libdir_flag_spec_ld_RC \
26267 hardcode_libdir_separator_RC \
26268 hardcode_automatic_RC \
26269 module_cmds_RC \
26270 module_expsym_cmds_RC \
26271 lt_cv_prog_compiler_c_o_RC \
26272 exclude_expsyms_RC \
26273 include_expsyms_RC; do
26274
26275 case $var in
26276 old_archive_cmds_RC | \
26277 old_archive_from_new_cmds_RC | \
26278 archive_cmds_RC | \
26279 archive_expsym_cmds_RC | \
26280 module_cmds_RC | \
26281 module_expsym_cmds_RC | \
26282 old_archive_from_expsyms_cmds_RC | \
26283 export_symbols_cmds_RC | \
26284 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26285 postinstall_cmds | postuninstall_cmds | \
26286 old_postinstall_cmds | old_postuninstall_cmds | \
26287 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26288 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026289 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 +000026290 ;;
26291 *)
26292 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26293 ;;
26294 esac
26295 done
26296
26297 case $lt_echo in
26298 *'\$0 --fallback-echo"')
26299 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26300 ;;
26301 esac
26302
26303cfgfile="$ofile"
26304
26305 cat <<__EOF__ >> "$cfgfile"
26306# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26307
26308# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26309
26310# Shell to use when invoking shell scripts.
26311SHELL=$lt_SHELL
26312
26313# Whether or not to build shared libraries.
26314build_libtool_libs=$enable_shared
26315
26316# Whether or not to build static libraries.
26317build_old_libs=$enable_static
26318
26319# Whether or not to add -lc for building shared libraries.
26320build_libtool_need_lc=$archive_cmds_need_lc_RC
26321
26322# Whether or not to disallow shared libs when runtime libs are static
26323allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26324
26325# Whether or not to optimize for fast installation.
26326fast_install=$enable_fast_install
26327
26328# The host system.
26329host_alias=$host_alias
26330host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026331host_os=$host_os
26332
26333# The build system.
26334build_alias=$build_alias
26335build=$build
26336build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026337
26338# An echo program that does not interpret backslashes.
26339echo=$lt_echo
26340
26341# The archiver.
26342AR=$lt_AR
26343AR_FLAGS=$lt_AR_FLAGS
26344
26345# A C compiler.
26346LTCC=$lt_LTCC
26347
Reid Spencera773bd52006-08-04 18:18:08 +000026348# LTCC compiler flags.
26349LTCFLAGS=$lt_LTCFLAGS
26350
John Criswell47fdd832003-07-14 16:52:07 +000026351# A language-specific compiler.
26352CC=$lt_compiler_RC
26353
26354# Is the compiler the GNU C compiler?
26355with_gcc=$GCC_RC
26356
26357# An ERE matcher.
26358EGREP=$lt_EGREP
26359
26360# The linker used to build libraries.
26361LD=$lt_LD_RC
26362
26363# Whether we need hard or soft links.
26364LN_S=$lt_LN_S
26365
26366# A BSD-compatible nm program.
26367NM=$lt_NM
26368
26369# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026370STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026371
26372# Used to examine libraries when file_magic_cmd begins "file"
26373MAGIC_CMD=$MAGIC_CMD
26374
26375# Used on cygwin: DLL creation program.
26376DLLTOOL="$DLLTOOL"
26377
26378# Used on cygwin: object dumper.
26379OBJDUMP="$OBJDUMP"
26380
26381# Used on cygwin: assembler.
26382AS="$AS"
26383
26384# The name of the directory that contains temporary libtool files.
26385objdir=$objdir
26386
26387# How to create reloadable object files.
26388reload_flag=$lt_reload_flag
26389reload_cmds=$lt_reload_cmds
26390
26391# How to pass a linker flag through the compiler.
26392wl=$lt_lt_prog_compiler_wl_RC
26393
26394# Object file suffix (normally "o").
26395objext="$ac_objext"
26396
26397# Old archive suffix (normally "a").
26398libext="$libext"
26399
26400# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026401shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026402
26403# Executable file suffix (normally "").
26404exeext="$exeext"
26405
26406# Additional compiler flags for building library objects.
26407pic_flag=$lt_lt_prog_compiler_pic_RC
26408pic_mode=$pic_mode
26409
26410# What is the maximum length of a command?
26411max_cmd_len=$lt_cv_sys_max_cmd_len
26412
26413# Does compiler simultaneously support -c and -o options?
26414compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26415
Reid Spencera773bd52006-08-04 18:18:08 +000026416# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026417need_locks=$lt_need_locks
26418
26419# Do we need the lib prefix for modules?
26420need_lib_prefix=$need_lib_prefix
26421
26422# Do we need a version for libraries?
26423need_version=$need_version
26424
26425# Whether dlopen is supported.
26426dlopen_support=$enable_dlopen
26427
26428# Whether dlopen of programs is supported.
26429dlopen_self=$enable_dlopen_self
26430
26431# Whether dlopen of statically linked programs is supported.
26432dlopen_self_static=$enable_dlopen_self_static
26433
26434# Compiler flag to prevent dynamic linking.
26435link_static_flag=$lt_lt_prog_compiler_static_RC
26436
26437# Compiler flag to turn off builtin functions.
26438no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26439
26440# Compiler flag to allow reflexive dlopens.
26441export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26442
26443# Compiler flag to generate shared objects directly from archives.
26444whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26445
26446# Compiler flag to generate thread-safe objects.
26447thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26448
26449# Library versioning type.
26450version_type=$version_type
26451
26452# Format of library name prefix.
26453libname_spec=$lt_libname_spec
26454
26455# List of archive names. First name is the real one, the rest are links.
26456# The last name is the one that the linker finds with -lNAME.
26457library_names_spec=$lt_library_names_spec
26458
26459# The coded name of the library, if different from the real name.
26460soname_spec=$lt_soname_spec
26461
26462# Commands used to build and install an old-style archive.
26463RANLIB=$lt_RANLIB
26464old_archive_cmds=$lt_old_archive_cmds_RC
26465old_postinstall_cmds=$lt_old_postinstall_cmds
26466old_postuninstall_cmds=$lt_old_postuninstall_cmds
26467
26468# Create an old-style archive from a shared archive.
26469old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26470
26471# Create a temporary old-style archive to link instead of a shared archive.
26472old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26473
26474# Commands used to build and install a shared archive.
26475archive_cmds=$lt_archive_cmds_RC
26476archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26477postinstall_cmds=$lt_postinstall_cmds
26478postuninstall_cmds=$lt_postuninstall_cmds
26479
26480# Commands used to build a loadable module (assumed same as above if empty)
26481module_cmds=$lt_module_cmds_RC
26482module_expsym_cmds=$lt_module_expsym_cmds_RC
26483
26484# Commands to strip libraries.
26485old_striplib=$lt_old_striplib
26486striplib=$lt_striplib
26487
26488# Dependencies to place before the objects being linked to create a
26489# shared library.
26490predep_objects=$lt_predep_objects_RC
26491
26492# Dependencies to place after the objects being linked to create a
26493# shared library.
26494postdep_objects=$lt_postdep_objects_RC
26495
26496# Dependencies to place before the objects being linked to create a
26497# shared library.
26498predeps=$lt_predeps_RC
26499
26500# Dependencies to place after the objects being linked to create a
26501# shared library.
26502postdeps=$lt_postdeps_RC
26503
26504# The library search path used internally by the compiler when linking
26505# a shared library.
26506compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26507
26508# Method to check whether dependent libraries are shared objects.
26509deplibs_check_method=$lt_deplibs_check_method
26510
26511# Command to use when deplibs_check_method == file_magic.
26512file_magic_cmd=$lt_file_magic_cmd
26513
26514# Flag that allows shared libraries with undefined symbols to be built.
26515allow_undefined_flag=$lt_allow_undefined_flag_RC
26516
26517# Flag that forces no undefined symbols.
26518no_undefined_flag=$lt_no_undefined_flag_RC
26519
26520# Commands used to finish a libtool library installation in a directory.
26521finish_cmds=$lt_finish_cmds
26522
26523# Same as above, but a single script fragment to be evaled but not shown.
26524finish_eval=$lt_finish_eval
26525
26526# Take the output of nm and produce a listing of raw symbols and C names.
26527global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26528
26529# Transform the output of nm in a proper C declaration
26530global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26531
26532# Transform the output of nm in a C name address pair
26533global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26534
26535# This is the shared library runtime path variable.
26536runpath_var=$runpath_var
26537
26538# This is the shared library path variable.
26539shlibpath_var=$shlibpath_var
26540
26541# Is shlibpath searched before the hard-coded library search path?
26542shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26543
26544# How to hardcode a shared library path into an executable.
26545hardcode_action=$hardcode_action_RC
26546
26547# Whether we should hardcode library paths into libraries.
26548hardcode_into_libs=$hardcode_into_libs
26549
26550# Flag to hardcode \$libdir into a binary during linking.
26551# This must work even if \$libdir does not exist.
26552hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26553
26554# If ld is used when linking, flag to hardcode \$libdir into
26555# a binary during linking. This must work even if \$libdir does
26556# not exist.
26557hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26558
26559# Whether we need a single -rpath flag with a separated argument.
26560hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26561
26562# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26563# resulting binary.
26564hardcode_direct=$hardcode_direct_RC
26565
26566# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26567# resulting binary.
26568hardcode_minus_L=$hardcode_minus_L_RC
26569
26570# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26571# the resulting binary.
26572hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26573
26574# Set to yes if building a shared library automatically hardcodes DIR into the library
26575# and all subsequent libraries and executables linked against it.
26576hardcode_automatic=$hardcode_automatic_RC
26577
26578# Variables whose values should be saved in libtool wrapper scripts and
26579# restored at relink time.
26580variables_saved_for_relink="$variables_saved_for_relink"
26581
26582# Whether libtool must link a program against all its dependency libraries.
26583link_all_deplibs=$link_all_deplibs_RC
26584
26585# Compile-time system search path for libraries
26586sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26587
26588# Run-time system search path for libraries
26589sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26590
26591# Fix the shell variable \$srcfile for the compiler.
26592fix_srcfile_path="$fix_srcfile_path_RC"
26593
26594# Set to yes if exported symbols are required.
26595always_export_symbols=$always_export_symbols_RC
26596
26597# The commands to list exported symbols.
26598export_symbols_cmds=$lt_export_symbols_cmds_RC
26599
26600# The commands to extract the exported symbol list from a shared archive.
26601extract_expsyms_cmds=$lt_extract_expsyms_cmds
26602
26603# Symbols that should not be listed in the preloaded symbols.
26604exclude_expsyms=$lt_exclude_expsyms_RC
26605
26606# Symbols that must always be exported.
26607include_expsyms=$lt_include_expsyms_RC
26608
26609# ### END LIBTOOL TAG CONFIG: $tagname
26610
26611__EOF__
26612
26613
26614else
26615 # If there is no Makefile yet, we rely on a make rule to execute
26616 # `config.status --recheck' to rerun these tests and create the
26617 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026618 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26619 if test -f "$ltmain_in"; then
26620 test -f Makefile && make "$ltmain"
26621 fi
John Criswell47fdd832003-07-14 16:52:07 +000026622fi
26623
26624
26625ac_ext=c
26626ac_cpp='$CPP $CPPFLAGS'
26627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26629ac_compiler_gnu=$ac_cv_c_compiler_gnu
26630
26631CC="$lt_save_CC"
26632
26633 ;;
26634
26635 *)
26636 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26637echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26638 { (exit 1); exit 1; }; }
26639 ;;
26640 esac
26641
26642 # Append the new tag name to the list of available tags.
26643 if test -n "$tagname" ; then
26644 available_tags="$available_tags $tagname"
26645 fi
26646 fi
26647 done
26648 IFS="$lt_save_ifs"
26649
26650 # Now substitute the updated list of available tags.
26651 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26652 mv "${ofile}T" "$ofile"
26653 chmod +x "$ofile"
26654 else
26655 rm -f "${ofile}T"
26656 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26657echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26658 { (exit 1); exit 1; }; }
26659 fi
26660fi
John Criswell7a73b802003-06-30 21:59:07 +000026661
26662
26663
26664# This can be used to rebuild libtool when needed
26665LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26666
26667# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026668LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026669
26670# Prevent multiple expansion
26671
26672
26673
John Criswell47fdd832003-07-14 16:52:07 +000026674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026691
Reid Spencer582a23c2004-12-29 07:07:57 +000026692if test "$lt_cv_dlopen_self" = "yes" ; then
26693
26694cat >>confdefs.h <<\_ACEOF
26695#define CAN_DLOPEN_SELF 1
26696_ACEOF
26697
26698fi
26699
Reid Spencer7931a782004-12-27 06:15:02 +000026700if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026701 LLVMGCC="llvm-gcc${EXEEXT}"
26702 LLVMGXX="llvm-g++${EXEEXT}"
26703 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26704set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026707if test "${ac_cv_path_LLVMGCC+set}" = set; then
26708 echo $ECHO_N "(cached) $ECHO_C" >&6
26709else
26710 case $LLVMGCC in
26711 [\\/]* | ?:[\\/]*)
26712 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26713 ;;
26714 *)
26715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26716for as_dir in $PATH
26717do
26718 IFS=$as_save_IFS
26719 test -z "$as_dir" && as_dir=.
26720 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026721 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 +000026722 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26724 break 2
26725 fi
26726done
26727done
Reid Spencera773bd52006-08-04 18:18:08 +000026728IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026729
Reid Spencer59473af2004-12-25 07:31:29 +000026730 ;;
26731esac
26732fi
26733LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026734if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026735 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26736echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026737else
Reid Spencera773bd52006-08-04 18:18:08 +000026738 { echo "$as_me:$LINENO: result: no" >&5
26739echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026740fi
26741
Reid Spencera773bd52006-08-04 18:18:08 +000026742
Reid Spencerc84492c2005-06-02 22:34:49 +000026743 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26744set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026747if test "${ac_cv_path_LLVMGXX+set}" = set; then
26748 echo $ECHO_N "(cached) $ECHO_C" >&6
26749else
26750 case $LLVMGXX in
26751 [\\/]* | ?:[\\/]*)
26752 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26753 ;;
26754 *)
26755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26756for as_dir in $PATH
26757do
26758 IFS=$as_save_IFS
26759 test -z "$as_dir" && as_dir=.
26760 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026761 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 +000026762 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26764 break 2
26765 fi
26766done
26767done
Reid Spencera773bd52006-08-04 18:18:08 +000026768IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026769
Reid Spencer59473af2004-12-25 07:31:29 +000026770 ;;
26771esac
26772fi
26773LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026774if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026775 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26776echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026777else
Reid Spencera773bd52006-08-04 18:18:08 +000026778 { echo "$as_me:$LINENO: result: no" >&5
26779echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026780fi
26781
Reid Spencera773bd52006-08-04 18:18:08 +000026782
Reid Spencer59473af2004-12-25 07:31:29 +000026783else
Devang Patel5d28b882007-12-04 22:54:47 +000026784 if test -z "$LLVMGCC"; then
26785 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26786 fi
26787 if test -z "$LLVMGXX"; then
26788 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26789 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026790 LLVMGCC=$LLVMGCC
26791
26792 LLVMGXX=$LLVMGXX
26793
26794fi
26795
Reid Spencera773bd52006-08-04 18:18:08 +000026796{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26797echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026798
Reid Spencer86901802004-12-08 23:07:27 +000026799ICC=no
26800IXX=no
26801case $CC in
26802 icc*|icpc*)
26803 ICC=yes
26804 IXX=yes
26805 ;;
26806 *)
26807 ;;
26808esac
26809
Duraid Madina937c60a2006-02-15 07:57:42 +000026810if test "$GCC" != "yes" && test "$ICC" != "yes"
26811then
26812 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26813echo "$as_me: error: gcc|icc required but not found" >&2;}
26814 { (exit 1); exit 1; }; }
26815fi
26816
26817if test "$GXX" != "yes" && test "$IXX" != "yes"
26818then
26819 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26820echo "$as_me: error: g++|icc required but not found" >&2;}
26821 { (exit 1); exit 1; }; }
26822fi
26823
Reid Spencer86901802004-12-08 23:07:27 +000026824if test "$GCC" = "yes"
26825then
Chris Lattner399c7c72008-02-05 19:43:53 +000026826 cat >conftest.$ac_ext <<_ACEOF
26827#if !defined(__GNUC__) || __GNUC__ < 3
26828#error Unsupported GCC version
26829#endif
26830
26831_ACEOF
26832rm -f conftest.$ac_objext
26833if { (ac_try="$ac_compile"
26834case "(($ac_try" in
26835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26836 *) ac_try_echo=$ac_try;;
26837esac
26838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26839 (eval "$ac_compile") 2>conftest.er1
26840 ac_status=$?
26841 grep -v '^ *+' conftest.er1 >conftest.err
26842 rm -f conftest.er1
26843 cat conftest.err >&5
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026845 (exit $ac_status); } &&
26846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26847 { (case "(($ac_try" in
26848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849 *) ac_try_echo=$ac_try;;
26850esac
26851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26852 (eval "$ac_try") 2>&5
26853 ac_status=$?
26854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855 (exit $ac_status); }; } &&
26856 { ac_try='test -s conftest.$ac_objext'
26857 { (case "(($ac_try" in
26858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26859 *) ac_try_echo=$ac_try;;
26860esac
26861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26862 (eval "$ac_try") 2>&5
26863 ac_status=$?
26864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000026866 :
26867else
26868 echo "$as_me: failed program was:" >&5
26869sed 's/^/| /' conftest.$ac_ext >&5
26870
26871 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026872echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26873 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000026874fi
26875
26876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026877fi
26878
26879if test -z "$llvm_cv_gnu_make_command"
26880then
26881 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26882echo "$as_me: error: GNU Make required but not found" >&2;}
26883 { (exit 1); exit 1; }; }
26884fi
26885
Reid Spencera773bd52006-08-04 18:18:08 +000026886{ echo "$as_me:$LINENO: result: ok" >&5
26887echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026888
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026889
John Criswell7a73b802003-06-30 21:59:07 +000026890
Reid Spencera773bd52006-08-04 18:18:08 +000026891{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26892echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026893if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26895else
26896 ac_check_lib_save_LIBS=$LIBS
26897LIBS="-lelf $LIBS"
26898cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026899/* confdefs.h. */
26900_ACEOF
26901cat confdefs.h >>conftest.$ac_ext
26902cat >>conftest.$ac_ext <<_ACEOF
26903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026904
Reid Spencera773bd52006-08-04 18:18:08 +000026905/* Override any GCC internal prototype to avoid an error.
26906 Use char because int might match the return type of a GCC
26907 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026908#ifdef __cplusplus
26909extern "C"
26910#endif
John Criswell7a73b802003-06-30 21:59:07 +000026911char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026912int
26913main ()
26914{
Reid Spencera773bd52006-08-04 18:18:08 +000026915return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026916 ;
26917 return 0;
26918}
26919_ACEOF
26920rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026921if { (ac_try="$ac_link"
26922case "(($ac_try" in
26923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26924 *) ac_try_echo=$ac_try;;
26925esac
26926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26927 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026928 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026929 grep -v '^ *+' conftest.er1 >conftest.err
26930 rm -f conftest.er1
26931 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026933 (exit $ac_status); } &&
26934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26935 { (case "(($ac_try" in
26936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937 *) ac_try_echo=$ac_try;;
26938esac
26939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26940 (eval "$ac_try") 2>&5
26941 ac_status=$?
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; } &&
26944 { ac_try='test -s conftest$ac_exeext'
26945 { (case "(($ac_try" in
26946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947 *) ac_try_echo=$ac_try;;
26948esac
26949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950 (eval "$ac_try") 2>&5
26951 ac_status=$?
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026954 ac_cv_lib_elf_elf_begin=yes
26955else
26956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026957sed 's/^/| /' conftest.$ac_ext >&5
26958
Reid Spencera773bd52006-08-04 18:18:08 +000026959 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026960fi
Reid Spencera773bd52006-08-04 18:18:08 +000026961
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026962rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026963 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026964LIBS=$ac_check_lib_save_LIBS
26965fi
Reid Spencera773bd52006-08-04 18:18:08 +000026966{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26967echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026968if test $ac_cv_lib_elf_elf_begin = yes; then
26969 cat >>confdefs.h <<_ACEOF
26970#define HAVE_LIBELF 1
26971_ACEOF
26972
26973 LIBS="-lelf $LIBS"
26974
26975fi
26976
26977
Reid Spencera773bd52006-08-04 18:18:08 +000026978{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26979echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026980if test "${ac_cv_lib_m_sin+set}" = set; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26982else
26983 ac_check_lib_save_LIBS=$LIBS
26984LIBS="-lm $LIBS"
26985cat >conftest.$ac_ext <<_ACEOF
26986/* confdefs.h. */
26987_ACEOF
26988cat confdefs.h >>conftest.$ac_ext
26989cat >>conftest.$ac_ext <<_ACEOF
26990/* end confdefs.h. */
26991
Reid Spencera773bd52006-08-04 18:18:08 +000026992/* Override any GCC internal prototype to avoid an error.
26993 Use char because int might match the return type of a GCC
26994 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026995#ifdef __cplusplus
26996extern "C"
26997#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026998char sin ();
26999int
27000main ()
27001{
Reid Spencera773bd52006-08-04 18:18:08 +000027002return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027003 ;
27004 return 0;
27005}
27006_ACEOF
27007rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027008if { (ac_try="$ac_link"
27009case "(($ac_try" in
27010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27011 *) ac_try_echo=$ac_try;;
27012esac
27013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27014 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027015 ac_status=$?
27016 grep -v '^ *+' conftest.er1 >conftest.err
27017 rm -f conftest.er1
27018 cat conftest.err >&5
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027020 (exit $ac_status); } &&
27021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27022 { (case "(($ac_try" in
27023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024 *) ac_try_echo=$ac_try;;
27025esac
27026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027 (eval "$ac_try") 2>&5
27028 ac_status=$?
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; } &&
27031 { ac_try='test -s conftest$ac_exeext'
27032 { (case "(($ac_try" in
27033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27034 *) ac_try_echo=$ac_try;;
27035esac
27036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27037 (eval "$ac_try") 2>&5
27038 ac_status=$?
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027041 ac_cv_lib_m_sin=yes
27042else
27043 echo "$as_me: failed program was:" >&5
27044sed 's/^/| /' conftest.$ac_ext >&5
27045
Reid Spencera773bd52006-08-04 18:18:08 +000027046 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027047fi
Reid Spencera773bd52006-08-04 18:18:08 +000027048
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027049rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027050 conftest$ac_exeext conftest.$ac_ext
27051LIBS=$ac_check_lib_save_LIBS
27052fi
Reid Spencera773bd52006-08-04 18:18:08 +000027053{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27054echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027055if test $ac_cv_lib_m_sin = yes; then
27056 cat >>confdefs.h <<_ACEOF
27057#define HAVE_LIBM 1
27058_ACEOF
27059
27060 LIBS="-lm $LIBS"
27061
27062fi
27063
Jeff Cohen28783c32007-01-12 18:22:38 +000027064if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027065
Reid Spencera773bd52006-08-04 18:18:08 +000027066{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27067echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027068if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027069 echo $ECHO_N "(cached) $ECHO_C" >&6
27070else
27071 ac_check_lib_save_LIBS=$LIBS
27072LIBS="-limagehlp $LIBS"
27073cat >conftest.$ac_ext <<_ACEOF
27074/* confdefs.h. */
27075_ACEOF
27076cat confdefs.h >>conftest.$ac_ext
27077cat >>conftest.$ac_ext <<_ACEOF
27078/* end confdefs.h. */
27079
Reid Spencer48fdf912006-06-01 19:03:21 +000027080
Reid Spencer484fc8e2006-06-01 16:55:59 +000027081int
27082main ()
27083{
Reid Spencera773bd52006-08-04 18:18:08 +000027084return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027085 ;
27086 return 0;
27087}
27088_ACEOF
27089rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027090if { (ac_try="$ac_link"
27091case "(($ac_try" in
27092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27093 *) ac_try_echo=$ac_try;;
27094esac
27095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27096 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027097 ac_status=$?
27098 grep -v '^ *+' conftest.er1 >conftest.err
27099 rm -f conftest.er1
27100 cat conftest.err >&5
27101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027102 (exit $ac_status); } &&
27103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27104 { (case "(($ac_try" in
27105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106 *) ac_try_echo=$ac_try;;
27107esac
27108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27109 (eval "$ac_try") 2>&5
27110 ac_status=$?
27111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 (exit $ac_status); }; } &&
27113 { ac_try='test -s conftest$ac_exeext'
27114 { (case "(($ac_try" in
27115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27116 *) ac_try_echo=$ac_try;;
27117esac
27118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27119 (eval "$ac_try") 2>&5
27120 ac_status=$?
27121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027123 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027124else
27125 echo "$as_me: failed program was:" >&5
27126sed 's/^/| /' conftest.$ac_ext >&5
27127
Reid Spencera773bd52006-08-04 18:18:08 +000027128 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027129fi
Reid Spencera773bd52006-08-04 18:18:08 +000027130
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027131rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027132 conftest$ac_exeext conftest.$ac_ext
27133LIBS=$ac_check_lib_save_LIBS
27134fi
Reid Spencera773bd52006-08-04 18:18:08 +000027135{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27136echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027137if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027138 cat >>confdefs.h <<_ACEOF
27139#define HAVE_LIBIMAGEHLP 1
27140_ACEOF
27141
27142 LIBS="-limagehlp $LIBS"
27143
27144fi
27145
27146
Reid Spencera773bd52006-08-04 18:18:08 +000027147{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27148echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027149if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027150 echo $ECHO_N "(cached) $ECHO_C" >&6
27151else
27152 ac_check_lib_save_LIBS=$LIBS
27153LIBS="-lpsapi $LIBS"
27154cat >conftest.$ac_ext <<_ACEOF
27155/* confdefs.h. */
27156_ACEOF
27157cat confdefs.h >>conftest.$ac_ext
27158cat >>conftest.$ac_ext <<_ACEOF
27159/* end confdefs.h. */
27160
Reid Spencer48fdf912006-06-01 19:03:21 +000027161
Reid Spencer484fc8e2006-06-01 16:55:59 +000027162int
27163main ()
27164{
Reid Spencera773bd52006-08-04 18:18:08 +000027165return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027166 ;
27167 return 0;
27168}
27169_ACEOF
27170rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027171if { (ac_try="$ac_link"
27172case "(($ac_try" in
27173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27174 *) ac_try_echo=$ac_try;;
27175esac
27176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27177 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027178 ac_status=$?
27179 grep -v '^ *+' conftest.er1 >conftest.err
27180 rm -f conftest.er1
27181 cat conftest.err >&5
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027183 (exit $ac_status); } &&
27184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27185 { (case "(($ac_try" in
27186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187 *) ac_try_echo=$ac_try;;
27188esac
27189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190 (eval "$ac_try") 2>&5
27191 ac_status=$?
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); }; } &&
27194 { ac_try='test -s conftest$ac_exeext'
27195 { (case "(($ac_try" in
27196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197 *) ac_try_echo=$ac_try;;
27198esac
27199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200 (eval "$ac_try") 2>&5
27201 ac_status=$?
27202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027204 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027205else
27206 echo "$as_me: failed program was:" >&5
27207sed 's/^/| /' conftest.$ac_ext >&5
27208
Reid Spencera773bd52006-08-04 18:18:08 +000027209 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027210fi
Reid Spencera773bd52006-08-04 18:18:08 +000027211
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027212rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027213 conftest$ac_exeext conftest.$ac_ext
27214LIBS=$ac_check_lib_save_LIBS
27215fi
Reid Spencera773bd52006-08-04 18:18:08 +000027216{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27217echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027218if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027219 cat >>confdefs.h <<_ACEOF
27220#define HAVE_LIBPSAPI 1
27221_ACEOF
27222
27223 LIBS="-lpsapi $LIBS"
27224
27225fi
27226
27227fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027228
Reid Spencera773bd52006-08-04 18:18:08 +000027229{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27230echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027231if test "${ac_cv_search_dlopen+set}" = set; then
27232 echo $ECHO_N "(cached) $ECHO_C" >&6
27233else
27234 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027235cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027236/* confdefs.h. */
27237_ACEOF
27238cat confdefs.h >>conftest.$ac_ext
27239cat >>conftest.$ac_ext <<_ACEOF
27240/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027241
Reid Spencera773bd52006-08-04 18:18:08 +000027242/* Override any GCC internal prototype to avoid an error.
27243 Use char because int might match the return type of a GCC
27244 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027245#ifdef __cplusplus
27246extern "C"
27247#endif
John Criswell7a73b802003-06-30 21:59:07 +000027248char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027249int
27250main ()
27251{
Reid Spencera773bd52006-08-04 18:18:08 +000027252return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027253 ;
27254 return 0;
27255}
27256_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027257for ac_lib in '' dl; do
27258 if test -z "$ac_lib"; then
27259 ac_res="none required"
27260 else
27261 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027263 fi
27264 rm -f conftest.$ac_objext conftest$ac_exeext
27265if { (ac_try="$ac_link"
27266case "(($ac_try" in
27267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268 *) ac_try_echo=$ac_try;;
27269esac
27270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027272 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027273 grep -v '^ *+' conftest.er1 >conftest.err
27274 rm -f conftest.er1
27275 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027277 (exit $ac_status); } &&
27278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27279 { (case "(($ac_try" in
27280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281 *) ac_try_echo=$ac_try;;
27282esac
27283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284 (eval "$ac_try") 2>&5
27285 ac_status=$?
27286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); }; } &&
27288 { ac_try='test -s conftest$ac_exeext'
27289 { (case "(($ac_try" in
27290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27291 *) ac_try_echo=$ac_try;;
27292esac
27293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27294 (eval "$ac_try") 2>&5
27295 ac_status=$?
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027298 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027299else
27300 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027301sed 's/^/| /' conftest.$ac_ext >&5
27302
Reid Spencera773bd52006-08-04 18:18:08 +000027303
John Criswell7a73b802003-06-30 21:59:07 +000027304fi
Reid Spencera773bd52006-08-04 18:18:08 +000027305
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027306rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027307 conftest$ac_exeext
27308 if test "${ac_cv_search_dlopen+set}" = set; then
27309 break
John Criswell7a73b802003-06-30 21:59:07 +000027310fi
Reid Spencera773bd52006-08-04 18:18:08 +000027311done
27312if test "${ac_cv_search_dlopen+set}" = set; then
27313 :
27314else
27315 ac_cv_search_dlopen=no
27316fi
27317rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027318LIBS=$ac_func_search_save_LIBS
27319fi
Reid Spencera773bd52006-08-04 18:18:08 +000027320{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27321echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27322ac_res=$ac_cv_search_dlopen
27323if test "$ac_res" != no; then
27324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027325
27326cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027327#define HAVE_DLOPEN 1
27328_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027329
27330else
Brian Gaekec45be042003-10-07 06:01:34 +000027331 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27332echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027333fi
27334
27335
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027336{ echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27337echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27338if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27339 echo $ECHO_N "(cached) $ECHO_C" >&6
27340else
27341 ac_check_lib_save_LIBS=$LIBS
27342LIBS="-lffi $LIBS"
27343cat >conftest.$ac_ext <<_ACEOF
27344/* confdefs.h. */
27345_ACEOF
27346cat confdefs.h >>conftest.$ac_ext
27347cat >>conftest.$ac_ext <<_ACEOF
27348/* end confdefs.h. */
27349
27350/* Override any GCC internal prototype to avoid an error.
27351 Use char because int might match the return type of a GCC
27352 builtin and then its argument prototype would still apply. */
27353#ifdef __cplusplus
27354extern "C"
27355#endif
27356char ffi_call ();
27357int
27358main ()
27359{
27360return ffi_call ();
27361 ;
27362 return 0;
27363}
27364_ACEOF
27365rm -f conftest.$ac_objext conftest$ac_exeext
27366if { (ac_try="$ac_link"
27367case "(($ac_try" in
27368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27369 *) ac_try_echo=$ac_try;;
27370esac
27371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27372 (eval "$ac_link") 2>conftest.er1
27373 ac_status=$?
27374 grep -v '^ *+' conftest.er1 >conftest.err
27375 rm -f conftest.er1
27376 cat conftest.err >&5
27377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); } &&
27379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27380 { (case "(($ac_try" in
27381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27382 *) ac_try_echo=$ac_try;;
27383esac
27384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27385 (eval "$ac_try") 2>&5
27386 ac_status=$?
27387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 (exit $ac_status); }; } &&
27389 { ac_try='test -s conftest$ac_exeext'
27390 { (case "(($ac_try" in
27391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27392 *) ac_try_echo=$ac_try;;
27393esac
27394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27395 (eval "$ac_try") 2>&5
27396 ac_status=$?
27397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398 (exit $ac_status); }; }; then
27399 ac_cv_lib_ffi_ffi_call=yes
27400else
27401 echo "$as_me: failed program was:" >&5
27402sed 's/^/| /' conftest.$ac_ext >&5
27403
27404 ac_cv_lib_ffi_ffi_call=no
27405fi
27406
27407rm -f core conftest.err conftest.$ac_objext \
27408 conftest$ac_exeext conftest.$ac_ext
27409LIBS=$ac_check_lib_save_LIBS
27410fi
27411{ echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27412echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27413if test $ac_cv_lib_ffi_ffi_call = yes; then
27414 have_libffi=1
27415else
27416 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27417echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27418fi
27419
27420
Reid Spencera773bd52006-08-04 18:18:08 +000027421{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27422echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027423if test "${ac_cv_search_mallinfo+set}" = set; then
27424 echo $ECHO_N "(cached) $ECHO_C" >&6
27425else
27426 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027427cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027428/* confdefs.h. */
27429_ACEOF
27430cat confdefs.h >>conftest.$ac_ext
27431cat >>conftest.$ac_ext <<_ACEOF
27432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027433
Reid Spencera773bd52006-08-04 18:18:08 +000027434/* Override any GCC internal prototype to avoid an error.
27435 Use char because int might match the return type of a GCC
27436 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027437#ifdef __cplusplus
27438extern "C"
27439#endif
John Criswell7a73b802003-06-30 21:59:07 +000027440char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027441int
27442main ()
27443{
Reid Spencera773bd52006-08-04 18:18:08 +000027444return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027445 ;
27446 return 0;
27447}
27448_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027449for ac_lib in '' malloc; do
27450 if test -z "$ac_lib"; then
27451 ac_res="none required"
27452 else
27453 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027455 fi
27456 rm -f conftest.$ac_objext conftest$ac_exeext
27457if { (ac_try="$ac_link"
27458case "(($ac_try" in
27459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460 *) ac_try_echo=$ac_try;;
27461esac
27462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027464 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027465 grep -v '^ *+' conftest.er1 >conftest.err
27466 rm -f conftest.er1
27467 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027469 (exit $ac_status); } &&
27470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27471 { (case "(($ac_try" in
27472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27473 *) ac_try_echo=$ac_try;;
27474esac
27475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27476 (eval "$ac_try") 2>&5
27477 ac_status=$?
27478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479 (exit $ac_status); }; } &&
27480 { ac_try='test -s conftest$ac_exeext'
27481 { (case "(($ac_try" in
27482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483 *) ac_try_echo=$ac_try;;
27484esac
27485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486 (eval "$ac_try") 2>&5
27487 ac_status=$?
27488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027490 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027491else
27492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027493sed 's/^/| /' conftest.$ac_ext >&5
27494
Reid Spencera773bd52006-08-04 18:18:08 +000027495
John Criswell7a73b802003-06-30 21:59:07 +000027496fi
Reid Spencera773bd52006-08-04 18:18:08 +000027497
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027498rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027499 conftest$ac_exeext
27500 if test "${ac_cv_search_mallinfo+set}" = set; then
27501 break
John Criswell7a73b802003-06-30 21:59:07 +000027502fi
Reid Spencera773bd52006-08-04 18:18:08 +000027503done
27504if test "${ac_cv_search_mallinfo+set}" = set; then
27505 :
27506else
27507 ac_cv_search_mallinfo=no
27508fi
27509rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027510LIBS=$ac_func_search_save_LIBS
27511fi
Reid Spencera773bd52006-08-04 18:18:08 +000027512{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27513echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27514ac_res=$ac_cv_search_mallinfo
27515if test "$ac_res" != no; then
27516 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027517
27518cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027519#define HAVE_MALLINFO 1
27520_ACEOF
27521
27522fi
27523
27524
Reid Spencer0a262ba2005-08-24 10:07:20 +000027525if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027526
Reid Spencera773bd52006-08-04 18:18:08 +000027527{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27528echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027529if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27530 echo $ECHO_N "(cached) $ECHO_C" >&6
27531else
27532 ac_check_lib_save_LIBS=$LIBS
27533LIBS="-lpthread $LIBS"
27534cat >conftest.$ac_ext <<_ACEOF
27535/* confdefs.h. */
27536_ACEOF
27537cat confdefs.h >>conftest.$ac_ext
27538cat >>conftest.$ac_ext <<_ACEOF
27539/* end confdefs.h. */
27540
Reid Spencera773bd52006-08-04 18:18:08 +000027541/* Override any GCC internal prototype to avoid an error.
27542 Use char because int might match the return type of a GCC
27543 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027544#ifdef __cplusplus
27545extern "C"
27546#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027547char pthread_mutex_init ();
27548int
27549main ()
27550{
Reid Spencera773bd52006-08-04 18:18:08 +000027551return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027552 ;
27553 return 0;
27554}
27555_ACEOF
27556rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027557if { (ac_try="$ac_link"
27558case "(($ac_try" in
27559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560 *) ac_try_echo=$ac_try;;
27561esac
27562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027564 ac_status=$?
27565 grep -v '^ *+' conftest.er1 >conftest.err
27566 rm -f conftest.er1
27567 cat conftest.err >&5
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027569 (exit $ac_status); } &&
27570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27571 { (case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27574esac
27575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_try") 2>&5
27577 ac_status=$?
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; } &&
27580 { ac_try='test -s conftest$ac_exeext'
27581 { (case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27584esac
27585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_try") 2>&5
27587 ac_status=$?
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027590 ac_cv_lib_pthread_pthread_mutex_init=yes
27591else
27592 echo "$as_me: failed program was:" >&5
27593sed 's/^/| /' conftest.$ac_ext >&5
27594
Reid Spencera773bd52006-08-04 18:18:08 +000027595 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027596fi
Reid Spencera773bd52006-08-04 18:18:08 +000027597
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027598rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027599 conftest$ac_exeext conftest.$ac_ext
27600LIBS=$ac_check_lib_save_LIBS
27601fi
Reid Spencera773bd52006-08-04 18:18:08 +000027602{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27603echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027604if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27605 cat >>confdefs.h <<_ACEOF
27606#define HAVE_LIBPTHREAD 1
27607_ACEOF
27608
27609 LIBS="-lpthread $LIBS"
27610
27611fi
27612
Reid Spencera773bd52006-08-04 18:18:08 +000027613 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27614echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027615if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27616 echo $ECHO_N "(cached) $ECHO_C" >&6
27617else
27618 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027619cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027620/* confdefs.h. */
27621_ACEOF
27622cat confdefs.h >>conftest.$ac_ext
27623cat >>conftest.$ac_ext <<_ACEOF
27624/* end confdefs.h. */
27625
Reid Spencera773bd52006-08-04 18:18:08 +000027626/* Override any GCC internal prototype to avoid an error.
27627 Use char because int might match the return type of a GCC
27628 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027629#ifdef __cplusplus
27630extern "C"
27631#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027632char pthread_mutex_lock ();
27633int
27634main ()
27635{
Reid Spencera773bd52006-08-04 18:18:08 +000027636return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027637 ;
27638 return 0;
27639}
27640_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027641for ac_lib in '' pthread; do
27642 if test -z "$ac_lib"; then
27643 ac_res="none required"
27644 else
27645 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027647 fi
27648 rm -f conftest.$ac_objext conftest$ac_exeext
27649if { (ac_try="$ac_link"
27650case "(($ac_try" in
27651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27652 *) ac_try_echo=$ac_try;;
27653esac
27654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27655 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027656 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027657 grep -v '^ *+' conftest.er1 >conftest.err
27658 rm -f conftest.er1
27659 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027661 (exit $ac_status); } &&
27662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27663 { (case "(($ac_try" in
27664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27665 *) ac_try_echo=$ac_try;;
27666esac
27667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27668 (eval "$ac_try") 2>&5
27669 ac_status=$?
27670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671 (exit $ac_status); }; } &&
27672 { ac_try='test -s conftest$ac_exeext'
27673 { (case "(($ac_try" in
27674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675 *) ac_try_echo=$ac_try;;
27676esac
27677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678 (eval "$ac_try") 2>&5
27679 ac_status=$?
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027682 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027683else
27684 echo "$as_me: failed program was:" >&5
27685sed 's/^/| /' conftest.$ac_ext >&5
27686
Reid Spencera773bd52006-08-04 18:18:08 +000027687
Brian Gaeke5f268f72003-12-05 19:29:01 +000027688fi
Reid Spencera773bd52006-08-04 18:18:08 +000027689
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027690rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027691 conftest$ac_exeext
27692 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27693 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027694fi
Reid Spencera773bd52006-08-04 18:18:08 +000027695done
27696if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27697 :
27698else
27699 ac_cv_search_pthread_mutex_lock=no
27700fi
27701rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027702LIBS=$ac_func_search_save_LIBS
27703fi
Reid Spencera773bd52006-08-04 18:18:08 +000027704{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27705echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27706ac_res=$ac_cv_search_pthread_mutex_lock
27707if test "$ac_res" != no; then
27708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027709
John Criswell40468462004-09-24 21:19:06 +000027710cat >>confdefs.h <<\_ACEOF
27711#define HAVE_PTHREAD_MUTEX_LOCK 1
27712_ACEOF
27713
27714fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027715
Reid Spencer0a262ba2005-08-24 10:07:20 +000027716fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027717
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027718
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027719# Check whether --with-udis86 was given.
27720if test "${with_udis86+set}" = set; then
27721 withval=$with_udis86;
27722 USE_UDIS86=1
27723
27724 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027725 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027726 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27727 esac
27728
27729{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27730echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27731if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27732 echo $ECHO_N "(cached) $ECHO_C" >&6
27733else
27734 ac_check_lib_save_LIBS=$LIBS
27735LIBS="-ludis86 $LIBS"
27736cat >conftest.$ac_ext <<_ACEOF
27737/* confdefs.h. */
27738_ACEOF
27739cat confdefs.h >>conftest.$ac_ext
27740cat >>conftest.$ac_ext <<_ACEOF
27741/* end confdefs.h. */
27742
27743/* Override any GCC internal prototype to avoid an error.
27744 Use char because int might match the return type of a GCC
27745 builtin and then its argument prototype would still apply. */
27746#ifdef __cplusplus
27747extern "C"
27748#endif
27749char ud_init ();
27750int
27751main ()
27752{
27753return ud_init ();
27754 ;
27755 return 0;
27756}
27757_ACEOF
27758rm -f conftest.$ac_objext conftest$ac_exeext
27759if { (ac_try="$ac_link"
27760case "(($ac_try" in
27761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27762 *) ac_try_echo=$ac_try;;
27763esac
27764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27765 (eval "$ac_link") 2>conftest.er1
27766 ac_status=$?
27767 grep -v '^ *+' conftest.er1 >conftest.err
27768 rm -f conftest.er1
27769 cat conftest.err >&5
27770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027771 (exit $ac_status); } &&
27772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27773 { (case "(($ac_try" in
27774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27775 *) ac_try_echo=$ac_try;;
27776esac
27777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27778 (eval "$ac_try") 2>&5
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; } &&
27782 { ac_try='test -s conftest$ac_exeext'
27783 { (case "(($ac_try" in
27784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27785 *) ac_try_echo=$ac_try;;
27786esac
27787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27788 (eval "$ac_try") 2>&5
27789 ac_status=$?
27790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027792 ac_cv_lib_udis86_ud_init=yes
27793else
27794 echo "$as_me: failed program was:" >&5
27795sed 's/^/| /' conftest.$ac_ext >&5
27796
27797 ac_cv_lib_udis86_ud_init=no
27798fi
27799
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027800rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027801 conftest$ac_exeext conftest.$ac_ext
27802LIBS=$ac_check_lib_save_LIBS
27803fi
27804{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27805echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27806if test $ac_cv_lib_udis86_ud_init = yes; then
27807 cat >>confdefs.h <<_ACEOF
27808#define HAVE_LIBUDIS86 1
27809_ACEOF
27810
27811 LIBS="-ludis86 $LIBS"
27812
27813else
27814
27815 echo "Error! You need to have libudis86 around."
27816 exit -1
27817
27818fi
27819
27820
27821else
27822 USE_UDIS86=0
27823
27824fi
27825
27826
27827cat >>confdefs.h <<_ACEOF
27828#define USE_UDIS86 $USE_UDIS86
27829_ACEOF
27830
27831
27832
Reid Spencer59473af2004-12-25 07:31:29 +000027833
27834
27835
27836
27837
27838ac_header_dirent=no
27839for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27840 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027841{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27842echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27843if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027844 echo $ECHO_N "(cached) $ECHO_C" >&6
27845else
27846 cat >conftest.$ac_ext <<_ACEOF
27847/* confdefs.h. */
27848_ACEOF
27849cat confdefs.h >>conftest.$ac_ext
27850cat >>conftest.$ac_ext <<_ACEOF
27851/* end confdefs.h. */
27852#include <sys/types.h>
27853#include <$ac_hdr>
27854
27855int
27856main ()
27857{
27858if ((DIR *) 0)
27859return 0;
27860 ;
27861 return 0;
27862}
27863_ACEOF
27864rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027865if { (ac_try="$ac_compile"
27866case "(($ac_try" in
27867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868 *) ac_try_echo=$ac_try;;
27869esac
27870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027872 ac_status=$?
27873 grep -v '^ *+' conftest.er1 >conftest.err
27874 rm -f conftest.er1
27875 cat conftest.err >&5
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027877 (exit $ac_status); } &&
27878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27879 { (case "(($ac_try" in
27880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27881 *) ac_try_echo=$ac_try;;
27882esac
27883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27884 (eval "$ac_try") 2>&5
27885 ac_status=$?
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); }; } &&
27888 { ac_try='test -s conftest.$ac_objext'
27889 { (case "(($ac_try" in
27890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27891 *) ac_try_echo=$ac_try;;
27892esac
27893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27894 (eval "$ac_try") 2>&5
27895 ac_status=$?
27896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027898 eval "$as_ac_Header=yes"
27899else
27900 echo "$as_me: failed program was:" >&5
27901sed 's/^/| /' conftest.$ac_ext >&5
27902
Reid Spencera773bd52006-08-04 18:18:08 +000027903 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027904fi
Reid Spencera773bd52006-08-04 18:18:08 +000027905
27906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027907fi
Reid Spencera773bd52006-08-04 18:18:08 +000027908ac_res=`eval echo '${'$as_ac_Header'}'`
27909 { echo "$as_me:$LINENO: result: $ac_res" >&5
27910echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027911if test `eval echo '${'$as_ac_Header'}'` = yes; then
27912 cat >>confdefs.h <<_ACEOF
27913#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27914_ACEOF
27915
27916ac_header_dirent=$ac_hdr; break
27917fi
27918
27919done
27920# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27921if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027922 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27923echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027924if test "${ac_cv_search_opendir+set}" = set; then
27925 echo $ECHO_N "(cached) $ECHO_C" >&6
27926else
27927 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027928cat >conftest.$ac_ext <<_ACEOF
27929/* confdefs.h. */
27930_ACEOF
27931cat confdefs.h >>conftest.$ac_ext
27932cat >>conftest.$ac_ext <<_ACEOF
27933/* end confdefs.h. */
27934
Reid Spencera773bd52006-08-04 18:18:08 +000027935/* Override any GCC internal prototype to avoid an error.
27936 Use char because int might match the return type of a GCC
27937 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027938#ifdef __cplusplus
27939extern "C"
27940#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027941char opendir ();
27942int
27943main ()
27944{
Reid Spencera773bd52006-08-04 18:18:08 +000027945return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027946 ;
27947 return 0;
27948}
27949_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027950for ac_lib in '' dir; do
27951 if test -z "$ac_lib"; then
27952 ac_res="none required"
27953 else
27954 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027956 fi
27957 rm -f conftest.$ac_objext conftest$ac_exeext
27958if { (ac_try="$ac_link"
27959case "(($ac_try" in
27960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961 *) ac_try_echo=$ac_try;;
27962esac
27963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27964 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027965 ac_status=$?
27966 grep -v '^ *+' conftest.er1 >conftest.err
27967 rm -f conftest.er1
27968 cat conftest.err >&5
27969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027970 (exit $ac_status); } &&
27971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27972 { (case "(($ac_try" in
27973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27974 *) ac_try_echo=$ac_try;;
27975esac
27976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27977 (eval "$ac_try") 2>&5
27978 ac_status=$?
27979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27980 (exit $ac_status); }; } &&
27981 { ac_try='test -s conftest$ac_exeext'
27982 { (case "(($ac_try" in
27983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27984 *) ac_try_echo=$ac_try;;
27985esac
27986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27987 (eval "$ac_try") 2>&5
27988 ac_status=$?
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027991 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027992else
27993 echo "$as_me: failed program was:" >&5
27994sed 's/^/| /' conftest.$ac_ext >&5
27995
Reid Spencera773bd52006-08-04 18:18:08 +000027996
Reid Spencer59473af2004-12-25 07:31:29 +000027997fi
Reid Spencera773bd52006-08-04 18:18:08 +000027998
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027999rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028000 conftest$ac_exeext
28001 if test "${ac_cv_search_opendir+set}" = set; then
28002 break
Reid Spencer59473af2004-12-25 07:31:29 +000028003fi
Reid Spencera773bd52006-08-04 18:18:08 +000028004done
28005if test "${ac_cv_search_opendir+set}" = set; then
28006 :
28007else
28008 ac_cv_search_opendir=no
28009fi
28010rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028011LIBS=$ac_func_search_save_LIBS
28012fi
Reid Spencera773bd52006-08-04 18:18:08 +000028013{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28014echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28015ac_res=$ac_cv_search_opendir
28016if test "$ac_res" != no; then
28017 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028018
28019fi
28020
28021else
Reid Spencera773bd52006-08-04 18:18:08 +000028022 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28023echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028024if test "${ac_cv_search_opendir+set}" = set; then
28025 echo $ECHO_N "(cached) $ECHO_C" >&6
28026else
28027 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028028cat >conftest.$ac_ext <<_ACEOF
28029/* confdefs.h. */
28030_ACEOF
28031cat confdefs.h >>conftest.$ac_ext
28032cat >>conftest.$ac_ext <<_ACEOF
28033/* end confdefs.h. */
28034
Reid Spencera773bd52006-08-04 18:18:08 +000028035/* Override any GCC internal prototype to avoid an error.
28036 Use char because int might match the return type of a GCC
28037 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028038#ifdef __cplusplus
28039extern "C"
28040#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028041char opendir ();
28042int
28043main ()
28044{
Reid Spencera773bd52006-08-04 18:18:08 +000028045return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028046 ;
28047 return 0;
28048}
28049_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028050for ac_lib in '' x; do
28051 if test -z "$ac_lib"; then
28052 ac_res="none required"
28053 else
28054 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028056 fi
28057 rm -f conftest.$ac_objext conftest$ac_exeext
28058if { (ac_try="$ac_link"
28059case "(($ac_try" in
28060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28061 *) ac_try_echo=$ac_try;;
28062esac
28063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28064 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028065 ac_status=$?
28066 grep -v '^ *+' conftest.er1 >conftest.err
28067 rm -f conftest.er1
28068 cat conftest.err >&5
28069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028070 (exit $ac_status); } &&
28071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
28081 { ac_try='test -s conftest$ac_exeext'
28082 { (case "(($ac_try" in
28083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28084 *) ac_try_echo=$ac_try;;
28085esac
28086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28087 (eval "$ac_try") 2>&5
28088 ac_status=$?
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028091 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028092else
28093 echo "$as_me: failed program was:" >&5
28094sed 's/^/| /' conftest.$ac_ext >&5
28095
Reid Spencera773bd52006-08-04 18:18:08 +000028096
Reid Spencer59473af2004-12-25 07:31:29 +000028097fi
Reid Spencera773bd52006-08-04 18:18:08 +000028098
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028099rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028100 conftest$ac_exeext
28101 if test "${ac_cv_search_opendir+set}" = set; then
28102 break
Reid Spencer59473af2004-12-25 07:31:29 +000028103fi
Reid Spencera773bd52006-08-04 18:18:08 +000028104done
28105if test "${ac_cv_search_opendir+set}" = set; then
28106 :
28107else
28108 ac_cv_search_opendir=no
28109fi
28110rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028111LIBS=$ac_func_search_save_LIBS
28112fi
Reid Spencera773bd52006-08-04 18:18:08 +000028113{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28114echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28115ac_res=$ac_cv_search_opendir
28116if test "$ac_res" != no; then
28117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028118
28119fi
28120
28121fi
28122
Reid Spencera773bd52006-08-04 18:18:08 +000028123{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28124echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028125if test "${ac_cv_header_mmap_anon+set}" = set; then
28126 echo $ECHO_N "(cached) $ECHO_C" >&6
28127else
28128 ac_ext=c
28129ac_cpp='$CPP $CPPFLAGS'
28130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28132ac_compiler_gnu=$ac_cv_c_compiler_gnu
28133
28134 cat >conftest.$ac_ext <<_ACEOF
28135/* confdefs.h. */
28136_ACEOF
28137cat confdefs.h >>conftest.$ac_ext
28138cat >>conftest.$ac_ext <<_ACEOF
28139/* end confdefs.h. */
28140#include <sys/mman.h>
28141#include <unistd.h>
28142#include <fcntl.h>
28143int
28144main ()
28145{
28146mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28147 ;
28148 return 0;
28149}
28150_ACEOF
28151rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028152if { (ac_try="$ac_compile"
28153case "(($ac_try" in
28154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155 *) ac_try_echo=$ac_try;;
28156esac
28157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028159 ac_status=$?
28160 grep -v '^ *+' conftest.er1 >conftest.err
28161 rm -f conftest.er1
28162 cat conftest.err >&5
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028164 (exit $ac_status); } &&
28165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28166 { (case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28169esac
28170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_try") 2>&5
28172 ac_status=$?
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; } &&
28175 { ac_try='test -s conftest.$ac_objext'
28176 { (case "(($ac_try" in
28177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178 *) ac_try_echo=$ac_try;;
28179esac
28180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_try") 2>&5
28182 ac_status=$?
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028185 ac_cv_header_mmap_anon=yes
28186else
28187 echo "$as_me: failed program was:" >&5
28188sed 's/^/| /' conftest.$ac_ext >&5
28189
Reid Spencera773bd52006-08-04 18:18:08 +000028190 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028191fi
Reid Spencera773bd52006-08-04 18:18:08 +000028192
28193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028194 ac_ext=c
28195ac_cpp='$CPP $CPPFLAGS'
28196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28198ac_compiler_gnu=$ac_cv_c_compiler_gnu
28199
28200
28201fi
Reid Spencera773bd52006-08-04 18:18:08 +000028202{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28203echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028204if test "$ac_cv_header_mmap_anon" = yes; then
28205
28206cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028207#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028208_ACEOF
28209
28210fi
28211
Reid Spencera773bd52006-08-04 18:18:08 +000028212{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28213echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028214if test "${ac_cv_header_stat_broken+set}" = set; then
28215 echo $ECHO_N "(cached) $ECHO_C" >&6
28216else
28217 cat >conftest.$ac_ext <<_ACEOF
28218/* confdefs.h. */
28219_ACEOF
28220cat confdefs.h >>conftest.$ac_ext
28221cat >>conftest.$ac_ext <<_ACEOF
28222/* end confdefs.h. */
28223#include <sys/types.h>
28224#include <sys/stat.h>
28225
Reid Spencera773bd52006-08-04 18:18:08 +000028226#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028227# if S_ISBLK (S_IFDIR)
28228You lose.
28229# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028230#endif
28231
Reid Spencera773bd52006-08-04 18:18:08 +000028232#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028233# if S_ISBLK (S_IFCHR)
28234You lose.
28235# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028236#endif
28237
Reid Spencera773bd52006-08-04 18:18:08 +000028238#if defined S_ISLNK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028239# if S_ISLNK (S_IFREG)
28240You lose.
28241# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028242#endif
28243
Reid Spencera773bd52006-08-04 18:18:08 +000028244#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028245# if S_ISSOCK (S_IFREG)
28246You lose.
28247# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028248#endif
28249
28250_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028251if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28252 $EGREP "You lose" >/dev/null 2>&1; then
28253 ac_cv_header_stat_broken=yes
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028254else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028255 ac_cv_header_stat_broken=no
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028256fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028257rm -f conftest*
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028258
Reid Spencer59473af2004-12-25 07:31:29 +000028259fi
Reid Spencera773bd52006-08-04 18:18:08 +000028260{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28261echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028262if test $ac_cv_header_stat_broken = yes; then
28263
28264cat >>confdefs.h <<\_ACEOF
28265#define STAT_MACROS_BROKEN 1
28266_ACEOF
28267
28268fi
28269
Reid Spencera773bd52006-08-04 18:18:08 +000028270{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28271echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028272if test "${ac_cv_header_stdc+set}" = set; then
28273 echo $ECHO_N "(cached) $ECHO_C" >&6
28274else
28275 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028276/* confdefs.h. */
28277_ACEOF
28278cat confdefs.h >>conftest.$ac_ext
28279cat >>conftest.$ac_ext <<_ACEOF
28280/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028281#include <stdlib.h>
28282#include <stdarg.h>
28283#include <string.h>
28284#include <float.h>
28285
John Criswell0c38eaf2003-09-10 15:17:25 +000028286int
28287main ()
28288{
28289
28290 ;
28291 return 0;
28292}
John Criswell7a73b802003-06-30 21:59:07 +000028293_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028294rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028295if { (ac_try="$ac_compile"
28296case "(($ac_try" in
28297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28298 *) ac_try_echo=$ac_try;;
28299esac
28300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28301 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028302 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028303 grep -v '^ *+' conftest.er1 >conftest.err
28304 rm -f conftest.er1
28305 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028307 (exit $ac_status); } &&
28308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28309 { (case "(($ac_try" in
28310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28311 *) ac_try_echo=$ac_try;;
28312esac
28313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28314 (eval "$ac_try") 2>&5
28315 ac_status=$?
28316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 (exit $ac_status); }; } &&
28318 { ac_try='test -s conftest.$ac_objext'
28319 { (case "(($ac_try" in
28320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321 *) ac_try_echo=$ac_try;;
28322esac
28323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324 (eval "$ac_try") 2>&5
28325 ac_status=$?
28326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028328 ac_cv_header_stdc=yes
28329else
28330 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028331sed 's/^/| /' conftest.$ac_ext >&5
28332
Reid Spencera773bd52006-08-04 18:18:08 +000028333 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028334fi
Reid Spencera773bd52006-08-04 18:18:08 +000028335
28336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028337
28338if test $ac_cv_header_stdc = yes; then
28339 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28340 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028341/* confdefs.h. */
28342_ACEOF
28343cat confdefs.h >>conftest.$ac_ext
28344cat >>conftest.$ac_ext <<_ACEOF
28345/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028346#include <string.h>
28347
28348_ACEOF
28349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028350 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028351 :
28352else
28353 ac_cv_header_stdc=no
28354fi
28355rm -f conftest*
28356
28357fi
28358
28359if test $ac_cv_header_stdc = yes; then
28360 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28361 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028362/* confdefs.h. */
28363_ACEOF
28364cat confdefs.h >>conftest.$ac_ext
28365cat >>conftest.$ac_ext <<_ACEOF
28366/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028367#include <stdlib.h>
28368
28369_ACEOF
28370if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028371 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028372 :
28373else
28374 ac_cv_header_stdc=no
28375fi
28376rm -f conftest*
28377
28378fi
28379
28380if test $ac_cv_header_stdc = yes; then
28381 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28382 if test "$cross_compiling" = yes; then
28383 :
28384else
28385 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028386/* confdefs.h. */
28387_ACEOF
28388cat confdefs.h >>conftest.$ac_ext
28389cat >>conftest.$ac_ext <<_ACEOF
28390/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028391#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028392#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028393#if ((' ' & 0x0FF) == 0x020)
28394# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28395# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28396#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028397# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028398 (('a' <= (c) && (c) <= 'i') \
28399 || ('j' <= (c) && (c) <= 'r') \
28400 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028401# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28402#endif
28403
28404#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28405int
28406main ()
28407{
28408 int i;
28409 for (i = 0; i < 256; i++)
28410 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028411 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028412 return 2;
28413 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028414}
28415_ACEOF
28416rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028417if { (ac_try="$ac_link"
28418case "(($ac_try" in
28419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28420 *) ac_try_echo=$ac_try;;
28421esac
28422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28423 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028424 ac_status=$?
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028427 { (case "(($ac_try" in
28428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28429 *) ac_try_echo=$ac_try;;
28430esac
28431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28432 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028433 ac_status=$?
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; }; then
28436 :
28437else
28438 echo "$as_me: program exited with status $ac_status" >&5
28439echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028440sed 's/^/| /' conftest.$ac_ext >&5
28441
John Criswell7a73b802003-06-30 21:59:07 +000028442( exit $ac_status )
28443ac_cv_header_stdc=no
28444fi
Reid Spencera773bd52006-08-04 18:18:08 +000028445rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28446fi
28447
28448
John Criswell7a73b802003-06-30 21:59:07 +000028449fi
28450fi
Reid Spencera773bd52006-08-04 18:18:08 +000028451{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28452echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028453if test $ac_cv_header_stdc = yes; then
28454
28455cat >>confdefs.h <<\_ACEOF
28456#define STDC_HEADERS 1
28457_ACEOF
28458
28459fi
28460
Reid Spencera773bd52006-08-04 18:18:08 +000028461{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28462echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028463if test "${ac_cv_header_sys_wait_h+set}" = set; then
28464 echo $ECHO_N "(cached) $ECHO_C" >&6
28465else
28466 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028467/* confdefs.h. */
28468_ACEOF
28469cat confdefs.h >>conftest.$ac_ext
28470cat >>conftest.$ac_ext <<_ACEOF
28471/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028472#include <sys/types.h>
28473#include <sys/wait.h>
28474#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028475# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028476#endif
28477#ifndef WIFEXITED
28478# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28479#endif
28480
John Criswell7a73b802003-06-30 21:59:07 +000028481int
28482main ()
28483{
28484 int s;
28485 wait (&s);
28486 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28487 ;
28488 return 0;
28489}
28490_ACEOF
28491rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028492if { (ac_try="$ac_compile"
28493case "(($ac_try" in
28494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28495 *) ac_try_echo=$ac_try;;
28496esac
28497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28498 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028499 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028500 grep -v '^ *+' conftest.er1 >conftest.err
28501 rm -f conftest.er1
28502 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028504 (exit $ac_status); } &&
28505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28506 { (case "(($ac_try" in
28507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28508 *) ac_try_echo=$ac_try;;
28509esac
28510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28511 (eval "$ac_try") 2>&5
28512 ac_status=$?
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); }; } &&
28515 { ac_try='test -s conftest.$ac_objext'
28516 { (case "(($ac_try" in
28517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28518 *) ac_try_echo=$ac_try;;
28519esac
28520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28521 (eval "$ac_try") 2>&5
28522 ac_status=$?
28523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028525 ac_cv_header_sys_wait_h=yes
28526else
28527 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028528sed 's/^/| /' conftest.$ac_ext >&5
28529
Reid Spencera773bd52006-08-04 18:18:08 +000028530 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028531fi
Reid Spencera773bd52006-08-04 18:18:08 +000028532
28533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028534fi
Reid Spencera773bd52006-08-04 18:18:08 +000028535{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28536echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028537if test $ac_cv_header_sys_wait_h = yes; then
28538
28539cat >>confdefs.h <<\_ACEOF
28540#define HAVE_SYS_WAIT_H 1
28541_ACEOF
28542
28543fi
28544
Reid Spencera773bd52006-08-04 18:18:08 +000028545{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28546echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028547if test "${ac_cv_header_time+set}" = set; then
28548 echo $ECHO_N "(cached) $ECHO_C" >&6
28549else
28550 cat >conftest.$ac_ext <<_ACEOF
28551/* confdefs.h. */
28552_ACEOF
28553cat confdefs.h >>conftest.$ac_ext
28554cat >>conftest.$ac_ext <<_ACEOF
28555/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028556#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028557#include <sys/time.h>
28558#include <time.h>
28559
28560int
28561main ()
28562{
28563if ((struct tm *) 0)
28564return 0;
28565 ;
28566 return 0;
28567}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028568_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028569rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028570if { (ac_try="$ac_compile"
28571case "(($ac_try" in
28572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28573 *) ac_try_echo=$ac_try;;
28574esac
28575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28576 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028577 ac_status=$?
28578 grep -v '^ *+' conftest.er1 >conftest.err
28579 rm -f conftest.er1
28580 cat conftest.err >&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028582 (exit $ac_status); } &&
28583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28584 { (case "(($ac_try" in
28585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586 *) ac_try_echo=$ac_try;;
28587esac
28588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589 (eval "$ac_try") 2>&5
28590 ac_status=$?
28591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592 (exit $ac_status); }; } &&
28593 { ac_try='test -s conftest.$ac_objext'
28594 { (case "(($ac_try" in
28595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28596 *) ac_try_echo=$ac_try;;
28597esac
28598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28599 (eval "$ac_try") 2>&5
28600 ac_status=$?
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028603 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028604else
28605 echo "$as_me: failed program was:" >&5
28606sed 's/^/| /' conftest.$ac_ext >&5
28607
Reid Spencera773bd52006-08-04 18:18:08 +000028608 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028609fi
Reid Spencera773bd52006-08-04 18:18:08 +000028610
28611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028612fi
Reid Spencera773bd52006-08-04 18:18:08 +000028613{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28614echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028615if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028616
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028617cat >>confdefs.h <<\_ACEOF
28618#define TIME_WITH_SYS_TIME 1
28619_ACEOF
28620
28621fi
28622
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028623
Reid Spencer59473af2004-12-25 07:31:29 +000028624
28625
28626
28627
28628
28629
28630for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28631do
28632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028633if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028637 echo $ECHO_N "(cached) $ECHO_C" >&6
28638fi
Reid Spencera773bd52006-08-04 18:18:08 +000028639ac_res=`eval echo '${'$as_ac_Header'}'`
28640 { echo "$as_me:$LINENO: result: $ac_res" >&5
28641echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028642else
28643 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028644{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28645echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028646cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028647/* confdefs.h. */
28648_ACEOF
28649cat confdefs.h >>conftest.$ac_ext
28650cat >>conftest.$ac_ext <<_ACEOF
28651/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028652$ac_includes_default
28653#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028654_ACEOF
28655rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028656if { (ac_try="$ac_compile"
28657case "(($ac_try" in
28658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28659 *) ac_try_echo=$ac_try;;
28660esac
28661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28662 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028663 ac_status=$?
28664 grep -v '^ *+' conftest.er1 >conftest.err
28665 rm -f conftest.er1
28666 cat conftest.err >&5
28667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028668 (exit $ac_status); } &&
28669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28670 { (case "(($ac_try" in
28671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28672 *) ac_try_echo=$ac_try;;
28673esac
28674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28675 (eval "$ac_try") 2>&5
28676 ac_status=$?
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; } &&
28679 { ac_try='test -s conftest.$ac_objext'
28680 { (case "(($ac_try" in
28681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28682 *) ac_try_echo=$ac_try;;
28683esac
28684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28685 (eval "$ac_try") 2>&5
28686 ac_status=$?
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028689 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028690else
28691 echo "$as_me: failed program was:" >&5
28692sed 's/^/| /' conftest.$ac_ext >&5
28693
Reid Spencera773bd52006-08-04 18:18:08 +000028694 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028695fi
Reid Spencera773bd52006-08-04 18:18:08 +000028696
28697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28698{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28699echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028700
Reid Spencer59473af2004-12-25 07:31:29 +000028701# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028702{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28703echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028704cat >conftest.$ac_ext <<_ACEOF
28705/* confdefs.h. */
28706_ACEOF
28707cat confdefs.h >>conftest.$ac_ext
28708cat >>conftest.$ac_ext <<_ACEOF
28709/* end confdefs.h. */
28710#include <$ac_header>
28711_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028712if { (ac_try="$ac_cpp conftest.$ac_ext"
28713case "(($ac_try" in
28714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28715 *) ac_try_echo=$ac_try;;
28716esac
28717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028719 ac_status=$?
28720 grep -v '^ *+' conftest.er1 >conftest.err
28721 rm -f conftest.er1
28722 cat conftest.err >&5
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028724 (exit $ac_status); } >/dev/null; then
28725 if test -s conftest.err; then
28726 ac_cpp_err=$ac_c_preproc_warn_flag
28727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28728 else
28729 ac_cpp_err=
28730 fi
28731else
28732 ac_cpp_err=yes
28733fi
28734if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028735 ac_header_preproc=yes
28736else
28737 echo "$as_me: failed program was:" >&5
28738sed 's/^/| /' conftest.$ac_ext >&5
28739
28740 ac_header_preproc=no
28741fi
Reid Spencera773bd52006-08-04 18:18:08 +000028742
Reid Spencer59473af2004-12-25 07:31:29 +000028743rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028744{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28745echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028746
28747# So? What about this header?
28748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28749 yes:no: )
28750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28753echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28754 ac_header_preproc=yes
28755 ;;
28756 no:yes:* )
28757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28758echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28760echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28762echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28764echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28768echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028769 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028770## ----------------------------------- ##
28771## Report this to llvmbugs@cs.uiuc.edu ##
28772## ----------------------------------- ##
28773_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028774 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028775 ;;
28776esac
Reid Spencera773bd52006-08-04 18:18:08 +000028777{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028780 echo $ECHO_N "(cached) $ECHO_C" >&6
28781else
28782 eval "$as_ac_Header=\$ac_header_preproc"
28783fi
Reid Spencera773bd52006-08-04 18:18:08 +000028784ac_res=`eval echo '${'$as_ac_Header'}'`
28785 { echo "$as_me:$LINENO: result: $ac_res" >&5
28786echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028787
28788fi
Reid Spencer59473af2004-12-25 07:31:29 +000028789if test `eval echo '${'$as_ac_Header'}'` = yes; then
28790 cat >>confdefs.h <<_ACEOF
28791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028792_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028793
28794fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028795
Reid Spencer59473af2004-12-25 07:31:29 +000028796done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028797
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028798
28799
Reid Spencer59473af2004-12-25 07:31:29 +000028800
28801
28802
28803
Reid Spencercdb08a32006-06-05 16:11:07 +000028804for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028805do
28806as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028807if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28809echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28810if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028811 echo $ECHO_N "(cached) $ECHO_C" >&6
28812fi
Reid Spencera773bd52006-08-04 18:18:08 +000028813ac_res=`eval echo '${'$as_ac_Header'}'`
28814 { echo "$as_me:$LINENO: result: $ac_res" >&5
28815echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028816else
28817 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028818{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28819echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028820cat >conftest.$ac_ext <<_ACEOF
28821/* confdefs.h. */
28822_ACEOF
28823cat confdefs.h >>conftest.$ac_ext
28824cat >>conftest.$ac_ext <<_ACEOF
28825/* end confdefs.h. */
28826$ac_includes_default
28827#include <$ac_header>
28828_ACEOF
28829rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028830if { (ac_try="$ac_compile"
28831case "(($ac_try" in
28832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833 *) ac_try_echo=$ac_try;;
28834esac
28835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28836 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028837 ac_status=$?
28838 grep -v '^ *+' conftest.er1 >conftest.err
28839 rm -f conftest.er1
28840 cat conftest.err >&5
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028842 (exit $ac_status); } &&
28843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28844 { (case "(($ac_try" in
28845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28846 *) ac_try_echo=$ac_try;;
28847esac
28848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28849 (eval "$ac_try") 2>&5
28850 ac_status=$?
28851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28852 (exit $ac_status); }; } &&
28853 { ac_try='test -s conftest.$ac_objext'
28854 { (case "(($ac_try" in
28855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28856 *) ac_try_echo=$ac_try;;
28857esac
28858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28859 (eval "$ac_try") 2>&5
28860 ac_status=$?
28861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028863 ac_header_compiler=yes
28864else
28865 echo "$as_me: failed program was:" >&5
28866sed 's/^/| /' conftest.$ac_ext >&5
28867
Reid Spencera773bd52006-08-04 18:18:08 +000028868 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028869fi
Reid Spencera773bd52006-08-04 18:18:08 +000028870
28871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28872{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28873echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028874
28875# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028876{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28877echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028878cat >conftest.$ac_ext <<_ACEOF
28879/* confdefs.h. */
28880_ACEOF
28881cat confdefs.h >>conftest.$ac_ext
28882cat >>conftest.$ac_ext <<_ACEOF
28883/* end confdefs.h. */
28884#include <$ac_header>
28885_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028886if { (ac_try="$ac_cpp conftest.$ac_ext"
28887case "(($ac_try" in
28888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28889 *) ac_try_echo=$ac_try;;
28890esac
28891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028893 ac_status=$?
28894 grep -v '^ *+' conftest.er1 >conftest.err
28895 rm -f conftest.er1
28896 cat conftest.err >&5
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028898 (exit $ac_status); } >/dev/null; then
28899 if test -s conftest.err; then
28900 ac_cpp_err=$ac_c_preproc_warn_flag
28901 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28902 else
28903 ac_cpp_err=
28904 fi
28905else
28906 ac_cpp_err=yes
28907fi
28908if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028909 ac_header_preproc=yes
28910else
28911 echo "$as_me: failed program was:" >&5
28912sed 's/^/| /' conftest.$ac_ext >&5
28913
28914 ac_header_preproc=no
28915fi
Reid Spencera773bd52006-08-04 18:18:08 +000028916
Reid Spencer59473af2004-12-25 07:31:29 +000028917rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028918{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28919echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028920
28921# So? What about this header?
28922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28923 yes:no: )
28924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28925echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28927echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28928 ac_header_preproc=yes
28929 ;;
28930 no:yes:* )
28931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28934echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28936echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28938echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28942echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028943 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028944## ----------------------------------- ##
28945## Report this to llvmbugs@cs.uiuc.edu ##
28946## ----------------------------------- ##
28947_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028948 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028949 ;;
28950esac
Reid Spencera773bd52006-08-04 18:18:08 +000028951{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028954 echo $ECHO_N "(cached) $ECHO_C" >&6
28955else
28956 eval "$as_ac_Header=\$ac_header_preproc"
28957fi
Reid Spencera773bd52006-08-04 18:18:08 +000028958ac_res=`eval echo '${'$as_ac_Header'}'`
28959 { echo "$as_me:$LINENO: result: $ac_res" >&5
28960echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028961
28962fi
28963if test `eval echo '${'$as_ac_Header'}'` = yes; then
28964 cat >>confdefs.h <<_ACEOF
28965#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28966_ACEOF
28967
28968fi
28969
28970done
28971
28972
Reid Spencerbe3e4192007-08-17 05:45:26 +000028973for ac_header in windows.h
28974do
28975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28980 echo $ECHO_N "(cached) $ECHO_C" >&6
28981fi
28982ac_res=`eval echo '${'$as_ac_Header'}'`
28983 { echo "$as_me:$LINENO: result: $ac_res" >&5
28984echo "${ECHO_T}$ac_res" >&6; }
28985else
28986 # Is the header compilable?
28987{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28988echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28989cat >conftest.$ac_ext <<_ACEOF
28990/* confdefs.h. */
28991_ACEOF
28992cat confdefs.h >>conftest.$ac_ext
28993cat >>conftest.$ac_ext <<_ACEOF
28994/* end confdefs.h. */
28995$ac_includes_default
28996#include <$ac_header>
28997_ACEOF
28998rm -f conftest.$ac_objext
28999if { (ac_try="$ac_compile"
29000case "(($ac_try" in
29001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002 *) ac_try_echo=$ac_try;;
29003esac
29004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005 (eval "$ac_compile") 2>conftest.er1
29006 ac_status=$?
29007 grep -v '^ *+' conftest.er1 >conftest.err
29008 rm -f conftest.er1
29009 cat conftest.err >&5
29010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029011 (exit $ac_status); } &&
29012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29013 { (case "(($ac_try" in
29014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29015 *) ac_try_echo=$ac_try;;
29016esac
29017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29018 (eval "$ac_try") 2>&5
29019 ac_status=$?
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29021 (exit $ac_status); }; } &&
29022 { ac_try='test -s conftest.$ac_objext'
29023 { (case "(($ac_try" in
29024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29025 *) ac_try_echo=$ac_try;;
29026esac
29027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29028 (eval "$ac_try") 2>&5
29029 ac_status=$?
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029032 ac_header_compiler=yes
29033else
29034 echo "$as_me: failed program was:" >&5
29035sed 's/^/| /' conftest.$ac_ext >&5
29036
29037 ac_header_compiler=no
29038fi
29039
29040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29041{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29042echo "${ECHO_T}$ac_header_compiler" >&6; }
29043
29044# Is the header present?
29045{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29047cat >conftest.$ac_ext <<_ACEOF
29048/* confdefs.h. */
29049_ACEOF
29050cat confdefs.h >>conftest.$ac_ext
29051cat >>conftest.$ac_ext <<_ACEOF
29052/* end confdefs.h. */
29053#include <$ac_header>
29054_ACEOF
29055if { (ac_try="$ac_cpp conftest.$ac_ext"
29056case "(($ac_try" in
29057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29058 *) ac_try_echo=$ac_try;;
29059esac
29060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29062 ac_status=$?
29063 grep -v '^ *+' conftest.er1 >conftest.err
29064 rm -f conftest.er1
29065 cat conftest.err >&5
29066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029067 (exit $ac_status); } >/dev/null; then
29068 if test -s conftest.err; then
29069 ac_cpp_err=$ac_c_preproc_warn_flag
29070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29071 else
29072 ac_cpp_err=
29073 fi
29074else
29075 ac_cpp_err=yes
29076fi
29077if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029078 ac_header_preproc=yes
29079else
29080 echo "$as_me: failed program was:" >&5
29081sed 's/^/| /' conftest.$ac_ext >&5
29082
29083 ac_header_preproc=no
29084fi
29085
29086rm -f conftest.err conftest.$ac_ext
29087{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29088echo "${ECHO_T}$ac_header_preproc" >&6; }
29089
29090# So? What about this header?
29091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29092 yes:no: )
29093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29094echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29096echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29097 ac_header_preproc=yes
29098 ;;
29099 no:yes:* )
29100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29101echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29103echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29105echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29107echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29109echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29111echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29112 ( cat <<\_ASBOX
29113## ----------------------------------- ##
29114## Report this to llvmbugs@cs.uiuc.edu ##
29115## ----------------------------------- ##
29116_ASBOX
29117 ) | sed "s/^/$as_me: WARNING: /" >&2
29118 ;;
29119esac
29120{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29123 echo $ECHO_N "(cached) $ECHO_C" >&6
29124else
29125 eval "$as_ac_Header=\$ac_header_preproc"
29126fi
29127ac_res=`eval echo '${'$as_ac_Header'}'`
29128 { echo "$as_me:$LINENO: result: $ac_res" >&5
29129echo "${ECHO_T}$ac_res" >&6; }
29130
29131fi
29132if test `eval echo '${'$as_ac_Header'}'` = yes; then
29133 cat >>confdefs.h <<_ACEOF
29134#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29135_ACEOF
29136
29137fi
29138
29139done
Reid Spencer59473af2004-12-25 07:31:29 +000029140
29141
29142
29143
Reid Spencerbe3e4192007-08-17 05:45:26 +000029144
29145for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029146do
29147as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29150echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029152 echo $ECHO_N "(cached) $ECHO_C" >&6
29153fi
Reid Spencera773bd52006-08-04 18:18:08 +000029154ac_res=`eval echo '${'$as_ac_Header'}'`
29155 { echo "$as_me:$LINENO: result: $ac_res" >&5
29156echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029157else
29158 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029159{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29160echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029161cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029162/* confdefs.h. */
29163_ACEOF
29164cat confdefs.h >>conftest.$ac_ext
29165cat >>conftest.$ac_ext <<_ACEOF
29166/* end confdefs.h. */
29167$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029168#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029169_ACEOF
29170rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029171if { (ac_try="$ac_compile"
29172case "(($ac_try" in
29173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29174 *) ac_try_echo=$ac_try;;
29175esac
29176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29177 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029178 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029179 grep -v '^ *+' conftest.er1 >conftest.err
29180 rm -f conftest.er1
29181 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029183 (exit $ac_status); } &&
29184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29185 { (case "(($ac_try" in
29186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29187 *) ac_try_echo=$ac_try;;
29188esac
29189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29190 (eval "$ac_try") 2>&5
29191 ac_status=$?
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); }; } &&
29194 { ac_try='test -s conftest.$ac_objext'
29195 { (case "(($ac_try" in
29196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29197 *) ac_try_echo=$ac_try;;
29198esac
29199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29200 (eval "$ac_try") 2>&5
29201 ac_status=$?
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029204 ac_header_compiler=yes
29205else
29206 echo "$as_me: failed program was:" >&5
29207sed 's/^/| /' conftest.$ac_ext >&5
29208
Reid Spencera773bd52006-08-04 18:18:08 +000029209 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029210fi
Reid Spencera773bd52006-08-04 18:18:08 +000029211
29212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29213{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29214echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029215
29216# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029217{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29218echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029219cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029220/* confdefs.h. */
29221_ACEOF
29222cat confdefs.h >>conftest.$ac_ext
29223cat >>conftest.$ac_ext <<_ACEOF
29224/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029225#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029226_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029227if { (ac_try="$ac_cpp conftest.$ac_ext"
29228case "(($ac_try" in
29229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230 *) ac_try_echo=$ac_try;;
29231esac
29232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029234 ac_status=$?
29235 grep -v '^ *+' conftest.er1 >conftest.err
29236 rm -f conftest.er1
29237 cat conftest.err >&5
29238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029239 (exit $ac_status); } >/dev/null; then
29240 if test -s conftest.err; then
29241 ac_cpp_err=$ac_c_preproc_warn_flag
29242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29243 else
29244 ac_cpp_err=
29245 fi
29246else
29247 ac_cpp_err=yes
29248fi
29249if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029250 ac_header_preproc=yes
29251else
29252 echo "$as_me: failed program was:" >&5
29253sed 's/^/| /' conftest.$ac_ext >&5
29254
29255 ac_header_preproc=no
29256fi
Reid Spencera773bd52006-08-04 18:18:08 +000029257
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029258rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029259{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29260echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029261
29262# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029263case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29264 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029265 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29266echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29268echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029269 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029270 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029271 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029272 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29273echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29274 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29275echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29276 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29277echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29278 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29279echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29281echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29282 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29283echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029284 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029285## ----------------------------------- ##
29286## Report this to llvmbugs@cs.uiuc.edu ##
29287## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029288_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029289 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029290 ;;
29291esac
Reid Spencera773bd52006-08-04 18:18:08 +000029292{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29294if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029295 echo $ECHO_N "(cached) $ECHO_C" >&6
29296else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029297 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029298fi
Reid Spencera773bd52006-08-04 18:18:08 +000029299ac_res=`eval echo '${'$as_ac_Header'}'`
29300 { echo "$as_me:$LINENO: result: $ac_res" >&5
29301echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029302
29303fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029304if test `eval echo '${'$as_ac_Header'}'` = yes; then
29305 cat >>confdefs.h <<_ACEOF
29306#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029307_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029308
29309fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029310
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029311done
29312
John Criswell7ed43ad2004-07-19 16:12:29 +000029313
Reid Spencercdb08a32006-06-05 16:11:07 +000029314
Reid Spencera6d990a2006-09-14 06:17:21 +000029315
29316for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029317do
29318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029319if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29320 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29322if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029323 echo $ECHO_N "(cached) $ECHO_C" >&6
29324fi
Reid Spencera773bd52006-08-04 18:18:08 +000029325ac_res=`eval echo '${'$as_ac_Header'}'`
29326 { echo "$as_me:$LINENO: result: $ac_res" >&5
29327echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029328else
29329 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029330{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29331echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029332cat >conftest.$ac_ext <<_ACEOF
29333/* confdefs.h. */
29334_ACEOF
29335cat confdefs.h >>conftest.$ac_ext
29336cat >>conftest.$ac_ext <<_ACEOF
29337/* end confdefs.h. */
29338$ac_includes_default
29339#include <$ac_header>
29340_ACEOF
29341rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029342if { (ac_try="$ac_compile"
29343case "(($ac_try" in
29344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345 *) ac_try_echo=$ac_try;;
29346esac
29347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029349 ac_status=$?
29350 grep -v '^ *+' conftest.er1 >conftest.err
29351 rm -f conftest.er1
29352 cat conftest.err >&5
29353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029354 (exit $ac_status); } &&
29355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29356 { (case "(($ac_try" in
29357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29358 *) ac_try_echo=$ac_try;;
29359esac
29360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29361 (eval "$ac_try") 2>&5
29362 ac_status=$?
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); }; } &&
29365 { ac_try='test -s conftest.$ac_objext'
29366 { (case "(($ac_try" in
29367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29368 *) ac_try_echo=$ac_try;;
29369esac
29370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29371 (eval "$ac_try") 2>&5
29372 ac_status=$?
29373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029375 ac_header_compiler=yes
29376else
29377 echo "$as_me: failed program was:" >&5
29378sed 's/^/| /' conftest.$ac_ext >&5
29379
Reid Spencera773bd52006-08-04 18:18:08 +000029380 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029381fi
Reid Spencera773bd52006-08-04 18:18:08 +000029382
29383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29384{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29385echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029386
29387# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029388{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029390cat >conftest.$ac_ext <<_ACEOF
29391/* confdefs.h. */
29392_ACEOF
29393cat confdefs.h >>conftest.$ac_ext
29394cat >>conftest.$ac_ext <<_ACEOF
29395/* end confdefs.h. */
29396#include <$ac_header>
29397_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029398if { (ac_try="$ac_cpp conftest.$ac_ext"
29399case "(($ac_try" in
29400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29401 *) ac_try_echo=$ac_try;;
29402esac
29403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029405 ac_status=$?
29406 grep -v '^ *+' conftest.er1 >conftest.err
29407 rm -f conftest.er1
29408 cat conftest.err >&5
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029410 (exit $ac_status); } >/dev/null; then
29411 if test -s conftest.err; then
29412 ac_cpp_err=$ac_c_preproc_warn_flag
29413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29414 else
29415 ac_cpp_err=
29416 fi
29417else
29418 ac_cpp_err=yes
29419fi
29420if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029421 ac_header_preproc=yes
29422else
29423 echo "$as_me: failed program was:" >&5
29424sed 's/^/| /' conftest.$ac_ext >&5
29425
29426 ac_header_preproc=no
29427fi
Reid Spencera773bd52006-08-04 18:18:08 +000029428
Chris Lattner0b142592005-11-14 06:57:34 +000029429rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029430{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29431echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029432
29433# So? What about this header?
29434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29435 yes:no: )
29436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29440 ac_header_preproc=yes
29441 ;;
29442 no:yes:* )
29443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29446echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29450echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029455 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029456## ----------------------------------- ##
29457## Report this to llvmbugs@cs.uiuc.edu ##
29458## ----------------------------------- ##
29459_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029460 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029461 ;;
29462esac
Reid Spencera773bd52006-08-04 18:18:08 +000029463{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029466 echo $ECHO_N "(cached) $ECHO_C" >&6
29467else
29468 eval "$as_ac_Header=\$ac_header_preproc"
29469fi
Reid Spencera773bd52006-08-04 18:18:08 +000029470ac_res=`eval echo '${'$as_ac_Header'}'`
29471 { echo "$as_me:$LINENO: result: $ac_res" >&5
29472echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029473
29474fi
29475if test `eval echo '${'$as_ac_Header'}'` = yes; then
29476 cat >>confdefs.h <<_ACEOF
29477#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29478_ACEOF
29479
29480fi
29481
29482done
29483
Reid Spencer0a262ba2005-08-24 10:07:20 +000029484if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029485
29486for ac_header in pthread.h
29487do
29488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29489if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029493 echo $ECHO_N "(cached) $ECHO_C" >&6
29494fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029495ac_res=`eval echo '${'$as_ac_Header'}'`
29496 { echo "$as_me:$LINENO: result: $ac_res" >&5
29497echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029498else
29499 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029500{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29501echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029502cat >conftest.$ac_ext <<_ACEOF
29503/* confdefs.h. */
29504_ACEOF
29505cat confdefs.h >>conftest.$ac_ext
29506cat >>conftest.$ac_ext <<_ACEOF
29507/* end confdefs.h. */
29508$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029509#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029510_ACEOF
29511rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029512if { (ac_try="$ac_compile"
29513case "(($ac_try" in
29514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29515 *) ac_try_echo=$ac_try;;
29516esac
29517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29518 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029519 ac_status=$?
29520 grep -v '^ *+' conftest.er1 >conftest.err
29521 rm -f conftest.er1
29522 cat conftest.err >&5
29523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029524 (exit $ac_status); } &&
29525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29526 { (case "(($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_try") 2>&5
29532 ac_status=$?
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); }; } &&
29535 { ac_try='test -s conftest.$ac_objext'
29536 { (case "(($ac_try" in
29537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29538 *) ac_try_echo=$ac_try;;
29539esac
29540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29541 (eval "$ac_try") 2>&5
29542 ac_status=$?
29543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29544 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029545 ac_header_compiler=yes
29546else
29547 echo "$as_me: failed program was:" >&5
29548sed 's/^/| /' conftest.$ac_ext >&5
29549
Reid Spencera773bd52006-08-04 18:18:08 +000029550 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029551fi
Reid Spencera773bd52006-08-04 18:18:08 +000029552
29553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29554{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29555echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029556
29557# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029558{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29559echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029560cat >conftest.$ac_ext <<_ACEOF
29561/* confdefs.h. */
29562_ACEOF
29563cat confdefs.h >>conftest.$ac_ext
29564cat >>conftest.$ac_ext <<_ACEOF
29565/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029566#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029567_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029568if { (ac_try="$ac_cpp conftest.$ac_ext"
29569case "(($ac_try" in
29570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571 *) ac_try_echo=$ac_try;;
29572esac
29573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029575 ac_status=$?
29576 grep -v '^ *+' conftest.er1 >conftest.err
29577 rm -f conftest.er1
29578 cat conftest.err >&5
29579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029580 (exit $ac_status); } >/dev/null; then
29581 if test -s conftest.err; then
29582 ac_cpp_err=$ac_c_preproc_warn_flag
29583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29584 else
29585 ac_cpp_err=
29586 fi
29587else
29588 ac_cpp_err=yes
29589fi
29590if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029591 ac_header_preproc=yes
29592else
29593 echo "$as_me: failed program was:" >&5
29594sed 's/^/| /' conftest.$ac_ext >&5
29595
29596 ac_header_preproc=no
29597fi
Reid Spencera773bd52006-08-04 18:18:08 +000029598
Reid Spencer0a262ba2005-08-24 10:07:20 +000029599rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029600{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29601echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029602
29603# So? What about this header?
29604case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29605 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029606 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29607echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29609echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029610 ac_header_preproc=yes
29611 ;;
29612 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029613 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29614echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29615 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29616echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29617 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29618echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29619 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29620echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29621 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29622echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29623 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29624echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029625 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029626## ----------------------------------- ##
29627## Report this to llvmbugs@cs.uiuc.edu ##
29628## ----------------------------------- ##
29629_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029630 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029631 ;;
29632esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029633{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029636 echo $ECHO_N "(cached) $ECHO_C" >&6
29637else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029638 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029639fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029640ac_res=`eval echo '${'$as_ac_Header'}'`
29641 { echo "$as_me:$LINENO: result: $ac_res" >&5
29642echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029643
29644fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029645if test `eval echo '${'$as_ac_Header'}'` = yes; then
29646 cat >>confdefs.h <<_ACEOF
29647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29648_ACEOF
29649 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029650
29651else
29652 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029653
29654fi
29655
Reid Spencerbe3e4192007-08-17 05:45:26 +000029656done
Reid Spencer1000b732006-12-01 00:37:14 +000029657
29658else
29659 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029660
29661fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029662
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029663if test -n "$have_libffi" ; then
29664
29665
29666for ac_header in ffi.h ffi/ffi.h
29667do
29668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29673 echo $ECHO_N "(cached) $ECHO_C" >&6
29674fi
29675ac_res=`eval echo '${'$as_ac_Header'}'`
29676 { echo "$as_me:$LINENO: result: $ac_res" >&5
29677echo "${ECHO_T}$ac_res" >&6; }
29678else
29679 # Is the header compilable?
29680{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29681echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29682cat >conftest.$ac_ext <<_ACEOF
29683/* confdefs.h. */
29684_ACEOF
29685cat confdefs.h >>conftest.$ac_ext
29686cat >>conftest.$ac_ext <<_ACEOF
29687/* end confdefs.h. */
29688$ac_includes_default
29689#include <$ac_header>
29690_ACEOF
29691rm -f conftest.$ac_objext
29692if { (ac_try="$ac_compile"
29693case "(($ac_try" in
29694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29695 *) ac_try_echo=$ac_try;;
29696esac
29697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29698 (eval "$ac_compile") 2>conftest.er1
29699 ac_status=$?
29700 grep -v '^ *+' conftest.er1 >conftest.err
29701 rm -f conftest.er1
29702 cat conftest.err >&5
29703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704 (exit $ac_status); } &&
29705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29706 { (case "(($ac_try" in
29707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29708 *) ac_try_echo=$ac_try;;
29709esac
29710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29711 (eval "$ac_try") 2>&5
29712 ac_status=$?
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); }; } &&
29715 { ac_try='test -s conftest.$ac_objext'
29716 { (case "(($ac_try" in
29717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718 *) ac_try_echo=$ac_try;;
29719esac
29720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721 (eval "$ac_try") 2>&5
29722 ac_status=$?
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; }; then
29725 ac_header_compiler=yes
29726else
29727 echo "$as_me: failed program was:" >&5
29728sed 's/^/| /' conftest.$ac_ext >&5
29729
29730 ac_header_compiler=no
29731fi
29732
29733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29734{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29735echo "${ECHO_T}$ac_header_compiler" >&6; }
29736
29737# Is the header present?
29738{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29740cat >conftest.$ac_ext <<_ACEOF
29741/* confdefs.h. */
29742_ACEOF
29743cat confdefs.h >>conftest.$ac_ext
29744cat >>conftest.$ac_ext <<_ACEOF
29745/* end confdefs.h. */
29746#include <$ac_header>
29747_ACEOF
29748if { (ac_try="$ac_cpp conftest.$ac_ext"
29749case "(($ac_try" in
29750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29751 *) ac_try_echo=$ac_try;;
29752esac
29753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29755 ac_status=$?
29756 grep -v '^ *+' conftest.er1 >conftest.err
29757 rm -f conftest.er1
29758 cat conftest.err >&5
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); } >/dev/null; then
29761 if test -s conftest.err; then
29762 ac_cpp_err=$ac_c_preproc_warn_flag
29763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29764 else
29765 ac_cpp_err=
29766 fi
29767else
29768 ac_cpp_err=yes
29769fi
29770if test -z "$ac_cpp_err"; then
29771 ac_header_preproc=yes
29772else
29773 echo "$as_me: failed program was:" >&5
29774sed 's/^/| /' conftest.$ac_ext >&5
29775
29776 ac_header_preproc=no
29777fi
29778
29779rm -f conftest.err conftest.$ac_ext
29780{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29781echo "${ECHO_T}$ac_header_preproc" >&6; }
29782
29783# So? What about this header?
29784case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29785 yes:no: )
29786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29787echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29789echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29790 ac_header_preproc=yes
29791 ;;
29792 no:yes:* )
29793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29796echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29798echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29800echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29802echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29804echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29805 ( cat <<\_ASBOX
29806## ----------------------------------- ##
29807## Report this to llvmbugs@cs.uiuc.edu ##
29808## ----------------------------------- ##
29809_ASBOX
29810 ) | sed "s/^/$as_me: WARNING: /" >&2
29811 ;;
29812esac
29813{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29815if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29816 echo $ECHO_N "(cached) $ECHO_C" >&6
29817else
29818 eval "$as_ac_Header=\$ac_header_preproc"
29819fi
29820ac_res=`eval echo '${'$as_ac_Header'}'`
29821 { echo "$as_me:$LINENO: result: $ac_res" >&5
29822echo "${ECHO_T}$ac_res" >&6; }
29823
29824fi
29825if test `eval echo '${'$as_ac_Header'}'` = yes; then
29826 cat >>confdefs.h <<_ACEOF
29827#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29828_ACEOF
29829 HAVE_FFI=1
29830
29831fi
29832
29833done
29834
29835fi
29836
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029837
Reid Spencer8085cff2005-01-16 02:58:39 +000029838
Reid Spencerb2ed05262006-11-03 18:04:08 +000029839 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29840echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29841if test "${ac_cv_huge_val_sanity+set}" = set; then
29842 echo $ECHO_N "(cached) $ECHO_C" >&6
29843else
29844
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029845 ac_ext=cpp
29846ac_cpp='$CXXCPP $CPPFLAGS'
29847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029850
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029851 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029852 if test "$cross_compiling" = yes; then
29853 ac_cv_huge_val_sanity=yes
29854else
29855 cat >conftest.$ac_ext <<_ACEOF
29856/* confdefs.h. */
29857_ACEOF
29858cat confdefs.h >>conftest.$ac_ext
29859cat >>conftest.$ac_ext <<_ACEOF
29860/* end confdefs.h. */
29861#include <math.h>
29862int
29863main ()
29864{
29865double x = HUGE_VAL; return x != x;
29866 ;
29867 return 0;
29868}
29869_ACEOF
29870rm -f conftest$ac_exeext
29871if { (ac_try="$ac_link"
29872case "(($ac_try" in
29873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874 *) ac_try_echo=$ac_try;;
29875esac
29876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877 (eval "$ac_link") 2>&5
29878 ac_status=$?
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29881 { (case "(($ac_try" in
29882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29883 *) ac_try_echo=$ac_try;;
29884esac
29885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29886 (eval "$ac_try") 2>&5
29887 ac_status=$?
29888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 (exit $ac_status); }; }; then
29890 ac_cv_huge_val_sanity=yes
29891else
29892 echo "$as_me: program exited with status $ac_status" >&5
29893echo "$as_me: failed program was:" >&5
29894sed 's/^/| /' conftest.$ac_ext >&5
29895
29896( exit $ac_status )
29897ac_cv_huge_val_sanity=no
29898fi
29899rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29900fi
29901
29902
29903 ac_ext=c
29904ac_cpp='$CPP $CPPFLAGS'
29905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29907ac_compiler_gnu=$ac_cv_c_compiler_gnu
29908
29909
29910fi
29911{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29912echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29913 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29914
29915
Reid Spencera773bd52006-08-04 18:18:08 +000029916{ echo "$as_me:$LINENO: checking for pid_t" >&5
29917echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029918if test "${ac_cv_type_pid_t+set}" = set; then
29919 echo $ECHO_N "(cached) $ECHO_C" >&6
29920else
29921 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029922/* confdefs.h. */
29923_ACEOF
29924cat confdefs.h >>conftest.$ac_ext
29925cat >>conftest.$ac_ext <<_ACEOF
29926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029927$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029928typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029929int
29930main ()
29931{
Reid Spencera773bd52006-08-04 18:18:08 +000029932if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029933 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029934if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029935 return 0;
29936 ;
29937 return 0;
29938}
29939_ACEOF
29940rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029941if { (ac_try="$ac_compile"
29942case "(($ac_try" in
29943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29944 *) ac_try_echo=$ac_try;;
29945esac
29946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29947 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029948 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029949 grep -v '^ *+' conftest.er1 >conftest.err
29950 rm -f conftest.er1
29951 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029953 (exit $ac_status); } &&
29954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29955 { (case "(($ac_try" in
29956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29957 *) ac_try_echo=$ac_try;;
29958esac
29959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29960 (eval "$ac_try") 2>&5
29961 ac_status=$?
29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); }; } &&
29964 { ac_try='test -s conftest.$ac_objext'
29965 { (case "(($ac_try" in
29966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29967 *) ac_try_echo=$ac_try;;
29968esac
29969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29970 (eval "$ac_try") 2>&5
29971 ac_status=$?
29972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29973 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029974 ac_cv_type_pid_t=yes
29975else
29976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029977sed 's/^/| /' conftest.$ac_ext >&5
29978
Reid Spencera773bd52006-08-04 18:18:08 +000029979 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029980fi
Reid Spencera773bd52006-08-04 18:18:08 +000029981
29982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029983fi
Reid Spencera773bd52006-08-04 18:18:08 +000029984{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29985echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029986if test $ac_cv_type_pid_t = yes; then
29987 :
29988else
29989
29990cat >>confdefs.h <<_ACEOF
29991#define pid_t int
29992_ACEOF
29993
29994fi
29995
Reid Spencera773bd52006-08-04 18:18:08 +000029996{ echo "$as_me:$LINENO: checking for size_t" >&5
29997echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029998if test "${ac_cv_type_size_t+set}" = set; then
29999 echo $ECHO_N "(cached) $ECHO_C" >&6
30000else
30001 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030002/* confdefs.h. */
30003_ACEOF
30004cat confdefs.h >>conftest.$ac_ext
30005cat >>conftest.$ac_ext <<_ACEOF
30006/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030007$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030008typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030009int
30010main ()
30011{
Reid Spencera773bd52006-08-04 18:18:08 +000030012if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030013 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030014if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030015 return 0;
30016 ;
30017 return 0;
30018}
30019_ACEOF
30020rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030021if { (ac_try="$ac_compile"
30022case "(($ac_try" in
30023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30024 *) ac_try_echo=$ac_try;;
30025esac
30026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30027 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030028 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030029 grep -v '^ *+' conftest.er1 >conftest.err
30030 rm -f conftest.er1
30031 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030033 (exit $ac_status); } &&
30034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30035 { (case "(($ac_try" in
30036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037 *) ac_try_echo=$ac_try;;
30038esac
30039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30040 (eval "$ac_try") 2>&5
30041 ac_status=$?
30042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043 (exit $ac_status); }; } &&
30044 { ac_try='test -s conftest.$ac_objext'
30045 { (case "(($ac_try" in
30046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30047 *) ac_try_echo=$ac_try;;
30048esac
30049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30050 (eval "$ac_try") 2>&5
30051 ac_status=$?
30052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030054 ac_cv_type_size_t=yes
30055else
30056 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030057sed 's/^/| /' conftest.$ac_ext >&5
30058
Reid Spencera773bd52006-08-04 18:18:08 +000030059 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030060fi
Reid Spencera773bd52006-08-04 18:18:08 +000030061
30062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030063fi
Reid Spencera773bd52006-08-04 18:18:08 +000030064{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30065echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030066if test $ac_cv_type_size_t = yes; then
30067 :
30068else
30069
30070cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030071#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030072_ACEOF
30073
30074fi
30075
Reid Spencera773bd52006-08-04 18:18:08 +000030076{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30077echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030078if test "${ac_cv_type_signal+set}" = set; then
30079 echo $ECHO_N "(cached) $ECHO_C" >&6
30080else
30081 cat >conftest.$ac_ext <<_ACEOF
30082/* confdefs.h. */
30083_ACEOF
30084cat confdefs.h >>conftest.$ac_ext
30085cat >>conftest.$ac_ext <<_ACEOF
30086/* end confdefs.h. */
30087#include <sys/types.h>
30088#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030089
30090int
30091main ()
30092{
Reid Spencera773bd52006-08-04 18:18:08 +000030093return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030094 ;
30095 return 0;
30096}
30097_ACEOF
30098rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030099if { (ac_try="$ac_compile"
30100case "(($ac_try" in
30101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30102 *) ac_try_echo=$ac_try;;
30103esac
30104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30105 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030106 ac_status=$?
30107 grep -v '^ *+' conftest.er1 >conftest.err
30108 rm -f conftest.er1
30109 cat conftest.err >&5
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030111 (exit $ac_status); } &&
30112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30113 { (case "(($ac_try" in
30114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30115 *) ac_try_echo=$ac_try;;
30116esac
30117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30118 (eval "$ac_try") 2>&5
30119 ac_status=$?
30120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30121 (exit $ac_status); }; } &&
30122 { ac_try='test -s conftest.$ac_objext'
30123 { (case "(($ac_try" in
30124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30125 *) ac_try_echo=$ac_try;;
30126esac
30127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30128 (eval "$ac_try") 2>&5
30129 ac_status=$?
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030132 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030133else
30134 echo "$as_me: failed program was:" >&5
30135sed 's/^/| /' conftest.$ac_ext >&5
30136
Reid Spencera773bd52006-08-04 18:18:08 +000030137 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030138fi
Reid Spencera773bd52006-08-04 18:18:08 +000030139
30140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030141fi
Reid Spencera773bd52006-08-04 18:18:08 +000030142{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30143echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030144
30145cat >>confdefs.h <<_ACEOF
30146#define RETSIGTYPE $ac_cv_type_signal
30147_ACEOF
30148
30149
Reid Spencera773bd52006-08-04 18:18:08 +000030150{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30151echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030152if test "${ac_cv_struct_tm+set}" = set; then
30153 echo $ECHO_N "(cached) $ECHO_C" >&6
30154else
30155 cat >conftest.$ac_ext <<_ACEOF
30156/* confdefs.h. */
30157_ACEOF
30158cat confdefs.h >>conftest.$ac_ext
30159cat >>conftest.$ac_ext <<_ACEOF
30160/* end confdefs.h. */
30161#include <sys/types.h>
30162#include <time.h>
30163
30164int
30165main ()
30166{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030167struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030168 ;
30169 return 0;
30170}
30171_ACEOF
30172rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030173if { (ac_try="$ac_compile"
30174case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30177esac
30178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030180 ac_status=$?
30181 grep -v '^ *+' conftest.er1 >conftest.err
30182 rm -f conftest.er1
30183 cat conftest.err >&5
30184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030185 (exit $ac_status); } &&
30186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30187 { (case "(($ac_try" in
30188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189 *) ac_try_echo=$ac_try;;
30190esac
30191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192 (eval "$ac_try") 2>&5
30193 ac_status=$?
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); }; } &&
30196 { ac_try='test -s conftest.$ac_objext'
30197 { (case "(($ac_try" in
30198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199 *) ac_try_echo=$ac_try;;
30200esac
30201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202 (eval "$ac_try") 2>&5
30203 ac_status=$?
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030206 ac_cv_struct_tm=time.h
30207else
30208 echo "$as_me: failed program was:" >&5
30209sed 's/^/| /' conftest.$ac_ext >&5
30210
Reid Spencera773bd52006-08-04 18:18:08 +000030211 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030212fi
Reid Spencera773bd52006-08-04 18:18:08 +000030213
30214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030215fi
Reid Spencera773bd52006-08-04 18:18:08 +000030216{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30217echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030218if test $ac_cv_struct_tm = sys/time.h; then
30219
30220cat >>confdefs.h <<\_ACEOF
30221#define TM_IN_SYS_TIME 1
30222_ACEOF
30223
30224fi
30225
Reid Spencera773bd52006-08-04 18:18:08 +000030226{ echo "$as_me:$LINENO: checking for int64_t" >&5
30227echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030228if test "${ac_cv_type_int64_t+set}" = set; then
30229 echo $ECHO_N "(cached) $ECHO_C" >&6
30230else
30231 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030232/* confdefs.h. */
30233_ACEOF
30234cat confdefs.h >>conftest.$ac_ext
30235cat >>conftest.$ac_ext <<_ACEOF
30236/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030237$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030238typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030239int
30240main ()
30241{
Reid Spencera773bd52006-08-04 18:18:08 +000030242if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030243 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030244if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030245 return 0;
30246 ;
30247 return 0;
30248}
30249_ACEOF
30250rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030251if { (ac_try="$ac_compile"
30252case "(($ac_try" in
30253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30254 *) ac_try_echo=$ac_try;;
30255esac
30256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30257 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030258 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030259 grep -v '^ *+' conftest.er1 >conftest.err
30260 rm -f conftest.er1
30261 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030263 (exit $ac_status); } &&
30264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30265 { (case "(($ac_try" in
30266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267 *) ac_try_echo=$ac_try;;
30268esac
30269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270 (eval "$ac_try") 2>&5
30271 ac_status=$?
30272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30273 (exit $ac_status); }; } &&
30274 { ac_try='test -s conftest.$ac_objext'
30275 { (case "(($ac_try" in
30276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30277 *) ac_try_echo=$ac_try;;
30278esac
30279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30280 (eval "$ac_try") 2>&5
30281 ac_status=$?
30282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030284 ac_cv_type_int64_t=yes
30285else
30286 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030287sed 's/^/| /' conftest.$ac_ext >&5
30288
Reid Spencera773bd52006-08-04 18:18:08 +000030289 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030290fi
Reid Spencera773bd52006-08-04 18:18:08 +000030291
30292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030293fi
Reid Spencera773bd52006-08-04 18:18:08 +000030294{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30295echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030296if test $ac_cv_type_int64_t = yes; then
30297
30298cat >>confdefs.h <<_ACEOF
30299#define HAVE_INT64_T 1
30300_ACEOF
30301
30302
30303else
30304 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30305echo "$as_me: error: Type int64_t required but not found" >&2;}
30306 { (exit 1); exit 1; }; }
30307fi
30308
Reid Spencera773bd52006-08-04 18:18:08 +000030309{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30310echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030311if test "${ac_cv_type_uint64_t+set}" = set; then
30312 echo $ECHO_N "(cached) $ECHO_C" >&6
30313else
30314 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030315/* confdefs.h. */
30316_ACEOF
30317cat confdefs.h >>conftest.$ac_ext
30318cat >>conftest.$ac_ext <<_ACEOF
30319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030320$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030321typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030322int
30323main ()
30324{
Reid Spencera773bd52006-08-04 18:18:08 +000030325if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030326 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030327if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030328 return 0;
30329 ;
30330 return 0;
30331}
30332_ACEOF
30333rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030334if { (ac_try="$ac_compile"
30335case "(($ac_try" in
30336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30337 *) ac_try_echo=$ac_try;;
30338esac
30339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30340 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030341 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030342 grep -v '^ *+' conftest.er1 >conftest.err
30343 rm -f conftest.er1
30344 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030346 (exit $ac_status); } &&
30347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30348 { (case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30351esac
30352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_try") 2>&5
30354 ac_status=$?
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); }; } &&
30357 { ac_try='test -s conftest.$ac_objext'
30358 { (case "(($ac_try" in
30359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360 *) ac_try_echo=$ac_try;;
30361esac
30362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30363 (eval "$ac_try") 2>&5
30364 ac_status=$?
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030367 ac_cv_type_uint64_t=yes
30368else
30369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030370sed 's/^/| /' conftest.$ac_ext >&5
30371
Reid Spencera773bd52006-08-04 18:18:08 +000030372 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030373fi
Reid Spencera773bd52006-08-04 18:18:08 +000030374
30375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030376fi
Reid Spencera773bd52006-08-04 18:18:08 +000030377{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30378echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030379if test $ac_cv_type_uint64_t = yes; then
30380
30381cat >>confdefs.h <<_ACEOF
30382#define HAVE_UINT64_T 1
30383_ACEOF
30384
30385
30386else
Reid Spencera773bd52006-08-04 18:18:08 +000030387 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30388echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030389if test "${ac_cv_type_u_int64_t+set}" = set; then
30390 echo $ECHO_N "(cached) $ECHO_C" >&6
30391else
30392 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030393/* confdefs.h. */
30394_ACEOF
30395cat confdefs.h >>conftest.$ac_ext
30396cat >>conftest.$ac_ext <<_ACEOF
30397/* end confdefs.h. */
30398$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030399typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030400int
30401main ()
30402{
Reid Spencera773bd52006-08-04 18:18:08 +000030403if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030404 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030405if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030406 return 0;
30407 ;
30408 return 0;
30409}
30410_ACEOF
30411rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030412if { (ac_try="$ac_compile"
30413case "(($ac_try" in
30414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30415 *) ac_try_echo=$ac_try;;
30416esac
30417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30418 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030419 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030420 grep -v '^ *+' conftest.er1 >conftest.err
30421 rm -f conftest.er1
30422 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030424 (exit $ac_status); } &&
30425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30426 { (case "(($ac_try" in
30427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30428 *) ac_try_echo=$ac_try;;
30429esac
30430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30431 (eval "$ac_try") 2>&5
30432 ac_status=$?
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; } &&
30435 { ac_try='test -s conftest.$ac_objext'
30436 { (case "(($ac_try" in
30437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30438 *) ac_try_echo=$ac_try;;
30439esac
30440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30441 (eval "$ac_try") 2>&5
30442 ac_status=$?
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030445 ac_cv_type_u_int64_t=yes
30446else
30447 echo "$as_me: failed program was:" >&5
30448sed 's/^/| /' conftest.$ac_ext >&5
30449
Reid Spencera773bd52006-08-04 18:18:08 +000030450 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030451fi
Reid Spencera773bd52006-08-04 18:18:08 +000030452
30453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030454fi
Reid Spencera773bd52006-08-04 18:18:08 +000030455{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30456echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030457if test $ac_cv_type_u_int64_t = yes; then
30458
30459cat >>confdefs.h <<_ACEOF
30460#define HAVE_U_INT64_T 1
30461_ACEOF
30462
30463
Misha Brukmanceca9042004-09-02 23:02:30 +000030464else
30465 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30466echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30467 { (exit 1); exit 1; }; }
30468fi
30469
John Criswell679ff312004-09-02 18:44:44 +000030470fi
30471
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030472
30473
30474
30475
30476
30477
30478
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030479
30480
Reid Spencerdf3be822006-01-23 08:15:53 +000030481for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030482do
30483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030484{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30486if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030487 echo $ECHO_N "(cached) $ECHO_C" >&6
30488else
30489 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030490/* confdefs.h. */
30491_ACEOF
30492cat confdefs.h >>conftest.$ac_ext
30493cat >>conftest.$ac_ext <<_ACEOF
30494/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30497#define $ac_func innocuous_$ac_func
30498
30499/* System header to define __stub macros and hopefully few prototypes,
30500 which can conflict with char $ac_func (); below.
30501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30502 <limits.h> exists even on freestanding compilers. */
30503
30504#ifdef __STDC__
30505# include <limits.h>
30506#else
30507# include <assert.h>
30508#endif
30509
30510#undef $ac_func
30511
Reid Spencera773bd52006-08-04 18:18:08 +000030512/* Override any GCC internal prototype to avoid an error.
30513 Use char because int might match the return type of a GCC
30514 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030515#ifdef __cplusplus
30516extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030517#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030518char $ac_func ();
30519/* The GNU C library defines this for functions which it implements
30520 to always fail with ENOSYS. Some functions are actually named
30521 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030522#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030523choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030524#endif
John Criswell7a73b802003-06-30 21:59:07 +000030525
John Criswell7a73b802003-06-30 21:59:07 +000030526int
30527main ()
30528{
Reid Spencera773bd52006-08-04 18:18:08 +000030529return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030530 ;
30531 return 0;
30532}
30533_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030534rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030535if { (ac_try="$ac_link"
30536case "(($ac_try" in
30537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30538 *) ac_try_echo=$ac_try;;
30539esac
30540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30541 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030542 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030543 grep -v '^ *+' conftest.er1 >conftest.err
30544 rm -f conftest.er1
30545 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030547 (exit $ac_status); } &&
30548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30549 { (case "(($ac_try" in
30550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30551 *) ac_try_echo=$ac_try;;
30552esac
30553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30554 (eval "$ac_try") 2>&5
30555 ac_status=$?
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); }; } &&
30558 { ac_try='test -s conftest$ac_exeext'
30559 { (case "(($ac_try" in
30560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30561 *) ac_try_echo=$ac_try;;
30562esac
30563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30564 (eval "$ac_try") 2>&5
30565 ac_status=$?
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030568 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030569else
30570 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030571sed 's/^/| /' conftest.$ac_ext >&5
30572
Reid Spencera773bd52006-08-04 18:18:08 +000030573 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030574fi
Reid Spencera773bd52006-08-04 18:18:08 +000030575
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030576rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030577 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030578fi
Reid Spencera773bd52006-08-04 18:18:08 +000030579ac_res=`eval echo '${'$as_ac_var'}'`
30580 { echo "$as_me:$LINENO: result: $ac_res" >&5
30581echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030582if test `eval echo '${'$as_ac_var'}'` = yes; then
30583 cat >>confdefs.h <<_ACEOF
30584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030585_ACEOF
30586
30587fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030588done
John Criswell7a73b802003-06-30 21:59:07 +000030589
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030590
30591
30592
Reid Spencer6af3d262004-12-15 04:01:48 +000030593
Reid Spencer96cf5872007-07-13 10:05:30 +000030594for ac_func in powf fmodf strtof round
30595do
30596as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30597{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30598echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30599if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30600 echo $ECHO_N "(cached) $ECHO_C" >&6
30601else
30602 cat >conftest.$ac_ext <<_ACEOF
30603/* confdefs.h. */
30604_ACEOF
30605cat confdefs.h >>conftest.$ac_ext
30606cat >>conftest.$ac_ext <<_ACEOF
30607/* end confdefs.h. */
30608/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30610#define $ac_func innocuous_$ac_func
30611
30612/* System header to define __stub macros and hopefully few prototypes,
30613 which can conflict with char $ac_func (); below.
30614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30615 <limits.h> exists even on freestanding compilers. */
30616
30617#ifdef __STDC__
30618# include <limits.h>
30619#else
30620# include <assert.h>
30621#endif
30622
30623#undef $ac_func
30624
30625/* Override any GCC internal prototype to avoid an error.
30626 Use char because int might match the return type of a GCC
30627 builtin and then its argument prototype would still apply. */
30628#ifdef __cplusplus
30629extern "C"
30630#endif
30631char $ac_func ();
30632/* The GNU C library defines this for functions which it implements
30633 to always fail with ENOSYS. Some functions are actually named
30634 something starting with __ and the normal name is an alias. */
30635#if defined __stub_$ac_func || defined __stub___$ac_func
30636choke me
30637#endif
30638
30639int
30640main ()
30641{
30642return $ac_func ();
30643 ;
30644 return 0;
30645}
30646_ACEOF
30647rm -f conftest.$ac_objext conftest$ac_exeext
30648if { (ac_try="$ac_link"
30649case "(($ac_try" in
30650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30651 *) ac_try_echo=$ac_try;;
30652esac
30653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30654 (eval "$ac_link") 2>conftest.er1
30655 ac_status=$?
30656 grep -v '^ *+' conftest.er1 >conftest.err
30657 rm -f conftest.er1
30658 cat conftest.err >&5
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030660 (exit $ac_status); } &&
30661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30662 { (case "(($ac_try" in
30663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30664 *) ac_try_echo=$ac_try;;
30665esac
30666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30667 (eval "$ac_try") 2>&5
30668 ac_status=$?
30669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); }; } &&
30671 { ac_try='test -s conftest$ac_exeext'
30672 { (case "(($ac_try" in
30673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30674 *) ac_try_echo=$ac_try;;
30675esac
30676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30677 (eval "$ac_try") 2>&5
30678 ac_status=$?
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030681 eval "$as_ac_var=yes"
30682else
30683 echo "$as_me: failed program was:" >&5
30684sed 's/^/| /' conftest.$ac_ext >&5
30685
30686 eval "$as_ac_var=no"
30687fi
30688
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030689rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030690 conftest$ac_exeext conftest.$ac_ext
30691fi
30692ac_res=`eval echo '${'$as_ac_var'}'`
30693 { echo "$as_me:$LINENO: result: $ac_res" >&5
30694echo "${ECHO_T}$ac_res" >&6; }
30695if test `eval echo '${'$as_ac_var'}'` = yes; then
30696 cat >>confdefs.h <<_ACEOF
30697#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30698_ACEOF
30699
30700fi
30701done
30702
30703
30704
30705
30706
Reid Spencer6af3d262004-12-15 04:01:48 +000030707
Reid Spencerb90645c2007-02-16 19:17:20 +000030708for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30709do
30710as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30711{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30712echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30713if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30714 echo $ECHO_N "(cached) $ECHO_C" >&6
30715else
30716 cat >conftest.$ac_ext <<_ACEOF
30717/* confdefs.h. */
30718_ACEOF
30719cat confdefs.h >>conftest.$ac_ext
30720cat >>conftest.$ac_ext <<_ACEOF
30721/* end confdefs.h. */
30722/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30724#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030725
Reid Spencerb90645c2007-02-16 19:17:20 +000030726/* System header to define __stub macros and hopefully few prototypes,
30727 which can conflict with char $ac_func (); below.
30728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30729 <limits.h> exists even on freestanding compilers. */
30730
30731#ifdef __STDC__
30732# include <limits.h>
30733#else
30734# include <assert.h>
30735#endif
30736
30737#undef $ac_func
30738
30739/* Override any GCC internal prototype to avoid an error.
30740 Use char because int might match the return type of a GCC
30741 builtin and then its argument prototype would still apply. */
30742#ifdef __cplusplus
30743extern "C"
30744#endif
30745char $ac_func ();
30746/* The GNU C library defines this for functions which it implements
30747 to always fail with ENOSYS. Some functions are actually named
30748 something starting with __ and the normal name is an alias. */
30749#if defined __stub_$ac_func || defined __stub___$ac_func
30750choke me
30751#endif
30752
30753int
30754main ()
30755{
30756return $ac_func ();
30757 ;
30758 return 0;
30759}
30760_ACEOF
30761rm -f conftest.$ac_objext conftest$ac_exeext
30762if { (ac_try="$ac_link"
30763case "(($ac_try" in
30764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765 *) ac_try_echo=$ac_try;;
30766esac
30767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768 (eval "$ac_link") 2>conftest.er1
30769 ac_status=$?
30770 grep -v '^ *+' conftest.er1 >conftest.err
30771 rm -f conftest.er1
30772 cat conftest.err >&5
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030774 (exit $ac_status); } &&
30775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30776 { (case "(($ac_try" in
30777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30778 *) ac_try_echo=$ac_try;;
30779esac
30780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30781 (eval "$ac_try") 2>&5
30782 ac_status=$?
30783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30784 (exit $ac_status); }; } &&
30785 { ac_try='test -s conftest$ac_exeext'
30786 { (case "(($ac_try" in
30787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30788 *) ac_try_echo=$ac_try;;
30789esac
30790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30791 (eval "$ac_try") 2>&5
30792 ac_status=$?
30793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030795 eval "$as_ac_var=yes"
30796else
30797 echo "$as_me: failed program was:" >&5
30798sed 's/^/| /' conftest.$ac_ext >&5
30799
30800 eval "$as_ac_var=no"
30801fi
30802
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030803rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030804 conftest$ac_exeext conftest.$ac_ext
30805fi
30806ac_res=`eval echo '${'$as_ac_var'}'`
30807 { echo "$as_me:$LINENO: result: $ac_res" >&5
30808echo "${ECHO_T}$ac_res" >&6; }
30809if test `eval echo '${'$as_ac_var'}'` = yes; then
30810 cat >>confdefs.h <<_ACEOF
30811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30812_ACEOF
30813
30814fi
30815done
30816
30817
30818
30819
30820for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030821do
30822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030823{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30825if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030826 echo $ECHO_N "(cached) $ECHO_C" >&6
30827else
30828 cat >conftest.$ac_ext <<_ACEOF
30829/* confdefs.h. */
30830_ACEOF
30831cat confdefs.h >>conftest.$ac_ext
30832cat >>conftest.$ac_ext <<_ACEOF
30833/* end confdefs.h. */
30834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30836#define $ac_func innocuous_$ac_func
30837
30838/* System header to define __stub macros and hopefully few prototypes,
30839 which can conflict with char $ac_func (); below.
30840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30841 <limits.h> exists even on freestanding compilers. */
30842
30843#ifdef __STDC__
30844# include <limits.h>
30845#else
30846# include <assert.h>
30847#endif
30848
30849#undef $ac_func
30850
Reid Spencera773bd52006-08-04 18:18:08 +000030851/* Override any GCC internal prototype to avoid an error.
30852 Use char because int might match the return type of a GCC
30853 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030854#ifdef __cplusplus
30855extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030856#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030857char $ac_func ();
30858/* The GNU C library defines this for functions which it implements
30859 to always fail with ENOSYS. Some functions are actually named
30860 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030861#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030862choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030863#endif
30864
30865int
30866main ()
30867{
Reid Spencera773bd52006-08-04 18:18:08 +000030868return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030869 ;
30870 return 0;
30871}
30872_ACEOF
30873rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030874if { (ac_try="$ac_link"
30875case "(($ac_try" in
30876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877 *) ac_try_echo=$ac_try;;
30878esac
30879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030881 ac_status=$?
30882 grep -v '^ *+' conftest.er1 >conftest.err
30883 rm -f conftest.er1
30884 cat conftest.err >&5
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030886 (exit $ac_status); } &&
30887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30888 { (case "(($ac_try" in
30889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890 *) ac_try_echo=$ac_try;;
30891esac
30892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893 (eval "$ac_try") 2>&5
30894 ac_status=$?
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); }; } &&
30897 { ac_try='test -s conftest$ac_exeext'
30898 { (case "(($ac_try" in
30899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900 *) ac_try_echo=$ac_try;;
30901esac
30902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30903 (eval "$ac_try") 2>&5
30904 ac_status=$?
30905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030907 eval "$as_ac_var=yes"
30908else
30909 echo "$as_me: failed program was:" >&5
30910sed 's/^/| /' conftest.$ac_ext >&5
30911
Reid Spencera773bd52006-08-04 18:18:08 +000030912 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030913fi
Reid Spencera773bd52006-08-04 18:18:08 +000030914
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030915rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030916 conftest$ac_exeext conftest.$ac_ext
30917fi
Reid Spencera773bd52006-08-04 18:18:08 +000030918ac_res=`eval echo '${'$as_ac_var'}'`
30919 { echo "$as_me:$LINENO: result: $ac_res" >&5
30920echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030921if test `eval echo '${'$as_ac_var'}'` = yes; then
30922 cat >>confdefs.h <<_ACEOF
30923#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30924_ACEOF
30925
30926fi
30927done
30928
30929
30930
30931
30932
30933
30934
30935
30936for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030937do
30938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030939{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30941if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030942 echo $ECHO_N "(cached) $ECHO_C" >&6
30943else
30944 cat >conftest.$ac_ext <<_ACEOF
30945/* confdefs.h. */
30946_ACEOF
30947cat confdefs.h >>conftest.$ac_ext
30948cat >>conftest.$ac_ext <<_ACEOF
30949/* end confdefs.h. */
30950/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30952#define $ac_func innocuous_$ac_func
30953
30954/* System header to define __stub macros and hopefully few prototypes,
30955 which can conflict with char $ac_func (); below.
30956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30957 <limits.h> exists even on freestanding compilers. */
30958
30959#ifdef __STDC__
30960# include <limits.h>
30961#else
30962# include <assert.h>
30963#endif
30964
30965#undef $ac_func
30966
Reid Spencera773bd52006-08-04 18:18:08 +000030967/* Override any GCC internal prototype to avoid an error.
30968 Use char because int might match the return type of a GCC
30969 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030970#ifdef __cplusplus
30971extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030972#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030973char $ac_func ();
30974/* The GNU C library defines this for functions which it implements
30975 to always fail with ENOSYS. Some functions are actually named
30976 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030977#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030978choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030979#endif
30980
30981int
30982main ()
30983{
Reid Spencera773bd52006-08-04 18:18:08 +000030984return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030985 ;
30986 return 0;
30987}
30988_ACEOF
30989rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030990if { (ac_try="$ac_link"
30991case "(($ac_try" in
30992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30993 *) ac_try_echo=$ac_try;;
30994esac
30995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30996 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030997 ac_status=$?
30998 grep -v '^ *+' conftest.er1 >conftest.err
30999 rm -f conftest.er1
31000 cat conftest.err >&5
31001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031002 (exit $ac_status); } &&
31003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31004 { (case "(($ac_try" in
31005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31006 *) ac_try_echo=$ac_try;;
31007esac
31008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31009 (eval "$ac_try") 2>&5
31010 ac_status=$?
31011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31012 (exit $ac_status); }; } &&
31013 { ac_try='test -s conftest$ac_exeext'
31014 { (case "(($ac_try" in
31015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016 *) ac_try_echo=$ac_try;;
31017esac
31018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019 (eval "$ac_try") 2>&5
31020 ac_status=$?
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031023 eval "$as_ac_var=yes"
31024else
31025 echo "$as_me: failed program was:" >&5
31026sed 's/^/| /' conftest.$ac_ext >&5
31027
Reid Spencera773bd52006-08-04 18:18:08 +000031028 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031029fi
Reid Spencera773bd52006-08-04 18:18:08 +000031030
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031031rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031032 conftest$ac_exeext conftest.$ac_ext
31033fi
Reid Spencera773bd52006-08-04 18:18:08 +000031034ac_res=`eval echo '${'$as_ac_var'}'`
31035 { echo "$as_me:$LINENO: result: $ac_res" >&5
31036echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031037if test `eval echo '${'$as_ac_var'}'` = yes; then
31038 cat >>confdefs.h <<_ACEOF
31039#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31040_ACEOF
31041
31042fi
31043done
31044
31045
Reid Spencerba46ca32004-12-31 05:49:15 +000031046
31047
Chris Lattner0b142592005-11-14 06:57:34 +000031048
Chris Lattner511f11d2005-11-14 07:25:50 +000031049for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031050do
31051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031052{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31054if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031055 echo $ECHO_N "(cached) $ECHO_C" >&6
31056else
31057 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031058/* confdefs.h. */
31059_ACEOF
31060cat confdefs.h >>conftest.$ac_ext
31061cat >>conftest.$ac_ext <<_ACEOF
31062/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31065#define $ac_func innocuous_$ac_func
31066
31067/* System header to define __stub macros and hopefully few prototypes,
31068 which can conflict with char $ac_func (); below.
31069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31070 <limits.h> exists even on freestanding compilers. */
31071
31072#ifdef __STDC__
31073# include <limits.h>
31074#else
31075# include <assert.h>
31076#endif
31077
31078#undef $ac_func
31079
Reid Spencera773bd52006-08-04 18:18:08 +000031080/* Override any GCC internal prototype to avoid an error.
31081 Use char because int might match the return type of a GCC
31082 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031083#ifdef __cplusplus
31084extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031085#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031086char $ac_func ();
31087/* The GNU C library defines this for functions which it implements
31088 to always fail with ENOSYS. Some functions are actually named
31089 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031090#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031091choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031092#endif
John Criswell7a73b802003-06-30 21:59:07 +000031093
John Criswell7a73b802003-06-30 21:59:07 +000031094int
31095main ()
31096{
Reid Spencera773bd52006-08-04 18:18:08 +000031097return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031098 ;
31099 return 0;
31100}
31101_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031102rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031103if { (ac_try="$ac_link"
31104case "(($ac_try" in
31105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31106 *) ac_try_echo=$ac_try;;
31107esac
31108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31109 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031110 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031111 grep -v '^ *+' conftest.er1 >conftest.err
31112 rm -f conftest.er1
31113 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031115 (exit $ac_status); } &&
31116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31117 { (case "(($ac_try" in
31118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31119 *) ac_try_echo=$ac_try;;
31120esac
31121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31122 (eval "$ac_try") 2>&5
31123 ac_status=$?
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31125 (exit $ac_status); }; } &&
31126 { ac_try='test -s conftest$ac_exeext'
31127 { (case "(($ac_try" in
31128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129 *) ac_try_echo=$ac_try;;
31130esac
31131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31132 (eval "$ac_try") 2>&5
31133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031136 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031137else
31138 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031139sed 's/^/| /' conftest.$ac_ext >&5
31140
Reid Spencera773bd52006-08-04 18:18:08 +000031141 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031142fi
Reid Spencera773bd52006-08-04 18:18:08 +000031143
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031144rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031145 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031146fi
Reid Spencera773bd52006-08-04 18:18:08 +000031147ac_res=`eval echo '${'$as_ac_var'}'`
31148 { echo "$as_me:$LINENO: result: $ac_res" >&5
31149echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031150if test `eval echo '${'$as_ac_var'}'` = yes; then
31151 cat >>confdefs.h <<_ACEOF
31152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031153_ACEOF
31154
31155fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031156done
John Criswell7a73b802003-06-30 21:59:07 +000031157
Reid Spencercdb08a32006-06-05 16:11:07 +000031158
31159
31160
31161
Reid Spencerafa22e22006-12-10 23:29:19 +000031162for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031163do
31164as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031165{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31167if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031168 echo $ECHO_N "(cached) $ECHO_C" >&6
31169else
31170 cat >conftest.$ac_ext <<_ACEOF
31171/* confdefs.h. */
31172_ACEOF
31173cat confdefs.h >>conftest.$ac_ext
31174cat >>conftest.$ac_ext <<_ACEOF
31175/* end confdefs.h. */
31176/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31178#define $ac_func innocuous_$ac_func
31179
31180/* System header to define __stub macros and hopefully few prototypes,
31181 which can conflict with char $ac_func (); below.
31182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31183 <limits.h> exists even on freestanding compilers. */
31184
31185#ifdef __STDC__
31186# include <limits.h>
31187#else
31188# include <assert.h>
31189#endif
31190
31191#undef $ac_func
31192
Reid Spencera773bd52006-08-04 18:18:08 +000031193/* Override any GCC internal prototype to avoid an error.
31194 Use char because int might match the return type of a GCC
31195 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031196#ifdef __cplusplus
31197extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031198#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031199char $ac_func ();
31200/* The GNU C library defines this for functions which it implements
31201 to always fail with ENOSYS. Some functions are actually named
31202 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031203#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031204choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031205#endif
31206
31207int
31208main ()
31209{
Reid Spencera773bd52006-08-04 18:18:08 +000031210return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031211 ;
31212 return 0;
31213}
31214_ACEOF
31215rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031216if { (ac_try="$ac_link"
31217case "(($ac_try" in
31218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31219 *) ac_try_echo=$ac_try;;
31220esac
31221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31222 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031223 ac_status=$?
31224 grep -v '^ *+' conftest.er1 >conftest.err
31225 rm -f conftest.er1
31226 cat conftest.err >&5
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031228 (exit $ac_status); } &&
31229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31230 { (case "(($ac_try" in
31231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232 *) ac_try_echo=$ac_try;;
31233esac
31234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235 (eval "$ac_try") 2>&5
31236 ac_status=$?
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); }; } &&
31239 { ac_try='test -s conftest$ac_exeext'
31240 { (case "(($ac_try" in
31241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31242 *) ac_try_echo=$ac_try;;
31243esac
31244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31245 (eval "$ac_try") 2>&5
31246 ac_status=$?
31247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031249 eval "$as_ac_var=yes"
31250else
31251 echo "$as_me: failed program was:" >&5
31252sed 's/^/| /' conftest.$ac_ext >&5
31253
Reid Spencera773bd52006-08-04 18:18:08 +000031254 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031255fi
Reid Spencera773bd52006-08-04 18:18:08 +000031256
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031257rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031258 conftest$ac_exeext conftest.$ac_ext
31259fi
Reid Spencera773bd52006-08-04 18:18:08 +000031260ac_res=`eval echo '${'$as_ac_var'}'`
31261 { echo "$as_me:$LINENO: result: $ac_res" >&5
31262echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031263if test `eval echo '${'$as_ac_var'}'` = yes; then
31264 cat >>confdefs.h <<_ACEOF
31265#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31266_ACEOF
31267
31268fi
31269done
31270
Reid Spencera773bd52006-08-04 18:18:08 +000031271{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31272echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031273if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031274 echo $ECHO_N "(cached) $ECHO_C" >&6
31275else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031276 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031277ac_cpp='$CPP $CPPFLAGS'
31278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31280ac_compiler_gnu=$ac_cv_c_compiler_gnu
31281
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031282 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031283 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031284else
31285 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031286
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031287 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031288_ACEOF
31289cat confdefs.h >>conftest.$ac_ext
31290cat >>conftest.$ac_ext <<_ACEOF
31291/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031292
John Criswella0137d32003-10-13 16:22:01 +000031293#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031294#include <stdlib.h>
31295
John Criswella0137d32003-10-13 16:22:01 +000031296int
31297main ()
31298{
31299
Reid Spencer2706f8c2004-09-19 23:53:36 +000031300volatile double A, B;
31301char Buffer[100];
31302A = 1;
31303A /= 10.0;
31304sprintf(Buffer, "%a", A);
31305B = atof(Buffer);
31306if (A != B)
31307 return (1);
31308if (A != 0x1.999999999999ap-4)
31309 return (1);
31310return (0);
John Criswella0137d32003-10-13 16:22:01 +000031311 ;
31312 return 0;
31313}
31314_ACEOF
31315rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031316if { (ac_try="$ac_link"
31317case "(($ac_try" in
31318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31319 *) ac_try_echo=$ac_try;;
31320esac
31321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31322 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031323 ac_status=$?
31324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031326 { (case "(($ac_try" in
31327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31328 *) ac_try_echo=$ac_try;;
31329esac
31330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31331 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031332 ac_status=$?
31333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031335 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031336else
31337 echo "$as_me: program exited with status $ac_status" >&5
31338echo "$as_me: failed program was:" >&5
31339sed 's/^/| /' conftest.$ac_ext >&5
31340
31341( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031342llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031343fi
Reid Spencera773bd52006-08-04 18:18:08 +000031344rm -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 +000031345fi
Reid Spencera773bd52006-08-04 18:18:08 +000031346
31347
Reid Spencer2706f8c2004-09-19 23:53:36 +000031348 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031349ac_cpp='$CPP $CPPFLAGS'
31350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31352ac_compiler_gnu=$ac_cv_c_compiler_gnu
31353
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031354fi
Reid Spencera773bd52006-08-04 18:18:08 +000031355{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31356echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031357 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031358
31359cat >>confdefs.h <<\_ACEOF
31360#define HAVE_PRINTF_A 1
31361_ACEOF
31362
Reid Spencer2706f8c2004-09-19 23:53:36 +000031363 fi
John Criswella0137d32003-10-13 16:22:01 +000031364
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031365# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31366# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031367{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31368echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031369if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031370 echo $ECHO_N "(cached) $ECHO_C" >&6
31371else
John Criswell0021c312004-02-13 21:57:29 +000031372 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031373/* confdefs.h. */
31374_ACEOF
31375cat confdefs.h >>conftest.$ac_ext
31376cat >>conftest.$ac_ext <<_ACEOF
31377/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031378#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031379int
31380main ()
31381{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031382char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031383 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031384 ;
31385 return 0;
31386}
31387_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031388rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031389if { (ac_try="$ac_link"
31390case "(($ac_try" in
31391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392 *) ac_try_echo=$ac_try;;
31393esac
31394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031396 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031397 grep -v '^ *+' conftest.er1 >conftest.err
31398 rm -f conftest.er1
31399 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031401 (exit $ac_status); } &&
31402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31403 { (case "(($ac_try" in
31404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31405 *) ac_try_echo=$ac_try;;
31406esac
31407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31408 (eval "$ac_try") 2>&5
31409 ac_status=$?
31410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411 (exit $ac_status); }; } &&
31412 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031422 ac_cv_working_alloca_h=yes
31423else
31424 echo "$as_me: failed program was:" >&5
31425sed 's/^/| /' conftest.$ac_ext >&5
31426
Reid Spencera773bd52006-08-04 18:18:08 +000031427 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031428fi
Reid Spencera773bd52006-08-04 18:18:08 +000031429
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031430rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031431 conftest$ac_exeext conftest.$ac_ext
31432fi
Reid Spencera773bd52006-08-04 18:18:08 +000031433{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31434echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031435if test $ac_cv_working_alloca_h = yes; then
31436
31437cat >>confdefs.h <<\_ACEOF
31438#define HAVE_ALLOCA_H 1
31439_ACEOF
31440
31441fi
31442
Reid Spencera773bd52006-08-04 18:18:08 +000031443{ echo "$as_me:$LINENO: checking for alloca" >&5
31444echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031445if test "${ac_cv_func_alloca_works+set}" = set; then
31446 echo $ECHO_N "(cached) $ECHO_C" >&6
31447else
31448 cat >conftest.$ac_ext <<_ACEOF
31449/* confdefs.h. */
31450_ACEOF
31451cat confdefs.h >>conftest.$ac_ext
31452cat >>conftest.$ac_ext <<_ACEOF
31453/* end confdefs.h. */
31454#ifdef __GNUC__
31455# define alloca __builtin_alloca
31456#else
31457# ifdef _MSC_VER
31458# include <malloc.h>
31459# define alloca _alloca
31460# else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031461# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031462# include <alloca.h>
31463# else
31464# ifdef _AIX
31465 #pragma alloca
31466# else
31467# ifndef alloca /* predefined by HP cc +Olibcalls */
31468char *alloca ();
31469# endif
31470# endif
31471# endif
31472# endif
31473#endif
31474
31475int
31476main ()
31477{
31478char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031479 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031480 ;
31481 return 0;
31482}
31483_ACEOF
31484rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031485if { (ac_try="$ac_link"
31486case "(($ac_try" in
31487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31488 *) ac_try_echo=$ac_try;;
31489esac
31490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31491 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031492 ac_status=$?
31493 grep -v '^ *+' conftest.er1 >conftest.err
31494 rm -f conftest.er1
31495 cat conftest.err >&5
31496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031497 (exit $ac_status); } &&
31498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31499 { (case "(($ac_try" in
31500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31501 *) ac_try_echo=$ac_try;;
31502esac
31503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31504 (eval "$ac_try") 2>&5
31505 ac_status=$?
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); }; } &&
31508 { ac_try='test -s conftest$ac_exeext'
31509 { (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
31515 ac_status=$?
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031518 ac_cv_func_alloca_works=yes
31519else
31520 echo "$as_me: failed program was:" >&5
31521sed 's/^/| /' conftest.$ac_ext >&5
31522
Reid Spencera773bd52006-08-04 18:18:08 +000031523 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031524fi
Reid Spencera773bd52006-08-04 18:18:08 +000031525
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031526rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031527 conftest$ac_exeext conftest.$ac_ext
31528fi
Reid Spencera773bd52006-08-04 18:18:08 +000031529{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31530echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031531
31532if test $ac_cv_func_alloca_works = yes; then
31533
31534cat >>confdefs.h <<\_ACEOF
31535#define HAVE_ALLOCA 1
31536_ACEOF
31537
31538else
31539 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31540# that cause trouble. Some versions do not even contain alloca or
31541# contain a buggy version. If you still want to use their alloca,
31542# use ar to extract alloca.o from them instead of compiling alloca.c.
31543
Reid Spencera773bd52006-08-04 18:18:08 +000031544ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031545
31546cat >>confdefs.h <<\_ACEOF
31547#define C_ALLOCA 1
31548_ACEOF
31549
31550
Reid Spencera773bd52006-08-04 18:18:08 +000031551{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31552echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031553if test "${ac_cv_os_cray+set}" = set; then
31554 echo $ECHO_N "(cached) $ECHO_C" >&6
31555else
31556 cat >conftest.$ac_ext <<_ACEOF
31557/* confdefs.h. */
31558_ACEOF
31559cat confdefs.h >>conftest.$ac_ext
31560cat >>conftest.$ac_ext <<_ACEOF
31561/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031562#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031563webecray
31564#else
31565wenotbecray
31566#endif
31567
31568_ACEOF
31569if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31570 $EGREP "webecray" >/dev/null 2>&1; then
31571 ac_cv_os_cray=yes
31572else
31573 ac_cv_os_cray=no
31574fi
31575rm -f conftest*
31576
31577fi
Reid Spencera773bd52006-08-04 18:18:08 +000031578{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31579echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031580if test $ac_cv_os_cray = yes; then
31581 for ac_func in _getb67 GETB67 getb67; do
31582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031583{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31585if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031586 echo $ECHO_N "(cached) $ECHO_C" >&6
31587else
31588 cat >conftest.$ac_ext <<_ACEOF
31589/* confdefs.h. */
31590_ACEOF
31591cat confdefs.h >>conftest.$ac_ext
31592cat >>conftest.$ac_ext <<_ACEOF
31593/* end confdefs.h. */
31594/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31596#define $ac_func innocuous_$ac_func
31597
31598/* System header to define __stub macros and hopefully few prototypes,
31599 which can conflict with char $ac_func (); below.
31600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31601 <limits.h> exists even on freestanding compilers. */
31602
31603#ifdef __STDC__
31604# include <limits.h>
31605#else
31606# include <assert.h>
31607#endif
31608
31609#undef $ac_func
31610
Reid Spencera773bd52006-08-04 18:18:08 +000031611/* Override any GCC internal prototype to avoid an error.
31612 Use char because int might match the return type of a GCC
31613 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031614#ifdef __cplusplus
31615extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031616#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031617char $ac_func ();
31618/* The GNU C library defines this for functions which it implements
31619 to always fail with ENOSYS. Some functions are actually named
31620 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031621#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031622choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031623#endif
31624
31625int
31626main ()
31627{
Reid Spencera773bd52006-08-04 18:18:08 +000031628return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031629 ;
31630 return 0;
31631}
31632_ACEOF
31633rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031634if { (ac_try="$ac_link"
31635case "(($ac_try" in
31636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31637 *) ac_try_echo=$ac_try;;
31638esac
31639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31640 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031641 ac_status=$?
31642 grep -v '^ *+' conftest.er1 >conftest.err
31643 rm -f conftest.er1
31644 cat conftest.err >&5
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031646 (exit $ac_status); } &&
31647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31648 { (case "(($ac_try" in
31649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31650 *) ac_try_echo=$ac_try;;
31651esac
31652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31653 (eval "$ac_try") 2>&5
31654 ac_status=$?
31655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656 (exit $ac_status); }; } &&
31657 { ac_try='test -s conftest$ac_exeext'
31658 { (case "(($ac_try" in
31659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31660 *) ac_try_echo=$ac_try;;
31661esac
31662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31663 (eval "$ac_try") 2>&5
31664 ac_status=$?
31665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031667 eval "$as_ac_var=yes"
31668else
31669 echo "$as_me: failed program was:" >&5
31670sed 's/^/| /' conftest.$ac_ext >&5
31671
Reid Spencera773bd52006-08-04 18:18:08 +000031672 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031673fi
Reid Spencera773bd52006-08-04 18:18:08 +000031674
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031675rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031676 conftest$ac_exeext conftest.$ac_ext
31677fi
Reid Spencera773bd52006-08-04 18:18:08 +000031678ac_res=`eval echo '${'$as_ac_var'}'`
31679 { echo "$as_me:$LINENO: result: $ac_res" >&5
31680echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031681if test `eval echo '${'$as_ac_var'}'` = yes; then
31682
31683cat >>confdefs.h <<_ACEOF
31684#define CRAY_STACKSEG_END $ac_func
31685_ACEOF
31686
31687 break
31688fi
31689
31690 done
31691fi
31692
Reid Spencera773bd52006-08-04 18:18:08 +000031693{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31694echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031695if test "${ac_cv_c_stack_direction+set}" = set; then
31696 echo $ECHO_N "(cached) $ECHO_C" >&6
31697else
31698 if test "$cross_compiling" = yes; then
31699 ac_cv_c_stack_direction=0
31700else
31701 cat >conftest.$ac_ext <<_ACEOF
31702/* confdefs.h. */
31703_ACEOF
31704cat confdefs.h >>conftest.$ac_ext
31705cat >>conftest.$ac_ext <<_ACEOF
31706/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031707$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031708int
31709find_stack_direction ()
31710{
31711 static char *addr = 0;
31712 auto char dummy;
31713 if (addr == 0)
31714 {
31715 addr = &dummy;
31716 return find_stack_direction ();
31717 }
John Criswell0021c312004-02-13 21:57:29 +000031718 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031719 return (&dummy > addr) ? 1 : -1;
31720}
John Criswell0021c312004-02-13 21:57:29 +000031721
John Criswell0021c312004-02-13 21:57:29 +000031722int
31723main ()
31724{
Reid Spencera773bd52006-08-04 18:18:08 +000031725 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031726}
31727_ACEOF
31728rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031729if { (ac_try="$ac_link"
31730case "(($ac_try" in
31731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31732 *) ac_try_echo=$ac_try;;
31733esac
31734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31735 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031736 ac_status=$?
31737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031739 { (case "(($ac_try" in
31740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31741 *) ac_try_echo=$ac_try;;
31742esac
31743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31744 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031745 ac_status=$?
31746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31747 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031748 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031749else
31750 echo "$as_me: program exited with status $ac_status" >&5
31751echo "$as_me: failed program was:" >&5
31752sed 's/^/| /' conftest.$ac_ext >&5
31753
31754( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031755ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031756fi
Reid Spencera773bd52006-08-04 18:18:08 +000031757rm -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 +000031758fi
Reid Spencera773bd52006-08-04 18:18:08 +000031759
31760
John Criswell0021c312004-02-13 21:57:29 +000031761fi
Reid Spencera773bd52006-08-04 18:18:08 +000031762{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31763echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031764
31765cat >>confdefs.h <<_ACEOF
31766#define STACK_DIRECTION $ac_cv_c_stack_direction
31767_ACEOF
31768
31769
John Criswell0021c312004-02-13 21:57:29 +000031770fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031771
31772
Reid Spencera773bd52006-08-04 18:18:08 +000031773{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31774echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031775if test "${ac_cv_func_rand48+set}" = set; then
31776 echo $ECHO_N "(cached) $ECHO_C" >&6
31777else
Reid Spencera773bd52006-08-04 18:18:08 +000031778 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031779ac_cpp='$CXXCPP $CPPFLAGS'
31780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31783
31784 cat >conftest.$ac_ext <<_ACEOF
31785/* confdefs.h. */
31786_ACEOF
31787cat confdefs.h >>conftest.$ac_ext
31788cat >>conftest.$ac_ext <<_ACEOF
31789/* end confdefs.h. */
31790#include <stdlib.h>
31791int
31792main ()
31793{
31794srand48(0);lrand48();drand48();
31795 ;
31796 return 0;
31797}
31798_ACEOF
31799rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031800if { (ac_try="$ac_compile"
31801case "(($ac_try" in
31802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803 *) ac_try_echo=$ac_try;;
31804esac
31805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031807 ac_status=$?
31808 grep -v '^ *+' conftest.er1 >conftest.err
31809 rm -f conftest.er1
31810 cat conftest.err >&5
31811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031812 (exit $ac_status); } &&
31813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31814 { (case "(($ac_try" in
31815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31816 *) ac_try_echo=$ac_try;;
31817esac
31818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31819 (eval "$ac_try") 2>&5
31820 ac_status=$?
31821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31822 (exit $ac_status); }; } &&
31823 { ac_try='test -s conftest.$ac_objext'
31824 { (case "(($ac_try" in
31825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826 *) ac_try_echo=$ac_try;;
31827esac
31828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829 (eval "$ac_try") 2>&5
31830 ac_status=$?
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031833 ac_cv_func_rand48=yes
31834else
31835 echo "$as_me: failed program was:" >&5
31836sed 's/^/| /' conftest.$ac_ext >&5
31837
Reid Spencera773bd52006-08-04 18:18:08 +000031838 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031839fi
Reid Spencera773bd52006-08-04 18:18:08 +000031840
31841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031842 ac_ext=c
31843ac_cpp='$CPP $CPPFLAGS'
31844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31846ac_compiler_gnu=$ac_cv_c_compiler_gnu
31847
31848fi
Reid Spencera773bd52006-08-04 18:18:08 +000031849{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31850echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031851
31852if test "$ac_cv_func_rand48" = "yes" ; then
31853
31854cat >>confdefs.h <<\_ACEOF
31855#define HAVE_RAND48 1
31856_ACEOF
31857
31858fi
John Criswell0021c312004-02-13 21:57:29 +000031859
31860
Reid Spencera773bd52006-08-04 18:18:08 +000031861{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31862echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031863if test "${ac_cv_cxx_namespaces+set}" = set; then
31864 echo $ECHO_N "(cached) $ECHO_C" >&6
31865else
Reid Spencera773bd52006-08-04 18:18:08 +000031866 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031867ac_cpp='$CXXCPP $CPPFLAGS'
31868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31871
31872 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031873/* confdefs.h. */
31874_ACEOF
31875cat confdefs.h >>conftest.$ac_ext
31876cat >>conftest.$ac_ext <<_ACEOF
31877/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031878namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031879int
31880main ()
31881{
31882using namespace Outer::Inner; return i;
31883 ;
31884 return 0;
31885}
31886_ACEOF
31887rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031888if { (ac_try="$ac_compile"
31889case "(($ac_try" in
31890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31891 *) ac_try_echo=$ac_try;;
31892esac
31893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31894 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031895 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031896 grep -v '^ *+' conftest.er1 >conftest.err
31897 rm -f conftest.er1
31898 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031900 (exit $ac_status); } &&
31901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31902 { (case "(($ac_try" in
31903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904 *) ac_try_echo=$ac_try;;
31905esac
31906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907 (eval "$ac_try") 2>&5
31908 ac_status=$?
31909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910 (exit $ac_status); }; } &&
31911 { ac_try='test -s conftest.$ac_objext'
31912 { (case "(($ac_try" in
31913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31914 *) ac_try_echo=$ac_try;;
31915esac
31916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31917 (eval "$ac_try") 2>&5
31918 ac_status=$?
31919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031921 ac_cv_cxx_namespaces=yes
31922else
31923 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031924sed 's/^/| /' conftest.$ac_ext >&5
31925
Reid Spencera773bd52006-08-04 18:18:08 +000031926 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031927fi
Reid Spencera773bd52006-08-04 18:18:08 +000031928
31929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031930 ac_ext=c
31931ac_cpp='$CPP $CPPFLAGS'
31932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31934ac_compiler_gnu=$ac_cv_c_compiler_gnu
31935
31936
31937fi
Reid Spencera773bd52006-08-04 18:18:08 +000031938{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31939echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031940if test "$ac_cv_cxx_namespaces" = yes; then
31941
31942cat >>confdefs.h <<\_ACEOF
31943#define HAVE_NAMESPACES
31944_ACEOF
31945
31946fi
31947
Reid Spencera773bd52006-08-04 18:18:08 +000031948{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31949echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031950if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031951 echo $ECHO_N "(cached) $ECHO_C" >&6
31952else
31953
Reid Spencera773bd52006-08-04 18:18:08 +000031954 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031955ac_cpp='$CXXCPP $CPPFLAGS'
31956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31959
31960 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031961/* confdefs.h. */
31962_ACEOF
31963cat confdefs.h >>conftest.$ac_ext
31964cat >>conftest.$ac_ext <<_ACEOF
31965/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031966#include <ext/hash_map>
31967#ifdef HAVE_NAMESPACES
31968using namespace std;
31969#endif
John Criswell7a73b802003-06-30 21:59:07 +000031970int
31971main ()
31972{
Brian Gaeke90583492003-11-10 03:06:28 +000031973hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031974 ;
31975 return 0;
31976}
31977_ACEOF
31978rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031979if { (ac_try="$ac_compile"
31980case "(($ac_try" in
31981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31982 *) ac_try_echo=$ac_try;;
31983esac
31984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31985 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031986 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031987 grep -v '^ *+' conftest.er1 >conftest.err
31988 rm -f conftest.er1
31989 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031991 (exit $ac_status); } &&
31992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31993 { (case "(($ac_try" in
31994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995 *) ac_try_echo=$ac_try;;
31996esac
31997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31998 (eval "$ac_try") 2>&5
31999 ac_status=$?
32000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001 (exit $ac_status); }; } &&
32002 { ac_try='test -s conftest.$ac_objext'
32003 { (case "(($ac_try" in
32004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32005 *) ac_try_echo=$ac_try;;
32006esac
32007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32008 (eval "$ac_try") 2>&5
32009 ac_status=$?
32010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032012 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000032013else
32014 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032015sed 's/^/| /' conftest.$ac_ext >&5
32016
Reid Spencera773bd52006-08-04 18:18:08 +000032017 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032018fi
Reid Spencera773bd52006-08-04 18:18:08 +000032019
32020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032021 ac_ext=c
32022ac_cpp='$CPP $CPPFLAGS'
32023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32025ac_compiler_gnu=$ac_cv_c_compiler_gnu
32026
John Criswell7a73b802003-06-30 21:59:07 +000032027fi
Reid Spencera773bd52006-08-04 18:18:08 +000032028{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32029echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032030 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32031 then
John Criswell9f011862004-09-24 18:28:00 +000032032
32033cat >>confdefs.h <<\_ACEOF
32034#define HAVE_STD_EXT_HASH_MAP 1
32035_ACEOF
32036
32037 else
32038
32039cat >>confdefs.h <<\_ACEOF
32040#define HAVE_STD_EXT_HASH_MAP 0
32041_ACEOF
32042
Brian Gaeke90583492003-11-10 03:06:28 +000032043 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032044
Reid Spencera773bd52006-08-04 18:18:08 +000032045 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32046echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032047if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32048 echo $ECHO_N "(cached) $ECHO_C" >&6
32049else
32050
Reid Spencera773bd52006-08-04 18:18:08 +000032051 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032052ac_cpp='$CXXCPP $CPPFLAGS'
32053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32056
32057 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032058/* confdefs.h. */
32059_ACEOF
32060cat confdefs.h >>conftest.$ac_ext
32061cat >>conftest.$ac_ext <<_ACEOF
32062/* end confdefs.h. */
32063#include <ext/hash_map>
32064#ifdef HAVE_NAMESPACES
32065using namespace __gnu_cxx;
32066#endif
32067int
32068main ()
32069{
32070hash_map<int,int> t;
32071 ;
32072 return 0;
32073}
32074_ACEOF
32075rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032076if { (ac_try="$ac_compile"
32077case "(($ac_try" in
32078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32079 *) ac_try_echo=$ac_try;;
32080esac
32081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32082 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032083 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032084 grep -v '^ *+' conftest.er1 >conftest.err
32085 rm -f conftest.er1
32086 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032088 (exit $ac_status); } &&
32089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32090 { (case "(($ac_try" in
32091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32092 *) ac_try_echo=$ac_try;;
32093esac
32094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32095 (eval "$ac_try") 2>&5
32096 ac_status=$?
32097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098 (exit $ac_status); }; } &&
32099 { ac_try='test -s conftest.$ac_objext'
32100 { (case "(($ac_try" in
32101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32102 *) ac_try_echo=$ac_try;;
32103esac
32104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32105 (eval "$ac_try") 2>&5
32106 ac_status=$?
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032109 ac_cv_cxx_have_gnu_ext_hash_map=yes
32110else
32111 echo "$as_me: failed program was:" >&5
32112sed 's/^/| /' conftest.$ac_ext >&5
32113
Reid Spencera773bd52006-08-04 18:18:08 +000032114 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032115fi
Reid Spencera773bd52006-08-04 18:18:08 +000032116
32117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032118 ac_ext=c
32119ac_cpp='$CPP $CPPFLAGS'
32120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32122ac_compiler_gnu=$ac_cv_c_compiler_gnu
32123
32124fi
Reid Spencera773bd52006-08-04 18:18:08 +000032125{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32126echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032127 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32128 then
John Criswell9f011862004-09-24 18:28:00 +000032129
32130cat >>confdefs.h <<\_ACEOF
32131#define HAVE_GNU_EXT_HASH_MAP 1
32132_ACEOF
32133
32134 else
32135
32136cat >>confdefs.h <<\_ACEOF
32137#define HAVE_GNU_EXT_HASH_MAP 0
32138_ACEOF
32139
Brian Gaeke90583492003-11-10 03:06:28 +000032140 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032141
Reid Spencera773bd52006-08-04 18:18:08 +000032142 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32143echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032144if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32145 echo $ECHO_N "(cached) $ECHO_C" >&6
32146else
John Criswell7a73b802003-06-30 21:59:07 +000032147
Reid Spencera773bd52006-08-04 18:18:08 +000032148 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032149ac_cpp='$CXXCPP $CPPFLAGS'
32150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32153
32154 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032155/* confdefs.h. */
32156_ACEOF
32157cat confdefs.h >>conftest.$ac_ext
32158cat >>conftest.$ac_ext <<_ACEOF
32159/* end confdefs.h. */
32160#include <hash_map>
32161int
32162main ()
32163{
32164hash_map<int,int> t;
32165 ;
32166 return 0;
32167}
32168_ACEOF
32169rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032170if { (ac_try="$ac_compile"
32171case "(($ac_try" in
32172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32173 *) ac_try_echo=$ac_try;;
32174esac
32175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32176 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032177 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032178 grep -v '^ *+' conftest.er1 >conftest.err
32179 rm -f conftest.er1
32180 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032182 (exit $ac_status); } &&
32183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32184 { (case "(($ac_try" in
32185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32186 *) ac_try_echo=$ac_try;;
32187esac
32188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32189 (eval "$ac_try") 2>&5
32190 ac_status=$?
32191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32192 (exit $ac_status); }; } &&
32193 { ac_try='test -s conftest.$ac_objext'
32194 { (case "(($ac_try" in
32195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32196 *) ac_try_echo=$ac_try;;
32197esac
32198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32199 (eval "$ac_try") 2>&5
32200 ac_status=$?
32201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32202 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032203 ac_cv_cxx_have_global_hash_map=yes
32204else
32205 echo "$as_me: failed program was:" >&5
32206sed 's/^/| /' conftest.$ac_ext >&5
32207
Reid Spencera773bd52006-08-04 18:18:08 +000032208 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032209fi
Reid Spencera773bd52006-08-04 18:18:08 +000032210
32211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032212 ac_ext=c
32213ac_cpp='$CPP $CPPFLAGS'
32214ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32215ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32216ac_compiler_gnu=$ac_cv_c_compiler_gnu
32217
32218fi
Reid Spencera773bd52006-08-04 18:18:08 +000032219{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32220echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032221 if test "$ac_cv_cxx_have_global_hash_map" = yes
32222 then
John Criswell9f011862004-09-24 18:28:00 +000032223
32224cat >>confdefs.h <<\_ACEOF
32225#define HAVE_GLOBAL_HASH_MAP 1
32226_ACEOF
32227
32228 else
32229
32230cat >>confdefs.h <<\_ACEOF
32231#define HAVE_GLOBAL_HASH_MAP 0
32232_ACEOF
32233
Brian Gaeke90583492003-11-10 03:06:28 +000032234 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032235
Reid Spencera773bd52006-08-04 18:18:08 +000032236{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32237echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032238if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032239 echo $ECHO_N "(cached) $ECHO_C" >&6
32240else
32241
Reid Spencera773bd52006-08-04 18:18:08 +000032242 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032243ac_cpp='$CXXCPP $CPPFLAGS'
32244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32247
32248 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032249/* confdefs.h. */
32250_ACEOF
32251cat confdefs.h >>conftest.$ac_ext
32252cat >>conftest.$ac_ext <<_ACEOF
32253/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032254#include <ext/hash_set>
32255#ifdef HAVE_NAMESPACES
32256using namespace std;
32257#endif
John Criswell7a73b802003-06-30 21:59:07 +000032258int
32259main ()
32260{
Brian Gaeke90583492003-11-10 03:06:28 +000032261hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032262 ;
32263 return 0;
32264}
32265_ACEOF
32266rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032267if { (ac_try="$ac_compile"
32268case "(($ac_try" in
32269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32270 *) ac_try_echo=$ac_try;;
32271esac
32272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32273 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032274 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032275 grep -v '^ *+' conftest.er1 >conftest.err
32276 rm -f conftest.er1
32277 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032279 (exit $ac_status); } &&
32280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32281 { (case "(($ac_try" in
32282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32283 *) ac_try_echo=$ac_try;;
32284esac
32285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286 (eval "$ac_try") 2>&5
32287 ac_status=$?
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); }; } &&
32290 { ac_try='test -s conftest.$ac_objext'
32291 { (case "(($ac_try" in
32292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293 *) ac_try_echo=$ac_try;;
32294esac
32295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296 (eval "$ac_try") 2>&5
32297 ac_status=$?
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032300 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032301else
32302 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032303sed 's/^/| /' conftest.$ac_ext >&5
32304
Reid Spencera773bd52006-08-04 18:18:08 +000032305 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032306fi
Reid Spencera773bd52006-08-04 18:18:08 +000032307
32308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032309 ac_ext=c
32310ac_cpp='$CPP $CPPFLAGS'
32311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32313ac_compiler_gnu=$ac_cv_c_compiler_gnu
32314
32315fi
Reid Spencera773bd52006-08-04 18:18:08 +000032316{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32317echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032318 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32319 then
John Criswell9f011862004-09-24 18:28:00 +000032320
32321cat >>confdefs.h <<\_ACEOF
32322#define HAVE_STD_EXT_HASH_SET 1
32323_ACEOF
32324
32325 else
32326
32327cat >>confdefs.h <<\_ACEOF
32328#define HAVE_STD_EXT_HASH_SET 0
32329_ACEOF
32330
Brian Gaeke90583492003-11-10 03:06:28 +000032331 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032332
Reid Spencera773bd52006-08-04 18:18:08 +000032333 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32334echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032335if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32336 echo $ECHO_N "(cached) $ECHO_C" >&6
32337else
32338
Reid Spencera773bd52006-08-04 18:18:08 +000032339 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032340ac_cpp='$CXXCPP $CPPFLAGS'
32341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32344
John Criswell7a73b802003-06-30 21:59:07 +000032345 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032346/* confdefs.h. */
32347_ACEOF
32348cat confdefs.h >>conftest.$ac_ext
32349cat >>conftest.$ac_ext <<_ACEOF
32350/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032351#include <ext/hash_set>
32352#ifdef HAVE_NAMESPACES
32353using namespace __gnu_cxx;
32354#endif
John Criswell7a73b802003-06-30 21:59:07 +000032355int
32356main ()
32357{
Brian Gaeke90583492003-11-10 03:06:28 +000032358hash_set<int> t;
32359 ;
32360 return 0;
32361}
32362_ACEOF
32363rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032364if { (ac_try="$ac_compile"
32365case "(($ac_try" in
32366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367 *) ac_try_echo=$ac_try;;
32368esac
32369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32370 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032372 grep -v '^ *+' conftest.er1 >conftest.err
32373 rm -f conftest.er1
32374 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032376 (exit $ac_status); } &&
32377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32378 { (case "(($ac_try" in
32379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380 *) ac_try_echo=$ac_try;;
32381esac
32382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383 (eval "$ac_try") 2>&5
32384 ac_status=$?
32385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386 (exit $ac_status); }; } &&
32387 { ac_try='test -s conftest.$ac_objext'
32388 { (case "(($ac_try" in
32389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390 *) ac_try_echo=$ac_try;;
32391esac
32392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32393 (eval "$ac_try") 2>&5
32394 ac_status=$?
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032397 ac_cv_cxx_have_gnu_ext_hash_set=yes
32398else
32399 echo "$as_me: failed program was:" >&5
32400sed 's/^/| /' conftest.$ac_ext >&5
32401
Reid Spencera773bd52006-08-04 18:18:08 +000032402 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032403fi
Reid Spencera773bd52006-08-04 18:18:08 +000032404
32405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032406 ac_ext=c
32407ac_cpp='$CPP $CPPFLAGS'
32408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410ac_compiler_gnu=$ac_cv_c_compiler_gnu
32411
32412fi
Reid Spencera773bd52006-08-04 18:18:08 +000032413{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32414echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032415 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32416 then
John Criswell9f011862004-09-24 18:28:00 +000032417
32418cat >>confdefs.h <<\_ACEOF
32419#define HAVE_GNU_EXT_HASH_SET 1
32420_ACEOF
32421
32422 else
32423
32424cat >>confdefs.h <<\_ACEOF
32425#define HAVE_GNU_EXT_HASH_SET 0
32426_ACEOF
32427
Brian Gaeke90583492003-11-10 03:06:28 +000032428 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032429
Reid Spencera773bd52006-08-04 18:18:08 +000032430 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32431echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032432if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32433 echo $ECHO_N "(cached) $ECHO_C" >&6
32434else
32435
Reid Spencera773bd52006-08-04 18:18:08 +000032436 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032437ac_cpp='$CXXCPP $CPPFLAGS'
32438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32441
32442 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032443/* confdefs.h. */
32444_ACEOF
32445cat confdefs.h >>conftest.$ac_ext
32446cat >>conftest.$ac_ext <<_ACEOF
32447/* end confdefs.h. */
32448#include <hash_set>
32449int
32450main ()
32451{
John Criswell7a73b802003-06-30 21:59:07 +000032452hash_set<int> t; return 0;
32453 ;
32454 return 0;
32455}
32456_ACEOF
32457rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032458if { (ac_try="$ac_compile"
32459case "(($ac_try" in
32460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32461 *) ac_try_echo=$ac_try;;
32462esac
32463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32464 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032465 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032466 grep -v '^ *+' conftest.er1 >conftest.err
32467 rm -f conftest.er1
32468 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032470 (exit $ac_status); } &&
32471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32472 { (case "(($ac_try" in
32473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32474 *) ac_try_echo=$ac_try;;
32475esac
32476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32477 (eval "$ac_try") 2>&5
32478 ac_status=$?
32479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32480 (exit $ac_status); }; } &&
32481 { ac_try='test -s conftest.$ac_objext'
32482 { (case "(($ac_try" in
32483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32484 *) ac_try_echo=$ac_try;;
32485esac
32486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32487 (eval "$ac_try") 2>&5
32488 ac_status=$?
32489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032491 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032492else
32493 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032494sed 's/^/| /' conftest.$ac_ext >&5
32495
Reid Spencera773bd52006-08-04 18:18:08 +000032496 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032497fi
Reid Spencera773bd52006-08-04 18:18:08 +000032498
32499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032500 ac_ext=c
32501ac_cpp='$CPP $CPPFLAGS'
32502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32504ac_compiler_gnu=$ac_cv_c_compiler_gnu
32505
John Criswell7a73b802003-06-30 21:59:07 +000032506fi
Reid Spencera773bd52006-08-04 18:18:08 +000032507{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32508echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032509 if test "$ac_cv_cxx_have_global_hash_set" = yes
32510 then
John Criswell9f011862004-09-24 18:28:00 +000032511
32512cat >>confdefs.h <<\_ACEOF
32513#define HAVE_GLOBAL_HASH_SET 1
32514_ACEOF
32515
32516 else
32517
32518cat >>confdefs.h <<\_ACEOF
32519#define HAVE_GLOBAL_HASH_SET 0
32520_ACEOF
32521
Brian Gaeke90583492003-11-10 03:06:28 +000032522 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032523
Reid Spencera773bd52006-08-04 18:18:08 +000032524{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32525echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032526if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32527 echo $ECHO_N "(cached) $ECHO_C" >&6
32528else
32529
Reid Spencera773bd52006-08-04 18:18:08 +000032530 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032531ac_cpp='$CXXCPP $CPPFLAGS'
32532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32535
32536 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032537/* confdefs.h. */
32538_ACEOF
32539cat confdefs.h >>conftest.$ac_ext
32540cat >>conftest.$ac_ext <<_ACEOF
32541/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032542#include <iterator>
32543#ifdef HAVE_NAMESPACES
32544using namespace std;
32545#endif
John Criswell7a73b802003-06-30 21:59:07 +000032546int
32547main ()
32548{
32549iterator<int,int,int> t; return 0;
32550 ;
32551 return 0;
32552}
32553_ACEOF
32554rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032555if { (ac_try="$ac_compile"
32556case "(($ac_try" in
32557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558 *) ac_try_echo=$ac_try;;
32559esac
32560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032562 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032563 grep -v '^ *+' conftest.er1 >conftest.err
32564 rm -f conftest.er1
32565 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032567 (exit $ac_status); } &&
32568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32569 { (case "(($ac_try" in
32570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32571 *) ac_try_echo=$ac_try;;
32572esac
32573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32574 (eval "$ac_try") 2>&5
32575 ac_status=$?
32576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577 (exit $ac_status); }; } &&
32578 { ac_try='test -s conftest.$ac_objext'
32579 { (case "(($ac_try" in
32580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32581 *) ac_try_echo=$ac_try;;
32582esac
32583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32584 (eval "$ac_try") 2>&5
32585 ac_status=$?
32586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032588 ac_cv_cxx_have_std_iterator=yes
32589else
32590 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032591sed 's/^/| /' conftest.$ac_ext >&5
32592
Reid Spencera773bd52006-08-04 18:18:08 +000032593 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032594fi
Reid Spencera773bd52006-08-04 18:18:08 +000032595
32596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032597 ac_ext=c
32598ac_cpp='$CPP $CPPFLAGS'
32599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32601ac_compiler_gnu=$ac_cv_c_compiler_gnu
32602
32603
32604fi
Reid Spencera773bd52006-08-04 18:18:08 +000032605{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32606echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032607if test "$ac_cv_cxx_have_std_iterator" = yes
32608then
John Criswell40468462004-09-24 21:19:06 +000032609
32610cat >>confdefs.h <<\_ACEOF
32611#define HAVE_STD_ITERATOR 1
32612_ACEOF
32613
32614else
32615
32616cat >>confdefs.h <<\_ACEOF
32617#define HAVE_STD_ITERATOR 0
32618_ACEOF
32619
John Criswell7a73b802003-06-30 21:59:07 +000032620fi
32621
Reid Spencera773bd52006-08-04 18:18:08 +000032622{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32623echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032624if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32625 echo $ECHO_N "(cached) $ECHO_C" >&6
32626else
32627
Reid Spencera773bd52006-08-04 18:18:08 +000032628 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032629ac_cpp='$CXXCPP $CPPFLAGS'
32630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32633
32634 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032635/* confdefs.h. */
32636_ACEOF
32637cat confdefs.h >>conftest.$ac_ext
32638cat >>conftest.$ac_ext <<_ACEOF
32639/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032640#include <iterator>
32641#ifdef HAVE_NAMESPACES
32642using namespace std;
32643#endif
John Criswell7a73b802003-06-30 21:59:07 +000032644int
32645main ()
32646{
John Criswellc78022e2003-07-29 19:11:58 +000032647bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032648 ;
32649 return 0;
32650}
32651_ACEOF
32652rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032653if { (ac_try="$ac_compile"
32654case "(($ac_try" in
32655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32656 *) ac_try_echo=$ac_try;;
32657esac
32658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32659 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032660 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032661 grep -v '^ *+' conftest.er1 >conftest.err
32662 rm -f conftest.er1
32663 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032665 (exit $ac_status); } &&
32666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32667 { (case "(($ac_try" in
32668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32669 *) ac_try_echo=$ac_try;;
32670esac
32671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32672 (eval "$ac_try") 2>&5
32673 ac_status=$?
32674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32675 (exit $ac_status); }; } &&
32676 { ac_try='test -s conftest.$ac_objext'
32677 { (case "(($ac_try" in
32678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32679 *) ac_try_echo=$ac_try;;
32680esac
32681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32682 (eval "$ac_try") 2>&5
32683 ac_status=$?
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032686 ac_cv_cxx_have_bi_iterator=yes
32687else
32688 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032689sed 's/^/| /' conftest.$ac_ext >&5
32690
Reid Spencera773bd52006-08-04 18:18:08 +000032691 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032692fi
Reid Spencera773bd52006-08-04 18:18:08 +000032693
32694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032695 ac_ext=c
32696ac_cpp='$CPP $CPPFLAGS'
32697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32699ac_compiler_gnu=$ac_cv_c_compiler_gnu
32700
32701
32702fi
Reid Spencera773bd52006-08-04 18:18:08 +000032703{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32704echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032705if test "$ac_cv_cxx_have_bi_iterator" = yes
32706then
John Criswell40468462004-09-24 21:19:06 +000032707
32708cat >>confdefs.h <<\_ACEOF
32709#define HAVE_BI_ITERATOR 1
32710_ACEOF
32711
32712else
32713
32714cat >>confdefs.h <<\_ACEOF
32715#define HAVE_BI_ITERATOR 0
32716_ACEOF
32717
John Criswell7a73b802003-06-30 21:59:07 +000032718fi
32719
Reid Spencera773bd52006-08-04 18:18:08 +000032720{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32721echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032722if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32723 echo $ECHO_N "(cached) $ECHO_C" >&6
32724else
32725
Reid Spencera773bd52006-08-04 18:18:08 +000032726 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032727ac_cpp='$CXXCPP $CPPFLAGS'
32728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32731
32732 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032733/* confdefs.h. */
32734_ACEOF
32735cat confdefs.h >>conftest.$ac_ext
32736cat >>conftest.$ac_ext <<_ACEOF
32737/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032738#include <iterator>
32739#ifdef HAVE_NAMESPACES
32740using namespace std;
32741#endif
John Criswell7a73b802003-06-30 21:59:07 +000032742int
32743main ()
32744{
John Criswellc78022e2003-07-29 19:11:58 +000032745forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032746 ;
32747 return 0;
32748}
32749_ACEOF
32750rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032751if { (ac_try="$ac_compile"
32752case "(($ac_try" in
32753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32754 *) ac_try_echo=$ac_try;;
32755esac
32756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32757 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032758 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032759 grep -v '^ *+' conftest.er1 >conftest.err
32760 rm -f conftest.er1
32761 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032763 (exit $ac_status); } &&
32764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32765 { (case "(($ac_try" in
32766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32767 *) ac_try_echo=$ac_try;;
32768esac
32769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32770 (eval "$ac_try") 2>&5
32771 ac_status=$?
32772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773 (exit $ac_status); }; } &&
32774 { ac_try='test -s conftest.$ac_objext'
32775 { (case "(($ac_try" in
32776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32777 *) ac_try_echo=$ac_try;;
32778esac
32779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32780 (eval "$ac_try") 2>&5
32781 ac_status=$?
32782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032784 ac_cv_cxx_have_fwd_iterator=yes
32785else
32786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032787sed 's/^/| /' conftest.$ac_ext >&5
32788
Reid Spencera773bd52006-08-04 18:18:08 +000032789 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032790fi
Reid Spencera773bd52006-08-04 18:18:08 +000032791
32792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032793 ac_ext=c
32794ac_cpp='$CPP $CPPFLAGS'
32795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32797ac_compiler_gnu=$ac_cv_c_compiler_gnu
32798
32799
32800fi
Reid Spencera773bd52006-08-04 18:18:08 +000032801{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32802echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032803if test "$ac_cv_cxx_have_fwd_iterator" = yes
32804then
John Criswell40468462004-09-24 21:19:06 +000032805
32806cat >>confdefs.h <<\_ACEOF
32807#define HAVE_FWD_ITERATOR 1
32808_ACEOF
32809
32810else
32811
32812cat >>confdefs.h <<\_ACEOF
32813#define HAVE_FWD_ITERATOR 0
32814_ACEOF
32815
John Criswell7a73b802003-06-30 21:59:07 +000032816fi
32817
32818
Reid Spencera773bd52006-08-04 18:18:08 +000032819{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32820echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032821if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32822 echo $ECHO_N "(cached) $ECHO_C" >&6
32823else
Reid Spencera773bd52006-08-04 18:18:08 +000032824 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032825ac_cpp='$CXXCPP $CPPFLAGS'
32826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32829
Reid Spencerabec8f92004-10-27 23:03:44 +000032830 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032831/* confdefs.h. */
32832_ACEOF
32833cat confdefs.h >>conftest.$ac_ext
32834cat >>conftest.$ac_ext <<_ACEOF
32835/* end confdefs.h. */
32836#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032837int
32838main ()
32839{
32840float f; isnan(f);
32841 ;
32842 return 0;
32843}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032844_ACEOF
32845rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032846if { (ac_try="$ac_compile"
32847case "(($ac_try" in
32848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32849 *) ac_try_echo=$ac_try;;
32850esac
32851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32852 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032853 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032854 grep -v '^ *+' conftest.er1 >conftest.err
32855 rm -f conftest.er1
32856 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032858 (exit $ac_status); } &&
32859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32860 { (case "(($ac_try" in
32861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32862 *) ac_try_echo=$ac_try;;
32863esac
32864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32865 (eval "$ac_try") 2>&5
32866 ac_status=$?
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 (exit $ac_status); }; } &&
32869 { ac_try='test -s conftest.$ac_objext'
32870 { (case "(($ac_try" in
32871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32872 *) ac_try_echo=$ac_try;;
32873esac
32874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32875 (eval "$ac_try") 2>&5
32876 ac_status=$?
32877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32878 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032879 ac_cv_func_isnan_in_math_h=yes
32880else
32881 echo "$as_me: failed program was:" >&5
32882sed 's/^/| /' conftest.$ac_ext >&5
32883
Reid Spencera773bd52006-08-04 18:18:08 +000032884 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032885fi
Reid Spencera773bd52006-08-04 18:18:08 +000032886
32887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032888 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032889ac_cpp='$CPP $CPPFLAGS'
32890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32892ac_compiler_gnu=$ac_cv_c_compiler_gnu
32893
32894fi
Reid Spencera773bd52006-08-04 18:18:08 +000032895{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32896echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032897
32898
32899if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032900
32901cat >>confdefs.h <<\_ACEOF
32902#define HAVE_ISNAN_IN_MATH_H 1
32903_ACEOF
32904
Reid Spencerabec8f92004-10-27 23:03:44 +000032905fi
32906
Reid Spencera773bd52006-08-04 18:18:08 +000032907{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32908echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032909if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32910 echo $ECHO_N "(cached) $ECHO_C" >&6
32911else
Reid Spencera773bd52006-08-04 18:18:08 +000032912 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032913ac_cpp='$CXXCPP $CPPFLAGS'
32914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32917
Reid Spencerabec8f92004-10-27 23:03:44 +000032918 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032919/* confdefs.h. */
32920_ACEOF
32921cat confdefs.h >>conftest.$ac_ext
32922cat >>conftest.$ac_ext <<_ACEOF
32923/* end confdefs.h. */
32924#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032925int
32926main ()
32927{
32928float f; isnan(f);
32929 ;
32930 return 0;
32931}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032932_ACEOF
32933rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032934if { (ac_try="$ac_compile"
32935case "(($ac_try" in
32936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32937 *) ac_try_echo=$ac_try;;
32938esac
32939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32940 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032941 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032942 grep -v '^ *+' conftest.er1 >conftest.err
32943 rm -f conftest.er1
32944 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032946 (exit $ac_status); } &&
32947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32948 { (case "(($ac_try" in
32949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32950 *) ac_try_echo=$ac_try;;
32951esac
32952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32953 (eval "$ac_try") 2>&5
32954 ac_status=$?
32955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956 (exit $ac_status); }; } &&
32957 { ac_try='test -s conftest.$ac_objext'
32958 { (case "(($ac_try" in
32959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32960 *) ac_try_echo=$ac_try;;
32961esac
32962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32963 (eval "$ac_try") 2>&5
32964 ac_status=$?
32965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32966 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032967 ac_cv_func_isnan_in_cmath=yes
32968else
32969 echo "$as_me: failed program was:" >&5
32970sed 's/^/| /' conftest.$ac_ext >&5
32971
Reid Spencera773bd52006-08-04 18:18:08 +000032972 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032973fi
Reid Spencera773bd52006-08-04 18:18:08 +000032974
32975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032976 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032977ac_cpp='$CPP $CPPFLAGS'
32978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32980ac_compiler_gnu=$ac_cv_c_compiler_gnu
32981
32982fi
Reid Spencera773bd52006-08-04 18:18:08 +000032983{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32984echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032985
32986if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032987
32988cat >>confdefs.h <<\_ACEOF
32989#define HAVE_ISNAN_IN_CMATH 1
32990_ACEOF
32991
Reid Spencerabec8f92004-10-27 23:03:44 +000032992fi
32993
Reid Spencera773bd52006-08-04 18:18:08 +000032994{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32995echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032996if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32997 echo $ECHO_N "(cached) $ECHO_C" >&6
32998else
Reid Spencera773bd52006-08-04 18:18:08 +000032999 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033000ac_cpp='$CXXCPP $CPPFLAGS'
33001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33004
Reid Spencerabec8f92004-10-27 23:03:44 +000033005 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033006/* confdefs.h. */
33007_ACEOF
33008cat confdefs.h >>conftest.$ac_ext
33009cat >>conftest.$ac_ext <<_ACEOF
33010/* end confdefs.h. */
33011#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033012int
33013main ()
33014{
33015float f; std::isnan(f);
33016 ;
33017 return 0;
33018}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033019_ACEOF
33020rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033021if { (ac_try="$ac_compile"
33022case "(($ac_try" in
33023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33024 *) ac_try_echo=$ac_try;;
33025esac
33026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33027 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033028 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033029 grep -v '^ *+' conftest.er1 >conftest.err
33030 rm -f conftest.er1
33031 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033033 (exit $ac_status); } &&
33034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33035 { (case "(($ac_try" in
33036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33037 *) ac_try_echo=$ac_try;;
33038esac
33039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33040 (eval "$ac_try") 2>&5
33041 ac_status=$?
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); }; } &&
33044 { ac_try='test -s conftest.$ac_objext'
33045 { (case "(($ac_try" in
33046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33047 *) ac_try_echo=$ac_try;;
33048esac
33049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33050 (eval "$ac_try") 2>&5
33051 ac_status=$?
33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33053 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033054 ac_cv_func_std_isnan_in_cmath=yes
33055else
33056 echo "$as_me: failed program was:" >&5
33057sed 's/^/| /' conftest.$ac_ext >&5
33058
Reid Spencera773bd52006-08-04 18:18:08 +000033059 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033060fi
Reid Spencera773bd52006-08-04 18:18:08 +000033061
33062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033063 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033064ac_cpp='$CPP $CPPFLAGS'
33065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33067ac_compiler_gnu=$ac_cv_c_compiler_gnu
33068
33069fi
Reid Spencera773bd52006-08-04 18:18:08 +000033070{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33071echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033072
33073if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033074
33075cat >>confdefs.h <<\_ACEOF
33076#define HAVE_STD_ISNAN_IN_CMATH 1
33077_ACEOF
33078
Reid Spencerabec8f92004-10-27 23:03:44 +000033079fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033080
33081
Reid Spencera773bd52006-08-04 18:18:08 +000033082{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33083echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033084if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33085 echo $ECHO_N "(cached) $ECHO_C" >&6
33086else
Reid Spencera773bd52006-08-04 18:18:08 +000033087 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033088ac_cpp='$CXXCPP $CPPFLAGS'
33089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33092
Reid Spencerabec8f92004-10-27 23:03:44 +000033093 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033094/* confdefs.h. */
33095_ACEOF
33096cat confdefs.h >>conftest.$ac_ext
33097cat >>conftest.$ac_ext <<_ACEOF
33098/* end confdefs.h. */
33099#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033100int
33101main ()
33102{
33103float f; isinf(f);
33104 ;
33105 return 0;
33106}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033107_ACEOF
33108rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033109if { (ac_try="$ac_compile"
33110case "(($ac_try" in
33111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112 *) ac_try_echo=$ac_try;;
33113esac
33114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033116 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033117 grep -v '^ *+' conftest.er1 >conftest.err
33118 rm -f conftest.er1
33119 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033121 (exit $ac_status); } &&
33122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33123 { (case "(($ac_try" in
33124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33125 *) ac_try_echo=$ac_try;;
33126esac
33127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33128 (eval "$ac_try") 2>&5
33129 ac_status=$?
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; } &&
33132 { ac_try='test -s conftest.$ac_objext'
33133 { (case "(($ac_try" in
33134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33135 *) ac_try_echo=$ac_try;;
33136esac
33137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33138 (eval "$ac_try") 2>&5
33139 ac_status=$?
33140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033142 ac_cv_func_isinf_in_math_h=yes
33143else
33144 echo "$as_me: failed program was:" >&5
33145sed 's/^/| /' conftest.$ac_ext >&5
33146
Reid Spencera773bd52006-08-04 18:18:08 +000033147 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033148fi
Reid Spencera773bd52006-08-04 18:18:08 +000033149
33150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033151 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033152ac_cpp='$CPP $CPPFLAGS'
33153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33155ac_compiler_gnu=$ac_cv_c_compiler_gnu
33156
33157fi
Reid Spencera773bd52006-08-04 18:18:08 +000033158{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33159echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033160
33161if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033162
33163cat >>confdefs.h <<\_ACEOF
33164#define HAVE_ISINF_IN_MATH_H 1
33165_ACEOF
33166
Reid Spencerabec8f92004-10-27 23:03:44 +000033167fi
33168
Reid Spencera773bd52006-08-04 18:18:08 +000033169{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33170echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033171if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33172 echo $ECHO_N "(cached) $ECHO_C" >&6
33173else
Reid Spencera773bd52006-08-04 18:18:08 +000033174 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033175ac_cpp='$CXXCPP $CPPFLAGS'
33176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33179
Reid Spencerabec8f92004-10-27 23:03:44 +000033180 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033181/* confdefs.h. */
33182_ACEOF
33183cat confdefs.h >>conftest.$ac_ext
33184cat >>conftest.$ac_ext <<_ACEOF
33185/* end confdefs.h. */
33186#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033187int
33188main ()
33189{
33190float f; isinf(f);
33191 ;
33192 return 0;
33193}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033194_ACEOF
33195rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033196if { (ac_try="$ac_compile"
33197case "(($ac_try" in
33198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199 *) ac_try_echo=$ac_try;;
33200esac
33201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033204 grep -v '^ *+' conftest.er1 >conftest.err
33205 rm -f conftest.er1
33206 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033208 (exit $ac_status); } &&
33209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33210 { (case "(($ac_try" in
33211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33212 *) ac_try_echo=$ac_try;;
33213esac
33214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33215 (eval "$ac_try") 2>&5
33216 ac_status=$?
33217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); }; } &&
33219 { ac_try='test -s conftest.$ac_objext'
33220 { (case "(($ac_try" in
33221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33222 *) ac_try_echo=$ac_try;;
33223esac
33224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33225 (eval "$ac_try") 2>&5
33226 ac_status=$?
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033229 ac_cv_func_isinf_in_cmath=yes
33230else
33231 echo "$as_me: failed program was:" >&5
33232sed 's/^/| /' conftest.$ac_ext >&5
33233
Reid Spencera773bd52006-08-04 18:18:08 +000033234 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033235fi
Reid Spencera773bd52006-08-04 18:18:08 +000033236
33237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033238 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033239ac_cpp='$CPP $CPPFLAGS'
33240ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33241ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33242ac_compiler_gnu=$ac_cv_c_compiler_gnu
33243
33244fi
Reid Spencera773bd52006-08-04 18:18:08 +000033245{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33246echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033247
33248if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033249
33250cat >>confdefs.h <<\_ACEOF
33251#define HAVE_ISINF_IN_CMATH 1
33252_ACEOF
33253
Reid Spencerabec8f92004-10-27 23:03:44 +000033254fi
33255
Reid Spencera773bd52006-08-04 18:18:08 +000033256{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33257echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033258if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33259 echo $ECHO_N "(cached) $ECHO_C" >&6
33260else
Reid Spencera773bd52006-08-04 18:18:08 +000033261 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033262ac_cpp='$CXXCPP $CPPFLAGS'
33263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33266
Reid Spencerabec8f92004-10-27 23:03:44 +000033267 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033268/* confdefs.h. */
33269_ACEOF
33270cat confdefs.h >>conftest.$ac_ext
33271cat >>conftest.$ac_ext <<_ACEOF
33272/* end confdefs.h. */
33273#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033274int
33275main ()
33276{
33277float f; std::isinf(f)}
33278 ;
33279 return 0;
33280}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033281_ACEOF
33282rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033283if { (ac_try="$ac_compile"
33284case "(($ac_try" in
33285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33286 *) ac_try_echo=$ac_try;;
33287esac
33288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33289 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033290 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033291 grep -v '^ *+' conftest.er1 >conftest.err
33292 rm -f conftest.er1
33293 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033295 (exit $ac_status); } &&
33296 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33297 { (case "(($ac_try" in
33298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33299 *) ac_try_echo=$ac_try;;
33300esac
33301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33302 (eval "$ac_try") 2>&5
33303 ac_status=$?
33304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305 (exit $ac_status); }; } &&
33306 { ac_try='test -s conftest.$ac_objext'
33307 { (case "(($ac_try" in
33308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33309 *) ac_try_echo=$ac_try;;
33310esac
33311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33312 (eval "$ac_try") 2>&5
33313 ac_status=$?
33314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033316 ac_cv_func_std_isinf_in_cmath=yes
33317else
33318 echo "$as_me: failed program was:" >&5
33319sed 's/^/| /' conftest.$ac_ext >&5
33320
Reid Spencera773bd52006-08-04 18:18:08 +000033321 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033322fi
Reid Spencera773bd52006-08-04 18:18:08 +000033323
33324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033325 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033326ac_cpp='$CPP $CPPFLAGS'
33327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33329ac_compiler_gnu=$ac_cv_c_compiler_gnu
33330
33331fi
Reid Spencera773bd52006-08-04 18:18:08 +000033332{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33333echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033334
33335if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033336
33337cat >>confdefs.h <<\_ACEOF
33338#define HAVE_STD_ISINF_IN_CMATH 1
33339_ACEOF
33340
Reid Spencerabec8f92004-10-27 23:03:44 +000033341fi
33342
Reid Spencera773bd52006-08-04 18:18:08 +000033343{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33344echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033345if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33346 echo $ECHO_N "(cached) $ECHO_C" >&6
33347else
Reid Spencera773bd52006-08-04 18:18:08 +000033348 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033349ac_cpp='$CXXCPP $CPPFLAGS'
33350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33353
Reid Spencerabec8f92004-10-27 23:03:44 +000033354 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033355/* confdefs.h. */
33356_ACEOF
33357cat confdefs.h >>conftest.$ac_ext
33358cat >>conftest.$ac_ext <<_ACEOF
33359/* end confdefs.h. */
33360#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033361int
33362main ()
33363{
33364float f; finite(f);
33365 ;
33366 return 0;
33367}
Brian Gaeked59a6472004-07-21 03:33:58 +000033368_ACEOF
33369rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033370if { (ac_try="$ac_compile"
33371case "(($ac_try" in
33372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33373 *) ac_try_echo=$ac_try;;
33374esac
33375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33376 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033377 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033378 grep -v '^ *+' conftest.er1 >conftest.err
33379 rm -f conftest.er1
33380 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033382 (exit $ac_status); } &&
33383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33384 { (case "(($ac_try" in
33385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33386 *) ac_try_echo=$ac_try;;
33387esac
33388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33389 (eval "$ac_try") 2>&5
33390 ac_status=$?
33391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392 (exit $ac_status); }; } &&
33393 { ac_try='test -s conftest.$ac_objext'
33394 { (case "(($ac_try" in
33395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33396 *) ac_try_echo=$ac_try;;
33397esac
33398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33399 (eval "$ac_try") 2>&5
33400 ac_status=$?
33401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33402 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033403 ac_cv_func_finite_in_ieeefp_h=yes
33404else
33405 echo "$as_me: failed program was:" >&5
33406sed 's/^/| /' conftest.$ac_ext >&5
33407
Reid Spencera773bd52006-08-04 18:18:08 +000033408 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033409fi
Reid Spencera773bd52006-08-04 18:18:08 +000033410
33411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033412 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033413ac_cpp='$CPP $CPPFLAGS'
33414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33416ac_compiler_gnu=$ac_cv_c_compiler_gnu
33417
33418fi
Reid Spencera773bd52006-08-04 18:18:08 +000033419{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33420echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033421
Brian Gaeke6802b552004-10-28 05:06:45 +000033422if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033423
33424cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033425#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033426_ACEOF
33427
Reid Spencerabec8f92004-10-27 23:03:44 +000033428fi
33429
33430
33431
Reid Spencer30fe5262007-01-20 07:48:49 +000033432if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033433
33434
33435for ac_header in stdlib.h unistd.h
33436do
33437as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033438if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33440echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033442 echo $ECHO_N "(cached) $ECHO_C" >&6
33443fi
Reid Spencera773bd52006-08-04 18:18:08 +000033444ac_res=`eval echo '${'$as_ac_Header'}'`
33445 { echo "$as_me:$LINENO: result: $ac_res" >&5
33446echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033447else
33448 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033449{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33450echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033451cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033452/* confdefs.h. */
33453_ACEOF
33454cat confdefs.h >>conftest.$ac_ext
33455cat >>conftest.$ac_ext <<_ACEOF
33456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033457$ac_includes_default
33458#include <$ac_header>
33459_ACEOF
33460rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033461if { (ac_try="$ac_compile"
33462case "(($ac_try" in
33463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464 *) ac_try_echo=$ac_try;;
33465esac
33466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033468 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033469 grep -v '^ *+' conftest.er1 >conftest.err
33470 rm -f conftest.er1
33471 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033473 (exit $ac_status); } &&
33474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33475 { (case "(($ac_try" in
33476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33477 *) ac_try_echo=$ac_try;;
33478esac
33479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33480 (eval "$ac_try") 2>&5
33481 ac_status=$?
33482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33483 (exit $ac_status); }; } &&
33484 { ac_try='test -s conftest.$ac_objext'
33485 { (case "(($ac_try" in
33486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33487 *) ac_try_echo=$ac_try;;
33488esac
33489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33490 (eval "$ac_try") 2>&5
33491 ac_status=$?
33492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33493 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033494 ac_header_compiler=yes
33495else
33496 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033497sed 's/^/| /' conftest.$ac_ext >&5
33498
Reid Spencera773bd52006-08-04 18:18:08 +000033499 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033500fi
Reid Spencera773bd52006-08-04 18:18:08 +000033501
33502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33503{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33504echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033505
33506# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033507{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33508echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033509cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033510/* confdefs.h. */
33511_ACEOF
33512cat confdefs.h >>conftest.$ac_ext
33513cat >>conftest.$ac_ext <<_ACEOF
33514/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033515#include <$ac_header>
33516_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033517if { (ac_try="$ac_cpp conftest.$ac_ext"
33518case "(($ac_try" in
33519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33520 *) ac_try_echo=$ac_try;;
33521esac
33522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033524 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033525 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033526 rm -f conftest.er1
33527 cat conftest.err >&5
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033529 (exit $ac_status); } >/dev/null; then
33530 if test -s conftest.err; then
33531 ac_cpp_err=$ac_c_preproc_warn_flag
33532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33533 else
33534 ac_cpp_err=
33535 fi
33536else
33537 ac_cpp_err=yes
33538fi
33539if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033540 ac_header_preproc=yes
33541else
33542 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033543sed 's/^/| /' conftest.$ac_ext >&5
33544
John Criswell7a73b802003-06-30 21:59:07 +000033545 ac_header_preproc=no
33546fi
Reid Spencera773bd52006-08-04 18:18:08 +000033547
John Criswell7a73b802003-06-30 21:59:07 +000033548rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033549{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33550echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033551
33552# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33554 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33559 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033560 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033561 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033574 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033575## ----------------------------------- ##
33576## Report this to llvmbugs@cs.uiuc.edu ##
33577## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033578_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033579 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033580 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033581esac
Reid Spencera773bd52006-08-04 18:18:08 +000033582{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033585 echo $ECHO_N "(cached) $ECHO_C" >&6
33586else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033587 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033588fi
Reid Spencera773bd52006-08-04 18:18:08 +000033589ac_res=`eval echo '${'$as_ac_Header'}'`
33590 { echo "$as_me:$LINENO: result: $ac_res" >&5
33591echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033592
33593fi
33594if test `eval echo '${'$as_ac_Header'}'` = yes; then
33595 cat >>confdefs.h <<_ACEOF
33596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33597_ACEOF
33598
33599fi
33600
33601done
33602
33603
33604for ac_func in getpagesize
33605do
33606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033607{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33609if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033610 echo $ECHO_N "(cached) $ECHO_C" >&6
33611else
33612 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033613/* confdefs.h. */
33614_ACEOF
33615cat confdefs.h >>conftest.$ac_ext
33616cat >>conftest.$ac_ext <<_ACEOF
33617/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33620#define $ac_func innocuous_$ac_func
33621
John Criswell7a73b802003-06-30 21:59:07 +000033622/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033623 which can conflict with char $ac_func (); below.
33624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33625 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033626
John Criswell0c38eaf2003-09-10 15:17:25 +000033627#ifdef __STDC__
33628# include <limits.h>
33629#else
33630# include <assert.h>
33631#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033632
33633#undef $ac_func
33634
Reid Spencera773bd52006-08-04 18:18:08 +000033635/* Override any GCC internal prototype to avoid an error.
33636 Use char because int might match the return type of a GCC
33637 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033638#ifdef __cplusplus
33639extern "C"
33640#endif
John Criswell7a73b802003-06-30 21:59:07 +000033641char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033642/* The GNU C library defines this for functions which it implements
33643 to always fail with ENOSYS. Some functions are actually named
33644 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033645#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033646choke me
John Criswell7a73b802003-06-30 21:59:07 +000033647#endif
33648
John Criswell0c38eaf2003-09-10 15:17:25 +000033649int
33650main ()
33651{
Reid Spencera773bd52006-08-04 18:18:08 +000033652return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033653 ;
33654 return 0;
33655}
33656_ACEOF
33657rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033658if { (ac_try="$ac_link"
33659case "(($ac_try" in
33660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33661 *) ac_try_echo=$ac_try;;
33662esac
33663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33664 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033665 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033666 grep -v '^ *+' conftest.er1 >conftest.err
33667 rm -f conftest.er1
33668 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033670 (exit $ac_status); } &&
33671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33672 { (case "(($ac_try" in
33673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33674 *) ac_try_echo=$ac_try;;
33675esac
33676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33677 (eval "$ac_try") 2>&5
33678 ac_status=$?
33679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33680 (exit $ac_status); }; } &&
33681 { ac_try='test -s conftest$ac_exeext'
33682 { (case "(($ac_try" in
33683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33684 *) ac_try_echo=$ac_try;;
33685esac
33686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33687 (eval "$ac_try") 2>&5
33688 ac_status=$?
33689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33690 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033691 eval "$as_ac_var=yes"
33692else
33693 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033694sed 's/^/| /' conftest.$ac_ext >&5
33695
Reid Spencera773bd52006-08-04 18:18:08 +000033696 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033697fi
Reid Spencera773bd52006-08-04 18:18:08 +000033698
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033699rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033700 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033701fi
Reid Spencera773bd52006-08-04 18:18:08 +000033702ac_res=`eval echo '${'$as_ac_var'}'`
33703 { echo "$as_me:$LINENO: result: $ac_res" >&5
33704echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033705if test `eval echo '${'$as_ac_var'}'` = yes; then
33706 cat >>confdefs.h <<_ACEOF
33707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33708_ACEOF
33709
33710fi
33711done
33712
Reid Spencera773bd52006-08-04 18:18:08 +000033713{ echo "$as_me:$LINENO: checking for working mmap" >&5
33714echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033715if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33716 echo $ECHO_N "(cached) $ECHO_C" >&6
33717else
33718 if test "$cross_compiling" = yes; then
33719 ac_cv_func_mmap_fixed_mapped=no
33720else
33721 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033722/* confdefs.h. */
33723_ACEOF
33724cat confdefs.h >>conftest.$ac_ext
33725cat >>conftest.$ac_ext <<_ACEOF
33726/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033727$ac_includes_default
33728/* malloc might have been renamed as rpl_malloc. */
33729#undef malloc
33730
33731/* Thanks to Mike Haertel and Jim Avera for this test.
33732 Here is a matrix of mmap possibilities:
33733 mmap private not fixed
33734 mmap private fixed at somewhere currently unmapped
33735 mmap private fixed at somewhere already mapped
33736 mmap shared not fixed
33737 mmap shared fixed at somewhere currently unmapped
33738 mmap shared fixed at somewhere already mapped
33739 For private mappings, we should verify that changes cannot be read()
33740 back from the file, nor mmap's back from the file at a different
33741 address. (There have been systems where private was not correctly
33742 implemented like the infamous i386 svr4.0, and systems where the
33743 VM page cache was not coherent with the file system buffer cache
33744 like early versions of FreeBSD and possibly contemporary NetBSD.)
33745 For shared mappings, we should conversely verify that changes get
33746 propagated back to all the places they're supposed to be.
33747
33748 Grep wants private fixed already mapped.
33749 The main things grep needs to know about mmap are:
33750 * does it exist and is it safe to write into the mmap'd area
33751 * how to use it (BSD variants) */
33752
33753#include <fcntl.h>
33754#include <sys/mman.h>
33755
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033756#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033757char *malloc ();
33758#endif
33759
33760/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033761#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033762/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033763# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033764# define HAVE_SYS_PARAM_H 1
33765# endif
33766
33767# ifdef _SC_PAGESIZE
33768# define getpagesize() sysconf(_SC_PAGESIZE)
33769# else /* no _SC_PAGESIZE */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033770# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033771# include <sys/param.h>
33772# ifdef EXEC_PAGESIZE
33773# define getpagesize() EXEC_PAGESIZE
33774# else /* no EXEC_PAGESIZE */
33775# ifdef NBPG
33776# define getpagesize() NBPG * CLSIZE
33777# ifndef CLSIZE
33778# define CLSIZE 1
33779# endif /* no CLSIZE */
33780# else /* no NBPG */
33781# ifdef NBPC
33782# define getpagesize() NBPC
33783# else /* no NBPC */
33784# ifdef PAGESIZE
33785# define getpagesize() PAGESIZE
33786# endif /* PAGESIZE */
33787# endif /* no NBPC */
33788# endif /* no NBPG */
33789# endif /* no EXEC_PAGESIZE */
33790# else /* no HAVE_SYS_PARAM_H */
33791# define getpagesize() 8192 /* punt totally */
33792# endif /* no HAVE_SYS_PARAM_H */
33793# endif /* no _SC_PAGESIZE */
33794
33795#endif /* no HAVE_GETPAGESIZE */
33796
33797int
33798main ()
33799{
33800 char *data, *data2, *data3;
33801 int i, pagesize;
33802 int fd;
33803
33804 pagesize = getpagesize ();
33805
33806 /* First, make a file with some known garbage in it. */
33807 data = (char *) malloc (pagesize);
33808 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033809 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033810 for (i = 0; i < pagesize; ++i)
33811 *(data + i) = rand ();
33812 umask (0);
33813 fd = creat ("conftest.mmap", 0600);
33814 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033815 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033816 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033817 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033818 close (fd);
33819
33820 /* Next, try to mmap the file at a fixed address which already has
33821 something else allocated at it. If we can, also make sure that
33822 we see the same garbage. */
33823 fd = open ("conftest.mmap", O_RDWR);
33824 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033825 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033826 data2 = (char *) malloc (2 * pagesize);
33827 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033828 return 1;
33829 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033830 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033831 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033832 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033833 for (i = 0; i < pagesize; ++i)
33834 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033835 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033836
33837 /* Finally, make sure that changes to the mapped area do not
33838 percolate back to the file as seen by read(). (This is a bug on
33839 some variants of i386 svr4.0.) */
33840 for (i = 0; i < pagesize; ++i)
33841 *(data2 + i) = *(data2 + i) + 1;
33842 data3 = (char *) malloc (pagesize);
33843 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033844 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033845 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033846 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033847 for (i = 0; i < pagesize; ++i)
33848 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033849 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033850 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033851 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033852}
33853_ACEOF
33854rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033855if { (ac_try="$ac_link"
33856case "(($ac_try" in
33857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33858 *) ac_try_echo=$ac_try;;
33859esac
33860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33861 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033862 ac_status=$?
33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033865 { (case "(($ac_try" in
33866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33867 *) ac_try_echo=$ac_try;;
33868esac
33869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33870 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033871 ac_status=$?
33872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33873 (exit $ac_status); }; }; then
33874 ac_cv_func_mmap_fixed_mapped=yes
33875else
33876 echo "$as_me: program exited with status $ac_status" >&5
33877echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033878sed 's/^/| /' conftest.$ac_ext >&5
33879
John Criswell7a73b802003-06-30 21:59:07 +000033880( exit $ac_status )
33881ac_cv_func_mmap_fixed_mapped=no
33882fi
Reid Spencera773bd52006-08-04 18:18:08 +000033883rm -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 +000033884fi
Reid Spencera773bd52006-08-04 18:18:08 +000033885
33886
John Criswell7a73b802003-06-30 21:59:07 +000033887fi
Reid Spencera773bd52006-08-04 18:18:08 +000033888{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33889echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033890if test $ac_cv_func_mmap_fixed_mapped = yes; then
33891
33892cat >>confdefs.h <<\_ACEOF
33893#define HAVE_MMAP 1
33894_ACEOF
33895
33896fi
33897rm -f conftest.mmap
33898
Reid Spencer30fe5262007-01-20 07:48:49 +000033899 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033900echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033901if test "${ac_cv_func_mmap_file+set}" = set; then
33902 echo $ECHO_N "(cached) $ECHO_C" >&6
33903else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033904 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033905ac_cpp='$CPP $CPPFLAGS'
33906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33908ac_compiler_gnu=$ac_cv_c_compiler_gnu
33909
33910 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033911 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033912else
33913 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033914
Reid Spencer777ce172004-09-20 04:09:56 +000033915 /* confdefs.h. */
33916_ACEOF
33917cat confdefs.h >>conftest.$ac_ext
33918cat >>conftest.$ac_ext <<_ACEOF
33919/* end confdefs.h. */
33920
John Criswell7a73b802003-06-30 21:59:07 +000033921#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033922#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033923#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033924
33925int
33926main ()
33927{
John Criswell7a73b802003-06-30 21:59:07 +000033928
33929 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033930 fd = creat ("foo",0777);
33931 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33932 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033933 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033934 ;
33935 return 0;
33936}
John Criswell7a73b802003-06-30 21:59:07 +000033937_ACEOF
33938rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033939if { (ac_try="$ac_link"
33940case "(($ac_try" in
33941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33942 *) ac_try_echo=$ac_try;;
33943esac
33944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33945 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033946 ac_status=$?
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033949 { (case "(($ac_try" in
33950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33951 *) ac_try_echo=$ac_try;;
33952esac
33953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33954 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033955 ac_status=$?
33956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957 (exit $ac_status); }; }; then
33958 ac_cv_func_mmap_file=yes
33959else
33960 echo "$as_me: program exited with status $ac_status" >&5
33961echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033962sed 's/^/| /' conftest.$ac_ext >&5
33963
John Criswell7a73b802003-06-30 21:59:07 +000033964( exit $ac_status )
33965ac_cv_func_mmap_file=no
33966fi
Reid Spencera773bd52006-08-04 18:18:08 +000033967rm -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 +000033968fi
Reid Spencera773bd52006-08-04 18:18:08 +000033969
33970
John Criswell7a73b802003-06-30 21:59:07 +000033971 ac_ext=c
33972ac_cpp='$CPP $CPPFLAGS'
33973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33975ac_compiler_gnu=$ac_cv_c_compiler_gnu
33976
33977
33978fi
Reid Spencera773bd52006-08-04 18:18:08 +000033979{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33980echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033981if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033982
33983cat >>confdefs.h <<\_ACEOF
33984#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033985_ACEOF
33986
33987 MMAP_FILE=yes
33988
33989fi
33990
Reid Spencer30fe5262007-01-20 07:48:49 +000033991 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033992echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033993if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33994 echo $ECHO_N "(cached) $ECHO_C" >&6
33995else
Reid Spencer582a23c2004-12-29 07:07:57 +000033996 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033997 ac_cv_need_dev_zero_for_mmap=yes
33998 else
33999 ac_cv_need_dev_zero_for_mmap=no
34000 fi
34001
34002fi
Reid Spencera773bd52006-08-04 18:18:08 +000034003{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34004echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034005if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34006
34007cat >>confdefs.h <<\_ACEOF
34008#define NEED_DEV_ZERO_FOR_MMAP 1
34009_ACEOF
34010
34011fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034012
Reid Spencer30fe5262007-01-20 07:48:49 +000034013 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34014 then
34015 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034016echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034017 fi
34018 if test "$ac_cv_func_mmap_file" = "no"
34019 then
34020 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034021echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034022 fi
John Criswellb13092b2003-07-22 21:00:24 +000034023fi
John Criswell7a73b802003-06-30 21:59:07 +000034024
34025
Reid Spencer9372f152007-07-30 20:13:24 +000034026
34027for ac_func in __dso_handle
34028do
34029as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34030{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34031echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34032if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34033 echo $ECHO_N "(cached) $ECHO_C" >&6
34034else
34035 cat >conftest.$ac_ext <<_ACEOF
34036/* confdefs.h. */
34037_ACEOF
34038cat confdefs.h >>conftest.$ac_ext
34039cat >>conftest.$ac_ext <<_ACEOF
34040/* end confdefs.h. */
34041/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34043#define $ac_func innocuous_$ac_func
34044
34045/* System header to define __stub macros and hopefully few prototypes,
34046 which can conflict with char $ac_func (); below.
34047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34048 <limits.h> exists even on freestanding compilers. */
34049
34050#ifdef __STDC__
34051# include <limits.h>
34052#else
34053# include <assert.h>
34054#endif
34055
34056#undef $ac_func
34057
34058/* Override any GCC internal prototype to avoid an error.
34059 Use char because int might match the return type of a GCC
34060 builtin and then its argument prototype would still apply. */
34061#ifdef __cplusplus
34062extern "C"
34063#endif
34064char $ac_func ();
34065/* The GNU C library defines this for functions which it implements
34066 to always fail with ENOSYS. Some functions are actually named
34067 something starting with __ and the normal name is an alias. */
34068#if defined __stub_$ac_func || defined __stub___$ac_func
34069choke me
34070#endif
34071
34072int
34073main ()
34074{
34075return $ac_func ();
34076 ;
34077 return 0;
34078}
34079_ACEOF
34080rm -f conftest.$ac_objext conftest$ac_exeext
34081if { (ac_try="$ac_link"
34082case "(($ac_try" in
34083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34084 *) ac_try_echo=$ac_try;;
34085esac
34086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34087 (eval "$ac_link") 2>conftest.er1
34088 ac_status=$?
34089 grep -v '^ *+' conftest.er1 >conftest.err
34090 rm -f conftest.er1
34091 cat conftest.err >&5
34092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034093 (exit $ac_status); } &&
34094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34095 { (case "(($ac_try" in
34096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34097 *) ac_try_echo=$ac_try;;
34098esac
34099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34100 (eval "$ac_try") 2>&5
34101 ac_status=$?
34102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103 (exit $ac_status); }; } &&
34104 { ac_try='test -s conftest$ac_exeext'
34105 { (case "(($ac_try" in
34106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34107 *) ac_try_echo=$ac_try;;
34108esac
34109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34110 (eval "$ac_try") 2>&5
34111 ac_status=$?
34112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034114 eval "$as_ac_var=yes"
34115else
34116 echo "$as_me: failed program was:" >&5
34117sed 's/^/| /' conftest.$ac_ext >&5
34118
34119 eval "$as_ac_var=no"
34120fi
34121
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034122rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034123 conftest$ac_exeext conftest.$ac_ext
34124fi
34125ac_res=`eval echo '${'$as_ac_var'}'`
34126 { echo "$as_me:$LINENO: result: $ac_res" >&5
34127echo "${ECHO_T}$ac_res" >&6; }
34128if test `eval echo '${'$as_ac_var'}'` = yes; then
34129 cat >>confdefs.h <<_ACEOF
34130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34131_ACEOF
34132
34133fi
34134done
34135
34136
Reid Spencera773bd52006-08-04 18:18:08 +000034137{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34138echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034139if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34140 echo $ECHO_N "(cached) $ECHO_C" >&6
34141else
34142 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034143if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034144 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034145 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34146 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034147 if test $? -eq 0 ; then
34148 llvm_cv_llvmgcc_sanity="yes"
34149 fi
34150 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034151fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034152fi
Reid Spencera773bd52006-08-04 18:18:08 +000034153{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34154echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034155
34156if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034157 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34158echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034159 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034160 LLVMCC1=$llvmcc1path
34161
Reid Spencer502935f2004-12-22 05:56:56 +000034162 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034163 LLVMCC1PLUS=$llvmcc1pluspath
34164
Reid Spencer502935f2004-12-22 05:56:56 +000034165 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34166 LLVMGCCDIR=$llvmgccdir
34167
Reid Spencer282d8c12006-12-21 22:55:41 +000034168 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34169 LLVMGCCLIBEXEC=$llvmgcclibexec
34170
Reid Spencerb5d75b82006-05-09 00:31:01 +000034171 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034172 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34173 LLVMGCC_VERSION=$llvmgccversion
34174
34175 LLVMGCC_MAJVERS=$llvmgccmajvers
34176
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034177 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034178 LLVMGCC_LANGS=$llvmgcclangs
34179
34180 { echo "$as_me:$LINENO: result: ok" >&5
34181echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034182fi
34183
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034184SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034185
34186
Reid Spencere9de0912004-08-20 09:03:57 +000034187# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034188# information into substitutions that will end up in Makefile.config.in
34189# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034190if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034191 prefix="/usr/local"
34192fi
Reid Spencere9de0912004-08-20 09:03:57 +000034193eval LLVM_PREFIX="${prefix}";
34194eval LLVM_BINDIR="${prefix}/bin";
34195eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034196eval LLVM_DATADIR="${prefix}/share/llvm";
34197eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34198eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034199eval LLVM_INCLUDEDIR="${prefix}/include";
34200eval LLVM_INFODIR="${prefix}/info";
34201eval LLVM_MANDIR="${prefix}/man";
34202LLVM_CONFIGTIME=`date`
34203
34204
34205
34206
34207
34208
34209
34210
34211
34212
34213
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034214# Place the various directores into the config.h file as #defines so that we
34215# can know about the installation paths within LLVM.
34216
Reid Spencere9de0912004-08-20 09:03:57 +000034217cat >>confdefs.h <<_ACEOF
34218#define LLVM_PREFIX "$LLVM_PREFIX"
34219_ACEOF
34220
34221
34222cat >>confdefs.h <<_ACEOF
34223#define LLVM_BINDIR "$LLVM_BINDIR"
34224_ACEOF
34225
34226
34227cat >>confdefs.h <<_ACEOF
34228#define LLVM_LIBDIR "$LLVM_LIBDIR"
34229_ACEOF
34230
34231
34232cat >>confdefs.h <<_ACEOF
34233#define LLVM_DATADIR "$LLVM_DATADIR"
34234_ACEOF
34235
34236
34237cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034238#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034239_ACEOF
34240
34241
34242cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034243#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034244_ACEOF
34245
34246
34247cat >>confdefs.h <<_ACEOF
34248#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34249_ACEOF
34250
34251
34252cat >>confdefs.h <<_ACEOF
34253#define LLVM_INFODIR "$LLVM_INFODIR"
34254_ACEOF
34255
34256
34257cat >>confdefs.h <<_ACEOF
34258#define LLVM_MANDIR "$LLVM_MANDIR"
34259_ACEOF
34260
34261
34262cat >>confdefs.h <<_ACEOF
34263#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34264_ACEOF
34265
34266
Eric Christopher790e11c2007-12-01 00:34:39 +000034267cat >>confdefs.h <<_ACEOF
34268#define LLVM_HOSTTRIPLE "$host"
34269_ACEOF
34270
34271
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034272# Determine which bindings to build.
34273if test "$BINDINGS_TO_BUILD" = auto ; then
34274 BINDINGS_TO_BUILD=""
34275 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34276 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34277 fi
34278fi
34279BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34280
34281
34282# This isn't really configurey, but it avoids having to repeat the list in
34283# other files.
34284ALL_BINDINGS=ocaml
34285
34286
Gordon Henriksenf0915682007-10-02 16:42:22 +000034287# Do any work necessary to ensure that bindings have what they need.
34288binding_prereqs_failed=0
34289for a_binding in $BINDINGS_TO_BUILD ; do
34290 case "$a_binding" in
34291 ocaml)
34292 if test "x$OCAMLC" = x ; then
34293 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34294echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34295 binding_prereqs_failed=1
34296 fi
34297 if test "x$OCAMLDEP" = x ; then
34298 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34299echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34300 binding_prereqs_failed=1
34301 fi
34302 if test "x$OCAMLOPT" = x ; then
34303 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34304echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34305 fi
34306 if test "x$with_ocaml_libdir" != xauto ; then
34307 OCAML_LIBDIR=$with_ocaml_libdir
34308
34309 else
34310 ocaml_stdlib="`"$OCAMLC" -where`"
34311 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34312 then
34313 # ocaml stdlib is beneath our prefix; use stdlib
34314 OCAML_LIBDIR=$ocaml_stdlib
34315
34316 else
34317 # ocaml stdlib is outside our prefix; use libdir/ocaml
34318 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34319
34320 fi
34321 fi
34322 ;;
34323 esac
34324done
34325if test "$binding_prereqs_failed" = 1 ; then
34326 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34327echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34328 { (exit 1); exit 1; }; }
34329fi
34330
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034331{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34332echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34333if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34334 echo $ECHO_N "(cached) $ECHO_C" >&6
34335else
34336 ac_ext=cpp
34337ac_cpp='$CXXCPP $CPPFLAGS'
34338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34341
34342 oldcxxflags="$CXXFLAGS"
34343 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34344 cat >conftest.$ac_ext <<_ACEOF
34345/* confdefs.h. */
34346_ACEOF
34347cat confdefs.h >>conftest.$ac_ext
34348cat >>conftest.$ac_ext <<_ACEOF
34349/* end confdefs.h. */
34350
34351int
34352main ()
34353{
34354
34355 ;
34356 return 0;
34357}
34358_ACEOF
34359rm -f conftest.$ac_objext
34360if { (ac_try="$ac_compile"
34361case "(($ac_try" in
34362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34363 *) ac_try_echo=$ac_try;;
34364esac
34365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34366 (eval "$ac_compile") 2>conftest.er1
34367 ac_status=$?
34368 grep -v '^ *+' conftest.er1 >conftest.err
34369 rm -f conftest.er1
34370 cat conftest.err >&5
34371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034372 (exit $ac_status); } &&
34373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34374 { (case "(($ac_try" in
34375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34376 *) ac_try_echo=$ac_try;;
34377esac
34378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34379 (eval "$ac_try") 2>&5
34380 ac_status=$?
34381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382 (exit $ac_status); }; } &&
34383 { ac_try='test -s conftest.$ac_objext'
34384 { (case "(($ac_try" in
34385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34386 *) ac_try_echo=$ac_try;;
34387esac
34388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34389 (eval "$ac_try") 2>&5
34390 ac_status=$?
34391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34392 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034393 llvm_cv_cxx_visibility_inlines_hidden=yes
34394else
34395 echo "$as_me: failed program was:" >&5
34396sed 's/^/| /' conftest.$ac_ext >&5
34397
34398 llvm_cv_cxx_visibility_inlines_hidden=no
34399fi
34400
34401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34402 CXXFLAGS="$oldcxxflags"
34403 ac_ext=c
34404ac_cpp='$CPP $CPPFLAGS'
34405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34407ac_compiler_gnu=$ac_cv_c_compiler_gnu
34408
34409
34410fi
34411{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34412echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34413if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34414 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34415
34416else
34417 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34418
34419fi
34420
Gordon Henriksenf0915682007-10-02 16:42:22 +000034421
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034422
Reid Spencera773bd52006-08-04 18:18:08 +000034423ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034424
Reid Spencera773bd52006-08-04 18:18:08 +000034425ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034426
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034427ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034428
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034429ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034430
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034431ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034432
34433
Reid Spencera773bd52006-08-04 18:18:08 +000034434ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034435
34436
Reid Spencerea949cf2006-08-16 00:45:38 +000034437ac_config_files="$ac_config_files llvm.spec"
34438
34439
Reid Spencera773bd52006-08-04 18:18:08 +000034440ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034441
34442
Reid Spencera773bd52006-08-04 18:18:08 +000034443ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034444
34445
Reid Spencera773bd52006-08-04 18:18:08 +000034446ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034447
Reid Spencera773bd52006-08-04 18:18:08 +000034448ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034449
34450
Reid Spencera773bd52006-08-04 18:18:08 +000034451ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034452
34453
Reid Spencera773bd52006-08-04 18:18:08 +000034454ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034455
34456
Reid Spencera773bd52006-08-04 18:18:08 +000034457ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034458
34459
Reid Spencer8b2e1412006-11-17 03:32:33 +000034460ac_config_commands="$ac_config_commands runtime/Makefile"
34461
34462
Reid Spencera773bd52006-08-04 18:18:08 +000034463ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034464
34465
Reid Spencera773bd52006-08-04 18:18:08 +000034466ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034467
34468
Bill Wendlingf24eb392009-01-04 23:12:30 +000034469ac_config_commands="$ac_config_commands unittests/Makefile"
34470
34471
Reid Spencera773bd52006-08-04 18:18:08 +000034472ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034473
34474
Reid Spencera773bd52006-08-04 18:18:08 +000034475ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034476
34477
Reid Spencera773bd52006-08-04 18:18:08 +000034478ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034479
34480
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034481ac_config_commands="$ac_config_commands bindings/Makefile"
34482
34483
34484ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34485
34486
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034487
John Criswell7a73b802003-06-30 21:59:07 +000034488cat >confcache <<\_ACEOF
34489# This file is a shell script that caches the results of configure
34490# tests run on this system so they can be shared between configure
34491# scripts and configure runs, see configure's option --config-cache.
34492# It is not useful on other systems. If it contains results you don't
34493# want to keep, you may remove or edit it.
34494#
34495# config.status only pays attention to the cache file if you give it
34496# the --recheck option to rerun configure.
34497#
John Criswell0c38eaf2003-09-10 15:17:25 +000034498# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034499# loading this file, other *unset* `ac_cv_foo' will be assigned the
34500# following values.
34501
34502_ACEOF
34503
34504# The following way of writing the cache mishandles newlines in values,
34505# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034506# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034507# Ultrix sh set writes to stderr and can't be redirected directly,
34508# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034509(
34510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34511 eval ac_val=\$$ac_var
34512 case $ac_val in #(
34513 *${as_nl}*)
34514 case $ac_var in #(
34515 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34516echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34517 esac
34518 case $ac_var in #(
34519 _ | IFS | as_nl) ;; #(
34520 *) $as_unset $ac_var ;;
34521 esac ;;
34522 esac
34523 done
34524
John Criswell7a73b802003-06-30 21:59:07 +000034525 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034526 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34527 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034528 # `set' does not quote correctly, so add quotes (double-quote
34529 # substitution turns \\\\ into \\, and sed turns \\ into \).
34530 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034531 "s/'/'\\\\''/g;
34532 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034533 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034534 *)
34535 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034537 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034538 esac |
34539 sort
34540) |
John Criswell7a73b802003-06-30 21:59:07 +000034541 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034542 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034543 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034544 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34546 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034547 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34548 :end' >>confcache
34549if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34550 if test -w "$cache_file"; then
34551 test "x$cache_file" != "x/dev/null" &&
34552 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34553echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034554 cat confcache >$cache_file
34555 else
Reid Spencera773bd52006-08-04 18:18:08 +000034556 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34557echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034558 fi
34559fi
34560rm -f confcache
34561
34562test "x$prefix" = xNONE && prefix=$ac_default_prefix
34563# Let make expand exec_prefix.
34564test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34565
John Criswell7a73b802003-06-30 21:59:07 +000034566DEFS=-DHAVE_CONFIG_H
34567
John Criswell0c38eaf2003-09-10 15:17:25 +000034568ac_libobjs=
34569ac_ltlibobjs=
34570for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34571 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034572 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34573 ac_i=`echo "$ac_i" | sed "$ac_script"`
34574 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34575 # will be set to the directory where LIBOBJS objects are built.
34576 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34577 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034578done
34579LIBOBJS=$ac_libobjs
34580
34581LTLIBOBJS=$ac_ltlibobjs
34582
34583
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034584if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34585 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34586Usually this means the macro was only invoked conditionally." >&5
34587echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34588Usually this means the macro was only invoked conditionally." >&2;}
34589 { (exit 1); exit 1; }; }
34590fi
34591if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34592 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34593Usually this means the macro was only invoked conditionally." >&5
34594echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34595Usually this means the macro was only invoked conditionally." >&2;}
34596 { (exit 1); exit 1; }; }
34597fi
John Criswell7a73b802003-06-30 21:59:07 +000034598
34599: ${CONFIG_STATUS=./config.status}
34600ac_clean_files_save=$ac_clean_files
34601ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34602{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34603echo "$as_me: creating $CONFIG_STATUS" >&6;}
34604cat >$CONFIG_STATUS <<_ACEOF
34605#! $SHELL
34606# Generated by $as_me.
34607# Run this file to recreate the current configuration.
34608# Compiler output produced by configure, useful for debugging
34609# configure, is in config.log if it exists.
34610
34611debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034612ac_cs_recheck=false
34613ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034614SHELL=\${CONFIG_SHELL-$SHELL}
34615_ACEOF
34616
34617cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034618## --------------------- ##
34619## M4sh Initialization. ##
34620## --------------------- ##
34621
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034622# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034623if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34624 emulate sh
34625 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034626 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34627 # is contrary to our usage. Disable this feature.
34628 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034629 setopt NO_GLOB_SUBST
34630else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034631 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034632fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034633BIN_SH=xpg4; export BIN_SH # for Tru64
34634DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034635
John Criswell7a73b802003-06-30 21:59:07 +000034636
Reid Spencera773bd52006-08-04 18:18:08 +000034637# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034638# Avoid depending upon Character Ranges.
34639as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34640as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34641as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34642as_cr_digits='0123456789'
34643as_cr_alnum=$as_cr_Letters$as_cr_digits
34644
34645# The user is always right.
34646if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034647 echo "#! /bin/sh" >conf$$.sh
34648 echo "exit 0" >>conf$$.sh
34649 chmod +x conf$$.sh
34650 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034651 PATH_SEPARATOR=';'
34652 else
34653 PATH_SEPARATOR=:
34654 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034655 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034656fi
34657
Reid Spencera773bd52006-08-04 18:18:08 +000034658# Support unset when possible.
34659if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34660 as_unset=unset
34661else
34662 as_unset=false
34663fi
John Criswell7a73b802003-06-30 21:59:07 +000034664
Reid Spencera773bd52006-08-04 18:18:08 +000034665
34666# IFS
34667# We need space, tab and new line, in precisely that order. Quoting is
34668# there to prevent editors from complaining about space-tab.
34669# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34670# splitting by setting IFS to empty value.)
34671as_nl='
34672'
34673IFS=" "" $as_nl"
34674
34675# Find who we are. Look in the path if we contain no directory separator.
34676case $0 in
34677 *[\\/]* ) as_myself=$0 ;;
34678 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034679for as_dir in $PATH
34680do
34681 IFS=$as_save_IFS
34682 test -z "$as_dir" && as_dir=.
34683 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34684done
Reid Spencera773bd52006-08-04 18:18:08 +000034685IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034686
Reid Spencera773bd52006-08-04 18:18:08 +000034687 ;;
34688esac
34689# We did not find ourselves, most probably we were run as `sh COMMAND'
34690# in which case we are not to be found in the path.
34691if test "x$as_myself" = x; then
34692 as_myself=$0
34693fi
34694if test ! -f "$as_myself"; then
34695 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34696 { (exit 1); exit 1; }
34697fi
34698
34699# Work around bugs in pre-3.0 UWIN ksh.
34700for as_var in ENV MAIL MAILPATH
34701do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34702done
34703PS1='$ '
34704PS2='> '
34705PS4='+ '
34706
34707# NLS nuisances.
34708for as_var in \
34709 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34710 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34711 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034712do
Reid Spencera773bd52006-08-04 18:18:08 +000034713 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34714 eval $as_var=C; export $as_var
34715 else
34716 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34717 fi
34718done
34719
34720# Required to use basename.
34721if expr a : '\(a\)' >/dev/null 2>&1 &&
34722 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34723 as_expr=expr
34724else
34725 as_expr=false
34726fi
34727
34728if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34729 as_basename=basename
34730else
34731 as_basename=false
34732fi
34733
34734
34735# Name of the executable.
34736as_me=`$as_basename -- "$0" ||
34737$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34738 X"$0" : 'X\(//\)$' \| \
34739 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34740echo X/"$0" |
34741 sed '/^.*\/\([^/][^/]*\)\/*$/{
34742 s//\1/
34743 q
34744 }
34745 /^X\/\(\/\/\)$/{
34746 s//\1/
34747 q
34748 }
34749 /^X\/\(\/\).*/{
34750 s//\1/
34751 q
34752 }
34753 s/.*/./; q'`
34754
34755# CDPATH.
34756$as_unset CDPATH
34757
34758
34759
John Criswell7a73b802003-06-30 21:59:07 +000034760 as_lineno_1=$LINENO
34761 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034762 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034763 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034764
34765 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34766 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034767 # line-number line after each line using $LINENO; the second 'sed'
34768 # does the real work. The second script uses 'N' to pair each
34769 # line-number line with the line containing $LINENO, and appends
34770 # trailing '-' during substitution so that $LINENO is not a special
34771 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034772 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034773 # scripts with optimization help from Paolo Bonzini. Blame Lee
34774 # E. McMahon (1931-1989) for sed's syntax. :-)
34775 sed -n '
34776 p
34777 /[$]LINENO/=
34778 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034779 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034780 s/[$]LINENO.*/&-/
34781 t lineno
34782 b
34783 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034784 N
Reid Spencera773bd52006-08-04 18:18:08 +000034785 :loop
34786 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034787 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034788 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034789 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034790 chmod +x "$as_me.lineno" ||
34791 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034792 { (exit 1); exit 1; }; }
34793
34794 # Don't try to exec as it changes $[0], causing all sort of problems
34795 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034796 # original and so on. Autoconf is especially sensitive to this).
34797 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034798 # Exit status is that of the last command.
34799 exit
34800}
34801
34802
Reid Spencera773bd52006-08-04 18:18:08 +000034803if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34804 as_dirname=dirname
34805else
34806 as_dirname=false
34807fi
34808
34809ECHO_C= ECHO_N= ECHO_T=
34810case `echo -n x` in
34811-n*)
34812 case `echo 'x\c'` in
34813 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34814 *) ECHO_C='\c';;
34815 esac;;
34816*)
34817 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034818esac
34819
Reid Spencera773bd52006-08-04 18:18:08 +000034820if expr a : '\(a\)' >/dev/null 2>&1 &&
34821 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034822 as_expr=expr
34823else
34824 as_expr=false
34825fi
34826
34827rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034828if test -d conf$$.dir; then
34829 rm -f conf$$.dir/conf$$.file
34830else
34831 rm -f conf$$.dir
34832 mkdir conf$$.dir
34833fi
John Criswell7a73b802003-06-30 21:59:07 +000034834echo >conf$$.file
34835if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034836 as_ln_s='ln -s'
34837 # ... but there are two gotchas:
34838 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34839 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34840 # In both cases, we have to default to `cp -p'.
34841 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034842 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034843elif ln conf$$.file conf$$ 2>/dev/null; then
34844 as_ln_s=ln
34845else
34846 as_ln_s='cp -p'
34847fi
Reid Spencera773bd52006-08-04 18:18:08 +000034848rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34849rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034850
John Criswell0c38eaf2003-09-10 15:17:25 +000034851if mkdir -p . 2>/dev/null; then
34852 as_mkdir_p=:
34853else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034854 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034855 as_mkdir_p=false
34856fi
34857
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034858# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34859# systems may use methods other than mode bits to determine executability.
34860cat >conf$$.file <<_ASEOF
34861#! /bin/sh
34862exit 0
34863_ASEOF
34864chmod +x conf$$.file
34865if test -x conf$$.file >/dev/null 2>&1; then
34866 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034867else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034868 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034869fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034870rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034871
34872# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034873as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034874
34875# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034876as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034877
34878
John Criswell7a73b802003-06-30 21:59:07 +000034879exec 6>&1
34880
Reid Spencera773bd52006-08-04 18:18:08 +000034881# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034882# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034883# values after options handling.
34884ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034885This file was extended by llvm $as_me 2.6svn, which was
34886generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034887
34888 CONFIG_FILES = $CONFIG_FILES
34889 CONFIG_HEADERS = $CONFIG_HEADERS
34890 CONFIG_LINKS = $CONFIG_LINKS
34891 CONFIG_COMMANDS = $CONFIG_COMMANDS
34892 $ $0 $@
34893
Reid Spencera773bd52006-08-04 18:18:08 +000034894on `(hostname || uname -n) 2>/dev/null | sed 1q`
34895"
34896
John Criswell7a73b802003-06-30 21:59:07 +000034897_ACEOF
34898
Reid Spencera773bd52006-08-04 18:18:08 +000034899cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034900# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034901config_files="$ac_config_files"
34902config_headers="$ac_config_headers"
34903config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034904
Reid Spencera773bd52006-08-04 18:18:08 +000034905_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034906
34907cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034908ac_cs_usage="\
34909\`$as_me' instantiates files from templates according to the
34910current configuration.
34911
34912Usage: $0 [OPTIONS] [FILE]...
34913
34914 -h, --help print this help, then exit
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034915 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034916 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034917 -d, --debug don't remove temporary files
34918 --recheck update $as_me by reconfiguring in the same conditions
34919 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034920 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034921 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034922 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034923
34924Configuration files:
34925$config_files
34926
34927Configuration headers:
34928$config_headers
34929
John Criswellc764fbc2003-09-06 15:17:13 +000034930Configuration commands:
34931$config_commands
34932
John Criswell7a73b802003-06-30 21:59:07 +000034933Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034934
Reid Spencera773bd52006-08-04 18:18:08 +000034935_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034936cat >>$CONFIG_STATUS <<_ACEOF
34937ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034938llvm config.status 2.6svn
34939configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034940 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034941
Reid Spencera773bd52006-08-04 18:18:08 +000034942Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034943This config.status script is free software; the Free Software Foundation
34944gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034945
34946ac_pwd='$ac_pwd'
34947srcdir='$srcdir'
34948INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034949_ACEOF
34950
34951cat >>$CONFIG_STATUS <<\_ACEOF
34952# If no file are specified by the user, then we need to provide default
34953# value. By we need to know if files were specified by the user.
34954ac_need_defaults=:
34955while test $# != 0
34956do
34957 case $1 in
34958 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034959 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34960 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034961 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034962 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034963 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034964 ac_option=$1
34965 ac_optarg=$2
34966 ac_shift=shift
34967 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034968 esac
34969
John Criswell0c38eaf2003-09-10 15:17:25 +000034970 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034971 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034972 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34973 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034974 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34975 echo "$ac_cs_version"; exit ;;
34976 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034977 debug=: ;;
34978 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034979 $ac_shift
34980 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034981 ac_need_defaults=false;;
34982 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034983 $ac_shift
34984 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034985 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034986 --he | --h)
34987 # Conflict between --help and --header
34988 { echo "$as_me: error: ambiguous option: $1
34989Try \`$0 --help' for more information." >&2
34990 { (exit 1); exit 1; }; };;
34991 --help | --hel | -h )
34992 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34994 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34995 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034996
34997 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034998 -*) { echo "$as_me: error: unrecognized option: $1
34999Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035000 { (exit 1); exit 1; }; } ;;
35001
Reid Spencera773bd52006-08-04 18:18:08 +000035002 *) ac_config_targets="$ac_config_targets $1"
35003 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035004
35005 esac
35006 shift
35007done
35008
John Criswell0c38eaf2003-09-10 15:17:25 +000035009ac_configure_extra_args=
35010
35011if $ac_cs_silent; then
35012 exec 6>/dev/null
35013 ac_configure_extra_args="$ac_configure_extra_args --silent"
35014fi
35015
35016_ACEOF
35017cat >>$CONFIG_STATUS <<_ACEOF
35018if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035019 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35020 CONFIG_SHELL=$SHELL
35021 export CONFIG_SHELL
35022 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035023fi
35024
John Criswell7a73b802003-06-30 21:59:07 +000035025_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035026cat >>$CONFIG_STATUS <<\_ACEOF
35027exec 5>>config.log
35028{
35029 echo
35030 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35031## Running $as_me. ##
35032_ASBOX
35033 echo "$ac_log"
35034} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035035
Reid Spencera773bd52006-08-04 18:18:08 +000035036_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035037cat >>$CONFIG_STATUS <<_ACEOF
35038#
Reid Spencera773bd52006-08-04 18:18:08 +000035039# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035040#
Reid Spencerc0682832005-02-24 19:05:19 +000035041llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035042
35043_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035044
John Criswell7a73b802003-06-30 21:59:07 +000035045cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035046
35047# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035048for ac_config_target in $ac_config_targets
35049do
Reid Spencera773bd52006-08-04 18:18:08 +000035050 case $ac_config_target in
35051 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35052 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035053 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35054 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35055 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035056 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035057 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035058 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35059 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35060 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35061 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35062 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35063 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35064 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035065 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035066 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35067 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035068 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035069 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35070 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35071 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035072 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35073 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035074
John Criswell7a73b802003-06-30 21:59:07 +000035075 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35076echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35077 { (exit 1); exit 1; }; };;
35078 esac
35079done
35080
Reid Spencera773bd52006-08-04 18:18:08 +000035081
John Criswell7a73b802003-06-30 21:59:07 +000035082# If the user did not use the arguments to specify the items to instantiate,
35083# then the envvar interface is used. Set only those that are not.
35084# We use the long form for the default assignment because of an extremely
35085# bizarre bug on SunOS 4.1.3.
35086if $ac_need_defaults; then
35087 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35088 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035089 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035090fi
35091
John Criswell0c38eaf2003-09-10 15:17:25 +000035092# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035093# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035094# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035095# Hook for its removal unless debugging.
35096# Note that there is a small window in which the directory will not be cleaned:
35097# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035098$debug ||
35099{
Reid Spencera773bd52006-08-04 18:18:08 +000035100 tmp=
35101 trap 'exit_status=$?
35102 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35103' 0
John Criswell7a73b802003-06-30 21:59:07 +000035104 trap '{ (exit 1); exit 1; }' 1 2 13 15
35105}
John Criswell7a73b802003-06-30 21:59:07 +000035106# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035107
John Criswell7a73b802003-06-30 21:59:07 +000035108{
Reid Spencera773bd52006-08-04 18:18:08 +000035109 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035110 test -n "$tmp" && test -d "$tmp"
35111} ||
35112{
Reid Spencera773bd52006-08-04 18:18:08 +000035113 tmp=./conf$$-$RANDOM
35114 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035115} ||
35116{
John Criswell0c38eaf2003-09-10 15:17:25 +000035117 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035118 { (exit 1); exit 1; }
35119}
35120
John Criswell7a73b802003-06-30 21:59:07 +000035121#
Reid Spencera773bd52006-08-04 18:18:08 +000035122# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035123#
35124
35125# No need to generate the scripts if there are no CONFIG_FILES.
35126# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035127if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035128
35129_ACEOF
35130
Reid Spencera773bd52006-08-04 18:18:08 +000035131
35132
35133ac_delim='%!_!# '
35134for ac_last_try in false false false false false :; do
35135 cat >conf$$subs.sed <<_ACEOF
35136SHELL!$SHELL$ac_delim
35137PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35138PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35139PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35140PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35141PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35142PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35143exec_prefix!$exec_prefix$ac_delim
35144prefix!$prefix$ac_delim
35145program_transform_name!$program_transform_name$ac_delim
35146bindir!$bindir$ac_delim
35147sbindir!$sbindir$ac_delim
35148libexecdir!$libexecdir$ac_delim
35149datarootdir!$datarootdir$ac_delim
35150datadir!$datadir$ac_delim
35151sysconfdir!$sysconfdir$ac_delim
35152sharedstatedir!$sharedstatedir$ac_delim
35153localstatedir!$localstatedir$ac_delim
35154includedir!$includedir$ac_delim
35155oldincludedir!$oldincludedir$ac_delim
35156docdir!$docdir$ac_delim
35157infodir!$infodir$ac_delim
35158htmldir!$htmldir$ac_delim
35159dvidir!$dvidir$ac_delim
35160pdfdir!$pdfdir$ac_delim
35161psdir!$psdir$ac_delim
35162libdir!$libdir$ac_delim
35163localedir!$localedir$ac_delim
35164mandir!$mandir$ac_delim
35165DEFS!$DEFS$ac_delim
35166ECHO_C!$ECHO_C$ac_delim
35167ECHO_N!$ECHO_N$ac_delim
35168ECHO_T!$ECHO_T$ac_delim
35169LIBS!$LIBS$ac_delim
35170build_alias!$build_alias$ac_delim
35171host_alias!$host_alias$ac_delim
35172target_alias!$target_alias$ac_delim
35173LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35174subdirs!$subdirs$ac_delim
35175build!$build$ac_delim
35176build_cpu!$build_cpu$ac_delim
35177build_vendor!$build_vendor$ac_delim
35178build_os!$build_os$ac_delim
35179host!$host$ac_delim
35180host_cpu!$host_cpu$ac_delim
35181host_vendor!$host_vendor$ac_delim
35182host_os!$host_os$ac_delim
35183target!$target$ac_delim
35184target_cpu!$target_cpu$ac_delim
35185target_vendor!$target_vendor$ac_delim
35186target_os!$target_os$ac_delim
35187OS!$OS$ac_delim
35188LINKALL!$LINKALL$ac_delim
35189NOLINKALL!$NOLINKALL$ac_delim
35190LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35191LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35192ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000035193ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035194CC!$CC$ac_delim
35195CFLAGS!$CFLAGS$ac_delim
35196LDFLAGS!$LDFLAGS$ac_delim
35197CPPFLAGS!$CPPFLAGS$ac_delim
35198ac_ct_CC!$ac_ct_CC$ac_delim
35199EXEEXT!$EXEEXT$ac_delim
35200OBJEXT!$OBJEXT$ac_delim
35201CPP!$CPP$ac_delim
35202GREP!$GREP$ac_delim
35203EGREP!$EGREP$ac_delim
35204LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35205BUILD_CC!$BUILD_CC$ac_delim
35206BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035207BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035208CVSBUILD!$CVSBUILD$ac_delim
35209ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35210DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035211ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35212EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035213DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035214JIT!$JIT$ac_delim
35215TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35216ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35217ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035218ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035219TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035220ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035221EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000035222BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035223CXX!$CXX$ac_delim
35224CXXFLAGS!$CXXFLAGS$ac_delim
35225ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000035226NM!$NM$ac_delim
35227ifGNUmake!$ifGNUmake$ac_delim
35228LN_S!$LN_S$ac_delim
35229CMP!$CMP$ac_delim
35230CP!$CP$ac_delim
35231DATE!$DATE$ac_delim
35232FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035233_ACEOF
35234
35235 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35236 break
35237 elif $ac_last_try; then
35238 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35239echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35240 { (exit 1); exit 1; }; }
35241 else
35242 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035243 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035244done
35245
35246ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35247if test -n "$ac_eof"; then
35248 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35249 ac_eof=`expr $ac_eof + 1`
35250fi
35251
35252cat >>$CONFIG_STATUS <<_ACEOF
35253cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35254/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35255_ACEOF
35256sed '
35257s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35258s/^/s,@/; s/!/@,|#_!!_#|/
35259:n
35260t n
35261s/'"$ac_delim"'$/,g/; t
35262s/$/\\/; p
35263N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35264' >>$CONFIG_STATUS <conf$$subs.sed
35265rm -f conf$$subs.sed
35266cat >>$CONFIG_STATUS <<_ACEOF
35267CEOF$ac_eof
35268_ACEOF
35269
35270
35271ac_delim='%!_!# '
35272for ac_last_try in false false false false false :; do
35273 cat >conf$$subs.sed <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035274MKDIR!$MKDIR$ac_delim
35275MV!$MV$ac_delim
35276RANLIB!$RANLIB$ac_delim
35277RM!$RM$ac_delim
35278SED!$SED$ac_delim
35279TAR!$TAR$ac_delim
35280BINPWD!$BINPWD$ac_delim
35281GRAPHVIZ!$GRAPHVIZ$ac_delim
35282DOT!$DOT$ac_delim
35283GV!$GV$ac_delim
35284DOTTY!$DOTTY$ac_delim
35285PERL!$PERL$ac_delim
35286HAVE_PERL!$HAVE_PERL$ac_delim
35287INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35288INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35289INSTALL_DATA!$INSTALL_DATA$ac_delim
35290BZIP2!$BZIP2$ac_delim
35291DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035292GROFF!$GROFF$ac_delim
35293GZIP!$GZIP$ac_delim
35294POD2HTML!$POD2HTML$ac_delim
35295POD2MAN!$POD2MAN$ac_delim
35296RUNTEST!$RUNTEST$ac_delim
35297TCLSH!$TCLSH$ac_delim
35298ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035299OCAMLC!$OCAMLC$ac_delim
35300OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035301OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035302OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035303GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035304INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35305INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35306CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35307CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35308LIBADD_DL!$LIBADD_DL$ac_delim
35309ECHO!$ECHO$ac_delim
35310AR!$AR$ac_delim
35311STRIP!$STRIP$ac_delim
35312CXXCPP!$CXXCPP$ac_delim
35313F77!$F77$ac_delim
35314FFLAGS!$FFLAGS$ac_delim
35315ac_ct_F77!$ac_ct_F77$ac_delim
35316LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035317LLVMGCC!$LLVMGCC$ac_delim
35318LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035319USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035320HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000035321HAVE_FFI!$HAVE_FFI$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035322HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035323ALLOCA!$ALLOCA$ac_delim
35324MMAP_FILE!$MMAP_FILE$ac_delim
35325LLVMCC1!$LLVMCC1$ac_delim
35326LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35327LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035328LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035329LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35330LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035331LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035332SHLIBEXT!$SHLIBEXT$ac_delim
35333LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35334LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35335LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35336LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35337LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35338LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35339LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35340LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35341LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35342LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035343BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35344ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035345OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035346ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035347LIBOBJS!$LIBOBJS$ac_delim
35348LTLIBOBJS!$LTLIBOBJS$ac_delim
35349_ACEOF
35350
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000035351 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 75; then
Reid Spencera773bd52006-08-04 18:18:08 +000035352 break
35353 elif $ac_last_try; then
35354 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35355echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35356 { (exit 1); exit 1; }; }
35357 else
35358 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35359 fi
35360done
35361
35362ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35363if test -n "$ac_eof"; then
35364 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35365 ac_eof=`expr $ac_eof + 1`
35366fi
35367
35368cat >>$CONFIG_STATUS <<_ACEOF
35369cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35370/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35371_ACEOF
35372sed '
35373s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35374s/^/s,@/; s/!/@,|#_!!_#|/
35375:n
35376t n
35377s/'"$ac_delim"'$/,g/; t
35378s/$/\\/; p
35379N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35380' >>$CONFIG_STATUS <conf$$subs.sed
35381rm -f conf$$subs.sed
35382cat >>$CONFIG_STATUS <<_ACEOF
35383:end
35384s/|#_!!_#|//g
35385CEOF$ac_eof
35386_ACEOF
35387
35388
35389# VPATH may cause trouble with some makes, so we remove $(srcdir),
35390# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35391# trailing colons and then remove the whole line if VPATH becomes empty
35392# (actually we leave an empty line to preserve line numbers).
35393if test "x$srcdir" = x.; then
35394 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35395s/:*\$(srcdir):*/:/
35396s/:*\${srcdir}:*/:/
35397s/:*@srcdir@:*/:/
35398s/^\([^=]*=[ ]*\):*/\1/
35399s/:*$//
35400s/^[^=]*=[ ]*$//
35401}'
35402fi
35403
35404cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035405fi # test -n "$CONFIG_FILES"
35406
Reid Spencera773bd52006-08-04 18:18:08 +000035407
35408for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35409do
35410 case $ac_tag in
35411 :[FHLC]) ac_mode=$ac_tag; continue;;
35412 esac
35413 case $ac_mode$ac_tag in
35414 :[FHL]*:*);;
35415 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35416echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35417 { (exit 1); exit 1; }; };;
35418 :[FH]-) ac_tag=-:-;;
35419 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35420 esac
35421 ac_save_IFS=$IFS
35422 IFS=:
35423 set x $ac_tag
35424 IFS=$ac_save_IFS
35425 shift
35426 ac_file=$1
35427 shift
35428
35429 case $ac_mode in
35430 :L) ac_source=$1;;
35431 :[FH])
35432 ac_file_inputs=
35433 for ac_f
35434 do
35435 case $ac_f in
35436 -) ac_f="$tmp/stdin";;
35437 *) # Look for the file first in the build tree, then in the source tree
35438 # (if the path is not absolute). The absolute path cannot be DOS-style,
35439 # because $ac_f cannot contain `:'.
35440 test -f "$ac_f" ||
35441 case $ac_f in
35442 [\\/$]*) false;;
35443 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35444 esac ||
35445 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35446echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35447 { (exit 1); exit 1; }; };;
35448 esac
35449 ac_file_inputs="$ac_file_inputs $ac_f"
35450 done
35451
35452 # Let's still pretend it is `configure' which instantiates (i.e., don't
35453 # use $as_me), people would be surprised to read:
35454 # /* config.h. Generated by config.status. */
35455 configure_input="Generated from "`IFS=:
35456 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35457 if test x"$ac_file" != x-; then
35458 configure_input="$ac_file. $configure_input"
35459 { echo "$as_me:$LINENO: creating $ac_file" >&5
35460echo "$as_me: creating $ac_file" >&6;}
35461 fi
35462
35463 case $ac_tag in
35464 *:-:* | *:-) cat >"$tmp/stdin";;
35465 esac
35466 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035467 esac
35468
Reid Spencera773bd52006-08-04 18:18:08 +000035469 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035470$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035471 X"$ac_file" : 'X\(//\)[^/]' \| \
35472 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035473 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035474echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35476 s//\1/
35477 q
35478 }
35479 /^X\(\/\/\)[^/].*/{
35480 s//\1/
35481 q
35482 }
35483 /^X\(\/\/\)$/{
35484 s//\1/
35485 q
35486 }
35487 /^X\(\/\).*/{
35488 s//\1/
35489 q
35490 }
35491 s/.*/./; q'`
35492 { as_dir="$ac_dir"
35493 case $as_dir in #(
35494 -*) as_dir=./$as_dir;;
35495 esac
35496 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035497 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035498 while :; do
35499 case $as_dir in #(
35500 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35501 *) as_qdir=$as_dir;;
35502 esac
35503 as_dirs="'$as_qdir' $as_dirs"
35504 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035505$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035506 X"$as_dir" : 'X\(//\)[^/]' \| \
35507 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035508 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035509echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35511 s//\1/
35512 q
35513 }
35514 /^X\(\/\/\)[^/].*/{
35515 s//\1/
35516 q
35517 }
35518 /^X\(\/\/\)$/{
35519 s//\1/
35520 q
35521 }
35522 /^X\(\/\).*/{
35523 s//\1/
35524 q
35525 }
35526 s/.*/./; q'`
35527 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035528 done
Reid Spencera773bd52006-08-04 18:18:08 +000035529 test -z "$as_dirs" || eval "mkdir $as_dirs"
35530 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35531echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035532 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035533 ac_builddir=.
35534
Reid Spencera773bd52006-08-04 18:18:08 +000035535case "$ac_dir" in
35536.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35537*)
John Criswell7a73b802003-06-30 21:59:07 +000035538 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035539 # A ".." for each directory in $ac_dir_suffix.
35540 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35541 case $ac_top_builddir_sub in
35542 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35543 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35544 esac ;;
35545esac
35546ac_abs_top_builddir=$ac_pwd
35547ac_abs_builddir=$ac_pwd$ac_dir_suffix
35548# for backward compatibility:
35549ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035550
35551case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035552 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035553 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035554 ac_top_srcdir=$ac_top_builddir_sub
35555 ac_abs_top_srcdir=$ac_pwd ;;
35556 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035557 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035558 ac_top_srcdir=$srcdir
35559 ac_abs_top_srcdir=$srcdir ;;
35560 *) # Relative name.
35561 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35562 ac_top_srcdir=$ac_top_build_prefix$srcdir
35563 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035564esac
Reid Spencera773bd52006-08-04 18:18:08 +000035565ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035566
John Criswell7a73b802003-06-30 21:59:07 +000035567
Reid Spencera773bd52006-08-04 18:18:08 +000035568 case $ac_mode in
35569 :F)
35570 #
35571 # CONFIG_FILE
35572 #
John Criswell7a73b802003-06-30 21:59:07 +000035573
35574 case $INSTALL in
35575 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035576 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035577 esac
John Criswell7a73b802003-06-30 21:59:07 +000035578_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035579
35580cat >>$CONFIG_STATUS <<\_ACEOF
35581# If the template does not know about datarootdir, expand it.
35582# FIXME: This hack should be removed a few years after 2.60.
35583ac_datarootdir_hack=; ac_datarootdir_seen=
35584
35585case `sed -n '/datarootdir/ {
35586 p
35587 q
35588}
35589/@datadir@/p
35590/@docdir@/p
35591/@infodir@/p
35592/@localedir@/p
35593/@mandir@/p
35594' $ac_file_inputs` in
35595*datarootdir*) ac_datarootdir_seen=yes;;
35596*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35597 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35598echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35599_ACEOF
35600cat >>$CONFIG_STATUS <<_ACEOF
35601 ac_datarootdir_hack='
35602 s&@datadir@&$datadir&g
35603 s&@docdir@&$docdir&g
35604 s&@infodir@&$infodir&g
35605 s&@localedir@&$localedir&g
35606 s&@mandir@&$mandir&g
35607 s&\\\${datarootdir}&$datarootdir&g' ;;
35608esac
35609_ACEOF
35610
35611# Neutralize VPATH when `$srcdir' = `.'.
35612# Shell code in configure.ac might set extrasub.
35613# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035614cat >>$CONFIG_STATUS <<_ACEOF
35615 sed "$ac_vpsub
35616$extrasub
35617_ACEOF
35618cat >>$CONFIG_STATUS <<\_ACEOF
35619:t
35620/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035621s&@configure_input@&$configure_input&;t t
35622s&@top_builddir@&$ac_top_builddir_sub&;t t
35623s&@srcdir@&$ac_srcdir&;t t
35624s&@abs_srcdir@&$ac_abs_srcdir&;t t
35625s&@top_srcdir@&$ac_top_srcdir&;t t
35626s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35627s&@builddir@&$ac_builddir&;t t
35628s&@abs_builddir@&$ac_abs_builddir&;t t
35629s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35630s&@INSTALL@&$ac_INSTALL&;t t
35631$ac_datarootdir_hack
35632" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035633
Reid Spencera773bd52006-08-04 18:18:08 +000035634test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35635 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35637 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35638which seems to be undefined. Please make sure it is defined." >&5
35639echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35640which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035641
Reid Spencera773bd52006-08-04 18:18:08 +000035642 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035643 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035644 -) cat "$tmp/out"; rm -f "$tmp/out";;
35645 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035646 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035647 ;;
35648 :H)
35649 #
35650 # CONFIG_HEADER
35651 #
John Criswell7a73b802003-06-30 21:59:07 +000035652_ACEOF
35653
Reid Spencera773bd52006-08-04 18:18:08 +000035654# Transform confdefs.h into a sed script `conftest.defines', that
35655# substitutes the proper values into config.h.in to produce config.h.
35656rm -f conftest.defines conftest.tail
35657# First, append a space to every undef/define line, to ease matching.
35658echo 's/$/ /' >conftest.defines
35659# Then, protect against being on the right side of a sed subst, or in
35660# an unquoted here document, in config.status. If some macros were
35661# called several times there might be several #defines for the same
35662# symbol, which is useless. But do not sort them, since the last
35663# AC_DEFINE must be honored.
35664ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35665# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35666# NAME is the cpp macro being defined, VALUE is the value it is being given.
35667# PARAMS is the parameter list in the macro definition--in most cases, it's
35668# just an empty string.
35669ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35670ac_dB='\\)[ (].*,\\1define\\2'
35671ac_dC=' '
35672ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035673
Reid Spencera773bd52006-08-04 18:18:08 +000035674uniq confdefs.h |
35675 sed -n '
35676 t rset
35677 :rset
35678 s/^[ ]*#[ ]*define[ ][ ]*//
35679 t ok
35680 d
35681 :ok
35682 s/[\\&,]/\\&/g
35683 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35684 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35685 ' >>conftest.defines
35686
35687# Remove the space that was appended to ease matching.
35688# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035689# example, in the case of _POSIX_SOURCE, which is predefined and required
35690# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035691# (The regexp can be short, since the line contains either #define or #undef.)
35692echo 's/ $//
35693s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035694
Reid Spencera773bd52006-08-04 18:18:08 +000035695# Break up conftest.defines:
35696ac_max_sed_lines=50
35697
35698# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35699# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35700# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35701# et cetera.
35702ac_in='$ac_file_inputs'
35703ac_out='"$tmp/out1"'
35704ac_nxt='"$tmp/out2"'
35705
35706while :
John Criswell7a73b802003-06-30 21:59:07 +000035707do
Reid Spencera773bd52006-08-04 18:18:08 +000035708 # Write a here document:
35709 cat >>$CONFIG_STATUS <<_ACEOF
35710 # First, check the format of the line:
35711 cat >"\$tmp/defines.sed" <<\\CEOF
35712/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35713/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35714b
35715:def
35716_ACEOF
35717 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035718 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035719 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35720 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35721 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35722 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035723 rm -f conftest.defines
35724 mv conftest.tail conftest.defines
35725done
Reid Spencera773bd52006-08-04 18:18:08 +000035726rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035727
Reid Spencera773bd52006-08-04 18:18:08 +000035728echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035729cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035730 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035731 echo "/* $configure_input */" >"$tmp/config.h"
35732 cat "$ac_result" >>"$tmp/config.h"
35733 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035734 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35735echo "$as_me: $ac_file is unchanged" >&6;}
35736 else
John Criswell7a73b802003-06-30 21:59:07 +000035737 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035738 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035739 fi
35740 else
Reid Spencera773bd52006-08-04 18:18:08 +000035741 echo "/* $configure_input */"
35742 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035743 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035744 rm -f "$tmp/out12"
35745 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035746
Reid Spencera773bd52006-08-04 18:18:08 +000035747 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35748echo "$as_me: executing $ac_file commands" >&6;}
35749 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035750 esac
John Criswell7a73b802003-06-30 21:59:07 +000035751
Reid Spencera773bd52006-08-04 18:18:08 +000035752
35753 case $ac_file$ac_mode in
35754 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35755 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35756 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35757 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35758 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35759 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35760 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35761 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035762 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35763 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035764 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35765 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35766 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35767 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035768 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35769 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035770 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35771 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35772 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35773 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35774 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35775 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035776 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35777 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35778 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35779 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035780
35781 esac
35782done # for ac_tag
35783
John Criswell7a73b802003-06-30 21:59:07 +000035784
35785{ (exit 0); exit 0; }
35786_ACEOF
35787chmod +x $CONFIG_STATUS
35788ac_clean_files=$ac_clean_files_save
35789
35790
35791# configure is writing to config.log, and then calls config.status.
35792# config.status does its own redirection, appending to config.log.
35793# Unfortunately, on DOS this fails, as config.log is still kept open
35794# by configure, so config.status won't be able to write to it; its
35795# output is simply discarded. So we exec the FD to /dev/null,
35796# effectively closing config.log, so it can be properly (re)opened and
35797# appended to by config.status. When coming back to configure, we
35798# need to make the FD available again.
35799if test "$no_create" != yes; then
35800 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035801 ac_config_status_args=
35802 test "$silent" = yes &&
35803 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035804 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035806 exec 5>>config.log
35807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35808 # would make configure fail if this is the last instruction.
35809 $ac_cs_success || { (exit 1); exit 1; }
35810fi
35811
John Criswell12399a12003-09-30 15:55:44 +000035812#
35813# CONFIG_SUBDIRS section.
35814#
35815if test "$no_recursion" != yes; then
35816
35817 # Remove --cache-file and --srcdir arguments so they do not pile up.
35818 ac_sub_configure_args=
35819 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035820 eval "set x $ac_configure_args"
35821 shift
35822 for ac_arg
35823 do
John Criswell12399a12003-09-30 15:55:44 +000035824 if test -n "$ac_prev"; then
35825 ac_prev=
35826 continue
35827 fi
35828 case $ac_arg in
35829 -cache-file | --cache-file | --cache-fil | --cache-fi \
35830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35831 ac_prev=cache_file ;;
35832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35834 | --c=*)
35835 ;;
35836 --config-cache | -C)
35837 ;;
35838 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35839 ac_prev=srcdir ;;
35840 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35841 ;;
35842 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35843 ac_prev=prefix ;;
35844 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35845 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035846 *)
35847 case $ac_arg in
35848 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35849 esac
35850 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035851 esac
35852 done
35853
35854 # Always prepend --prefix to ensure using the same prefix
35855 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035856 ac_arg="--prefix=$prefix"
35857 case $ac_arg in
35858 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35859 esac
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035860 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035861
35862 ac_popdir=`pwd`
35863 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35864
35865 # Do not complain, so a configure script can configure whichever
35866 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035867 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035868
Reid Spencera773bd52006-08-04 18:18:08 +000035869 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35870 echo "$as_me:$LINENO: $ac_msg" >&5
35871 echo "$ac_msg" >&6
35872 { as_dir="$ac_dir"
35873 case $as_dir in #(
35874 -*) as_dir=./$as_dir;;
35875 esac
35876 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035877 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035878 while :; do
35879 case $as_dir in #(
35880 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35881 *) as_qdir=$as_dir;;
35882 esac
35883 as_dirs="'$as_qdir' $as_dirs"
35884 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035885$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035886 X"$as_dir" : 'X\(//\)[^/]' \| \
35887 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035888 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035889echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35891 s//\1/
35892 q
35893 }
35894 /^X\(\/\/\)[^/].*/{
35895 s//\1/
35896 q
35897 }
35898 /^X\(\/\/\)$/{
35899 s//\1/
35900 q
35901 }
35902 /^X\(\/\).*/{
35903 s//\1/
35904 q
35905 }
35906 s/.*/./; q'`
35907 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035908 done
Reid Spencera773bd52006-08-04 18:18:08 +000035909 test -z "$as_dirs" || eval "mkdir $as_dirs"
35910 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35911echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035912 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035913 ac_builddir=.
35914
Reid Spencera773bd52006-08-04 18:18:08 +000035915case "$ac_dir" in
35916.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35917*)
John Criswell12399a12003-09-30 15:55:44 +000035918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035919 # A ".." for each directory in $ac_dir_suffix.
35920 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35921 case $ac_top_builddir_sub in
35922 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35923 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35924 esac ;;
35925esac
35926ac_abs_top_builddir=$ac_pwd
35927ac_abs_builddir=$ac_pwd$ac_dir_suffix
35928# for backward compatibility:
35929ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035930
35931case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035932 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035933 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035934 ac_top_srcdir=$ac_top_builddir_sub
35935 ac_abs_top_srcdir=$ac_pwd ;;
35936 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035937 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035938 ac_top_srcdir=$srcdir
35939 ac_abs_top_srcdir=$srcdir ;;
35940 *) # Relative name.
35941 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35942 ac_top_srcdir=$ac_top_build_prefix$srcdir
35943 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035944esac
Reid Spencera773bd52006-08-04 18:18:08 +000035945ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035946
35947
Reid Spencera773bd52006-08-04 18:18:08 +000035948 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035949
35950 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035951 if test -f "$ac_srcdir/configure.gnu"; then
35952 ac_sub_configure=$ac_srcdir/configure.gnu
35953 elif test -f "$ac_srcdir/configure"; then
35954 ac_sub_configure=$ac_srcdir/configure
35955 elif test -f "$ac_srcdir/configure.in"; then
35956 # This should be Cygnus configure.
35957 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035958 else
35959 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35960echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35961 ac_sub_configure=
35962 fi
35963
35964 # The recursion is here.
35965 if test -n "$ac_sub_configure"; then
35966 # Make the cache file name correct relative to the subdirectory.
35967 case $cache_file in
35968 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035969 *) # Relative name.
35970 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035971 esac
35972
Reid Spencera773bd52006-08-04 18:18:08 +000035973 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35974echo "$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 +000035975 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035976 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35977 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035978 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035979echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35980 { (exit 1); exit 1; }; }
35981 fi
35982
Reid Spencera773bd52006-08-04 18:18:08 +000035983 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035984 done
35985fi
35986