blob: 3c9925153abe1e4e65d7e6c8fba3826d8e8e60ea [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +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>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlingebcceee2009-04-18 11:20:33 +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
Bill Wendlinga0833352009-03-12 04:10:09 +0000815ARCH
816ENDIAN
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
David Greene2a5a12c2009-04-17 14:50:39 +0000833ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000834DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000837DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000842ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000843TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000844LLVM_ENUM_TARGETS
845LLVM_ENUM_ASM_PRINTERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000846ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000847EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000848BINUTILS_INCDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000849CXX
850CXXFLAGS
851ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000852NM
853ifGNUmake
854LN_S
855CMP
856CP
857DATE
858FIND
859MKDIR
860MV
861RANLIB
862RM
863SED
864TAR
865BINPWD
866GRAPHVIZ
867DOT
868GV
869DOTTY
870PERL
871HAVE_PERL
872INSTALL_PROGRAM
873INSTALL_SCRIPT
874INSTALL_DATA
875BZIP2
876DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000877GROFF
878GZIP
879POD2HTML
880POD2MAN
881RUNTEST
882TCLSH
883ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000884OCAMLC
885OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000886OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000887OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000888GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000889INSTALL_LTDL_TRUE
890INSTALL_LTDL_FALSE
891CONVENIENCE_LTDL_TRUE
892CONVENIENCE_LTDL_FALSE
893LIBADD_DL
894ECHO
895AR
896STRIP
897CXXCPP
898F77
899FFLAGS
900ac_ct_F77
901LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000902LLVMGCCCOMMAND
903LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000904LLVMGCC
905LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000906USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000907HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000908HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000909ALLOCA
910MMAP_FILE
911LLVMCC1
912LLVMCC1PLUS
913LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000914LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000915LLVMGCC_VERSION
916LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000917LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000918SHLIBEXT
919LLVM_PREFIX
920LLVM_BINDIR
921LLVM_LIBDIR
922LLVM_DATADIR
923LLVM_DOCSDIR
924LLVM_ETCDIR
925LLVM_INCLUDEDIR
926LLVM_INFODIR
927LLVM_MANDIR
928LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000929BINDINGS_TO_BUILD
930ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000931OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000932ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000933RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000934RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000935LIBOBJS
936LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000937ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000938 ac_precious_vars='build_alias
939host_alias
940target_alias
941CC
942CFLAGS
943LDFLAGS
944CPPFLAGS
945CPP
946CXX
947CXXFLAGS
948CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000949CXXCPP
950F77
951FFLAGS'
952ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000953projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000954projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000955projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000956projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000957projects/llvm-reopt
958projects/llvm-gcc
959projects/llvm-java
960projects/llvm-tv
961projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000962projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000963projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000964
965# Initialize some variables set by options.
966ac_init_help=
967ac_init_version=false
968# The variables have the same names as the options, with
969# dashes changed to underlines.
970cache_file=/dev/null
971exec_prefix=NONE
972no_create=
973no_recursion=
974prefix=NONE
975program_prefix=NONE
976program_suffix=NONE
977program_transform_name=s,x,x,
978silent=
979site=
980srcdir=
981verbose=
982x_includes=NONE
983x_libraries=NONE
984
985# Installation directory options.
986# These are left unexpanded so users can "make install exec_prefix=/foo"
987# and all the variables that are supposed to be based on exec_prefix
988# by default will actually change.
989# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000990# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000991bindir='${exec_prefix}/bin'
992sbindir='${exec_prefix}/sbin'
993libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000994datarootdir='${prefix}/share'
995datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000996sysconfdir='${prefix}/etc'
997sharedstatedir='${prefix}/com'
998localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000999includedir='${prefix}/include'
1000oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001001docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002infodir='${datarootdir}/info'
1003htmldir='${docdir}'
1004dvidir='${docdir}'
1005pdfdir='${docdir}'
1006psdir='${docdir}'
1007libdir='${exec_prefix}/lib'
1008localedir='${datarootdir}/locale'
1009mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001010
1011ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001012ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001013for ac_option
1014do
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001017 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001018 ac_prev=
1019 continue
1020 fi
1021
Reid Spencera773bd52006-08-04 18:18:08 +00001022 case $ac_option in
1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 *) ac_optarg=yes ;;
1025 esac
John Criswell7a73b802003-06-30 21:59:07 +00001026
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1028
Reid Spencera773bd52006-08-04 18:18:08 +00001029 case $ac_dashdash$ac_option in
1030 --)
1031 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001032
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034 ac_prev=bindir ;;
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1037
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1042
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1049
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1052
Reid Spencera773bd52006-08-04 18:18:08 +00001053 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001054 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001056 datadir=$ac_optarg ;;
1057
Reid Spencera773bd52006-08-04 18:18:08 +00001058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1064
John Criswell7a73b802003-06-30 21:59:07 +00001065 -disable-* | --disable-*)
1066 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001068 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001069 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001071 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001072 eval enable_$ac_feature=no ;;
1073
1074 -docdir | --docdir | --docdi | --doc | --do)
1075 ac_prev=docdir ;;
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1078
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080 ac_prev=dvidir ;;
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001083
1084 -enable-* | --enable-*)
1085 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001087 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001088 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001090 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001091 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001092
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1101
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1105
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1112
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1117
Reid Spencera773bd52006-08-04 18:18:08 +00001118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1123
John Criswell7a73b802003-06-30 21:59:07 +00001124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1130
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1135
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1140
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1147
Reid Spencera773bd52006-08-04 18:18:08 +00001148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1152
John Criswell7a73b802003-06-30 21:59:07 +00001153 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001154 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001158 localstatedir=$ac_optarg ;;
1159
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1164
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1168
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1172
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1176
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1185
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1190
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1197
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1204
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1221
Reid Spencera773bd52006-08-04 18:18:08 +00001222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1226
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1231
John Criswell7a73b802003-06-30 21:59:07 +00001232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1235
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1241
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1252
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1257
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1262
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1269
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1274
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1277
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1280
1281 -with-* | --with-*)
1282 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001284 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001287 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001288 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001289
1290 -without-* | --without-*)
1291 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001293 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001296 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001297 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001298
1299 --x)
1300 # Obsolete; use --with-x.
1301 with_x=yes ;;
1302
1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304 | --x-incl | --x-inc | --x-in | --x-i)
1305 ac_prev=x_includes ;;
1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308 x_includes=$ac_optarg ;;
1309
1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312 ac_prev=x_libraries ;;
1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315 x_libraries=$ac_optarg ;;
1316
1317 -*) { echo "$as_me: error: unrecognized option: $ac_option
1318Try \`$0 --help' for more information." >&2
1319 { (exit 1); exit 1; }; }
1320 ;;
1321
1322 *=*)
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001328 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001329 export $ac_envvar ;;
1330
1331 *)
1332 # FIXME: should be removed in autoconf 3.0.
1333 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337 ;;
1338
1339 esac
1340done
1341
1342if test -n "$ac_prev"; then
1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344 { echo "$as_me: error: missing argument to $ac_option" >&2
1345 { (exit 1); exit 1; }; }
1346fi
1347
Reid Spencera773bd52006-08-04 18:18:08 +00001348# Be sure to have absolute directory names.
1349for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350 datadir sysconfdir sharedstatedir localstatedir includedir \
1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001353do
Reid Spencera773bd52006-08-04 18:18:08 +00001354 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001355 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001358 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001359 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001361done
1362
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375 If a cross compiler is detected then cross compile mode will be used." >&2
1376 elif test "x$build_alias" != "x$host_alias"; then
1377 cross_compiling=yes
1378 fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
Reid Spencera773bd52006-08-04 18:18:08 +00001387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 { echo "$as_me: error: Working directory cannot be determined" >&2
1391 { (exit 1); exit 1; }; }
1392test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 { echo "$as_me: error: pwd does not report name of working directory" >&2
1394 { (exit 1); exit 1; }; }
1395
1396
John Criswell7a73b802003-06-30 21:59:07 +00001397# Find the source files, if location was not specified.
1398if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001402$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001403 X"$0" : 'X\(//\)[^/]' \| \
1404 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001406echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)[^/].*/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\/\)$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\).*/{
1420 s//\1/
1421 q
1422 }
1423 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001424 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001425 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001426 srcdir=..
1427 fi
1428else
1429 ac_srcdir_defaulted=no
1430fi
Reid Spencera773bd52006-08-04 18:18:08 +00001431if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001434 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001435fi
Reid Spencera773bd52006-08-04 18:18:08 +00001436ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437ac_abs_confdir=`(
1438 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001439 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001440 pwd)`
1441# When building in place, set srcdir=.
1442if test "$ac_abs_confdir" = "$ac_pwd"; then
1443 srcdir=.
1444fi
1445# Remove unnecessary trailing slashes from srcdir.
1446# Double slashes in file names in object file debugging info
1447# mess up M-x gdb in Emacs.
1448case $srcdir in
1449*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450esac
1451for ac_var in $ac_precious_vars; do
1452 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_${ac_var}_value=\$${ac_var}
1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456done
John Criswell7a73b802003-06-30 21:59:07 +00001457
1458#
1459# Report the --help message.
1460#
1461if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1464 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001465\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001466
1467Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470VAR=VALUE. See below for descriptions of some of the useful variables.
1471
1472Defaults for the options are specified in brackets.
1473
1474Configuration:
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484
John Criswell7a73b802003-06-30 21:59:07 +00001485Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001487 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001489 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001490
1491By default, \`make install' will install all the files in
1492\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494for instance \`--prefix=\$HOME'.
1495
1496For better control, use the options below.
1497
1498Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001518_ACEOF
1519
1520 cat <<\_ACEOF
1521
1522System types:
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 --target=TARGET configure for building compilers for TARGET [HOST]
1526_ACEOF
1527fi
1528
1529if test -n "$ac_init_help"; then
1530 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001531 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001532 esac
1533 cat <<\_ACEOF
1534
1535Optional Features:
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001538 --enable-optimized Compile with optimizations enabled (default is NO)
1539 --enable-profiling Compile with profiling enabled (default is NO)
1540 --enable-assertions Compile with assertion checks enabled (default is
1541 YES)
David Greenea696d242007-06-28 19:36:08 +00001542 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001543 Compile with expensive debug checks enabled (default
1544 is NO)
1545 --enable-debug-runtime Build runtime libs with debug symbols (default is
1546 NO)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001547 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001548 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001549 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001550 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001551 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001552 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001553 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001554 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1555 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001556 --enable-bindings Build specific language bindings:
1557 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001558 --enable-libffi Check for the presence of libffi (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001559 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001560 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001561 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001562 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001563 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001564 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001565 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001566 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001567 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001568
1569Optional Packages:
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001572 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1573 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001574 --with-llvmgcc Specify location of llvm-gcc driver (default
1575 searches PATH)
1576 --with-llvmgxx Specify location of llvm-g++ driver (default
1577 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001578 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001579 --with-ocaml-libdir Specify install location for ocaml bindings (default
1580 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001581 --with-binutils-include Specify path to binutils/include/ containing
1582 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001583 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001584 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1585 --with-pic try to use only PIC/non-PIC objects [default=use
1586 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001587 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001588 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001589
1590Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001591 CC C compiler command
1592 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001595 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001597 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001598 CXX C++ compiler command
1599 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001600 CXXCPP C++ preprocessor
1601 F77 Fortran 77 compiler command
1602 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001603
1604Use these variables to override the choices made by `configure' or to help
1605it to find libraries and programs with nonstandard names/locations.
1606
1607Report bugs to <llvmbugs@cs.uiuc.edu>.
1608_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001609ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001610fi
1611
1612if test "$ac_init_help" = "recursive"; then
1613 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001614 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001615 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001616 ac_builddir=.
1617
Reid Spencera773bd52006-08-04 18:18:08 +00001618case "$ac_dir" in
1619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620*)
John Criswell7a73b802003-06-30 21:59:07 +00001621 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 esac ;;
1628esac
1629ac_abs_top_builddir=$ac_pwd
1630ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631# for backward compatibility:
1632ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001633
1634case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001635 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001636 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001640 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1643 *) # Relative name.
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001647esac
Reid Spencera773bd52006-08-04 18:18:08 +00001648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001649
Reid Spencera773bd52006-08-04 18:18:08 +00001650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001658 else
1659 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001660 fi || ac_status=$?
1661 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001662 done
1663fi
1664
Reid Spencera773bd52006-08-04 18:18:08 +00001665test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001666if $ac_init_version; then
1667 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001668llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001669generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001670
Reid Spencera773bd52006-08-04 18:18:08 +00001671Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16722002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001673This configure script is free software; the Free Software Foundation
1674gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001675
Tanya Lattnercf067672008-01-17 05:57:22 +00001676Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001677_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001678 exit
John Criswell7a73b802003-06-30 21:59:07 +00001679fi
Reid Spencera773bd52006-08-04 18:18:08 +00001680cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001681This file contains any messages produced by compilers while
1682running configure, to aid debugging if configure makes a mistake.
1683
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001684It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001685generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001686
1687 $ $0 $@
1688
1689_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001690exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001691{
1692cat <<_ASUNAME
1693## --------- ##
1694## Platform. ##
1695## --------- ##
1696
1697hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1698uname -m = `(uname -m) 2>/dev/null || echo unknown`
1699uname -r = `(uname -r) 2>/dev/null || echo unknown`
1700uname -s = `(uname -s) 2>/dev/null || echo unknown`
1701uname -v = `(uname -v) 2>/dev/null || echo unknown`
1702
1703/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1704/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1705
1706/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1707/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1708/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001709/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001710/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1711/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1712/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1713
1714_ASUNAME
1715
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 echo "PATH: $as_dir"
1722done
Reid Spencera773bd52006-08-04 18:18:08 +00001723IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001724
1725} >&5
1726
1727cat >&5 <<_ACEOF
1728
1729
1730## ----------- ##
1731## Core tests. ##
1732## ----------- ##
1733
1734_ACEOF
1735
1736
1737# Keep a trace of the command line.
1738# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001739# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001740# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001741# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001742ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001743ac_configure_args0=
1744ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001745ac_must_keep_next=false
1746for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001747do
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 for ac_arg
1749 do
1750 case $ac_arg in
1751 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1753 | -silent | --silent | --silen | --sile | --sil)
1754 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001755 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001756 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1757 esac
1758 case $ac_pass in
1759 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1760 2)
1761 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1762 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001763 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001764 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001765 case $ac_arg in
1766 *=* | --config-cache | -C | -disable-* | --disable-* \
1767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1769 | -with-* | --with-* | -without-* | --without-* | --x)
1770 case "$ac_configure_args0 " in
1771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1772 esac
1773 ;;
1774 -* ) ac_must_keep_next=true ;;
1775 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001777 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ;;
1779 esac
1780 done
John Criswell7a73b802003-06-30 21:59:07 +00001781done
John Criswell0c38eaf2003-09-10 15:17:25 +00001782$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1783$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 +00001784
1785# When interrupted or exit'd, cleanup temporary files, and complete
1786# config.log. We remove comments because anyway the quotes in there
1787# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001788# WARNING: Use '\'' to represent an apostrophe within the trap.
1789# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001790trap 'exit_status=$?
1791 # Save into config.log some information that might help in debugging.
1792 {
1793 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001794
John Criswell7a73b802003-06-30 21:59:07 +00001795 cat <<\_ASBOX
1796## ---------------- ##
1797## Cache variables. ##
1798## ---------------- ##
1799_ASBOX
1800 echo
1801 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001802(
1803 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1804 eval ac_val=\$$ac_var
1805 case $ac_val in #(
1806 *${as_nl}*)
1807 case $ac_var in #(
1808 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1809echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1810 esac
1811 case $ac_var in #(
1812 _ | IFS | as_nl) ;; #(
1813 *) $as_unset $ac_var ;;
1814 esac ;;
1815 esac
1816 done
John Criswell7a73b802003-06-30 21:59:07 +00001817 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001820 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001821 "s/'\''/'\''\\\\'\'''\''/g;
1822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001824 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001826 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001827 esac |
1828 sort
1829)
John Criswell7a73b802003-06-30 21:59:07 +00001830 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001831
1832 cat <<\_ASBOX
1833## ----------------- ##
1834## Output variables. ##
1835## ----------------- ##
1836_ASBOX
1837 echo
1838 for ac_var in $ac_subst_vars
1839 do
Reid Spencera773bd52006-08-04 18:18:08 +00001840 eval ac_val=\$$ac_var
1841 case $ac_val in
1842 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 esac
1844 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001845 done | sort
1846 echo
1847
1848 if test -n "$ac_subst_files"; then
1849 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001850## ------------------- ##
1851## File substitutions. ##
1852## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001853_ASBOX
1854 echo
1855 for ac_var in $ac_subst_files
1856 do
Reid Spencera773bd52006-08-04 18:18:08 +00001857 eval ac_val=\$$ac_var
1858 case $ac_val in
1859 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 esac
1861 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001862 done | sort
1863 echo
1864 fi
1865
John Criswell7a73b802003-06-30 21:59:07 +00001866 if test -s confdefs.h; then
1867 cat <<\_ASBOX
1868## ----------- ##
1869## confdefs.h. ##
1870## ----------- ##
1871_ASBOX
1872 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001873 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001874 echo
1875 fi
1876 test "$ac_signal" != 0 &&
1877 echo "$as_me: caught signal $ac_signal"
1878 echo "$as_me: exit $exit_status"
1879 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001882 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001883' 0
John Criswell7a73b802003-06-30 21:59:07 +00001884for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886done
1887ac_signal=0
1888
1889# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001890rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001891
1892# Predefined preprocessor variables.
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_NAME "$PACKAGE_NAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_VERSION "$PACKAGE_VERSION"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_STRING "$PACKAGE_STRING"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916_ACEOF
1917
1918
1919# Let the site file select an alternate cache file if it wants to.
1920# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001921if test -n "$CONFIG_SITE"; then
1922 set x "$CONFIG_SITE"
1923elif test "x$prefix" != xNONE; then
1924 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1925else
1926 set x "$ac_default_prefix/share/config.site" \
1927 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001928fi
Reid Spencera773bd52006-08-04 18:18:08 +00001929shift
1930for ac_site_file
1931do
John Criswell7a73b802003-06-30 21:59:07 +00001932 if test -r "$ac_site_file"; then
1933 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1934echo "$as_me: loading site script $ac_site_file" >&6;}
1935 sed 's/^/| /' "$ac_site_file" >&5
1936 . "$ac_site_file"
1937 fi
1938done
1939
1940if test -r "$cache_file"; then
1941 # Some versions of bash will fail to source /dev/null (special
1942 # files actually), so we avoid doing that.
1943 if test -f "$cache_file"; then
1944 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1945echo "$as_me: loading cache $cache_file" >&6;}
1946 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001947 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1948 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001949 esac
1950 fi
1951else
1952 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1953echo "$as_me: creating cache $cache_file" >&6;}
1954 >$cache_file
1955fi
1956
1957# Check that the precious variables saved in the cache have kept the same
1958# value.
1959ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001960for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001961 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1962 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001963 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1964 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001965 case $ac_old_set,$ac_new_set in
1966 set,)
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1968echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1970 ,set)
1971 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1972echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1973 ac_cache_corrupted=: ;;
1974 ,);;
1975 *)
1976 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001977 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001978echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001979 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001980echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001981 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001982echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001983 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001984 fi;;
1985 esac
1986 # Pass precious variables to config.status.
1987 if test "$ac_new_set" = set; then
1988 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001989 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001990 *) ac_arg=$ac_var=$ac_new_val ;;
1991 esac
1992 case " $ac_configure_args " in
1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1994 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1995 esac
1996 fi
1997done
1998if $ac_cache_corrupted; then
1999 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2004fi
2005
Reid Spencera773bd52006-08-04 18:18:08 +00002006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
John Criswell7a73b802003-06-30 21:59:07 +00002030ac_ext=c
2031ac_cpp='$CPP $CPPFLAGS'
2032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035
2036
2037
Tanya Lattnercf067672008-01-17 05:57:22 +00002038LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002039
2040
2041
2042
2043
2044
2045
John Criswell7a73b802003-06-30 21:59:07 +00002046ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002047for ac_dir in autoconf "$srcdir"/autoconf; do
2048 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install-sh -c"
2051 break
Reid Spencera773bd52006-08-04 18:18:08 +00002052 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/install.sh -c"
2055 break
Reid Spencera773bd52006-08-04 18:18:08 +00002056 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/shtool install -c"
2059 break
2060 fi
2061done
2062if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002063 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2064echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002065 { (exit 1); exit 1; }; }
2066fi
Reid Spencera773bd52006-08-04 18:18:08 +00002067
2068# These three variables are undocumented and unsupported,
2069# and are intended to be withdrawn in a future Autoconf release.
2070# They can cause serious problems if a builder's source tree is in a directory
2071# whose full name contains unusual characters.
2072ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2073ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2074ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2075
John Criswell7a73b802003-06-30 21:59:07 +00002076
John Criswell392aaa32003-07-22 19:18:09 +00002077
Reid Spencer2706f8c2004-09-19 23:53:36 +00002078if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002079 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2080 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002081echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2082 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002083 fi
John Criswell93e1c722003-09-15 17:04:06 +00002084fi
2085
John Criswell33a911a2003-11-25 20:36:46 +00002086for i in `ls ${srcdir}/projects`
2087do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002088 if test -d ${srcdir}/projects/${i} ; then
2089 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002090 CVS) ;;
2091 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002092 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002093 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002094 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002095 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002096 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002097 # llvm-test is the old name of the test-suite, kept here for backwards
2098 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002099 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002100 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002101 test-suite) subdirs="$subdirs projects/test-suite"
2102 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002104;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002106 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002107 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002110 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002111 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002112 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002113 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002114 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002115 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002116 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002117 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002118 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2119echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002120 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002121 esac
John Criswell33a911a2003-11-25 20:36:46 +00002122 fi
2123done
John Criswell559a6c12003-09-30 16:31:48 +00002124
John Criswell7a73b802003-06-30 21:59:07 +00002125
2126# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002127$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2128 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002130 { (exit 1); exit 1; }; }
2131
Reid Spencera773bd52006-08-04 18:18:08 +00002132{ echo "$as_me:$LINENO: checking build system type" >&5
2133echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002134if test "${ac_cv_build+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136else
Reid Spencera773bd52006-08-04 18:18:08 +00002137 ac_build_alias=$build_alias
2138test "x$ac_build_alias" = x &&
2139 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2140test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002144ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002147 { (exit 1); exit 1; }; }
2148
2149fi
Reid Spencera773bd52006-08-04 18:18:08 +00002150{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151echo "${ECHO_T}$ac_cv_build" >&6; }
2152case $ac_cv_build in
2153*-*-*) ;;
2154*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155echo "$as_me: error: invalid value of canonical build" >&2;}
2156 { (exit 1); exit 1; }; };;
2157esac
John Criswell7a73b802003-06-30 21:59:07 +00002158build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002159ac_save_IFS=$IFS; IFS='-'
2160set x $ac_cv_build
2161shift
2162build_cpu=$1
2163build_vendor=$2
2164shift; shift
2165# Remember, the first character of IFS is used to create $*,
2166# except with old shells:
2167build_os=$*
2168IFS=$ac_save_IFS
2169case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002170
2171
Reid Spencera773bd52006-08-04 18:18:08 +00002172{ echo "$as_me:$LINENO: checking host system type" >&5
2173echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002174if test "${ac_cv_host+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
Reid Spencera773bd52006-08-04 18:18:08 +00002177 if test "x$host_alias" = x; then
2178 ac_cv_host=$ac_cv_build
2179else
2180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002183 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002184fi
John Criswell7a73b802003-06-30 21:59:07 +00002185
2186fi
Reid Spencera773bd52006-08-04 18:18:08 +00002187{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188echo "${ECHO_T}$ac_cv_host" >&6; }
2189case $ac_cv_host in
2190*-*-*) ;;
2191*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192echo "$as_me: error: invalid value of canonical host" >&2;}
2193 { (exit 1); exit 1; }; };;
2194esac
John Criswell7a73b802003-06-30 21:59:07 +00002195host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002196ac_save_IFS=$IFS; IFS='-'
2197set x $ac_cv_host
2198shift
2199host_cpu=$1
2200host_vendor=$2
2201shift; shift
2202# Remember, the first character of IFS is used to create $*,
2203# except with old shells:
2204host_os=$*
2205IFS=$ac_save_IFS
2206case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002207
2208
Reid Spencera773bd52006-08-04 18:18:08 +00002209{ echo "$as_me:$LINENO: checking target system type" >&5
2210echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002211if test "${ac_cv_target+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213else
Reid Spencera773bd52006-08-04 18:18:08 +00002214 if test "x$target_alias" = x; then
2215 ac_cv_target=$ac_cv_host
2216else
2217 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2218 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2219echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002220 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002221fi
John Criswell7a73b802003-06-30 21:59:07 +00002222
2223fi
Reid Spencera773bd52006-08-04 18:18:08 +00002224{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2225echo "${ECHO_T}$ac_cv_target" >&6; }
2226case $ac_cv_target in
2227*-*-*) ;;
2228*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2229echo "$as_me: error: invalid value of canonical target" >&2;}
2230 { (exit 1); exit 1; }; };;
2231esac
John Criswell7a73b802003-06-30 21:59:07 +00002232target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002233ac_save_IFS=$IFS; IFS='-'
2234set x $ac_cv_target
2235shift
2236target_cpu=$1
2237target_vendor=$2
2238shift; shift
2239# Remember, the first character of IFS is used to create $*,
2240# except with old shells:
2241target_os=$*
2242IFS=$ac_save_IFS
2243case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002244
2245
2246# The aliases save the names the user supplied, while $host etc.
2247# will get canonicalized.
2248test -n "$target_alias" &&
2249 test "$program_prefix$program_suffix$program_transform_name" = \
2250 NONENONEs,x,x, &&
2251 program_prefix=${target_alias}-
2252
Reid Spencera773bd52006-08-04 18:18:08 +00002253{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2254echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002255if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002258 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002259 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002262 llvm_cv_os_type="AIX"
2263 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002264 *-*-irix*)
2265 llvm_cv_link_all_option="-Wl,--whole-archive"
2266 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2267 llvm_cv_os_type="IRIX"
2268 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002272 llvm_cv_os_type="Cygwin"
2273 llvm_cv_platform_type="Unix" ;;
2274 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002275 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002276 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002277 llvm_cv_os_type="Darwin"
2278 llvm_cv_platform_type="Unix" ;;
2279 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002282 llvm_cv_os_type="FreeBSD"
2283 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002284 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002287 llvm_cv_os_type="OpenBSD"
2288 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002289 *-*-netbsd*)
2290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292 llvm_cv_os_type="NetBSD"
2293 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002294 *-*-dragonfly*)
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="DragonFly"
2298 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002299 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002302 llvm_cv_os_type="HP-UX"
2303 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002307 llvm_cv_os_type="Interix"
2308 llvm_cv_platform_type="Unix" ;;
2309 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002312 llvm_cv_os_type="Linux"
2313 llvm_cv_platform_type="Unix" ;;
2314 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002315 llvm_cv_link_all_option="-Wl,-z,allextract"
2316 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317 llvm_cv_os_type="SunOS"
2318 llvm_cv_platform_type="Unix" ;;
2319 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002320 llvm_cv_link_all_option="-Wl,--whole-archive"
2321 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002322 llvm_cv_os_type="Win32"
2323 llvm_cv_platform_type="Win32" ;;
2324 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002325 llvm_cv_link_all_option="-Wl,--whole-archive"
2326 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002327 llvm_cv_os_type="MingW"
2328 llvm_cv_platform_type="Win32" ;;
2329 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002330 llvm_cv_link_all_option=""
2331 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002332 llvm_cv_os_type="Unknown"
2333 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002334esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002335fi
Reid Spencera773bd52006-08-04 18:18:08 +00002336{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2337echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002338
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339if test "$llvm_cv_os_type" = "Unknown" ; then
2340 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2341echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002342 { (exit 1); exit 1; }; }
2343fi
2344
Reid Spencer7b3e8512004-12-24 06:29:05 +00002345OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002346
2347
Reid Spencera773bd52006-08-04 18:18:08 +00002348LINKALL=$llvm_cv_link_all_option
2349
2350NOLINKALL=$llvm_cv_no_link_all_option
2351
2352
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353case $llvm_cv_platform_type in
2354 Unix)
2355
2356cat >>confdefs.h <<\_ACEOF
2357#define LLVM_ON_UNIX 1
2358_ACEOF
2359
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002360 LLVM_ON_UNIX=1
2361
2362 LLVM_ON_WIN32=0
2363
Reid Spencer7b3e8512004-12-24 06:29:05 +00002364 ;;
2365 Win32)
2366
2367cat >>confdefs.h <<\_ACEOF
2368#define LLVM_ON_WIN32 1
2369_ACEOF
2370
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002371 LLVM_ON_UNIX=0
2372
2373 LLVM_ON_WIN32=1
2374
Reid Spencer7b3e8512004-12-24 06:29:05 +00002375 ;;
2376esac
2377
Reid Spencera773bd52006-08-04 18:18:08 +00002378{ echo "$as_me:$LINENO: checking target architecture" >&5
2379echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002380if test "${llvm_cv_target_arch+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382else
2383 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002384 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002385 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002386 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2387 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002388 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002389 ia64-*) llvm_cv_target_arch="IA64" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002390 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002391 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002392 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002393 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002394 msp430-*) llvm_cv_target_arch="MSP430" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002395 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002396esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397fi
Reid Spencera773bd52006-08-04 18:18:08 +00002398{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2399echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002400
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401if test "$llvm_cv_target_arch" = "Unknown" ; then
2402 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2403echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2404fi
John Criswell76595452003-07-01 22:07:39 +00002405
Douglas Gregor0711c302009-06-17 00:43:20 +00002406# Determine the LLVM native architecture for the target
2407case "$llvm_cv_target_arch" in
2408 x86) LLVM_NATIVE_ARCH="X86" ;;
2409 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2410 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2411esac
2412
Bill Wendlinga0833352009-03-12 04:10:09 +00002413ARCH=$llvm_cv_target_arch
2414
2415
2416ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417ac_cpp='$CPP $CPPFLAGS'
2418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002421if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426if test "${ac_cv_prog_CC+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2428else
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2431else
2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002438 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 +00002439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2442 fi
2443done
2444done
Reid Spencera773bd52006-08-04 18:18:08 +00002445IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446
2447fi
2448fi
2449CC=$ac_cv_prog_CC
2450if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002451 { echo "$as_me:$LINENO: result: $CC" >&5
2452echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453else
Reid Spencera773bd52006-08-04 18:18:08 +00002454 { echo "$as_me:$LINENO: result: no" >&5
2455echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002456fi
2457
Reid Spencera773bd52006-08-04 18:18:08 +00002458
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459fi
2460if test -z "$ac_cv_prog_CC"; then
2461 ac_ct_CC=$CC
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002478 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 +00002479 ac_cv_prog_ac_ct_CC="gcc"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483done
2484done
Reid Spencera773bd52006-08-04 18:18:08 +00002485IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486
2487fi
2488fi
2489ac_ct_CC=$ac_cv_prog_ac_ct_CC
2490if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002491 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2492echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002493else
Reid Spencera773bd52006-08-04 18:18:08 +00002494 { echo "$as_me:$LINENO: result: no" >&5
2495echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496fi
2497
Reid Spencera773bd52006-08-04 18:18:08 +00002498 if test "x$ac_ct_CC" = x; then
2499 CC=""
2500 else
2501 case $cross_compiling:$ac_tool_warned in
2502yes:)
2503{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2504whose name does not start with the host triplet. If you think this
2505configuration is useful to you, please write to autoconf@gnu.org." >&5
2506echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2507whose name does not start with the host triplet. If you think this
2508configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2509ac_tool_warned=yes ;;
2510esac
2511 CC=$ac_ct_CC
2512 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002513else
2514 CC="$ac_cv_prog_CC"
2515fi
2516
2517if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002518 if test -n "$ac_tool_prefix"; then
2519 # 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 +00002520set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002521{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002523if test "${ac_cv_prog_CC+set}" = set; then
2524 echo $ECHO_N "(cached) $ECHO_C" >&6
2525else
2526 if test -n "$CC"; then
2527 ac_cv_prog_CC="$CC" # Let the user override the test.
2528else
2529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530for as_dir in $PATH
2531do
2532 IFS=$as_save_IFS
2533 test -z "$as_dir" && as_dir=.
2534 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002535 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 +00002536 ac_cv_prog_CC="${ac_tool_prefix}cc"
2537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2538 break 2
2539 fi
2540done
2541done
Reid Spencera773bd52006-08-04 18:18:08 +00002542IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543
2544fi
2545fi
2546CC=$ac_cv_prog_CC
2547if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002548 { echo "$as_me:$LINENO: result: $CC" >&5
2549echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550else
Reid Spencera773bd52006-08-04 18:18:08 +00002551 { echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553fi
2554
Reid Spencera773bd52006-08-04 18:18:08 +00002555
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557fi
2558if test -z "$CC"; then
2559 # Extract the first word of "cc", so it can be a program name with args.
2560set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563if test "${ac_cv_prog_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
2566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
2568else
2569 ac_prog_rejected=no
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002576 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 +00002577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2578 ac_prog_rejected=yes
2579 continue
2580 fi
2581 ac_cv_prog_CC="cc"
2582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 break 2
2584 fi
2585done
2586done
Reid Spencera773bd52006-08-04 18:18:08 +00002587IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002588
2589if test $ac_prog_rejected = yes; then
2590 # We found a bogon in the path, so make sure we never use it.
2591 set dummy $ac_cv_prog_CC
2592 shift
2593 if test $# != 0; then
2594 # We chose a different compiler from the bogus one.
2595 # However, it has the same basename, so the bogon will be chosen
2596 # first if we set CC to just the basename; use the full file name.
2597 shift
2598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2599 fi
2600fi
2601fi
2602fi
2603CC=$ac_cv_prog_CC
2604if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002605 { echo "$as_me:$LINENO: result: $CC" >&5
2606echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607else
Reid Spencera773bd52006-08-04 18:18:08 +00002608 { echo "$as_me:$LINENO: result: no" >&5
2609echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610fi
2611
Reid Spencera773bd52006-08-04 18:18:08 +00002612
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613fi
2614if test -z "$CC"; then
2615 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002616 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002617 do
2618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002623 echo $ECHO_N "(cached) $ECHO_C" >&6
2624else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625 if test -n "$CC"; then
2626 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002627else
2628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629for as_dir in $PATH
2630do
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002634 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 +00002635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639done
2640done
Reid Spencera773bd52006-08-04 18:18:08 +00002641IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002642
2643fi
2644fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002645CC=$ac_cv_prog_CC
2646if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002647 { echo "$as_me:$LINENO: result: $CC" >&5
2648echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002649else
Reid Spencera773bd52006-08-04 18:18:08 +00002650 { echo "$as_me:$LINENO: result: no" >&5
2651echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002652fi
2653
Reid Spencera773bd52006-08-04 18:18:08 +00002654
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002655 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002656 done
2657fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658if test -z "$CC"; then
2659 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002660 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002661do
2662 # Extract the first word of "$ac_prog", so it can be a program name with args.
2663set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002666if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669 if test -n "$ac_ct_CC"; then
2670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002671else
2672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673for as_dir in $PATH
2674do
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002678 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 +00002679 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2681 break 2
2682 fi
2683done
2684done
Reid Spencera773bd52006-08-04 18:18:08 +00002685IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002686
2687fi
2688fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002689ac_ct_CC=$ac_cv_prog_ac_ct_CC
2690if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002691 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2692echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002693else
Reid Spencera773bd52006-08-04 18:18:08 +00002694 { echo "$as_me:$LINENO: result: no" >&5
2695echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002696fi
2697
Reid Spencera773bd52006-08-04 18:18:08 +00002698
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002699 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002700done
John Criswell7a73b802003-06-30 21:59:07 +00002701
Reid Spencera773bd52006-08-04 18:18:08 +00002702 if test "x$ac_ct_CC" = x; then
2703 CC=""
2704 else
2705 case $cross_compiling:$ac_tool_warned in
2706yes:)
2707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2708whose name does not start with the host triplet. If you think this
2709configuration is useful to you, please write to autoconf@gnu.org." >&5
2710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2711whose name does not start with the host triplet. If you think this
2712configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2713ac_tool_warned=yes ;;
2714esac
2715 CC=$ac_ct_CC
2716 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002717fi
2718
John Criswell7a73b802003-06-30 21:59:07 +00002719fi
2720
2721
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002722test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2723See \`config.log' for more details." >&5
2724echo "$as_me: error: no acceptable C compiler found in \$PATH
2725See \`config.log' for more details." >&2;}
2726 { (exit 1); exit 1; }; }
2727
John Criswell7a73b802003-06-30 21:59:07 +00002728# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002729echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002730ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002731{ (ac_try="$ac_compiler --version >&5"
2732case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735esac
2736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002741{ (ac_try="$ac_compiler -v >&5"
2742case "(($ac_try" in
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2745esac
2746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002751{ (ac_try="$ac_compiler -V >&5"
2752case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }
2761
2762cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002763/* confdefs.h. */
2764_ACEOF
2765cat confdefs.h >>conftest.$ac_ext
2766cat >>conftest.$ac_ext <<_ACEOF
2767/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002768
John Criswell7a73b802003-06-30 21:59:07 +00002769int
2770main ()
2771{
2772
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002778ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002779# Try to create an executable without -o first, disregard a.out.
2780# It will help us diagnose broken compilers, and finding out an intuition
2781# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002782{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2783echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002784ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002785#
2786# List of possible output files, starting from the most likely.
2787# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2788# only as a last resort. b.out is created by i960 compilers.
2789ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2790#
2791# The IRIX 6 linker writes into existing files which may not be
2792# executable, retaining their permissions. Remove them first so a
2793# subsequent execution test works.
2794ac_rmfiles=
2795for ac_file in $ac_files
2796do
2797 case $ac_file in
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2799 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2800 esac
2801done
2802rm -f $ac_rmfiles
2803
2804if { (ac_try="$ac_link_default"
2805case "(($ac_try" in
2806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807 *) ac_try_echo=$ac_try;;
2808esac
2809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002814 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2815# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2816# in a Makefile. We should not override ac_cv_exeext if it was cached,
2817# so that the user can short-circuit this test for compilers unknown to
2818# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002819for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002820do
2821 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002822 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002823 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002824 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002825 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002826 # We found the default executable, but exeext='' is most
2827 # certainly right.
2828 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002829 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002830 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2831 then :; else
2832 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2833 fi
2834 # We set ac_cv_exeext here because the later test for it is not
2835 # safe: cross compilers may not add the suffix if given an `-o'
2836 # argument, so we may need to know it at that point already.
2837 # Even if this section looks crufty: it has the advantage of
2838 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002839 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002840 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002841 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002842 esac
2843done
Reid Spencera773bd52006-08-04 18:18:08 +00002844test "$ac_cv_exeext" = no && ac_cv_exeext=
2845
John Criswell7a73b802003-06-30 21:59:07 +00002846else
2847 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002848sed 's/^/| /' conftest.$ac_ext >&5
2849
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002850{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002851See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002852echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002853See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002854 { (exit 77); exit 77; }; }
2855fi
2856
2857ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002858{ echo "$as_me:$LINENO: result: $ac_file" >&5
2859echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002860
Reid Spencera773bd52006-08-04 18:18:08 +00002861# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002862# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002863{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2864echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002865# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2866# If not cross compiling, check that we can run a simple program.
2867if test "$cross_compiling" != yes; then
2868 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002869 { (case "(($ac_try" in
2870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871 *) ac_try_echo=$ac_try;;
2872esac
2873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; }; then
2878 cross_compiling=no
2879 else
2880 if test "$cross_compiling" = maybe; then
2881 cross_compiling=yes
2882 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002883 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002884If you meant to cross compile, use \`--host'.
2885See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002886echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002887If you meant to cross compile, use \`--host'.
2888See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002889 { (exit 1); exit 1; }; }
2890 fi
2891 fi
2892fi
Reid Spencera773bd52006-08-04 18:18:08 +00002893{ echo "$as_me:$LINENO: result: yes" >&5
2894echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002895
John Criswell0c38eaf2003-09-10 15:17:25 +00002896rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002897ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002898# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002899# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002900{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2901echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2902{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2903echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002904
Reid Spencera773bd52006-08-04 18:18:08 +00002905{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2906echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2907if { (ac_try="$ac_link"
2908case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911esac
2912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; then
2917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2918# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2919# work properly (i.e., refer to `conftest.exe'), while it won't with
2920# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002921for ac_file in conftest.exe conftest conftest.*; do
2922 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002923 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002925 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002926 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002927 * ) break;;
2928 esac
2929done
2930else
John Criswell0c38eaf2003-09-10 15:17:25 +00002931 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2932See \`config.log' for more details." >&5
2933echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2934See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002935 { (exit 1); exit 1; }; }
2936fi
2937
2938rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002939{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2940echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002941
2942rm -f conftest.$ac_ext
2943EXEEXT=$ac_cv_exeext
2944ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002945{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2946echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002947if test "${ac_cv_objext+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2949else
2950 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002951/* confdefs.h. */
2952_ACEOF
2953cat confdefs.h >>conftest.$ac_ext
2954cat >>conftest.$ac_ext <<_ACEOF
2955/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002956
John Criswell7a73b802003-06-30 21:59:07 +00002957int
2958main ()
2959{
2960
2961 ;
2962 return 0;
2963}
2964_ACEOF
2965rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002966if { (ac_try="$ac_compile"
2967case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002976 for ac_file in conftest.o conftest.obj conftest.*; do
2977 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002978 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2981 break;;
2982 esac
2983done
2984else
2985 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002986sed 's/^/| /' conftest.$ac_ext >&5
2987
2988{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2989See \`config.log' for more details." >&5
2990echo "$as_me: error: cannot compute suffix of object files: cannot compile
2991See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002992 { (exit 1); exit 1; }; }
2993fi
2994
2995rm -f conftest.$ac_cv_objext conftest.$ac_ext
2996fi
Reid Spencera773bd52006-08-04 18:18:08 +00002997{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2998echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002999OBJEXT=$ac_cv_objext
3000ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003001{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3002echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003003if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003004 echo $ECHO_N "(cached) $ECHO_C" >&6
3005else
3006 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003007/* confdefs.h. */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003012
John Criswell7a73b802003-06-30 21:59:07 +00003013int
3014main ()
3015{
3016#ifndef __GNUC__
3017 choke me
3018#endif
3019
3020 ;
3021 return 0;
3022}
3023_ACEOF
3024rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003025if { (ac_try="$ac_compile"
3026case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003032 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003037 (exit $ac_status); } &&
3038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3039 { (case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_try") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; } &&
3048 { ac_try='test -s conftest.$ac_objext'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3052esac
3053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003058 ac_compiler_gnu=yes
3059else
3060 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003061sed 's/^/| /' conftest.$ac_ext >&5
3062
Reid Spencera773bd52006-08-04 18:18:08 +00003063 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003064fi
Reid Spencera773bd52006-08-04 18:18:08 +00003065
3066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003067ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003068
3069fi
Reid Spencera773bd52006-08-04 18:18:08 +00003070{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3071echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003072GCC=`test $ac_compiler_gnu = yes && echo yes`
3073ac_test_CFLAGS=${CFLAGS+set}
3074ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003075{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3076echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003077if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079else
Reid Spencera773bd52006-08-04 18:18:08 +00003080 ac_save_c_werror_flag=$ac_c_werror_flag
3081 ac_c_werror_flag=yes
3082 ac_cv_prog_cc_g=no
3083 CFLAGS="-g"
3084 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003085/* confdefs.h. */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003090
John Criswell7a73b802003-06-30 21:59:07 +00003091int
3092main ()
3093{
3094
3095 ;
3096 return 0;
3097}
3098_ACEOF
3099rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003100if { (ac_try="$ac_compile"
3101case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003107 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003133 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003134else
3135 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003136sed 's/^/| /' conftest.$ac_ext >&5
3137
Reid Spencera773bd52006-08-04 18:18:08 +00003138 CFLAGS=""
3139 cat >conftest.$ac_ext <<_ACEOF
3140/* confdefs.h. */
3141_ACEOF
3142cat confdefs.h >>conftest.$ac_ext
3143cat >>conftest.$ac_ext <<_ACEOF
3144/* end confdefs.h. */
3145
3146int
3147main ()
3148{
3149
3150 ;
3151 return 0;
3152}
3153_ACEOF
3154rm -f conftest.$ac_objext
3155if { (ac_try="$ac_compile"
3156case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_compile") 2>conftest.er1
3162 ac_status=$?
3163 grep -v '^ *+' conftest.er1 >conftest.err
3164 rm -f conftest.er1
3165 cat conftest.err >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003167 (exit $ac_status); } &&
3168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3169 { (case "(($ac_try" in
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3172esac
3173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3174 (eval "$ac_try") 2>&5
3175 ac_status=$?
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); }; } &&
3178 { ac_try='test -s conftest.$ac_objext'
3179 { (case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182esac
3183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184 (eval "$ac_try") 2>&5
3185 ac_status=$?
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003188 :
3189else
3190 echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193 ac_c_werror_flag=$ac_save_c_werror_flag
3194 CFLAGS="-g"
3195 cat >conftest.$ac_ext <<_ACEOF
3196/* confdefs.h. */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
3200/* end confdefs.h. */
3201
3202int
3203main ()
3204{
3205
3206 ;
3207 return 0;
3208}
3209_ACEOF
3210rm -f conftest.$ac_objext
3211if { (ac_try="$ac_compile"
3212case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215esac
3216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compile") 2>conftest.er1
3218 ac_status=$?
3219 grep -v '^ *+' conftest.er1 >conftest.err
3220 rm -f conftest.er1
3221 cat conftest.err >&5
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003223 (exit $ac_status); } &&
3224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3225 { (case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228esac
3229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230 (eval "$ac_try") 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; } &&
3234 { ac_try='test -s conftest.$ac_objext'
3235 { (case "(($ac_try" in
3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237 *) ac_try_echo=$ac_try;;
3238esac
3239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240 (eval "$ac_try") 2>&5
3241 ac_status=$?
3242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003244 ac_cv_prog_cc_g=yes
3245else
3246 echo "$as_me: failed program was:" >&5
3247sed 's/^/| /' conftest.$ac_ext >&5
3248
3249
John Criswell7a73b802003-06-30 21:59:07 +00003250fi
Reid Spencera773bd52006-08-04 18:18:08 +00003251
3252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003253fi
Reid Spencera773bd52006-08-04 18:18:08 +00003254
3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256fi
3257
3258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_c_werror_flag=$ac_save_c_werror_flag
3260fi
3261{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3262echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263if test "$ac_test_CFLAGS" = set; then
3264 CFLAGS=$ac_save_CFLAGS
3265elif test $ac_cv_prog_cc_g = yes; then
3266 if test "$GCC" = yes; then
3267 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003268 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003269 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003270 fi
3271else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272 if test "$GCC" = yes; then
3273 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003274 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003276 fi
3277fi
Reid Spencera773bd52006-08-04 18:18:08 +00003278{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3279echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3280if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282else
Reid Spencera773bd52006-08-04 18:18:08 +00003283 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003284ac_save_CC=$CC
3285cat >conftest.$ac_ext <<_ACEOF
3286/* confdefs.h. */
3287_ACEOF
3288cat confdefs.h >>conftest.$ac_ext
3289cat >>conftest.$ac_ext <<_ACEOF
3290/* end confdefs.h. */
3291#include <stdarg.h>
3292#include <stdio.h>
3293#include <sys/types.h>
3294#include <sys/stat.h>
3295/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296struct buf { int x; };
3297FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298static char *e (p, i)
3299 char **p;
3300 int i;
3301{
3302 return p[i];
3303}
3304static char *f (char * (*g) (char **, int), char **p, ...)
3305{
3306 char *s;
3307 va_list v;
3308 va_start (v,p);
3309 s = g (p, va_arg (v,int));
3310 va_end (v);
3311 return s;
3312}
3313
3314/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3315 function prototypes and stuff, but not '\xHH' hex character constants.
3316 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003317 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3319 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003320 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003321int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3322
Reid Spencera773bd52006-08-04 18:18:08 +00003323/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3324 inside strings and character constants. */
3325#define FOO(x) 'x'
3326int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3327
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328int test (int i, double x);
3329struct s1 {int (*f) (int a);};
3330struct s2 {int (*f) (double a);};
3331int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3332int argc;
3333char **argv;
3334int
3335main ()
3336{
3337return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3338 ;
3339 return 0;
3340}
3341_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003342for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3343 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344do
3345 CC="$ac_save_CC $ac_arg"
3346 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003347if { (ac_try="$ac_compile"
3348case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351esac
3352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003354 ac_status=$?
3355 grep -v '^ *+' conftest.er1 >conftest.err
3356 rm -f conftest.er1
3357 cat conftest.err >&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003359 (exit $ac_status); } &&
3360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3361 { (case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364esac
3365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_try") 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; } &&
3370 { ac_try='test -s conftest.$ac_objext'
3371 { (case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374esac
3375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376 (eval "$ac_try") 2>&5
3377 ac_status=$?
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003380 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381else
3382 echo "$as_me: failed program was:" >&5
3383sed 's/^/| /' conftest.$ac_ext >&5
3384
Reid Spencera773bd52006-08-04 18:18:08 +00003385
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386fi
Reid Spencera773bd52006-08-04 18:18:08 +00003387
3388rm -f core conftest.err conftest.$ac_objext
3389 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390done
Reid Spencera773bd52006-08-04 18:18:08 +00003391rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392CC=$ac_save_CC
3393
3394fi
Reid Spencera773bd52006-08-04 18:18:08 +00003395# AC_CACHE_VAL
3396case "x$ac_cv_prog_cc_c89" in
3397 x)
3398 { echo "$as_me:$LINENO: result: none needed" >&5
3399echo "${ECHO_T}none needed" >&6; } ;;
3400 xno)
3401 { echo "$as_me:$LINENO: result: unsupported" >&5
3402echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003403 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003404 CC="$CC $ac_cv_prog_cc_c89"
3405 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3406echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003407esac
3408
John Criswell0c38eaf2003-09-10 15:17:25 +00003409
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003410ac_ext=c
3411ac_cpp='$CPP $CPPFLAGS'
3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417ac_ext=c
3418ac_cpp='$CPP $CPPFLAGS'
3419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003422{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3423echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003424# On Suns, sometimes $CPP names a directory.
3425if test -n "$CPP" && test -d "$CPP"; then
3426 CPP=
3427fi
3428if test -z "$CPP"; then
3429 if test "${ac_cv_prog_CPP+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3431else
3432 # Double quotes because CPP needs to be expanded
3433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3434 do
3435 ac_preproc_ok=false
3436for ac_c_preproc_warn_flag in '' yes
3437do
3438 # Use a header file that comes with gcc, so configuring glibc
3439 # with a fresh cross-compiler works.
3440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3441 # <limits.h> exists even on freestanding compilers.
3442 # On the NeXT, cc -E runs the code through the compiler's parser,
3443 # not just through cpp. "Syntax error" is here to catch this case.
3444 cat >conftest.$ac_ext <<_ACEOF
3445/* confdefs.h. */
3446_ACEOF
3447cat confdefs.h >>conftest.$ac_ext
3448cat >>conftest.$ac_ext <<_ACEOF
3449/* end confdefs.h. */
3450#ifdef __STDC__
3451# include <limits.h>
3452#else
3453# include <assert.h>
3454#endif
3455 Syntax error
3456_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003457if { (ac_try="$ac_cpp conftest.$ac_ext"
3458case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461esac
3462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003469 (exit $ac_status); } >/dev/null; then
3470 if test -s conftest.err; then
3471 ac_cpp_err=$ac_c_preproc_warn_flag
3472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3473 else
3474 ac_cpp_err=
3475 fi
3476else
3477 ac_cpp_err=yes
3478fi
3479if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003480 :
3481else
3482 echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 # Broken: fails on valid input.
3486continue
3487fi
Reid Spencera773bd52006-08-04 18:18:08 +00003488
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003489rm -f conftest.err conftest.$ac_ext
3490
Reid Spencera773bd52006-08-04 18:18:08 +00003491 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003492 # can be detected and how.
3493 cat >conftest.$ac_ext <<_ACEOF
3494/* confdefs.h. */
3495_ACEOF
3496cat confdefs.h >>conftest.$ac_ext
3497cat >>conftest.$ac_ext <<_ACEOF
3498/* end confdefs.h. */
3499#include <ac_nonexistent.h>
3500_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003501if { (ac_try="$ac_cpp conftest.$ac_ext"
3502case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505esac
3506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003513 (exit $ac_status); } >/dev/null; then
3514 if test -s conftest.err; then
3515 ac_cpp_err=$ac_c_preproc_warn_flag
3516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3517 else
3518 ac_cpp_err=
3519 fi
3520else
3521 ac_cpp_err=yes
3522fi
3523if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003524 # Broken: success on invalid input.
3525continue
3526else
3527 echo "$as_me: failed program was:" >&5
3528sed 's/^/| /' conftest.$ac_ext >&5
3529
3530 # Passes both tests.
3531ac_preproc_ok=:
3532break
3533fi
Reid Spencera773bd52006-08-04 18:18:08 +00003534
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003535rm -f conftest.err conftest.$ac_ext
3536
3537done
3538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539rm -f conftest.err conftest.$ac_ext
3540if $ac_preproc_ok; then
3541 break
3542fi
3543
3544 done
3545 ac_cv_prog_CPP=$CPP
3546
3547fi
3548 CPP=$ac_cv_prog_CPP
3549else
3550 ac_cv_prog_CPP=$CPP
3551fi
Reid Spencera773bd52006-08-04 18:18:08 +00003552{ echo "$as_me:$LINENO: result: $CPP" >&5
3553echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003554ac_preproc_ok=false
3555for ac_c_preproc_warn_flag in '' yes
3556do
3557 # Use a header file that comes with gcc, so configuring glibc
3558 # with a fresh cross-compiler works.
3559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560 # <limits.h> exists even on freestanding compilers.
3561 # On the NeXT, cc -E runs the code through the compiler's parser,
3562 # not just through cpp. "Syntax error" is here to catch this case.
3563 cat >conftest.$ac_ext <<_ACEOF
3564/* confdefs.h. */
3565_ACEOF
3566cat confdefs.h >>conftest.$ac_ext
3567cat >>conftest.$ac_ext <<_ACEOF
3568/* end confdefs.h. */
3569#ifdef __STDC__
3570# include <limits.h>
3571#else
3572# include <assert.h>
3573#endif
3574 Syntax error
3575_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003576if { (ac_try="$ac_cpp conftest.$ac_ext"
3577case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580esac
3581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003583 ac_status=$?
3584 grep -v '^ *+' conftest.er1 >conftest.err
3585 rm -f conftest.er1
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003588 (exit $ac_status); } >/dev/null; then
3589 if test -s conftest.err; then
3590 ac_cpp_err=$ac_c_preproc_warn_flag
3591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3592 else
3593 ac_cpp_err=
3594 fi
3595else
3596 ac_cpp_err=yes
3597fi
3598if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003599 :
3600else
3601 echo "$as_me: failed program was:" >&5
3602sed 's/^/| /' conftest.$ac_ext >&5
3603
3604 # Broken: fails on valid input.
3605continue
3606fi
Reid Spencera773bd52006-08-04 18:18:08 +00003607
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003608rm -f conftest.err conftest.$ac_ext
3609
Reid Spencera773bd52006-08-04 18:18:08 +00003610 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003611 # can be detected and how.
3612 cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
3618#include <ac_nonexistent.h>
3619_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003620if { (ac_try="$ac_cpp conftest.$ac_ext"
3621case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624esac
3625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003627 ac_status=$?
3628 grep -v '^ *+' conftest.er1 >conftest.err
3629 rm -f conftest.er1
3630 cat conftest.err >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003632 (exit $ac_status); } >/dev/null; then
3633 if test -s conftest.err; then
3634 ac_cpp_err=$ac_c_preproc_warn_flag
3635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3636 else
3637 ac_cpp_err=
3638 fi
3639else
3640 ac_cpp_err=yes
3641fi
3642if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003643 # Broken: success on invalid input.
3644continue
3645else
3646 echo "$as_me: failed program was:" >&5
3647sed 's/^/| /' conftest.$ac_ext >&5
3648
3649 # Passes both tests.
3650ac_preproc_ok=:
3651break
3652fi
Reid Spencera773bd52006-08-04 18:18:08 +00003653
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003654rm -f conftest.err conftest.$ac_ext
3655
3656done
3657# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658rm -f conftest.err conftest.$ac_ext
3659if $ac_preproc_ok; then
3660 :
3661else
3662 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3663See \`config.log' for more details." >&5
3664echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3665See \`config.log' for more details." >&2;}
3666 { (exit 1); exit 1; }; }
3667fi
3668
John Criswell7a73b802003-06-30 21:59:07 +00003669ac_ext=c
3670ac_cpp='$CPP $CPPFLAGS'
3671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
John Criswell7a73b802003-06-30 21:59:07 +00003675
Reid Spencera773bd52006-08-04 18:18:08 +00003676{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3677echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003678if test "${ac_cv_path_GREP+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3680else
Reid Spencera773bd52006-08-04 18:18:08 +00003681 # Extract the first word of "grep ggrep" to use in msg output
3682if test -z "$GREP"; then
3683set dummy grep ggrep; ac_prog_name=$2
3684if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686else
Reid Spencera773bd52006-08-04 18:18:08 +00003687 ac_path_GREP_found=false
3688# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003690for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003691do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003694 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003695 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003696 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003697 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003698 # Check for GNU ac_path_GREP and select it if it is found.
3699 # Check for GNU $ac_path_GREP
3700case `"$ac_path_GREP" --version 2>&1` in
3701*GNU*)
3702 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3703*)
3704 ac_count=0
3705 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3706 while :
3707 do
3708 cat "conftest.in" "conftest.in" >"conftest.tmp"
3709 mv "conftest.tmp" "conftest.in"
3710 cp "conftest.in" "conftest.nl"
3711 echo 'GREP' >> "conftest.nl"
3712 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3713 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3714 ac_count=`expr $ac_count + 1`
3715 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3716 # Best one so far, save it but keep looking for a better one
3717 ac_cv_path_GREP="$ac_path_GREP"
3718 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003719 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003720 # 10*(2^10) chars as input seems more than enough
3721 test $ac_count -gt 10 && break
3722 done
3723 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3724esac
3725
3726
3727 $ac_path_GREP_found && break 3
3728 done
3729done
3730
3731done
3732IFS=$as_save_IFS
3733
3734
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003735fi
Reid Spencera773bd52006-08-04 18:18:08 +00003736
3737GREP="$ac_cv_path_GREP"
3738if test -z "$GREP"; then
3739 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3740echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3741 { (exit 1); exit 1; }; }
3742fi
3743
3744else
3745 ac_cv_path_GREP=$GREP
3746fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003747
John Criswell7a73b802003-06-30 21:59:07 +00003748
Reid Spencera773bd52006-08-04 18:18:08 +00003749fi
3750{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3751echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3752 GREP="$ac_cv_path_GREP"
3753
3754
3755{ echo "$as_me:$LINENO: checking for egrep" >&5
3756echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3757if test "${ac_cv_path_EGREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759else
3760 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3761 then ac_cv_path_EGREP="$GREP -E"
3762 else
3763 # Extract the first word of "egrep" to use in msg output
3764if test -z "$EGREP"; then
3765set dummy egrep; ac_prog_name=$2
3766if test "${ac_cv_path_EGREP+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769 ac_path_EGREP_found=false
3770# Loop through the user's path and test for each of PROGNAME-LIST
3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3773do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_prog in egrep; do
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003779 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003780 # Check for GNU ac_path_EGREP and select it if it is found.
3781 # Check for GNU $ac_path_EGREP
3782case `"$ac_path_EGREP" --version 2>&1` in
3783*GNU*)
3784 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3785*)
3786 ac_count=0
3787 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3788 while :
3789 do
3790 cat "conftest.in" "conftest.in" >"conftest.tmp"
3791 mv "conftest.tmp" "conftest.in"
3792 cp "conftest.in" "conftest.nl"
3793 echo 'EGREP' >> "conftest.nl"
3794 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3795 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3796 ac_count=`expr $ac_count + 1`
3797 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3798 # Best one so far, save it but keep looking for a better one
3799 ac_cv_path_EGREP="$ac_path_EGREP"
3800 ac_path_EGREP_max=$ac_count
3801 fi
3802 # 10*(2^10) chars as input seems more than enough
3803 test $ac_count -gt 10 && break
3804 done
3805 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3806esac
3807
3808
3809 $ac_path_EGREP_found && break 3
3810 done
3811done
3812
3813done
3814IFS=$as_save_IFS
3815
3816
3817fi
3818
3819EGREP="$ac_cv_path_EGREP"
3820if test -z "$EGREP"; then
3821 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3822echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3823 { (exit 1); exit 1; }; }
3824fi
3825
3826else
3827 ac_cv_path_EGREP=$EGREP
3828fi
3829
3830
3831 fi
3832fi
3833{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3834echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3835 EGREP="$ac_cv_path_EGREP"
3836
3837
3838{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3839echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003840if test "${ac_cv_header_stdc+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003844/* confdefs.h. */
3845_ACEOF
3846cat confdefs.h >>conftest.$ac_ext
3847cat >>conftest.$ac_ext <<_ACEOF
3848/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003849#include <stdlib.h>
3850#include <stdarg.h>
3851#include <string.h>
3852#include <float.h>
3853
John Criswell0c38eaf2003-09-10 15:17:25 +00003854int
3855main ()
3856{
3857
3858 ;
3859 return 0;
3860}
John Criswell7a73b802003-06-30 21:59:07 +00003861_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003862rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003863if { (ac_try="$ac_compile"
3864case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867esac
3868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003870 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003871 grep -v '^ *+' conftest.er1 >conftest.err
3872 rm -f conftest.er1
3873 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003875 (exit $ac_status); } &&
3876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3877 { (case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880esac
3881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_try") 2>&5
3883 ac_status=$?
3884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885 (exit $ac_status); }; } &&
3886 { ac_try='test -s conftest.$ac_objext'
3887 { (case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890esac
3891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_try") 2>&5
3893 ac_status=$?
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003896 ac_cv_header_stdc=yes
3897else
3898 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003899sed 's/^/| /' conftest.$ac_ext >&5
3900
Reid Spencera773bd52006-08-04 18:18:08 +00003901 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003902fi
Reid Spencera773bd52006-08-04 18:18:08 +00003903
3904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003905
3906if test $ac_cv_header_stdc = yes; then
3907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3908 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003909/* confdefs.h. */
3910_ACEOF
3911cat confdefs.h >>conftest.$ac_ext
3912cat >>conftest.$ac_ext <<_ACEOF
3913/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003914#include <string.h>
3915
3916_ACEOF
3917if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003918 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003919 :
3920else
3921 ac_cv_header_stdc=no
3922fi
3923rm -f conftest*
3924
3925fi
3926
3927if test $ac_cv_header_stdc = yes; then
3928 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3929 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003930/* confdefs.h. */
3931_ACEOF
3932cat confdefs.h >>conftest.$ac_ext
3933cat >>conftest.$ac_ext <<_ACEOF
3934/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003935#include <stdlib.h>
3936
3937_ACEOF
3938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003939 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003940 :
3941else
3942 ac_cv_header_stdc=no
3943fi
3944rm -f conftest*
3945
3946fi
3947
3948if test $ac_cv_header_stdc = yes; then
3949 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3950 if test "$cross_compiling" = yes; then
3951 :
3952else
3953 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003954/* confdefs.h. */
3955_ACEOF
3956cat confdefs.h >>conftest.$ac_ext
3957cat >>conftest.$ac_ext <<_ACEOF
3958/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003959#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003960#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003961#if ((' ' & 0x0FF) == 0x020)
3962# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3963# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3964#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003965# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003966 (('a' <= (c) && (c) <= 'i') \
3967 || ('j' <= (c) && (c) <= 'r') \
3968 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003969# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3970#endif
3971
3972#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3973int
3974main ()
3975{
3976 int i;
3977 for (i = 0; i < 256; i++)
3978 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003979 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003980 return 2;
3981 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003982}
3983_ACEOF
3984rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003985if { (ac_try="$ac_link"
3986case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989esac
3990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003995 { (case "(($ac_try" in
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3998esac
3999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004001 ac_status=$?
4002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); }; }; then
4004 :
4005else
4006 echo "$as_me: program exited with status $ac_status" >&5
4007echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004008sed 's/^/| /' conftest.$ac_ext >&5
4009
John Criswell7a73b802003-06-30 21:59:07 +00004010( exit $ac_status )
4011ac_cv_header_stdc=no
4012fi
Reid Spencera773bd52006-08-04 18:18:08 +00004013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4014fi
4015
4016
John Criswell7a73b802003-06-30 21:59:07 +00004017fi
4018fi
Reid Spencera773bd52006-08-04 18:18:08 +00004019{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4020echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004021if test $ac_cv_header_stdc = yes; then
4022
4023cat >>confdefs.h <<\_ACEOF
4024#define STDC_HEADERS 1
4025_ACEOF
4026
4027fi
4028
Reid Spencera773bd52006-08-04 18:18:08 +00004029# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4040 inttypes.h stdint.h unistd.h
4041do
4042as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4043{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047else
4048 cat >conftest.$ac_ext <<_ACEOF
4049/* confdefs.h. */
4050_ACEOF
4051cat confdefs.h >>conftest.$ac_ext
4052cat >>conftest.$ac_ext <<_ACEOF
4053/* end confdefs.h. */
4054$ac_includes_default
4055
4056#include <$ac_header>
4057_ACEOF
4058rm -f conftest.$ac_objext
4059if { (ac_try="$ac_compile"
4060case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4065 (eval "$ac_compile") 2>conftest.er1
4066 ac_status=$?
4067 grep -v '^ *+' conftest.er1 >conftest.err
4068 rm -f conftest.er1
4069 cat conftest.err >&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004071 (exit $ac_status); } &&
4072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4073 { (case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076esac
4077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078 (eval "$ac_try") 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086esac
4087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_try") 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004092 eval "$as_ac_Header=yes"
4093else
4094 echo "$as_me: failed program was:" >&5
4095sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 eval "$as_ac_Header=no"
4098fi
4099
4100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101fi
4102ac_res=`eval echo '${'$as_ac_Header'}'`
4103 { echo "$as_me:$LINENO: result: $ac_res" >&5
4104echo "${ECHO_T}$ac_res" >&6; }
4105if test `eval echo '${'$as_ac_Header'}'` = yes; then
4106 cat >>confdefs.h <<_ACEOF
4107#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4108_ACEOF
4109
4110fi
4111
4112done
4113
4114
4115{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4116echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4117if test "${ac_cv_c_bigendian+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120 # See if sys/param.h defines the BYTE_ORDER macro.
4121cat >conftest.$ac_ext <<_ACEOF
4122/* confdefs.h. */
4123_ACEOF
4124cat confdefs.h >>conftest.$ac_ext
4125cat >>conftest.$ac_ext <<_ACEOF
4126/* end confdefs.h. */
4127#include <sys/types.h>
4128#include <sys/param.h>
4129
4130int
4131main ()
4132{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004133#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004134 bogus endian macros
4135#endif
4136
4137 ;
4138 return 0;
4139}
4140_ACEOF
4141rm -f conftest.$ac_objext
4142if { (ac_try="$ac_compile"
4143case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146esac
4147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_compile") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169esac
4170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_try") 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004175 # It does; now see whether it defined to BIG_ENDIAN or not.
4176cat >conftest.$ac_ext <<_ACEOF
4177/* confdefs.h. */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>conftest.$ac_ext <<_ACEOF
4181/* end confdefs.h. */
4182#include <sys/types.h>
4183#include <sys/param.h>
4184
4185int
4186main ()
4187{
4188#if BYTE_ORDER != BIG_ENDIAN
4189 not big endian
4190#endif
4191
4192 ;
4193 return 0;
4194}
4195_ACEOF
4196rm -f conftest.$ac_objext
4197if { (ac_try="$ac_compile"
4198case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201esac
4202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4203 (eval "$ac_compile") 2>conftest.er1
4204 ac_status=$?
4205 grep -v '^ *+' conftest.er1 >conftest.err
4206 rm -f conftest.er1
4207 cat conftest.err >&5
4208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004209 (exit $ac_status); } &&
4210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4211 { (case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4214esac
4215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_try") 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try='test -s conftest.$ac_objext'
4221 { (case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224esac
4225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_try") 2>&5
4227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004230 ac_cv_c_bigendian=yes
4231else
4232 echo "$as_me: failed program was:" >&5
4233sed 's/^/| /' conftest.$ac_ext >&5
4234
4235 ac_cv_c_bigendian=no
4236fi
4237
4238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239else
4240 echo "$as_me: failed program was:" >&5
4241sed 's/^/| /' conftest.$ac_ext >&5
4242
4243 # It does not; compile a test program.
4244if test "$cross_compiling" = yes; then
4245 # try to guess the endianness by grepping values into an object file
4246 ac_cv_c_bigendian=unknown
4247 cat >conftest.$ac_ext <<_ACEOF
4248/* confdefs.h. */
4249_ACEOF
4250cat confdefs.h >>conftest.$ac_ext
4251cat >>conftest.$ac_ext <<_ACEOF
4252/* end confdefs.h. */
4253short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4254short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4255void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4256short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4257short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4258void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4259int
4260main ()
4261{
4262 _ascii (); _ebcdic ();
4263 ;
4264 return 0;
4265}
4266_ACEOF
4267rm -f conftest.$ac_objext
4268if { (ac_try="$ac_compile"
4269case "(($ac_try" in
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4272esac
4273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_compile") 2>conftest.er1
4275 ac_status=$?
4276 grep -v '^ *+' conftest.er1 >conftest.err
4277 rm -f conftest.er1
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004280 (exit $ac_status); } &&
4281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4282 { (case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285esac
4286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_try") 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; } &&
4291 { ac_try='test -s conftest.$ac_objext'
4292 { (case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_try") 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004301 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4302 ac_cv_c_bigendian=yes
4303fi
4304if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4305 if test "$ac_cv_c_bigendian" = unknown; then
4306 ac_cv_c_bigendian=no
4307 else
4308 # finding both strings is unlikely to happen, but who knows?
4309 ac_cv_c_bigendian=unknown
4310 fi
4311fi
4312else
4313 echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
4316
4317fi
4318
4319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4320else
4321 cat >conftest.$ac_ext <<_ACEOF
4322/* confdefs.h. */
4323_ACEOF
4324cat confdefs.h >>conftest.$ac_ext
4325cat >>conftest.$ac_ext <<_ACEOF
4326/* end confdefs.h. */
4327$ac_includes_default
4328int
4329main ()
4330{
4331
4332 /* Are we little or big endian? From Harbison&Steele. */
4333 union
4334 {
4335 long int l;
4336 char c[sizeof (long int)];
4337 } u;
4338 u.l = 1;
4339 return u.c[sizeof (long int) - 1] == 1;
4340
4341 ;
4342 return 0;
4343}
4344_ACEOF
4345rm -f conftest$ac_exeext
4346if { (ac_try="$ac_link"
4347case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_link") 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_c_bigendian=no
4366else
4367 echo "$as_me: program exited with status $ac_status" >&5
4368echo "$as_me: failed program was:" >&5
4369sed 's/^/| /' conftest.$ac_ext >&5
4370
4371( exit $ac_status )
4372ac_cv_c_bigendian=yes
4373fi
4374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4375fi
4376
4377
4378fi
4379
4380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381fi
4382{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4383echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4384case $ac_cv_c_bigendian in
4385 yes)
4386 ENDIAN=big
4387 ;;
4388 no)
4389 ENDIAN=little
4390 ;;
4391 *)
4392 { { echo "$as_me:$LINENO: error: unknown endianness
4393presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4394echo "$as_me: error: unknown endianness
4395presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4396 { (exit 1); exit 1; }; } ;;
4397esac
4398
4399
4400if test "$cross_compiling" = yes; then
4401 LLVM_CROSS_COMPILING=1
4402
4403
4404{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4405echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4406if test "${ac_cv_build_exeext+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408else
4409 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4410 ac_cv_build_exeext=.exe
4411else
4412 ac_build_prefix=${build_alias}-
4413
4414 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4415set dummy ${ac_build_prefix}gcc; ac_word=$2
4416{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4418if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
4421 if test -n "$BUILD_CC"; then
4422 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4423else
4424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425for as_dir in $PATH
4426do
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004430 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 +00004431 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4434 fi
4435done
4436done
4437IFS=$as_save_IFS
4438
4439fi
4440fi
4441BUILD_CC=$ac_cv_prog_BUILD_CC
4442if test -n "$BUILD_CC"; then
4443 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4444echo "${ECHO_T}$BUILD_CC" >&6; }
4445else
4446 { echo "$as_me:$LINENO: result: no" >&5
4447echo "${ECHO_T}no" >&6; }
4448fi
4449
4450
4451 if test -z "$BUILD_CC"; then
4452 # Extract the first word of "gcc", so it can be a program name with args.
4453set dummy gcc; ac_word=$2
4454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4456if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459 if test -n "$BUILD_CC"; then
4460 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4461else
4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004468 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 +00004469 ac_cv_prog_BUILD_CC="gcc"
4470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473done
4474done
4475IFS=$as_save_IFS
4476
4477fi
4478fi
4479BUILD_CC=$ac_cv_prog_BUILD_CC
4480if test -n "$BUILD_CC"; then
4481 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4482echo "${ECHO_T}$BUILD_CC" >&6; }
4483else
4484 { echo "$as_me:$LINENO: result: no" >&5
4485echo "${ECHO_T}no" >&6; }
4486fi
4487
4488
4489 if test -z "$BUILD_CC"; then
4490 # Extract the first word of "cc", so it can be a program name with args.
4491set dummy cc; ac_word=$2
4492{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4493echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4494if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4496else
4497 if test -n "$BUILD_CC"; then
4498 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4499else
4500 ac_prog_rejected=no
4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
4506 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004507 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 +00004508 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4509 ac_prog_rejected=yes
4510 continue
4511 fi
4512 ac_cv_prog_BUILD_CC="cc"
4513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4515 fi
4516done
4517done
4518IFS=$as_save_IFS
4519
4520if test $ac_prog_rejected = yes; then
4521 # We found a bogon in the path, so make sure we never use it.
4522 set dummy $ac_cv_prog_BUILD_CC
4523 shift
4524 if test $# != 0; then
4525 # We chose a different compiler from the bogus one.
4526 # However, it has the same basename, so the bogon will be chosen
4527 # first if we set BUILD_CC to just the basename; use the full file name.
4528 shift
4529 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4530 fi
4531fi
4532fi
4533fi
4534BUILD_CC=$ac_cv_prog_BUILD_CC
4535if test -n "$BUILD_CC"; then
4536 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4537echo "${ECHO_T}$BUILD_CC" >&6; }
4538else
4539 { echo "$as_me:$LINENO: result: no" >&5
4540echo "${ECHO_T}no" >&6; }
4541fi
4542
4543
4544 fi
4545 fi
4546 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4547echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4548 { (exit 1); exit 1; }; }
4549 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4550 rm -f conftest*
4551 echo 'int main () { return 0; }' > conftest.$ac_ext
4552 ac_cv_build_exeext=
4553 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4554 (eval $ac_build_link) 2>&5
4555 ac_status=$?
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }; then
4558 for file in conftest.*; do
4559 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004560 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004561 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4562 esac
4563 done
4564 else
4565 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4566echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4567 { (exit 1); exit 1; }; }
4568 fi
4569 rm -f conftest*
4570 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4571fi
4572fi
4573
4574BUILD_EXEEXT=""
4575test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4576{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4577echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4578ac_build_exeext=$BUILD_EXEEXT
4579
Jim Grosbach673612e2008-10-02 22:56:44 +00004580 ac_build_prefix=${build_alias}-
4581 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4582set dummy ${ac_build_prefix}g++; ac_word=$2
4583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4585if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588 if test -n "$BUILD_CXX"; then
4589 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4590else
4591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592for as_dir in $PATH
4593do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004597 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 +00004598 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 break 2
4601 fi
4602done
4603done
4604IFS=$as_save_IFS
4605
4606fi
4607fi
4608BUILD_CXX=$ac_cv_prog_BUILD_CXX
4609if test -n "$BUILD_CXX"; then
4610 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4611echo "${ECHO_T}$BUILD_CXX" >&6; }
4612else
4613 { echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6; }
4615fi
4616
4617
4618 if test -z "$BUILD_CXX"; then
4619 # Extract the first word of "g++", so it can be a program name with args.
4620set dummy g++; ac_word=$2
4621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626 if test -n "$BUILD_CXX"; then
4627 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004635 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 +00004636 ac_cv_prog_BUILD_CXX="g++"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640done
4641done
4642IFS=$as_save_IFS
4643
4644fi
4645fi
4646BUILD_CXX=$ac_cv_prog_BUILD_CXX
4647if test -n "$BUILD_CXX"; then
4648 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4649echo "${ECHO_T}$BUILD_CXX" >&6; }
4650else
4651 { echo "$as_me:$LINENO: result: no" >&5
4652echo "${ECHO_T}no" >&6; }
4653fi
4654
4655
4656 if test -z "$BUILD_CXX"; then
4657 # Extract the first word of "c++", so it can be a program name with args.
4658set dummy c++; ac_word=$2
4659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4661if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
4664 if test -n "$BUILD_CXX"; then
4665 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4666else
4667 ac_prog_rejected=no
4668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669for as_dir in $PATH
4670do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004674 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 +00004675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4676 ac_prog_rejected=yes
4677 continue
4678 fi
4679 ac_cv_prog_BUILD_CXX="c++"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4682 fi
4683done
4684done
4685IFS=$as_save_IFS
4686
4687if test $ac_prog_rejected = yes; then
4688 # We found a bogon in the path, so make sure we never use it.
4689 set dummy $ac_cv_prog_BUILD_CXX
4690 shift
4691 if test $# != 0; then
4692 # We chose a different compiler from the bogus one.
4693 # However, it has the same basename, so the bogon will be chosen
4694 # first if we set BUILD_CXX to just the basename; use the full file name.
4695 shift
4696 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4697 fi
4698fi
4699fi
4700fi
4701BUILD_CXX=$ac_cv_prog_BUILD_CXX
4702if test -n "$BUILD_CXX"; then
4703 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4704echo "${ECHO_T}$BUILD_CXX" >&6; }
4705else
4706 { echo "$as_me:$LINENO: result: no" >&5
4707echo "${ECHO_T}no" >&6; }
4708fi
4709
4710
4711 fi
4712 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004713else
4714 LLVM_CROSS_COMPILING=0
4715
4716fi
4717
Nick Lewycky5b28f862009-04-10 05:18:27 +00004718if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004719 cvsbuild="yes"
4720 optimize="no"
4721 CVSBUILD=CVSBUILD=1
4722
4723else
4724 cvsbuild="no"
4725 optimize="yes"
4726fi
4727
4728
4729# Check whether --enable-optimized was given.
4730if test "${enable_optimized+set}" = set; then
4731 enableval=$enable_optimized;
4732else
4733 enableval=$optimize
4734fi
4735
4736if test ${enableval} = "no" ; then
4737 ENABLE_OPTIMIZED=
4738
4739else
4740 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4741
4742fi
4743
David Greene2a5a12c2009-04-17 14:50:39 +00004744# Check whether --enable-profiling was given.
4745if test "${enable_profiling+set}" = set; then
4746 enableval=$enable_profiling;
4747else
4748 enableval="no"
4749fi
4750
4751if test ${enableval} = "no" ; then
4752 ENABLE_PROFILING=
4753
4754else
4755 ENABLE_PROFILING=ENABLE_PROFILING=1
4756
4757fi
4758
Reid Spencera773bd52006-08-04 18:18:08 +00004759# Check whether --enable-assertions was given.
4760if test "${enable_assertions+set}" = set; then
4761 enableval=$enable_assertions;
4762else
4763 enableval="yes"
4764fi
4765
4766if test ${enableval} = "yes" ; then
4767 DISABLE_ASSERTIONS=
4768
4769else
4770 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4771
4772fi
4773
David Greenea696d242007-06-28 19:36:08 +00004774# Check whether --enable-expensive-checks was given.
4775if test "${enable_expensive_checks+set}" = set; then
4776 enableval=$enable_expensive_checks;
4777else
4778 enableval="no"
4779fi
4780
4781if test ${enableval} = "yes" ; then
4782 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4783
4784 EXPENSIVE_CHECKS=yes
4785
4786else
4787 ENABLE_EXPENSIVE_CHECKS=
4788
4789 EXPENSIVE_CHECKS=no
4790
4791fi
4792
Reid Spencer8b2e1412006-11-17 03:32:33 +00004793# Check whether --enable-debug-runtime was given.
4794if test "${enable_debug_runtime+set}" = set; then
4795 enableval=$enable_debug_runtime;
4796else
4797 enableval=no
4798fi
4799
4800if test ${enableval} = "no" ; then
4801 DEBUG_RUNTIME=
4802
4803else
4804 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4805
4806fi
4807
Reid Spencera773bd52006-08-04 18:18:08 +00004808# Check whether --enable-jit was given.
4809if test "${enable_jit+set}" = set; then
4810 enableval=$enable_jit;
4811else
4812 enableval=default
4813fi
4814
4815if test ${enableval} = "no"
4816then
4817 JIT=
4818
4819else
4820 case "$llvm_cv_target_arch" in
4821 x86) TARGET_HAS_JIT=1
4822 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004823 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004824 ;;
4825 PowerPC) TARGET_HAS_JIT=1
4826 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004827 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004828 ;;
4829 Alpha) TARGET_HAS_JIT=1
4830 ;;
4831 IA64) TARGET_HAS_JIT=0
4832 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004833 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004834 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004835 Mips) TARGET_HAS_JIT=0
4836 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004837 PIC16) TARGET_HAS_JIT=0
4838 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004839 XCore) TARGET_HAS_JIT=0
4840 ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004841 MSP430) TARGET_HAS_JIT=0
4842 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004843 *) TARGET_HAS_JIT=0
4844 ;;
4845 esac
4846fi
4847
4848# Check whether --enable-doxygen was given.
4849if test "${enable_doxygen+set}" = set; then
4850 enableval=$enable_doxygen;
4851else
4852 enableval=default
4853fi
4854
4855case "$enableval" in
4856 yes) ENABLE_DOXYGEN=1
4857 ;;
4858 no) ENABLE_DOXYGEN=0
4859 ;;
4860 default) ENABLE_DOXYGEN=0
4861 ;;
4862 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4863echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4864 { (exit 1); exit 1; }; } ;;
4865esac
4866
4867# Check whether --enable-threads was given.
4868if test "${enable_threads+set}" = set; then
4869 enableval=$enable_threads;
4870else
Reid Spencer65c5d752006-11-05 17:08:18 +00004871 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004872fi
4873
4874case "$enableval" in
4875 yes) ENABLE_THREADS=1
4876 ;;
4877 no) ENABLE_THREADS=0
4878 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004879 default) ENABLE_THREADS=1
4880 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004881 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4882echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4883 { (exit 1); exit 1; }; } ;;
4884esac
4885
Owen Andersona8603702009-05-19 22:18:56 +00004886cat >>confdefs.h <<_ACEOF
4887#define ENABLE_THREADS $ENABLE_THREADS
4888_ACEOF
4889
4890
Reid Spencer89b0d992006-12-16 22:07:52 +00004891# Check whether --enable-pic was given.
4892if test "${enable_pic+set}" = set; then
4893 enableval=$enable_pic;
4894else
4895 enableval=default
4896fi
4897
4898case "$enableval" in
4899 yes) ENABLE_PIC=1
4900 ;;
4901 no) ENABLE_PIC=0
4902 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004903 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004904 ;;
4905 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4906echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4907 { (exit 1); exit 1; }; } ;;
4908esac
4909
4910cat >>confdefs.h <<_ACEOF
4911#define ENABLE_PIC $ENABLE_PIC
4912_ACEOF
4913
4914
Reid Spencera773bd52006-08-04 18:18:08 +00004915TARGETS_TO_BUILD=""
4916# Check whether --enable-targets was given.
4917if test "${enable_targets+set}" = set; then
4918 enableval=$enable_targets;
4919else
4920 enableval=all
4921fi
4922
4923case "$enableval" in
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004924 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004925 host-only)
4926 case "$llvm_cv_target_arch" in
4927 x86) TARGETS_TO_BUILD="X86" ;;
4928 x86_64) TARGETS_TO_BUILD="X86" ;;
4929 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4930 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4931 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4932 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004933 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004934 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004935 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004936 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004937 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004938 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004939 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4940echo "$as_me: error: Can not set target to build" >&2;}
4941 { (exit 1); exit 1; }; } ;;
4942 esac
4943 ;;
4944 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4945 case "$a_target" in
4946 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4947 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4948 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4949 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4950 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4951 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004952 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004953 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004954 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004955 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004956 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004957 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004958 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4959 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004960 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004961 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4962echo "$as_me: error: Unrecognized target $a_target" >&2;}
4963 { (exit 1); exit 1; }; } ;;
4964 esac
4965 done
4966 ;;
4967esac
Reid Spencera773bd52006-08-04 18:18:08 +00004968TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4969
4970
Douglas Gregor0711c302009-06-17 00:43:20 +00004971# Determine whether we are building LLVM support for the native architecture.
4972# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4973for a_target in $TARGETS_TO_BUILD; do
4974 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4975
4976cat >>confdefs.h <<_ACEOF
4977#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
4978_ACEOF
4979
4980 fi
4981done
4982
Douglas Gregor1555a232009-06-16 20:12:29 +00004983# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4984# Targets.def and AsmPrinters.def.
4985LLVM_ENUM_TARGETS=""
4986LLVM_ENUM_ASM_PRINTERS=""
4987for target_to_build in $TARGETS_TO_BUILD; do
4988 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4989 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4990 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4991 fi
4992done
4993
4994
4995
Reid Spencer65c5d752006-11-05 17:08:18 +00004996# Check whether --enable-cbe-printf-a was given.
4997if test "${enable_cbe_printf_a+set}" = set; then
4998 enableval=$enable_cbe_printf_a;
4999else
5000 enableval=default
5001fi
5002
5003case "$enableval" in
5004 yes) ENABLE_CBE_PRINTF_A=1
5005 ;;
5006 no) ENABLE_CBE_PRINTF_A=0
5007 ;;
5008 default) ENABLE_CBE_PRINTF_A=1
5009 ;;
5010 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5011echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5012 { (exit 1); exit 1; }; } ;;
5013esac
5014
5015cat >>confdefs.h <<_ACEOF
5016#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5017_ACEOF
5018
5019
Reid Spencera773bd52006-08-04 18:18:08 +00005020
5021# Check whether --with-llvmgccdir was given.
5022if test "${with_llvmgccdir+set}" = set; then
5023 withval=$with_llvmgccdir;
5024else
5025 withval=default
5026fi
5027
5028case "$withval" in
5029 default) WITH_LLVMGCCDIR=default ;;
5030 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5031 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5032echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5033 { (exit 1); exit 1; }; } ;;
5034esac
5035
5036
Devang Patel5d28b882007-12-04 22:54:47 +00005037# Check whether --with-llvmgcc was given.
5038if test "${with_llvmgcc+set}" = set; then
5039 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5040 WITH_LLVMGCCDIR=""
5041fi
5042
5043
5044
5045# Check whether --with-llvmgxx was given.
5046if test "${with_llvmgxx+set}" = set; then
5047 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5048 WITH_LLVMGCCDIR=""
5049fi
5050
Douglas Gregor01746742009-05-11 18:05:52 +00005051
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005052if test -n "$LLVMGCC"; then
5053 LLVMGCCCOMMAND="$LLVMGCC"
5054fi
5055
5056if test -n "$LLVMGXX"; then
5057 LLVMGXXCOMMAND="$LLVMGXX"
5058fi
Devang Patel5d28b882007-12-04 22:54:47 +00005059
5060if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5061 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5062echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5063 { (exit 1); exit 1; }; };
5064fi
5065
5066if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5067 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5068echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5069 { (exit 1); exit 1; }; };
5070fi
5071
5072
Reid Spencera773bd52006-08-04 18:18:08 +00005073# Check whether --with-extra-options was given.
5074if test "${with_extra_options+set}" = set; then
5075 withval=$with_extra_options;
5076else
5077 withval=default
5078fi
5079
5080case "$withval" in
5081 default) EXTRA_OPTIONS= ;;
5082 *) EXTRA_OPTIONS=$withval ;;
5083esac
5084EXTRA_OPTIONS=$EXTRA_OPTIONS
5085
5086
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005087# Check whether --enable-bindings was given.
5088if test "${enable_bindings+set}" = set; then
5089 enableval=$enable_bindings;
5090else
5091 enableval=default
5092fi
5093
5094BINDINGS_TO_BUILD=""
5095case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005096 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005097 all ) BINDINGS_TO_BUILD="ocaml" ;;
5098 none | no) BINDINGS_TO_BUILD="" ;;
5099 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5100 case "$a_binding" in
5101 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5102 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5103echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5105 esac
5106 done
5107 ;;
5108esac
5109
Reid Spencera773bd52006-08-04 18:18:08 +00005110
Gordon Henriksenf0915682007-10-02 16:42:22 +00005111# Check whether --with-ocaml-libdir was given.
5112if test "${with_ocaml_libdir+set}" = set; then
5113 withval=$with_ocaml_libdir;
5114else
5115 withval=auto
5116fi
5117
5118case "$withval" in
5119 auto) with_ocaml_libdir="$withval" ;;
5120 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5121 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5122echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5123 { (exit 1); exit 1; }; } ;;
5124esac
5125
5126
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005127# Check whether --with-binutils-include was given.
5128if test "${with_binutils_include+set}" = set; then
5129 withval=$with_binutils_include;
5130else
5131 withval=default
5132fi
5133
5134case "$withval" in
5135 default) WITH_BINUTILS_INCDIR=default ;;
5136 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5137 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5138echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5139 { (exit 1); exit 1; }; } ;;
5140esac
5141if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5142 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5143
5144 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5145 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5146 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5147echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5148 { (exit 1); exit 1; }; };
5149 fi
5150fi
5151
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005152# Check whether --enable-libffi was given.
5153if test "${enable_libffi+set}" = set; then
5154 enableval=$enable_libffi;
5155else
5156 enableval=yes
5157fi
5158
5159case "$enableval" in
5160 yes) llvm_cv_enable_libffi="yes" ;;
5161 no) llvm_cv_enable_libffi="no" ;;
5162 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5163echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5164 { (exit 1); exit 1; }; } ;;
5165esac
5166
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005167
Reid Spencera773bd52006-08-04 18:18:08 +00005168ac_ext=c
5169ac_cpp='$CPP $CPPFLAGS'
5170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172ac_compiler_gnu=$ac_cv_c_compiler_gnu
5173{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5174echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5175# On Suns, sometimes $CPP names a directory.
5176if test -n "$CPP" && test -d "$CPP"; then
5177 CPP=
5178fi
5179if test -z "$CPP"; then
5180 if test "${ac_cv_prog_CPP+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182else
5183 # Double quotes because CPP needs to be expanded
5184 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5185 do
5186 ac_preproc_ok=false
5187for ac_c_preproc_warn_flag in '' yes
5188do
5189 # Use a header file that comes with gcc, so configuring glibc
5190 # with a fresh cross-compiler works.
5191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5192 # <limits.h> exists even on freestanding compilers.
5193 # On the NeXT, cc -E runs the code through the compiler's parser,
5194 # not just through cpp. "Syntax error" is here to catch this case.
5195 cat >conftest.$ac_ext <<_ACEOF
5196/* confdefs.h. */
5197_ACEOF
5198cat confdefs.h >>conftest.$ac_ext
5199cat >>conftest.$ac_ext <<_ACEOF
5200/* end confdefs.h. */
5201#ifdef __STDC__
5202# include <limits.h>
5203#else
5204# include <assert.h>
5205#endif
5206 Syntax error
5207_ACEOF
5208if { (ac_try="$ac_cpp conftest.$ac_ext"
5209case "(($ac_try" in
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5212esac
5213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5215 ac_status=$?
5216 grep -v '^ *+' conftest.er1 >conftest.err
5217 rm -f conftest.er1
5218 cat conftest.err >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005220 (exit $ac_status); } >/dev/null; then
5221 if test -s conftest.err; then
5222 ac_cpp_err=$ac_c_preproc_warn_flag
5223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5224 else
5225 ac_cpp_err=
5226 fi
5227else
5228 ac_cpp_err=yes
5229fi
5230if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005231 :
5232else
5233 echo "$as_me: failed program was:" >&5
5234sed 's/^/| /' conftest.$ac_ext >&5
5235
5236 # Broken: fails on valid input.
5237continue
5238fi
5239
5240rm -f conftest.err conftest.$ac_ext
5241
5242 # OK, works on sane cases. Now check whether nonexistent headers
5243 # can be detected and how.
5244 cat >conftest.$ac_ext <<_ACEOF
5245/* confdefs.h. */
5246_ACEOF
5247cat confdefs.h >>conftest.$ac_ext
5248cat >>conftest.$ac_ext <<_ACEOF
5249/* end confdefs.h. */
5250#include <ac_nonexistent.h>
5251_ACEOF
5252if { (ac_try="$ac_cpp conftest.$ac_ext"
5253case "(($ac_try" in
5254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5256esac
5257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5259 ac_status=$?
5260 grep -v '^ *+' conftest.er1 >conftest.err
5261 rm -f conftest.er1
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005264 (exit $ac_status); } >/dev/null; then
5265 if test -s conftest.err; then
5266 ac_cpp_err=$ac_c_preproc_warn_flag
5267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5268 else
5269 ac_cpp_err=
5270 fi
5271else
5272 ac_cpp_err=yes
5273fi
5274if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005275 # Broken: success on invalid input.
5276continue
5277else
5278 echo "$as_me: failed program was:" >&5
5279sed 's/^/| /' conftest.$ac_ext >&5
5280
5281 # Passes both tests.
5282ac_preproc_ok=:
5283break
5284fi
5285
5286rm -f conftest.err conftest.$ac_ext
5287
5288done
5289# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5290rm -f conftest.err conftest.$ac_ext
5291if $ac_preproc_ok; then
5292 break
5293fi
5294
5295 done
5296 ac_cv_prog_CPP=$CPP
5297
5298fi
5299 CPP=$ac_cv_prog_CPP
5300else
5301 ac_cv_prog_CPP=$CPP
5302fi
5303{ echo "$as_me:$LINENO: result: $CPP" >&5
5304echo "${ECHO_T}$CPP" >&6; }
5305ac_preproc_ok=false
5306for ac_c_preproc_warn_flag in '' yes
5307do
5308 # Use a header file that comes with gcc, so configuring glibc
5309 # with a fresh cross-compiler works.
5310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5311 # <limits.h> exists even on freestanding compilers.
5312 # On the NeXT, cc -E runs the code through the compiler's parser,
5313 # not just through cpp. "Syntax error" is here to catch this case.
5314 cat >conftest.$ac_ext <<_ACEOF
5315/* confdefs.h. */
5316_ACEOF
5317cat confdefs.h >>conftest.$ac_ext
5318cat >>conftest.$ac_ext <<_ACEOF
5319/* end confdefs.h. */
5320#ifdef __STDC__
5321# include <limits.h>
5322#else
5323# include <assert.h>
5324#endif
5325 Syntax error
5326_ACEOF
5327if { (ac_try="$ac_cpp conftest.$ac_ext"
5328case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331esac
5332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5334 ac_status=$?
5335 grep -v '^ *+' conftest.er1 >conftest.err
5336 rm -f conftest.er1
5337 cat conftest.err >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005339 (exit $ac_status); } >/dev/null; then
5340 if test -s conftest.err; then
5341 ac_cpp_err=$ac_c_preproc_warn_flag
5342 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5343 else
5344 ac_cpp_err=
5345 fi
5346else
5347 ac_cpp_err=yes
5348fi
5349if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005350 :
5351else
5352 echo "$as_me: failed program was:" >&5
5353sed 's/^/| /' conftest.$ac_ext >&5
5354
5355 # Broken: fails on valid input.
5356continue
5357fi
5358
5359rm -f conftest.err conftest.$ac_ext
5360
5361 # OK, works on sane cases. Now check whether nonexistent headers
5362 # can be detected and how.
5363 cat >conftest.$ac_ext <<_ACEOF
5364/* confdefs.h. */
5365_ACEOF
5366cat confdefs.h >>conftest.$ac_ext
5367cat >>conftest.$ac_ext <<_ACEOF
5368/* end confdefs.h. */
5369#include <ac_nonexistent.h>
5370_ACEOF
5371if { (ac_try="$ac_cpp conftest.$ac_ext"
5372case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375esac
5376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5378 ac_status=$?
5379 grep -v '^ *+' conftest.er1 >conftest.err
5380 rm -f conftest.er1
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005383 (exit $ac_status); } >/dev/null; then
5384 if test -s conftest.err; then
5385 ac_cpp_err=$ac_c_preproc_warn_flag
5386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5387 else
5388 ac_cpp_err=
5389 fi
5390else
5391 ac_cpp_err=yes
5392fi
5393if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005394 # Broken: success on invalid input.
5395continue
5396else
5397 echo "$as_me: failed program was:" >&5
5398sed 's/^/| /' conftest.$ac_ext >&5
5399
5400 # Passes both tests.
5401ac_preproc_ok=:
5402break
5403fi
5404
5405rm -f conftest.err conftest.$ac_ext
5406
5407done
5408# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5409rm -f conftest.err conftest.$ac_ext
5410if $ac_preproc_ok; then
5411 :
5412else
5413 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5414See \`config.log' for more details." >&5
5415echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5416See \`config.log' for more details." >&2;}
5417 { (exit 1); exit 1; }; }
5418fi
5419
5420ac_ext=c
5421ac_cpp='$CPP $CPPFLAGS'
5422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425
5426ac_ext=c
5427ac_cpp='$CPP $CPPFLAGS'
5428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431if test -n "$ac_tool_prefix"; then
5432 for ac_prog in gcc
5433 do
5434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5435set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5438if test "${ac_cv_prog_CC+set}" = set; then
5439 echo $ECHO_N "(cached) $ECHO_C" >&6
5440else
5441 if test -n "$CC"; then
5442 ac_cv_prog_CC="$CC" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005450 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 +00005451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455done
5456done
5457IFS=$as_save_IFS
5458
5459fi
5460fi
5461CC=$ac_cv_prog_CC
5462if test -n "$CC"; then
5463 { echo "$as_me:$LINENO: result: $CC" >&5
5464echo "${ECHO_T}$CC" >&6; }
5465else
5466 { echo "$as_me:$LINENO: result: no" >&5
5467echo "${ECHO_T}no" >&6; }
5468fi
5469
5470
5471 test -n "$CC" && break
5472 done
5473fi
5474if test -z "$CC"; then
5475 ac_ct_CC=$CC
5476 for ac_prog in gcc
5477do
5478 # Extract the first word of "$ac_prog", so it can be a program name with args.
5479set dummy $ac_prog; ac_word=$2
5480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5482if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5483 echo $ECHO_N "(cached) $ECHO_C" >&6
5484else
5485 if test -n "$ac_ct_CC"; then
5486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5487else
5488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489for as_dir in $PATH
5490do
5491 IFS=$as_save_IFS
5492 test -z "$as_dir" && as_dir=.
5493 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005494 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 +00005495 ac_cv_prog_ac_ct_CC="$ac_prog"
5496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5497 break 2
5498 fi
5499done
5500done
5501IFS=$as_save_IFS
5502
5503fi
5504fi
5505ac_ct_CC=$ac_cv_prog_ac_ct_CC
5506if test -n "$ac_ct_CC"; then
5507 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5508echo "${ECHO_T}$ac_ct_CC" >&6; }
5509else
5510 { echo "$as_me:$LINENO: result: no" >&5
5511echo "${ECHO_T}no" >&6; }
5512fi
5513
5514
5515 test -n "$ac_ct_CC" && break
5516done
5517
5518 if test "x$ac_ct_CC" = x; then
5519 CC=""
5520 else
5521 case $cross_compiling:$ac_tool_warned in
5522yes:)
5523{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5524whose name does not start with the host triplet. If you think this
5525configuration is useful to you, please write to autoconf@gnu.org." >&5
5526echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5527whose name does not start with the host triplet. If you think this
5528configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5529ac_tool_warned=yes ;;
5530esac
5531 CC=$ac_ct_CC
5532 fi
5533fi
5534
5535
5536test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5537See \`config.log' for more details." >&5
5538echo "$as_me: error: no acceptable C compiler found in \$PATH
5539See \`config.log' for more details." >&2;}
5540 { (exit 1); exit 1; }; }
5541
5542# Provide some information about the compiler.
5543echo "$as_me:$LINENO: checking for C compiler version" >&5
5544ac_compiler=`set X $ac_compile; echo $2`
5545{ (ac_try="$ac_compiler --version >&5"
5546case "(($ac_try" in
5547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548 *) ac_try_echo=$ac_try;;
5549esac
5550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551 (eval "$ac_compiler --version >&5") 2>&5
5552 ac_status=$?
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); }
5555{ (ac_try="$ac_compiler -v >&5"
5556case "(($ac_try" in
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5559esac
5560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_compiler -v >&5") 2>&5
5562 ac_status=$?
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); }
5565{ (ac_try="$ac_compiler -V >&5"
5566case "(($ac_try" in
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5569esac
5570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_compiler -V >&5") 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }
5575
5576{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5577echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5578if test "${ac_cv_c_compiler_gnu+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5580else
5581 cat >conftest.$ac_ext <<_ACEOF
5582/* confdefs.h. */
5583_ACEOF
5584cat confdefs.h >>conftest.$ac_ext
5585cat >>conftest.$ac_ext <<_ACEOF
5586/* end confdefs.h. */
5587
5588int
5589main ()
5590{
5591#ifndef __GNUC__
5592 choke me
5593#endif
5594
5595 ;
5596 return 0;
5597}
5598_ACEOF
5599rm -f conftest.$ac_objext
5600if { (ac_try="$ac_compile"
5601case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604esac
5605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compile") 2>conftest.er1
5607 ac_status=$?
5608 grep -v '^ *+' conftest.er1 >conftest.err
5609 rm -f conftest.er1
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005612 (exit $ac_status); } &&
5613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5614 { (case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617esac
5618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_try") 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; } &&
5623 { ac_try='test -s conftest.$ac_objext'
5624 { (case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627esac
5628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5629 (eval "$ac_try") 2>&5
5630 ac_status=$?
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005633 ac_compiler_gnu=yes
5634else
5635 echo "$as_me: failed program was:" >&5
5636sed 's/^/| /' conftest.$ac_ext >&5
5637
5638 ac_compiler_gnu=no
5639fi
5640
5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642ac_cv_c_compiler_gnu=$ac_compiler_gnu
5643
5644fi
5645{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5646echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5647GCC=`test $ac_compiler_gnu = yes && echo yes`
5648ac_test_CFLAGS=${CFLAGS+set}
5649ac_save_CFLAGS=$CFLAGS
5650{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5651echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5652if test "${ac_cv_prog_cc_g+set}" = set; then
5653 echo $ECHO_N "(cached) $ECHO_C" >&6
5654else
5655 ac_save_c_werror_flag=$ac_c_werror_flag
5656 ac_c_werror_flag=yes
5657 ac_cv_prog_cc_g=no
5658 CFLAGS="-g"
5659 cat >conftest.$ac_ext <<_ACEOF
5660/* confdefs.h. */
5661_ACEOF
5662cat confdefs.h >>conftest.$ac_ext
5663cat >>conftest.$ac_ext <<_ACEOF
5664/* end confdefs.h. */
5665
5666int
5667main ()
5668{
5669
5670 ;
5671 return 0;
5672}
5673_ACEOF
5674rm -f conftest.$ac_objext
5675if { (ac_try="$ac_compile"
5676case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679esac
5680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compile") 2>conftest.er1
5682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005687 (exit $ac_status); } &&
5688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5689 { (case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692esac
5693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_try") 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; } &&
5698 { ac_try='test -s conftest.$ac_objext'
5699 { (case "(($ac_try" in
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5702esac
5703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_try") 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005708 ac_cv_prog_cc_g=yes
5709else
5710 echo "$as_me: failed program was:" >&5
5711sed 's/^/| /' conftest.$ac_ext >&5
5712
5713 CFLAGS=""
5714 cat >conftest.$ac_ext <<_ACEOF
5715/* confdefs.h. */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h. */
5720
5721int
5722main ()
5723{
5724
5725 ;
5726 return 0;
5727}
5728_ACEOF
5729rm -f conftest.$ac_objext
5730if { (ac_try="$ac_compile"
5731case "(($ac_try" in
5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5734esac
5735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5736 (eval "$ac_compile") 2>conftest.er1
5737 ac_status=$?
5738 grep -v '^ *+' conftest.er1 >conftest.err
5739 rm -f conftest.er1
5740 cat conftest.err >&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005742 (exit $ac_status); } &&
5743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5744 { (case "(($ac_try" in
5745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746 *) ac_try_echo=$ac_try;;
5747esac
5748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5749 (eval "$ac_try") 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; } &&
5753 { ac_try='test -s conftest.$ac_objext'
5754 { (case "(($ac_try" in
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5757esac
5758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_try") 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005763 :
5764else
5765 echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 ac_c_werror_flag=$ac_save_c_werror_flag
5769 CFLAGS="-g"
5770 cat >conftest.$ac_ext <<_ACEOF
5771/* confdefs.h. */
5772_ACEOF
5773cat confdefs.h >>conftest.$ac_ext
5774cat >>conftest.$ac_ext <<_ACEOF
5775/* end confdefs.h. */
5776
5777int
5778main ()
5779{
5780
5781 ;
5782 return 0;
5783}
5784_ACEOF
5785rm -f conftest.$ac_objext
5786if { (ac_try="$ac_compile"
5787case "(($ac_try" in
5788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5790esac
5791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compile") 2>conftest.er1
5793 ac_status=$?
5794 grep -v '^ *+' conftest.er1 >conftest.err
5795 rm -f conftest.er1
5796 cat conftest.err >&5
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005798 (exit $ac_status); } &&
5799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5800 { (case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803esac
5804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_try") 2>&5
5806 ac_status=$?
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest.$ac_objext'
5810 { (case "(($ac_try" in
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5813esac
5814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_try") 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005819 ac_cv_prog_cc_g=yes
5820else
5821 echo "$as_me: failed program was:" >&5
5822sed 's/^/| /' conftest.$ac_ext >&5
5823
5824
5825fi
5826
5827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5828fi
5829
5830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5831fi
5832
5833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5834 ac_c_werror_flag=$ac_save_c_werror_flag
5835fi
5836{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5837echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5838if test "$ac_test_CFLAGS" = set; then
5839 CFLAGS=$ac_save_CFLAGS
5840elif test $ac_cv_prog_cc_g = yes; then
5841 if test "$GCC" = yes; then
5842 CFLAGS="-g -O2"
5843 else
5844 CFLAGS="-g"
5845 fi
5846else
5847 if test "$GCC" = yes; then
5848 CFLAGS="-O2"
5849 else
5850 CFLAGS=
5851 fi
5852fi
5853{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5854echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5855if test "${ac_cv_prog_cc_c89+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5857else
5858 ac_cv_prog_cc_c89=no
5859ac_save_CC=$CC
5860cat >conftest.$ac_ext <<_ACEOF
5861/* confdefs.h. */
5862_ACEOF
5863cat confdefs.h >>conftest.$ac_ext
5864cat >>conftest.$ac_ext <<_ACEOF
5865/* end confdefs.h. */
5866#include <stdarg.h>
5867#include <stdio.h>
5868#include <sys/types.h>
5869#include <sys/stat.h>
5870/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5871struct buf { int x; };
5872FILE * (*rcsopen) (struct buf *, struct stat *, int);
5873static char *e (p, i)
5874 char **p;
5875 int i;
5876{
5877 return p[i];
5878}
5879static char *f (char * (*g) (char **, int), char **p, ...)
5880{
5881 char *s;
5882 va_list v;
5883 va_start (v,p);
5884 s = g (p, va_arg (v,int));
5885 va_end (v);
5886 return s;
5887}
5888
5889/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5890 function prototypes and stuff, but not '\xHH' hex character constants.
5891 These don't provoke an error unfortunately, instead are silently treated
5892 as 'x'. The following induces an error, until -std is added to get
5893 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5894 array size at least. It's necessary to write '\x00'==0 to get something
5895 that's true only with -std. */
5896int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5897
5898/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5899 inside strings and character constants. */
5900#define FOO(x) 'x'
5901int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5902
5903int test (int i, double x);
5904struct s1 {int (*f) (int a);};
5905struct s2 {int (*f) (double a);};
5906int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5907int argc;
5908char **argv;
5909int
5910main ()
5911{
5912return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5913 ;
5914 return 0;
5915}
5916_ACEOF
5917for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5918 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5919do
5920 CC="$ac_save_CC $ac_arg"
5921 rm -f conftest.$ac_objext
5922if { (ac_try="$ac_compile"
5923case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926esac
5927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_compile") 2>conftest.er1
5929 ac_status=$?
5930 grep -v '^ *+' conftest.er1 >conftest.err
5931 rm -f conftest.er1
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5936 { (case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_try") 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949esac
5950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_try") 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005955 ac_cv_prog_cc_c89=$ac_arg
5956else
5957 echo "$as_me: failed program was:" >&5
5958sed 's/^/| /' conftest.$ac_ext >&5
5959
5960
5961fi
5962
5963rm -f core conftest.err conftest.$ac_objext
5964 test "x$ac_cv_prog_cc_c89" != "xno" && break
5965done
5966rm -f conftest.$ac_ext
5967CC=$ac_save_CC
5968
5969fi
5970# AC_CACHE_VAL
5971case "x$ac_cv_prog_cc_c89" in
5972 x)
5973 { echo "$as_me:$LINENO: result: none needed" >&5
5974echo "${ECHO_T}none needed" >&6; } ;;
5975 xno)
5976 { echo "$as_me:$LINENO: result: unsupported" >&5
5977echo "${ECHO_T}unsupported" >&6; } ;;
5978 *)
5979 CC="$CC $ac_cv_prog_cc_c89"
5980 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5981echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5982esac
5983
5984
5985ac_ext=c
5986ac_cpp='$CPP $CPPFLAGS'
5987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989ac_compiler_gnu=$ac_cv_c_compiler_gnu
5990
5991ac_ext=cpp
5992ac_cpp='$CXXCPP $CPPFLAGS'
5993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5996if test -z "$CXX"; then
5997 if test -n "$CCC"; then
5998 CXX=$CCC
5999 else
6000 if test -n "$ac_tool_prefix"; then
6001 for ac_prog in g++
6002 do
6003 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6004set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6005{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6007if test "${ac_cv_prog_CXX+set}" = set; then
6008 echo $ECHO_N "(cached) $ECHO_C" >&6
6009else
6010 if test -n "$CXX"; then
6011 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6012else
6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016 IFS=$as_save_IFS
6017 test -z "$as_dir" && as_dir=.
6018 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006019 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 +00006020 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 break 2
6023 fi
6024done
6025done
6026IFS=$as_save_IFS
6027
6028fi
6029fi
6030CXX=$ac_cv_prog_CXX
6031if test -n "$CXX"; then
6032 { echo "$as_me:$LINENO: result: $CXX" >&5
6033echo "${ECHO_T}$CXX" >&6; }
6034else
6035 { echo "$as_me:$LINENO: result: no" >&5
6036echo "${ECHO_T}no" >&6; }
6037fi
6038
6039
6040 test -n "$CXX" && break
6041 done
6042fi
6043if test -z "$CXX"; then
6044 ac_ct_CXX=$CXX
6045 for ac_prog in g++
6046do
6047 # Extract the first word of "$ac_prog", so it can be a program name with args.
6048set dummy $ac_prog; ac_word=$2
6049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053else
6054 if test -n "$ac_ct_CXX"; then
6055 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6056else
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006063 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 +00006064 ac_cv_prog_ac_ct_CXX="$ac_prog"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068done
6069done
6070IFS=$as_save_IFS
6071
6072fi
6073fi
6074ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6075if test -n "$ac_ct_CXX"; then
6076 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6077echo "${ECHO_T}$ac_ct_CXX" >&6; }
6078else
6079 { echo "$as_me:$LINENO: result: no" >&5
6080echo "${ECHO_T}no" >&6; }
6081fi
6082
6083
6084 test -n "$ac_ct_CXX" && break
6085done
6086
6087 if test "x$ac_ct_CXX" = x; then
6088 CXX="g++"
6089 else
6090 case $cross_compiling:$ac_tool_warned in
6091yes:)
6092{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6093whose name does not start with the host triplet. If you think this
6094configuration is useful to you, please write to autoconf@gnu.org." >&5
6095echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6096whose name does not start with the host triplet. If you think this
6097configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6098ac_tool_warned=yes ;;
6099esac
6100 CXX=$ac_ct_CXX
6101 fi
6102fi
6103
6104 fi
6105fi
6106# Provide some information about the compiler.
6107echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6108ac_compiler=`set X $ac_compile; echo $2`
6109{ (ac_try="$ac_compiler --version >&5"
6110case "(($ac_try" in
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6113esac
6114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115 (eval "$ac_compiler --version >&5") 2>&5
6116 ac_status=$?
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }
6119{ (ac_try="$ac_compiler -v >&5"
6120case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
6124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6125 (eval "$ac_compiler -v >&5") 2>&5
6126 ac_status=$?
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); }
6129{ (ac_try="$ac_compiler -V >&5"
6130case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133esac
6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_compiler -V >&5") 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }
6139
6140{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6141echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6142if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6143 echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145 cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151
6152int
6153main ()
6154{
6155#ifndef __GNUC__
6156 choke me
6157#endif
6158
6159 ;
6160 return 0;
6161}
6162_ACEOF
6163rm -f conftest.$ac_objext
6164if { (ac_try="$ac_compile"
6165case "(($ac_try" in
6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6168esac
6169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6170 (eval "$ac_compile") 2>conftest.er1
6171 ac_status=$?
6172 grep -v '^ *+' conftest.er1 >conftest.err
6173 rm -f conftest.er1
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006176 (exit $ac_status); } &&
6177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6178 { (case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181esac
6182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_try") 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; } &&
6187 { ac_try='test -s conftest.$ac_objext'
6188 { (case "(($ac_try" in
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6191esac
6192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_try") 2>&5
6194 ac_status=$?
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006197 ac_compiler_gnu=yes
6198else
6199 echo "$as_me: failed program was:" >&5
6200sed 's/^/| /' conftest.$ac_ext >&5
6201
6202 ac_compiler_gnu=no
6203fi
6204
6205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6207
6208fi
6209{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6210echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6211GXX=`test $ac_compiler_gnu = yes && echo yes`
6212ac_test_CXXFLAGS=${CXXFLAGS+set}
6213ac_save_CXXFLAGS=$CXXFLAGS
6214{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6215echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6216if test "${ac_cv_prog_cxx_g+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6218else
6219 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6220 ac_cxx_werror_flag=yes
6221 ac_cv_prog_cxx_g=no
6222 CXXFLAGS="-g"
6223 cat >conftest.$ac_ext <<_ACEOF
6224/* confdefs.h. */
6225_ACEOF
6226cat confdefs.h >>conftest.$ac_ext
6227cat >>conftest.$ac_ext <<_ACEOF
6228/* end confdefs.h. */
6229
6230int
6231main ()
6232{
6233
6234 ;
6235 return 0;
6236}
6237_ACEOF
6238rm -f conftest.$ac_objext
6239if { (ac_try="$ac_compile"
6240case "(($ac_try" in
6241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6242 *) ac_try_echo=$ac_try;;
6243esac
6244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6245 (eval "$ac_compile") 2>conftest.er1
6246 ac_status=$?
6247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006251 (exit $ac_status); } &&
6252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6253 { (case "(($ac_try" in
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6256esac
6257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6258 (eval "$ac_try") 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; } &&
6262 { ac_try='test -s conftest.$ac_objext'
6263 { (case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6266esac
6267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6268 (eval "$ac_try") 2>&5
6269 ac_status=$?
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006272 ac_cv_prog_cxx_g=yes
6273else
6274 echo "$as_me: failed program was:" >&5
6275sed 's/^/| /' conftest.$ac_ext >&5
6276
6277 CXXFLAGS=""
6278 cat >conftest.$ac_ext <<_ACEOF
6279/* confdefs.h. */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h. */
6284
6285int
6286main ()
6287{
6288
6289 ;
6290 return 0;
6291}
6292_ACEOF
6293rm -f conftest.$ac_objext
6294if { (ac_try="$ac_compile"
6295case "(($ac_try" in
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6298esac
6299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_compile") 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006306 (exit $ac_status); } &&
6307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6308 { (case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311esac
6312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_try") 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; } &&
6317 { ac_try='test -s conftest.$ac_objext'
6318 { (case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321esac
6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_try") 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006327 :
6328else
6329 echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
6332 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6333 CXXFLAGS="-g"
6334 cat >conftest.$ac_ext <<_ACEOF
6335/* confdefs.h. */
6336_ACEOF
6337cat confdefs.h >>conftest.$ac_ext
6338cat >>conftest.$ac_ext <<_ACEOF
6339/* end confdefs.h. */
6340
6341int
6342main ()
6343{
6344
6345 ;
6346 return 0;
6347}
6348_ACEOF
6349rm -f conftest.$ac_objext
6350if { (ac_try="$ac_compile"
6351case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354esac
6355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_compile") 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006362 (exit $ac_status); } &&
6363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6364 { (case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367esac
6368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_try") 2>&5
6370 ac_status=$?
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); }; } &&
6373 { ac_try='test -s conftest.$ac_objext'
6374 { (case "(($ac_try" in
6375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6376 *) ac_try_echo=$ac_try;;
6377esac
6378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6379 (eval "$ac_try") 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006383 ac_cv_prog_cxx_g=yes
6384else
6385 echo "$as_me: failed program was:" >&5
6386sed 's/^/| /' conftest.$ac_ext >&5
6387
6388
6389fi
6390
6391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392fi
6393
6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395fi
6396
6397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6399fi
6400{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6401echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6402if test "$ac_test_CXXFLAGS" = set; then
6403 CXXFLAGS=$ac_save_CXXFLAGS
6404elif test $ac_cv_prog_cxx_g = yes; then
6405 if test "$GXX" = yes; then
6406 CXXFLAGS="-g -O2"
6407 else
6408 CXXFLAGS="-g"
6409 fi
6410else
6411 if test "$GXX" = yes; then
6412 CXXFLAGS="-O2"
6413 else
6414 CXXFLAGS=
6415 fi
6416fi
6417ac_ext=c
6418ac_cpp='$CPP $CPPFLAGS'
6419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421ac_compiler_gnu=$ac_cv_c_compiler_gnu
6422
Reid Spencera773bd52006-08-04 18:18:08 +00006423
6424{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6425echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6426if test "${lt_cv_path_NM+set}" = set; then
6427 echo $ECHO_N "(cached) $ECHO_C" >&6
6428else
6429 if test -n "$NM"; then
6430 # Let the user override the test.
6431 lt_cv_path_NM="$NM"
6432else
6433 lt_nm_to_check="${ac_tool_prefix}nm"
6434 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6435 lt_nm_to_check="$lt_nm_to_check nm"
6436 fi
6437 for lt_tmp_nm in $lt_nm_to_check; do
6438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6439 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6440 IFS="$lt_save_ifs"
6441 test -z "$ac_dir" && ac_dir=.
6442 tmp_nm="$ac_dir/$lt_tmp_nm"
6443 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6444 # Check to see if the nm accepts a BSD-compat flag.
6445 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6446 # nm: unknown option "B" ignored
6447 # Tru64's nm complains that /dev/null is an invalid object file
6448 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6449 */dev/null* | *'Invalid file or object type'*)
6450 lt_cv_path_NM="$tmp_nm -B"
6451 break
6452 ;;
6453 *)
6454 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6455 */dev/null*)
6456 lt_cv_path_NM="$tmp_nm -p"
6457 break
6458 ;;
6459 *)
6460 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6461 continue # so that we can try to find one that supports BSD flags
6462 ;;
6463 esac
6464 ;;
6465 esac
6466 fi
6467 done
6468 IFS="$lt_save_ifs"
6469 done
6470 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6471fi
6472fi
6473{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6474echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6475NM="$lt_cv_path_NM"
6476
6477
6478
6479{ echo "$as_me:$LINENO: checking for GNU make" >&5
6480echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6481if test "${llvm_cv_gnu_make_command+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483else
6484 llvm_cv_gnu_make_command=''
6485 for a in "$MAKE" make gmake gnumake ; do
6486 if test -z "$a" ; then continue ; fi ;
6487 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6488 then
6489 llvm_cv_gnu_make_command=$a ;
6490 break;
6491 fi
6492 done
6493fi
6494{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6495echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6496 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6497 ifGNUmake='' ;
6498 else
6499 ifGNUmake='#' ;
6500 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6501echo "${ECHO_T}\"Not found\"" >&6; };
6502 fi
6503
6504
6505{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6506echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6507LN_S=$as_ln_s
6508if test "$LN_S" = "ln -s"; then
6509 { echo "$as_me:$LINENO: result: yes" >&5
6510echo "${ECHO_T}yes" >&6; }
6511else
6512 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6513echo "${ECHO_T}no, using $LN_S" >&6; }
6514fi
6515
6516# Extract the first word of "cmp", so it can be a program name with args.
6517set dummy cmp; ac_word=$2
6518{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6520if test "${ac_cv_path_CMP+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522else
6523 case $CMP in
6524 [\\/]* | ?:[\\/]*)
6525 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6526 ;;
6527 *)
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529for as_dir in $PATH
6530do
6531 IFS=$as_save_IFS
6532 test -z "$as_dir" && as_dir=.
6533 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006534 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 +00006535 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537 break 2
6538 fi
6539done
6540done
6541IFS=$as_save_IFS
6542
6543 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6544 ;;
6545esac
6546fi
6547CMP=$ac_cv_path_CMP
6548if test -n "$CMP"; then
6549 { echo "$as_me:$LINENO: result: $CMP" >&5
6550echo "${ECHO_T}$CMP" >&6; }
6551else
6552 { echo "$as_me:$LINENO: result: no" >&5
6553echo "${ECHO_T}no" >&6; }
6554fi
6555
6556
6557# Extract the first word of "cp", so it can be a program name with args.
6558set dummy cp; ac_word=$2
6559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561if test "${ac_cv_path_CP+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563else
6564 case $CP in
6565 [\\/]* | ?:[\\/]*)
6566 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6567 ;;
6568 *)
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570for as_dir in $PATH
6571do
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006575 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 +00006576 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6579 fi
6580done
6581done
6582IFS=$as_save_IFS
6583
6584 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6585 ;;
6586esac
6587fi
6588CP=$ac_cv_path_CP
6589if test -n "$CP"; then
6590 { echo "$as_me:$LINENO: result: $CP" >&5
6591echo "${ECHO_T}$CP" >&6; }
6592else
6593 { echo "$as_me:$LINENO: result: no" >&5
6594echo "${ECHO_T}no" >&6; }
6595fi
6596
6597
6598# Extract the first word of "date", so it can be a program name with args.
6599set dummy date; ac_word=$2
6600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6602if test "${ac_cv_path_DATE+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6604else
6605 case $DATE in
6606 [\\/]* | ?:[\\/]*)
6607 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6608 ;;
6609 *)
6610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611for as_dir in $PATH
6612do
6613 IFS=$as_save_IFS
6614 test -z "$as_dir" && as_dir=.
6615 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006616 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 +00006617 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6619 break 2
6620 fi
6621done
6622done
6623IFS=$as_save_IFS
6624
6625 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6626 ;;
6627esac
6628fi
6629DATE=$ac_cv_path_DATE
6630if test -n "$DATE"; then
6631 { echo "$as_me:$LINENO: result: $DATE" >&5
6632echo "${ECHO_T}$DATE" >&6; }
6633else
6634 { echo "$as_me:$LINENO: result: no" >&5
6635echo "${ECHO_T}no" >&6; }
6636fi
6637
6638
6639# Extract the first word of "find", so it can be a program name with args.
6640set dummy find; ac_word=$2
6641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6643if test "${ac_cv_path_FIND+set}" = set; then
6644 echo $ECHO_N "(cached) $ECHO_C" >&6
6645else
6646 case $FIND in
6647 [\\/]* | ?:[\\/]*)
6648 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6649 ;;
6650 *)
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652for as_dir in $PATH
6653do
6654 IFS=$as_save_IFS
6655 test -z "$as_dir" && as_dir=.
6656 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006657 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 +00006658 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660 break 2
6661 fi
6662done
6663done
6664IFS=$as_save_IFS
6665
6666 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6667 ;;
6668esac
6669fi
6670FIND=$ac_cv_path_FIND
6671if test -n "$FIND"; then
6672 { echo "$as_me:$LINENO: result: $FIND" >&5
6673echo "${ECHO_T}$FIND" >&6; }
6674else
6675 { echo "$as_me:$LINENO: result: no" >&5
6676echo "${ECHO_T}no" >&6; }
6677fi
6678
6679
6680# Extract the first word of "grep", so it can be a program name with args.
6681set dummy grep; ac_word=$2
6682{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6683echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6684if test "${ac_cv_path_GREP+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6686else
6687 case $GREP in
6688 [\\/]* | ?:[\\/]*)
6689 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6690 ;;
6691 *)
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693for as_dir in $PATH
6694do
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006698 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 +00006699 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6702 fi
6703done
6704done
6705IFS=$as_save_IFS
6706
6707 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6708 ;;
6709esac
6710fi
6711GREP=$ac_cv_path_GREP
6712if test -n "$GREP"; then
6713 { echo "$as_me:$LINENO: result: $GREP" >&5
6714echo "${ECHO_T}$GREP" >&6; }
6715else
6716 { echo "$as_me:$LINENO: result: no" >&5
6717echo "${ECHO_T}no" >&6; }
6718fi
6719
6720
6721# Extract the first word of "mkdir", so it can be a program name with args.
6722set dummy mkdir; ac_word=$2
6723{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6725if test "${ac_cv_path_MKDIR+set}" = set; then
6726 echo $ECHO_N "(cached) $ECHO_C" >&6
6727else
6728 case $MKDIR in
6729 [\\/]* | ?:[\\/]*)
6730 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6731 ;;
6732 *)
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734for as_dir in $PATH
6735do
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006739 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 +00006740 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6743 fi
6744done
6745done
6746IFS=$as_save_IFS
6747
6748 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6749 ;;
6750esac
6751fi
6752MKDIR=$ac_cv_path_MKDIR
6753if test -n "$MKDIR"; then
6754 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6755echo "${ECHO_T}$MKDIR" >&6; }
6756else
6757 { echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6; }
6759fi
6760
6761
6762# Extract the first word of "mv", so it can be a program name with args.
6763set dummy mv; ac_word=$2
6764{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766if test "${ac_cv_path_MV+set}" = set; then
6767 echo $ECHO_N "(cached) $ECHO_C" >&6
6768else
6769 case $MV in
6770 [\\/]* | ?:[\\/]*)
6771 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6772 ;;
6773 *)
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775for as_dir in $PATH
6776do
6777 IFS=$as_save_IFS
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006780 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 +00006781 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783 break 2
6784 fi
6785done
6786done
6787IFS=$as_save_IFS
6788
6789 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6790 ;;
6791esac
6792fi
6793MV=$ac_cv_path_MV
6794if test -n "$MV"; then
6795 { echo "$as_me:$LINENO: result: $MV" >&5
6796echo "${ECHO_T}$MV" >&6; }
6797else
6798 { echo "$as_me:$LINENO: result: no" >&5
6799echo "${ECHO_T}no" >&6; }
6800fi
6801
6802
6803if test -n "$ac_tool_prefix"; then
6804 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6805set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6806{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808if test "${ac_cv_prog_RANLIB+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810else
6811 if test -n "$RANLIB"; then
6812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6813else
6814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815for as_dir in $PATH
6816do
6817 IFS=$as_save_IFS
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006820 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 +00006821 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 break 2
6824 fi
6825done
6826done
6827IFS=$as_save_IFS
6828
6829fi
6830fi
6831RANLIB=$ac_cv_prog_RANLIB
6832if test -n "$RANLIB"; then
6833 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6834echo "${ECHO_T}$RANLIB" >&6; }
6835else
6836 { echo "$as_me:$LINENO: result: no" >&5
6837echo "${ECHO_T}no" >&6; }
6838fi
6839
6840
6841fi
6842if test -z "$ac_cv_prog_RANLIB"; then
6843 ac_ct_RANLIB=$RANLIB
6844 # Extract the first word of "ranlib", so it can be a program name with args.
6845set dummy ranlib; ac_word=$2
6846{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6848if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850else
6851 if test -n "$ac_ct_RANLIB"; then
6852 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6853else
6854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855for as_dir in $PATH
6856do
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006861 ac_cv_prog_ac_ct_RANLIB="ranlib"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6864 fi
6865done
6866done
6867IFS=$as_save_IFS
6868
6869fi
6870fi
6871ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6872if test -n "$ac_ct_RANLIB"; then
6873 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6874echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6875else
6876 { echo "$as_me:$LINENO: result: no" >&5
6877echo "${ECHO_T}no" >&6; }
6878fi
6879
6880 if test "x$ac_ct_RANLIB" = x; then
6881 RANLIB=":"
6882 else
6883 case $cross_compiling:$ac_tool_warned in
6884yes:)
6885{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6886whose name does not start with the host triplet. If you think this
6887configuration is useful to you, please write to autoconf@gnu.org." >&5
6888echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6889whose name does not start with the host triplet. If you think this
6890configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6891ac_tool_warned=yes ;;
6892esac
6893 RANLIB=$ac_ct_RANLIB
6894 fi
6895else
6896 RANLIB="$ac_cv_prog_RANLIB"
6897fi
6898
6899# Extract the first word of "rm", so it can be a program name with args.
6900set dummy rm; ac_word=$2
6901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903if test "${ac_cv_path_RM+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6905else
6906 case $RM in
6907 [\\/]* | ?:[\\/]*)
6908 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6909 ;;
6910 *)
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912for as_dir in $PATH
6913do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006917 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 +00006918 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922done
6923done
6924IFS=$as_save_IFS
6925
6926 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6927 ;;
6928esac
6929fi
6930RM=$ac_cv_path_RM
6931if test -n "$RM"; then
6932 { echo "$as_me:$LINENO: result: $RM" >&5
6933echo "${ECHO_T}$RM" >&6; }
6934else
6935 { echo "$as_me:$LINENO: result: no" >&5
6936echo "${ECHO_T}no" >&6; }
6937fi
6938
6939
6940# Extract the first word of "sed", so it can be a program name with args.
6941set dummy sed; ac_word=$2
6942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944if test "${ac_cv_path_SED+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6946else
6947 case $SED in
6948 [\\/]* | ?:[\\/]*)
6949 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6950 ;;
6951 *)
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006958 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 +00006959 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963done
6964done
6965IFS=$as_save_IFS
6966
6967 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6968 ;;
6969esac
6970fi
6971SED=$ac_cv_path_SED
6972if test -n "$SED"; then
6973 { echo "$as_me:$LINENO: result: $SED" >&5
6974echo "${ECHO_T}$SED" >&6; }
6975else
6976 { echo "$as_me:$LINENO: result: no" >&5
6977echo "${ECHO_T}no" >&6; }
6978fi
6979
6980
6981# Extract the first word of "tar", so it can be a program name with args.
6982set dummy tar; ac_word=$2
6983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6985if test "${ac_cv_path_TAR+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6987else
6988 case $TAR in
6989 [\\/]* | ?:[\\/]*)
6990 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6991 ;;
6992 *)
6993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007000 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004done
7005done
7006IFS=$as_save_IFS
7007
7008 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7009 ;;
7010esac
7011fi
7012TAR=$ac_cv_path_TAR
7013if test -n "$TAR"; then
7014 { echo "$as_me:$LINENO: result: $TAR" >&5
7015echo "${ECHO_T}$TAR" >&6; }
7016else
7017 { echo "$as_me:$LINENO: result: no" >&5
7018echo "${ECHO_T}no" >&6; }
7019fi
7020
7021
7022# Extract the first word of "pwd", so it can be a program name with args.
7023set dummy pwd; ac_word=$2
7024{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7026if test "${ac_cv_path_BINPWD+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028else
7029 case $BINPWD in
7030 [\\/]* | ?:[\\/]*)
7031 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7032 ;;
7033 *)
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037 IFS=$as_save_IFS
7038 test -z "$as_dir" && as_dir=.
7039 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007040 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 +00007041 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7043 break 2
7044 fi
7045done
7046done
7047IFS=$as_save_IFS
7048
7049 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7050 ;;
7051esac
7052fi
7053BINPWD=$ac_cv_path_BINPWD
7054if test -n "$BINPWD"; then
7055 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7056echo "${ECHO_T}$BINPWD" >&6; }
7057else
7058 { echo "$as_me:$LINENO: result: no" >&5
7059echo "${ECHO_T}no" >&6; }
7060fi
7061
7062
7063
7064# Extract the first word of "Graphviz", so it can be a program name with args.
7065set dummy Graphviz; ac_word=$2
7066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7068if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7069 echo $ECHO_N "(cached) $ECHO_C" >&6
7070else
7071 case $GRAPHVIZ in
7072 [\\/]* | ?:[\\/]*)
7073 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7074 ;;
7075 *)
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007082 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 +00007083 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7086 fi
7087done
7088done
7089IFS=$as_save_IFS
7090
7091 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7092 ;;
7093esac
7094fi
7095GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7096if test -n "$GRAPHVIZ"; then
7097 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7098echo "${ECHO_T}$GRAPHVIZ" >&6; }
7099else
7100 { echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6; }
7102fi
7103
7104
7105if test "$GRAPHVIZ" != "echo Graphviz" ; then
7106
7107cat >>confdefs.h <<\_ACEOF
7108#define HAVE_GRAPHVIZ 1
7109_ACEOF
7110
Jeff Cohen28783c32007-01-12 18:22:38 +00007111 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007112 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7113 fi
7114
7115cat >>confdefs.h <<_ACEOF
7116#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7117_ACEOF
7118
7119fi
7120# Extract the first word of "dot", so it can be a program name with args.
7121set dummy dot; ac_word=$2
7122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124if test "${ac_cv_path_DOT+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126else
7127 case $DOT in
7128 [\\/]* | ?:[\\/]*)
7129 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7130 ;;
7131 *)
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133for as_dir in $PATH
7134do
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007139 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141 break 2
7142 fi
7143done
7144done
7145IFS=$as_save_IFS
7146
7147 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7148 ;;
7149esac
7150fi
7151DOT=$ac_cv_path_DOT
7152if test -n "$DOT"; then
7153 { echo "$as_me:$LINENO: result: $DOT" >&5
7154echo "${ECHO_T}$DOT" >&6; }
7155else
7156 { echo "$as_me:$LINENO: result: no" >&5
7157echo "${ECHO_T}no" >&6; }
7158fi
7159
7160
7161if test "$DOT" != "echo dot" ; then
7162
7163cat >>confdefs.h <<\_ACEOF
7164#define HAVE_DOT 1
7165_ACEOF
7166
Jeff Cohen28783c32007-01-12 18:22:38 +00007167 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007168 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7169 fi
7170
7171cat >>confdefs.h <<_ACEOF
7172#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7173_ACEOF
7174
7175fi
7176for ac_prog in gv gsview32
7177do
7178 # Extract the first word of "$ac_prog", so it can be a program name with args.
7179set dummy $ac_prog; ac_word=$2
7180{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7182if test "${ac_cv_path_GV+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7184else
7185 case $GV in
7186 [\\/]* | ?:[\\/]*)
7187 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7188 ;;
7189 *)
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191for as_dir in $PATH
7192do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007196 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 +00007197 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7200 fi
7201done
7202done
7203IFS=$as_save_IFS
7204
7205 ;;
7206esac
7207fi
7208GV=$ac_cv_path_GV
7209if test -n "$GV"; then
7210 { echo "$as_me:$LINENO: result: $GV" >&5
7211echo "${ECHO_T}$GV" >&6; }
7212else
7213 { echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6; }
7215fi
7216
7217
7218 test -n "$GV" && break
7219done
7220test -n "$GV" || GV="echo gv"
7221
7222if test "$GV" != "echo gv" ; then
7223
7224cat >>confdefs.h <<\_ACEOF
7225#define HAVE_GV 1
7226_ACEOF
7227
Jeff Cohen28783c32007-01-12 18:22:38 +00007228 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007229 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7230 fi
7231
7232cat >>confdefs.h <<_ACEOF
7233#define LLVM_PATH_GV "$GV${EXEEXT}"
7234_ACEOF
7235
7236fi
7237# Extract the first word of "dotty", so it can be a program name with args.
7238set dummy dotty; ac_word=$2
7239{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241if test "${ac_cv_path_DOTTY+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243else
7244 case $DOTTY in
7245 [\\/]* | ?:[\\/]*)
7246 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7247 ;;
7248 *)
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250for as_dir in $PATH
7251do
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007255 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 +00007256 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7259 fi
7260done
7261done
7262IFS=$as_save_IFS
7263
7264 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7265 ;;
7266esac
7267fi
7268DOTTY=$ac_cv_path_DOTTY
7269if test -n "$DOTTY"; then
7270 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7271echo "${ECHO_T}$DOTTY" >&6; }
7272else
7273 { echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6; }
7275fi
7276
7277
7278if test "$DOTTY" != "echo dotty" ; then
7279
7280cat >>confdefs.h <<\_ACEOF
7281#define HAVE_DOTTY 1
7282_ACEOF
7283
Jeff Cohen28783c32007-01-12 18:22:38 +00007284 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007285 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7286 fi
7287
7288cat >>confdefs.h <<_ACEOF
7289#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7290_ACEOF
7291
7292fi
7293
7294
7295# Extract the first word of "perl", so it can be a program name with args.
7296set dummy perl; ac_word=$2
7297{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299if test "${ac_cv_path_PERL+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301else
7302 case $PERL in
7303 [\\/]* | ?:[\\/]*)
7304 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7305 ;;
7306 *)
7307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308for as_dir in $PATH
7309do
7310 IFS=$as_save_IFS
7311 test -z "$as_dir" && as_dir=.
7312 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007313 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 +00007314 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7316 break 2
7317 fi
7318done
7319done
7320IFS=$as_save_IFS
7321
7322 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7323 ;;
7324esac
7325fi
7326PERL=$ac_cv_path_PERL
7327if test -n "$PERL"; then
7328 { echo "$as_me:$LINENO: result: $PERL" >&5
7329echo "${ECHO_T}$PERL" >&6; }
7330else
7331 { echo "$as_me:$LINENO: result: no" >&5
7332echo "${ECHO_T}no" >&6; }
7333fi
7334
7335
7336if test "$PERL" != "none"; then
7337 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7338echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7339 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7340 { echo "$as_me:$LINENO: result: yes" >&5
7341echo "${ECHO_T}yes" >&6; }
7342 else
7343 PERL=none
7344 { echo "$as_me:$LINENO: result: not found" >&5
7345echo "${ECHO_T}not found" >&6; }
7346 fi
7347fi
7348
7349
7350if test x"$PERL" = xnone; then
7351 HAVE_PERL=0
7352
Reid Spencer59807fa2007-05-17 18:11:03 +00007353 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7354echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7355 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007356else
7357 HAVE_PERL=1
7358
7359fi
7360
7361# Find a good install program. We prefer a C program (faster),
7362# so one script is as good as another. But avoid the broken or
7363# incompatible versions:
7364# SysV /etc/install, /usr/sbin/install
7365# SunOS /usr/etc/install
7366# IRIX /sbin/install
7367# AIX /bin/install
7368# AmigaOS /C/install, which installs bootblocks on floppy discs
7369# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7370# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7371# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7372# OS/2's system install, which has a completely different semantic
7373# ./install, which can be erroneously created by make from ./install.sh.
7374{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7375echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7376if test -z "$INSTALL"; then
7377if test "${ac_cv_path_install+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 # Account for people who put trailing slashes in PATH elements.
7386case $as_dir/ in
7387 ./ | .// | /cC/* | \
7388 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7389 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7390 /usr/ucb/* ) ;;
7391 *)
7392 # OSF1 and SCO ODT 3.0 have their own names for install.
7393 # Don't use installbsd from OSF since it installs stuff as root
7394 # by default.
7395 for ac_prog in ginstall scoinst install; do
7396 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007397 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 +00007398 if test $ac_prog = install &&
7399 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7400 # AIX install. It has an incompatible calling convention.
7401 :
7402 elif test $ac_prog = install &&
7403 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7404 # program-specific install script used by HP pwplus--don't use.
7405 :
7406 else
7407 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7408 break 3
7409 fi
7410 fi
7411 done
7412 done
7413 ;;
7414esac
7415done
7416IFS=$as_save_IFS
7417
7418
7419fi
7420 if test "${ac_cv_path_install+set}" = set; then
7421 INSTALL=$ac_cv_path_install
7422 else
7423 # As a last resort, use the slow shell script. Don't cache a
7424 # value for INSTALL within a source directory, because that will
7425 # break other packages using the cache if that directory is
7426 # removed, or if the value is a relative name.
7427 INSTALL=$ac_install_sh
7428 fi
7429fi
7430{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7431echo "${ECHO_T}$INSTALL" >&6; }
7432
7433# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7434# It thinks the first close brace ends the variable substitution.
7435test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7436
7437test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7438
7439test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7440
7441
7442# Extract the first word of "bzip2", so it can be a program name with args.
7443set dummy bzip2; ac_word=$2
7444{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7446if test "${ac_cv_path_BZIP2+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7448else
7449 case $BZIP2 in
7450 [\\/]* | ?:[\\/]*)
7451 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7452 ;;
7453 *)
7454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7455for as_dir in $PATH
7456do
7457 IFS=$as_save_IFS
7458 test -z "$as_dir" && as_dir=.
7459 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007460 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 +00007461 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 break 2
7464 fi
7465done
7466done
7467IFS=$as_save_IFS
7468
Reid Spencera773bd52006-08-04 18:18:08 +00007469 ;;
7470esac
7471fi
7472BZIP2=$ac_cv_path_BZIP2
7473if test -n "$BZIP2"; then
7474 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7475echo "${ECHO_T}$BZIP2" >&6; }
7476else
7477 { echo "$as_me:$LINENO: result: no" >&5
7478echo "${ECHO_T}no" >&6; }
7479fi
7480
7481
7482# Extract the first word of "doxygen", so it can be a program name with args.
7483set dummy doxygen; ac_word=$2
7484{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7486if test "${ac_cv_path_DOXYGEN+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488else
7489 case $DOXYGEN in
7490 [\\/]* | ?:[\\/]*)
7491 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7492 ;;
7493 *)
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495for as_dir in $PATH
7496do
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007500 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 +00007501 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7504 fi
7505done
7506done
7507IFS=$as_save_IFS
7508
Reid Spencera773bd52006-08-04 18:18:08 +00007509 ;;
7510esac
7511fi
7512DOXYGEN=$ac_cv_path_DOXYGEN
7513if test -n "$DOXYGEN"; then
7514 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7515echo "${ECHO_T}$DOXYGEN" >&6; }
7516else
7517 { echo "$as_me:$LINENO: result: no" >&5
7518echo "${ECHO_T}no" >&6; }
7519fi
7520
7521
Reid Spencera773bd52006-08-04 18:18:08 +00007522# Extract the first word of "groff", so it can be a program name with args.
7523set dummy groff; ac_word=$2
7524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526if test "${ac_cv_path_GROFF+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529 case $GROFF in
7530 [\\/]* | ?:[\\/]*)
7531 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7532 ;;
7533 *)
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007540 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 +00007541 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545done
7546done
7547IFS=$as_save_IFS
7548
Reid Spencera773bd52006-08-04 18:18:08 +00007549 ;;
7550esac
7551fi
7552GROFF=$ac_cv_path_GROFF
7553if test -n "$GROFF"; then
7554 { echo "$as_me:$LINENO: result: $GROFF" >&5
7555echo "${ECHO_T}$GROFF" >&6; }
7556else
7557 { echo "$as_me:$LINENO: result: no" >&5
7558echo "${ECHO_T}no" >&6; }
7559fi
7560
7561
7562# Extract the first word of "gzip", so it can be a program name with args.
7563set dummy gzip; ac_word=$2
7564{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7566if test "${ac_cv_path_GZIP+set}" = set; then
7567 echo $ECHO_N "(cached) $ECHO_C" >&6
7568else
7569 case $GZIP in
7570 [\\/]* | ?:[\\/]*)
7571 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7572 ;;
7573 *)
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575for as_dir in $PATH
7576do
7577 IFS=$as_save_IFS
7578 test -z "$as_dir" && as_dir=.
7579 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007581 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7583 break 2
7584 fi
7585done
7586done
7587IFS=$as_save_IFS
7588
Reid Spencera773bd52006-08-04 18:18:08 +00007589 ;;
7590esac
7591fi
7592GZIP=$ac_cv_path_GZIP
7593if test -n "$GZIP"; then
7594 { echo "$as_me:$LINENO: result: $GZIP" >&5
7595echo "${ECHO_T}$GZIP" >&6; }
7596else
7597 { echo "$as_me:$LINENO: result: no" >&5
7598echo "${ECHO_T}no" >&6; }
7599fi
7600
7601
7602# Extract the first word of "pod2html", so it can be a program name with args.
7603set dummy pod2html; ac_word=$2
7604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7606if test "${ac_cv_path_POD2HTML+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608else
7609 case $POD2HTML in
7610 [\\/]* | ?:[\\/]*)
7611 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7612 ;;
7613 *)
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615for as_dir in $PATH
7616do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007620 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 +00007621 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7624 fi
7625done
7626done
7627IFS=$as_save_IFS
7628
Reid Spencera773bd52006-08-04 18:18:08 +00007629 ;;
7630esac
7631fi
7632POD2HTML=$ac_cv_path_POD2HTML
7633if test -n "$POD2HTML"; then
7634 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7635echo "${ECHO_T}$POD2HTML" >&6; }
7636else
7637 { echo "$as_me:$LINENO: result: no" >&5
7638echo "${ECHO_T}no" >&6; }
7639fi
7640
7641
7642# Extract the first word of "pod2man", so it can be a program name with args.
7643set dummy pod2man; ac_word=$2
7644{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7645echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7646if test "${ac_cv_path_POD2MAN+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7648else
7649 case $POD2MAN in
7650 [\\/]* | ?:[\\/]*)
7651 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7652 ;;
7653 *)
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655for as_dir in $PATH
7656do
7657 IFS=$as_save_IFS
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007660 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 +00007661 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 break 2
7664 fi
7665done
7666done
7667IFS=$as_save_IFS
7668
Reid Spencera773bd52006-08-04 18:18:08 +00007669 ;;
7670esac
7671fi
7672POD2MAN=$ac_cv_path_POD2MAN
7673if test -n "$POD2MAN"; then
7674 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7675echo "${ECHO_T}$POD2MAN" >&6; }
7676else
7677 { echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6; }
7679fi
7680
7681
7682# Extract the first word of "runtest", so it can be a program name with args.
7683set dummy runtest; ac_word=$2
7684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7686if test "${ac_cv_path_RUNTEST+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7688else
7689 case $RUNTEST in
7690 [\\/]* | ?:[\\/]*)
7691 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7692 ;;
7693 *)
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695for as_dir in $PATH
7696do
7697 IFS=$as_save_IFS
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007700 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 +00007701 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 break 2
7704 fi
7705done
7706done
7707IFS=$as_save_IFS
7708
Reid Spencera773bd52006-08-04 18:18:08 +00007709 ;;
7710esac
7711fi
7712RUNTEST=$ac_cv_path_RUNTEST
7713if test -n "$RUNTEST"; then
7714 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7715echo "${ECHO_T}$RUNTEST" >&6; }
7716else
7717 { echo "$as_me:$LINENO: result: no" >&5
7718echo "${ECHO_T}no" >&6; }
7719fi
7720
7721
7722
7723no_itcl=true
7724{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7725echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7726
7727# Check whether --with-tclinclude was given.
7728if test "${with_tclinclude+set}" = set; then
7729 withval=$with_tclinclude; with_tclinclude=${withval}
7730else
7731 with_tclinclude=''
7732fi
7733
7734if test "${ac_cv_path_tclsh+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7736else
7737
7738if test x"${with_tclinclude}" != x ; then
7739 if test -f ${with_tclinclude}/tclsh ; then
7740 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7741 elif test -f ${with_tclinclude}/src/tclsh ; then
7742 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7743 else
7744 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7745echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7746 { (exit 1); exit 1; }; }
7747 fi
7748fi
7749
7750if test x"${ac_cv_path_tclsh}" = x ; then
7751 { echo "$as_me:$LINENO: result: none" >&5
7752echo "${ECHO_T}none" >&6; }
7753 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
7754do
7755 # Extract the first word of "$ac_prog", so it can be a program name with args.
7756set dummy $ac_prog; ac_word=$2
7757{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7759if test "${ac_cv_path_TCLSH+set}" = set; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761else
7762 case $TCLSH in
7763 [\\/]* | ?:[\\/]*)
7764 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7765 ;;
7766 *)
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768for as_dir in $PATH
7769do
7770 IFS=$as_save_IFS
7771 test -z "$as_dir" && as_dir=.
7772 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007773 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 +00007774 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7776 break 2
7777 fi
7778done
7779done
7780IFS=$as_save_IFS
7781
7782 ;;
7783esac
7784fi
7785TCLSH=$ac_cv_path_TCLSH
7786if test -n "$TCLSH"; then
7787 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7788echo "${ECHO_T}$TCLSH" >&6; }
7789else
7790 { echo "$as_me:$LINENO: result: no" >&5
7791echo "${ECHO_T}no" >&6; }
7792fi
7793
7794
7795 test -n "$TCLSH" && break
7796done
7797
7798 if test x"${TCLSH}" = x ; then
7799 ac_cv_path_tclsh='';
7800 else
7801 ac_cv_path_tclsh="${TCLSH}";
7802 fi
7803else
7804 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7805echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7806 TCLSH="${ac_cv_path_tclsh}"
7807
7808fi
7809
7810fi
7811
7812# Extract the first word of "zip", so it can be a program name with args.
7813set dummy zip; ac_word=$2
7814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7816if test "${ac_cv_path_ZIP+set}" = set; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7818else
7819 case $ZIP in
7820 [\\/]* | ?:[\\/]*)
7821 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7822 ;;
7823 *)
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007830 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 +00007831 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 break 2
7834 fi
7835done
7836done
7837IFS=$as_save_IFS
7838
Reid Spencera773bd52006-08-04 18:18:08 +00007839 ;;
7840esac
7841fi
7842ZIP=$ac_cv_path_ZIP
7843if test -n "$ZIP"; then
7844 { echo "$as_me:$LINENO: result: $ZIP" >&5
7845echo "${ECHO_T}$ZIP" >&6; }
7846else
7847 { echo "$as_me:$LINENO: result: no" >&5
7848echo "${ECHO_T}no" >&6; }
7849fi
7850
7851
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007852for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007853do
7854 # Extract the first word of "$ac_prog", so it can be a program name with args.
7855set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7858if test "${ac_cv_path_OCAMLC+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7860else
7861 case $OCAMLC in
7862 [\\/]* | ?:[\\/]*)
7863 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7864 ;;
7865 *)
7866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867for as_dir in $PATH
7868do
7869 IFS=$as_save_IFS
7870 test -z "$as_dir" && as_dir=.
7871 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007872 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 +00007873 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7875 break 2
7876 fi
7877done
7878done
7879IFS=$as_save_IFS
7880
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007881 ;;
7882esac
7883fi
7884OCAMLC=$ac_cv_path_OCAMLC
7885if test -n "$OCAMLC"; then
7886 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7887echo "${ECHO_T}$OCAMLC" >&6; }
7888else
7889 { echo "$as_me:$LINENO: result: no" >&5
7890echo "${ECHO_T}no" >&6; }
7891fi
7892
7893
Gordon Henriksene7072162008-03-07 18:20:01 +00007894 test -n "$OCAMLC" && break
7895done
7896
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007897for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007898do
7899 # Extract the first word of "$ac_prog", so it can be a program name with args.
7900set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007901{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7903if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905else
7906 case $OCAMLOPT in
7907 [\\/]* | ?:[\\/]*)
7908 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7909 ;;
7910 *)
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912for as_dir in $PATH
7913do
7914 IFS=$as_save_IFS
7915 test -z "$as_dir" && as_dir=.
7916 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007917 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 +00007918 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7920 break 2
7921 fi
7922done
7923done
7924IFS=$as_save_IFS
7925
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007926 ;;
7927esac
7928fi
7929OCAMLOPT=$ac_cv_path_OCAMLOPT
7930if test -n "$OCAMLOPT"; then
7931 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7932echo "${ECHO_T}$OCAMLOPT" >&6; }
7933else
7934 { echo "$as_me:$LINENO: result: no" >&5
7935echo "${ECHO_T}no" >&6; }
7936fi
7937
7938
Gordon Henriksene7072162008-03-07 18:20:01 +00007939 test -n "$OCAMLOPT" && break
7940done
7941
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007942for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007943do
7944 # Extract the first word of "$ac_prog", so it can be a program name with args.
7945set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7948if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7950else
7951 case $OCAMLDEP in
7952 [\\/]* | ?:[\\/]*)
7953 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7954 ;;
7955 *)
7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
7961 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007962 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 +00007963 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 break 2
7966 fi
7967done
7968done
7969IFS=$as_save_IFS
7970
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007971 ;;
7972esac
7973fi
7974OCAMLDEP=$ac_cv_path_OCAMLDEP
7975if test -n "$OCAMLDEP"; then
7976 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7977echo "${ECHO_T}$OCAMLDEP" >&6; }
7978else
7979 { echo "$as_me:$LINENO: result: no" >&5
7980echo "${ECHO_T}no" >&6; }
7981fi
7982
7983
Gordon Henriksene7072162008-03-07 18:20:01 +00007984 test -n "$OCAMLDEP" && break
7985done
7986
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007987for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007988do
7989 # Extract the first word of "$ac_prog", so it can be a program name with args.
7990set dummy $ac_prog; ac_word=$2
7991{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7993if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7994 echo $ECHO_N "(cached) $ECHO_C" >&6
7995else
7996 case $OCAMLDOC in
7997 [\\/]* | ?:[\\/]*)
7998 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7999 ;;
8000 *)
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002for as_dir in $PATH
8003do
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008007 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 +00008008 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8011 fi
8012done
8013done
8014IFS=$as_save_IFS
8015
8016 ;;
8017esac
8018fi
8019OCAMLDOC=$ac_cv_path_OCAMLDOC
8020if test -n "$OCAMLDOC"; then
8021 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8022echo "${ECHO_T}$OCAMLDOC" >&6; }
8023else
8024 { echo "$as_me:$LINENO: result: no" >&5
8025echo "${ECHO_T}no" >&6; }
8026fi
8027
8028
8029 test -n "$OCAMLDOC" && break
8030done
8031
Torok Edwincc499a42008-10-22 09:56:27 +00008032for ac_prog in gas as
8033do
8034 # Extract the first word of "$ac_prog", so it can be a program name with args.
8035set dummy $ac_prog; ac_word=$2
8036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8038if test "${ac_cv_path_GAS+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8040else
8041 case $GAS in
8042 [\\/]* | ?:[\\/]*)
8043 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8044 ;;
8045 *)
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047for as_dir in $PATH
8048do
8049 IFS=$as_save_IFS
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008052 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 +00008053 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 break 2
8056 fi
8057done
8058done
8059IFS=$as_save_IFS
8060
8061 ;;
8062esac
8063fi
8064GAS=$ac_cv_path_GAS
8065if test -n "$GAS"; then
8066 { echo "$as_me:$LINENO: result: $GAS" >&5
8067echo "${ECHO_T}$GAS" >&6; }
8068else
8069 { echo "$as_me:$LINENO: result: no" >&5
8070echo "${ECHO_T}no" >&6; }
8071fi
8072
8073
8074 test -n "$GAS" && break
8075done
8076
Reid Spencera773bd52006-08-04 18:18:08 +00008077
8078{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8079echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8080if test "${llvm_cv_link_use_r+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082else
8083 ac_ext=c
8084ac_cpp='$CPP $CPPFLAGS'
8085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8087ac_compiler_gnu=$ac_cv_c_compiler_gnu
8088
8089 oldcflags="$CFLAGS"
8090 CFLAGS="$CFLAGS -Wl,-R."
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{
8101int main() { return 0; }
8102 ;
8103 return 0;
8104}
8105_ACEOF
8106rm -f conftest.$ac_objext conftest$ac_exeext
8107if { (ac_try="$ac_link"
8108case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111esac
8112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_link") 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121 { (case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124esac
8125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_try") 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest$ac_exeext'
8131 { (case "(($ac_try" in
8132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8134esac
8135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_try") 2>&5
8137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008140 llvm_cv_link_use_r=yes
8141else
8142 echo "$as_me: failed program was:" >&5
8143sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 llvm_cv_link_use_r=no
8146fi
8147
Bill Wendlingebcceee2009-04-18 11:20:33 +00008148rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008149 conftest$ac_exeext conftest.$ac_ext
8150 CFLAGS="$oldcflags"
8151 ac_ext=c
8152ac_cpp='$CPP $CPPFLAGS'
8153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8155ac_compiler_gnu=$ac_cv_c_compiler_gnu
8156
8157
8158fi
8159{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8160echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8161if test "$llvm_cv_link_use_r" = yes ; then
8162
8163cat >>confdefs.h <<\_ACEOF
8164#define HAVE_LINK_R 1
8165_ACEOF
8166
8167 fi
8168
8169
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008170{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8171echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8172if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8174else
8175 ac_ext=c
8176ac_cpp='$CPP $CPPFLAGS'
8177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8179ac_compiler_gnu=$ac_cv_c_compiler_gnu
8180
8181 oldcflags="$CFLAGS"
8182 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8183 cat >conftest.$ac_ext <<_ACEOF
8184/* confdefs.h. */
8185_ACEOF
8186cat confdefs.h >>conftest.$ac_ext
8187cat >>conftest.$ac_ext <<_ACEOF
8188/* end confdefs.h. */
8189
8190int
8191main ()
8192{
8193int main() { return 0; }
8194 ;
8195 return 0;
8196}
8197_ACEOF
8198rm -f conftest.$ac_objext conftest$ac_exeext
8199if { (ac_try="$ac_link"
8200case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8203esac
8204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8205 (eval "$ac_link") 2>conftest.er1
8206 ac_status=$?
8207 grep -v '^ *+' conftest.er1 >conftest.err
8208 rm -f conftest.er1
8209 cat conftest.err >&5
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008211 (exit $ac_status); } &&
8212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8213 { (case "(($ac_try" in
8214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215 *) ac_try_echo=$ac_try;;
8216esac
8217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218 (eval "$ac_try") 2>&5
8219 ac_status=$?
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest$ac_exeext'
8223 { (case "(($ac_try" in
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8226esac
8227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_try") 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008232 llvm_cv_link_use_export_dynamic=yes
8233else
8234 echo "$as_me: failed program was:" >&5
8235sed 's/^/| /' conftest.$ac_ext >&5
8236
8237 llvm_cv_link_use_export_dynamic=no
8238fi
8239
Bill Wendlingebcceee2009-04-18 11:20:33 +00008240rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008241 conftest$ac_exeext conftest.$ac_ext
8242 CFLAGS="$oldcflags"
8243 ac_ext=c
8244ac_cpp='$CPP $CPPFLAGS'
8245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8247ac_compiler_gnu=$ac_cv_c_compiler_gnu
8248
8249
8250fi
8251{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8252echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8253if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8254
8255cat >>confdefs.h <<\_ACEOF
8256#define HAVE_LINK_EXPORT_DYNAMIC 1
8257_ACEOF
8258
8259 fi
8260
8261
Reid Spencera773bd52006-08-04 18:18:08 +00008262
8263
8264{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8265echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8266if test "${ac_cv_c_const+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268else
8269 cat >conftest.$ac_ext <<_ACEOF
8270/* confdefs.h. */
8271_ACEOF
8272cat confdefs.h >>conftest.$ac_ext
8273cat >>conftest.$ac_ext <<_ACEOF
8274/* end confdefs.h. */
8275
8276int
8277main ()
8278{
8279/* FIXME: Include the comments suggested by Paul. */
8280#ifndef __cplusplus
8281 /* Ultrix mips cc rejects this. */
8282 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008283 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008284 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008285 char const *const *ccp;
8286 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008287 /* NEC SVR4.0.2 mips cc rejects this. */
8288 struct point {int x, y;};
8289 static struct point const zero = {0,0};
8290 /* AIX XL C 1.02.0.0 rejects this.
8291 It does not let you subtract one const X* pointer from another in
8292 an arm of an if-expression whose if-part is not a constant
8293 expression */
8294 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008295 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008296 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008297 ++ccp;
8298 p = (char**) ccp;
8299 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008300 { /* SCO 3.2v4 cc rejects this. */
8301 char *t;
8302 char const *s = 0 ? (char *) 0 : (char const *) 0;
8303
8304 *t++ = 0;
8305 if (s) return 0;
8306 }
8307 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8308 int x[] = {25, 17};
8309 const int *foo = &x[0];
8310 ++foo;
8311 }
8312 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8313 typedef const int *iptr;
8314 iptr p = 0;
8315 ++p;
8316 }
8317 { /* AIX XL C 1.02.0.0 rejects this saying
8318 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8319 struct s { int j; const int *ap[3]; };
8320 struct s *b; b->j = 5;
8321 }
8322 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8323 const int foo = 10;
8324 if (!foo) return 0;
8325 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008326 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008327#endif
8328
8329 ;
8330 return 0;
8331}
8332_ACEOF
8333rm -f conftest.$ac_objext
8334if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8341 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
Bill Wendlingebcceee2009-04-18 11:20:33 +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_objext'
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_c_const=yes
8368else
8369 echo "$as_me: failed program was:" >&5
8370sed 's/^/| /' conftest.$ac_ext >&5
8371
8372 ac_cv_c_const=no
8373fi
8374
8375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376fi
8377{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8378echo "${ECHO_T}$ac_cv_c_const" >&6; }
8379if test $ac_cv_c_const = no; then
8380
8381cat >>confdefs.h <<\_ACEOF
8382#define const
8383_ACEOF
8384
8385fi
8386
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008387
8388
8389
8390
8391
8392ac_header_dirent=no
8393for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8394 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008395{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8396echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008398 echo $ECHO_N "(cached) $ECHO_C" >&6
8399else
8400 cat >conftest.$ac_ext <<_ACEOF
8401/* confdefs.h. */
8402_ACEOF
8403cat confdefs.h >>conftest.$ac_ext
8404cat >>conftest.$ac_ext <<_ACEOF
8405/* end confdefs.h. */
8406#include <sys/types.h>
8407#include <$ac_hdr>
8408
8409int
8410main ()
8411{
8412if ((DIR *) 0)
8413return 0;
8414 ;
8415 return 0;
8416}
8417_ACEOF
8418rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008419if { (ac_try="$ac_compile"
8420case "(($ac_try" in
8421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422 *) ac_try_echo=$ac_try;;
8423esac
8424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008426 ac_status=$?
8427 grep -v '^ *+' conftest.er1 >conftest.err
8428 rm -f conftest.er1
8429 cat conftest.err >&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008431 (exit $ac_status); } &&
8432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433 { (case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8436esac
8437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_try") 2>&5
8439 ac_status=$?
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); }; } &&
8442 { ac_try='test -s conftest.$ac_objext'
8443 { (case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446esac
8447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448 (eval "$ac_try") 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008452 eval "$as_ac_Header=yes"
8453else
8454 echo "$as_me: failed program was:" >&5
8455sed 's/^/| /' conftest.$ac_ext >&5
8456
Reid Spencera773bd52006-08-04 18:18:08 +00008457 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008458fi
Reid Spencera773bd52006-08-04 18:18:08 +00008459
8460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008461fi
Reid Spencera773bd52006-08-04 18:18:08 +00008462ac_res=`eval echo '${'$as_ac_Header'}'`
8463 { echo "$as_me:$LINENO: result: $ac_res" >&5
8464echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008465if test `eval echo '${'$as_ac_Header'}'` = yes; then
8466 cat >>confdefs.h <<_ACEOF
8467#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8468_ACEOF
8469
8470ac_header_dirent=$ac_hdr; break
8471fi
8472
8473done
8474# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8475if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008476 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8477echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008478if test "${ac_cv_search_opendir+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8480else
8481 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008482cat >conftest.$ac_ext <<_ACEOF
8483/* confdefs.h. */
8484_ACEOF
8485cat confdefs.h >>conftest.$ac_ext
8486cat >>conftest.$ac_ext <<_ACEOF
8487/* end confdefs.h. */
8488
Reid Spencera773bd52006-08-04 18:18:08 +00008489/* Override any GCC internal prototype to avoid an error.
8490 Use char because int might match the return type of a GCC
8491 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008492#ifdef __cplusplus
8493extern "C"
8494#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008495char opendir ();
8496int
8497main ()
8498{
Reid Spencera773bd52006-08-04 18:18:08 +00008499return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008500 ;
8501 return 0;
8502}
8503_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008504for ac_lib in '' dir; do
8505 if test -z "$ac_lib"; then
8506 ac_res="none required"
8507 else
8508 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008510 fi
8511 rm -f conftest.$ac_objext conftest$ac_exeext
8512if { (ac_try="$ac_link"
8513case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8516esac
8517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8518 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8526 { (case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8529esac
8530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_try") 2>&5
8532 ac_status=$?
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; } &&
8535 { ac_try='test -s conftest$ac_exeext'
8536 { (case "(($ac_try" in
8537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8538 *) ac_try_echo=$ac_try;;
8539esac
8540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541 (eval "$ac_try") 2>&5
8542 ac_status=$?
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008545 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008546else
8547 echo "$as_me: failed program was:" >&5
8548sed 's/^/| /' conftest.$ac_ext >&5
8549
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008550
8551fi
8552
Bill Wendlingebcceee2009-04-18 11:20:33 +00008553rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008554 conftest$ac_exeext
8555 if test "${ac_cv_search_opendir+set}" = set; then
8556 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008557fi
John Criswell7a73b802003-06-30 21:59:07 +00008558done
Reid Spencera773bd52006-08-04 18:18:08 +00008559if test "${ac_cv_search_opendir+set}" = set; then
8560 :
8561else
8562 ac_cv_search_opendir=no
8563fi
8564rm conftest.$ac_ext
8565LIBS=$ac_func_search_save_LIBS
8566fi
8567{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8568echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8569ac_res=$ac_cv_search_opendir
8570if test "$ac_res" != no; then
8571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008572
Reid Spencera773bd52006-08-04 18:18:08 +00008573fi
8574
8575else
8576 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8577echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8578if test "${ac_cv_search_opendir+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8580else
8581 ac_func_search_save_LIBS=$LIBS
8582cat >conftest.$ac_ext <<_ACEOF
8583/* confdefs.h. */
8584_ACEOF
8585cat confdefs.h >>conftest.$ac_ext
8586cat >>conftest.$ac_ext <<_ACEOF
8587/* end confdefs.h. */
8588
8589/* Override any GCC internal prototype to avoid an error.
8590 Use char because int might match the return type of a GCC
8591 builtin and then its argument prototype would still apply. */
8592#ifdef __cplusplus
8593extern "C"
8594#endif
8595char opendir ();
8596int
8597main ()
8598{
8599return opendir ();
8600 ;
8601 return 0;
8602}
8603_ACEOF
8604for ac_lib in '' x; do
8605 if test -z "$ac_lib"; then
8606 ac_res="none required"
8607 else
8608 ac_res=-l$ac_lib
8609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8610 fi
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612if { (ac_try="$ac_link"
8613case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616esac
8617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618 (eval "$ac_link") 2>conftest.er1
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008624 (exit $ac_status); } &&
8625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626 { (case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629esac
8630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_try") 2>&5
8632 ac_status=$?
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; } &&
8635 { ac_try='test -s conftest$ac_exeext'
8636 { (case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639esac
8640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8641 (eval "$ac_try") 2>&5
8642 ac_status=$?
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008645 ac_cv_search_opendir=$ac_res
8646else
8647 echo "$as_me: failed program was:" >&5
8648sed 's/^/| /' conftest.$ac_ext >&5
8649
8650
8651fi
8652
Bill Wendlingebcceee2009-04-18 11:20:33 +00008653rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008654 conftest$ac_exeext
8655 if test "${ac_cv_search_opendir+set}" = set; then
8656 break
8657fi
8658done
8659if test "${ac_cv_search_opendir+set}" = set; then
8660 :
8661else
8662 ac_cv_search_opendir=no
8663fi
8664rm conftest.$ac_ext
8665LIBS=$ac_func_search_save_LIBS
8666fi
8667{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8668echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8669ac_res=$ac_cv_search_opendir
8670if test "$ac_res" != no; then
8671 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8672
8673fi
8674
8675fi
John Criswell7a73b802003-06-30 21:59:07 +00008676
8677
8678for ac_header in dlfcn.h
8679do
8680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008685 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008686fi
Reid Spencera773bd52006-08-04 18:18:08 +00008687ac_res=`eval echo '${'$as_ac_Header'}'`
8688 { echo "$as_me:$LINENO: result: $ac_res" >&5
8689echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008690else
Brian Gaeke0a621332004-09-08 20:38:05 +00008691 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008692{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8693echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008694cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008695/* confdefs.h. */
8696_ACEOF
8697cat confdefs.h >>conftest.$ac_ext
8698cat >>conftest.$ac_ext <<_ACEOF
8699/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008700$ac_includes_default
8701#include <$ac_header>
8702_ACEOF
8703rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008704if { (ac_try="$ac_compile"
8705case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8708esac
8709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008711 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008716 (exit $ac_status); } &&
8717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8718 { (case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8721esac
8722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_try") 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest.$ac_objext'
8728 { (case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731esac
8732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_try") 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008737 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008738else
8739 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008740sed 's/^/| /' conftest.$ac_ext >&5
8741
Reid Spencera773bd52006-08-04 18:18:08 +00008742 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008743fi
Reid Spencera773bd52006-08-04 18:18:08 +00008744
8745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8746{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8747echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008748
8749# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008750{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8751echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008752cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008753/* confdefs.h. */
8754_ACEOF
8755cat confdefs.h >>conftest.$ac_ext
8756cat >>conftest.$ac_ext <<_ACEOF
8757/* end confdefs.h. */
8758#include <$ac_header>
8759_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008760if { (ac_try="$ac_cpp conftest.$ac_ext"
8761case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764esac
8765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008772 (exit $ac_status); } >/dev/null; then
8773 if test -s conftest.err; then
8774 ac_cpp_err=$ac_c_preproc_warn_flag
8775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8776 else
8777 ac_cpp_err=
8778 fi
8779else
8780 ac_cpp_err=yes
8781fi
8782if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008783 ac_header_preproc=yes
8784else
8785 echo "$as_me: failed program was:" >&5
8786sed 's/^/| /' conftest.$ac_ext >&5
8787
8788 ac_header_preproc=no
8789fi
Reid Spencera773bd52006-08-04 18:18:08 +00008790
Brian Gaeke0a621332004-09-08 20:38:05 +00008791rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008792{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8793echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008794
8795# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8797 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8799echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8801echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8802 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008803 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008804 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8808echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8810echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8812echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8814echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8816echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008817 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008818## ----------------------------------- ##
8819## Report this to llvmbugs@cs.uiuc.edu ##
8820## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008821_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008822 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008823 ;;
8824esac
Reid Spencera773bd52006-08-04 18:18:08 +00008825{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008828 echo $ECHO_N "(cached) $ECHO_C" >&6
8829else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008830 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008831fi
Reid Spencera773bd52006-08-04 18:18:08 +00008832ac_res=`eval echo '${'$as_ac_Header'}'`
8833 { echo "$as_me:$LINENO: result: $ac_res" >&5
8834echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008835
8836fi
John Criswell7a73b802003-06-30 21:59:07 +00008837if test `eval echo '${'$as_ac_Header'}'` = yes; then
8838 cat >>confdefs.h <<_ACEOF
8839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8840_ACEOF
8841
8842fi
8843
8844done
8845
Reid Spencera773bd52006-08-04 18:18:08 +00008846# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008847if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008848 enableval=$enable_ltdl_install;
8849fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008850
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008851
Bill Wendlingebcceee2009-04-18 11:20:33 +00008852
8853
8854if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008855 INSTALL_LTDL_TRUE=
8856 INSTALL_LTDL_FALSE='#'
8857else
8858 INSTALL_LTDL_TRUE='#'
8859 INSTALL_LTDL_FALSE=
8860fi
8861
Bill Wendlingebcceee2009-04-18 11:20:33 +00008862
8863
8864if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008865 CONVENIENCE_LTDL_TRUE=
8866 CONVENIENCE_LTDL_FALSE='#'
8867else
8868 CONVENIENCE_LTDL_TRUE='#'
8869 CONVENIENCE_LTDL_FALSE=
8870fi
8871
8872
Reid Spencera773bd52006-08-04 18:18:08 +00008873{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8874echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008875library_names_spec=
8876libname_spec='lib$name'
8877soname_spec=
8878shrext_cmds=".so"
8879postinstall_cmds=
8880postuninstall_cmds=
8881finish_cmds=
8882finish_eval=
8883shlibpath_var=
8884shlibpath_overrides_runpath=unknown
8885version_type=none
8886dynamic_linker="$host_os ld.so"
8887sys_lib_dlsearch_path_spec="/lib /usr/lib"
8888if test "$GCC" = yes; then
8889 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8890 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8891 # if the path contains ";" then we assume it to be the separator
8892 # otherwise default to the standard path separator (i.e. ":") - it is
8893 # assumed that no part of a normal pathname contains ";" but that should
8894 # okay in the real world where ";" in dirpaths is itself problematic.
8895 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8896 else
8897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8898 fi
8899else
8900 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8901fi
8902need_lib_prefix=unknown
8903hardcode_into_libs=no
8904
8905# when you set need_version to no, make sure it does not cause -set_version
8906# flags to be left without arguments
8907need_version=unknown
8908
8909case $host_os in
8910aix3*)
8911 version_type=linux
8912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8913 shlibpath_var=LIBPATH
8914
8915 # AIX 3 has no versioning support, so we append a major version to the name.
8916 soname_spec='${libname}${release}${shared_ext}$major'
8917 ;;
8918
8919aix4* | aix5*)
8920 version_type=linux
8921 need_lib_prefix=no
8922 need_version=no
8923 hardcode_into_libs=yes
8924 if test "$host_cpu" = ia64; then
8925 # AIX 5 supports IA64
8926 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8927 shlibpath_var=LD_LIBRARY_PATH
8928 else
8929 # With GCC up to 2.95.x, collect2 would create an import file
8930 # for dependence libraries. The import file would start with
8931 # the line `#! .'. This would cause the generated library to
8932 # depend on `.', always an invalid library. This was fixed in
8933 # development snapshots of GCC prior to 3.0.
8934 case $host_os in
8935 aix4 | aix4.[01] | aix4.[01].*)
8936 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8937 echo ' yes '
8938 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8939 :
8940 else
8941 can_build_shared=no
8942 fi
8943 ;;
8944 esac
8945 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8946 # soname into executable. Probably we can add versioning support to
8947 # collect2, so additional links can be useful in future.
8948 if test "$aix_use_runtimelinking" = yes; then
8949 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8950 # instead of lib<name>.a to let people know that these are not
8951 # typical AIX shared libraries.
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953 else
8954 # We preserve .a as extension for shared libraries through AIX4.2
8955 # and later when we are not doing run time linking.
8956 library_names_spec='${libname}${release}.a $libname.a'
8957 soname_spec='${libname}${release}${shared_ext}$major'
8958 fi
8959 shlibpath_var=LIBPATH
8960 fi
8961 ;;
8962
8963amigaos*)
8964 library_names_spec='$libname.ixlibrary $libname.a'
8965 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8966 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'
8967 ;;
8968
8969beos*)
8970 library_names_spec='${libname}${shared_ext}'
8971 dynamic_linker="$host_os ld.so"
8972 shlibpath_var=LIBRARY_PATH
8973 ;;
8974
8975bsdi[45]*)
8976 version_type=linux
8977 need_version=no
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 soname_spec='${libname}${release}${shared_ext}$major'
8980 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8983 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8984 # the default ld.so.conf also contains /usr/contrib/lib and
8985 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8986 # libtool to hard-code these into programs
8987 ;;
8988
8989cygwin* | mingw* | pw32*)
8990 version_type=windows
8991 shrext_cmds=".dll"
8992 need_version=no
8993 need_lib_prefix=no
8994
8995 case $GCC,$host_os in
8996 yes,cygwin* | yes,mingw* | yes,pw32*)
8997 library_names_spec='$libname.dll.a'
8998 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8999 postinstall_cmds='base_file=`basename \${file}`~
9000 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9001 dldir=$destdir/`dirname \$dlpath`~
9002 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009003 $install_prog $dir/$dlname \$dldir/$dlname~
9004 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009005 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9006 dlpath=$dir/\$dldll~
9007 $rm \$dlpath'
9008 shlibpath_overrides_runpath=yes
9009
9010 case $host_os in
9011 cygwin*)
9012 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9013 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9014 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9015 ;;
9016 mingw*)
9017 # MinGW DLLs use traditional 'lib' prefix
9018 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9019 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9020 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9021 # It is most probably a Windows format PATH printed by
9022 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9023 # path with ; separators, and with drive letters. We can handle the
9024 # drive letters (cygwin fileutils understands them), so leave them,
9025 # especially as we might pass files found there to a mingw objdump,
9026 # which wouldn't understand a cygwinified path. Ahh.
9027 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9028 else
9029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9030 fi
9031 ;;
9032 pw32*)
9033 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009034 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 +00009035 ;;
9036 esac
9037 ;;
9038
9039 *)
9040 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9041 ;;
9042 esac
9043 dynamic_linker='Win32 ld.exe'
9044 # FIXME: first we should search . and the directory the executable is in
9045 shlibpath_var=PATH
9046 ;;
9047
9048darwin* | rhapsody*)
9049 dynamic_linker="$host_os dyld"
9050 version_type=darwin
9051 need_lib_prefix=no
9052 need_version=no
9053 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9054 soname_spec='${libname}${release}${major}$shared_ext'
9055 shlibpath_overrides_runpath=yes
9056 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009057 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009058 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9059 if test "$GCC" = yes; then
9060 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"`
9061 else
9062 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9063 fi
9064 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9065 ;;
9066
9067dgux*)
9068 version_type=linux
9069 need_lib_prefix=no
9070 need_version=no
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 ;;
9075
9076freebsd1*)
9077 dynamic_linker=no
9078 ;;
9079
9080kfreebsd*-gnu)
9081 version_type=linux
9082 need_lib_prefix=no
9083 need_version=no
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 shlibpath_overrides_runpath=no
9088 hardcode_into_libs=yes
9089 dynamic_linker='GNU ld.so'
9090 ;;
9091
Reid Spencera773bd52006-08-04 18:18:08 +00009092freebsd* | dragonfly*)
9093 # DragonFly does not have aout. When/if they implement a new
9094 # versioning mechanism, adjust this.
9095 if test -x /usr/bin/objformat; then
9096 objformat=`/usr/bin/objformat`
9097 else
9098 case $host_os in
9099 freebsd[123]*) objformat=aout ;;
9100 *) objformat=elf ;;
9101 esac
9102 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009103 version_type=freebsd-$objformat
9104 case $version_type in
9105 freebsd-elf*)
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9107 need_version=no
9108 need_lib_prefix=no
9109 ;;
9110 freebsd-*)
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9112 need_version=yes
9113 ;;
9114 esac
9115 shlibpath_var=LD_LIBRARY_PATH
9116 case $host_os in
9117 freebsd2*)
9118 shlibpath_overrides_runpath=yes
9119 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009120 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009121 shlibpath_overrides_runpath=yes
9122 hardcode_into_libs=yes
9123 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009124 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9125 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009126 shlibpath_overrides_runpath=no
9127 hardcode_into_libs=yes
9128 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009129 freebsd*) # from 4.6 on
9130 shlibpath_overrides_runpath=yes
9131 hardcode_into_libs=yes
9132 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009133 esac
9134 ;;
9135
9136gnu*)
9137 version_type=linux
9138 need_lib_prefix=no
9139 need_version=no
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 hardcode_into_libs=yes
9144 ;;
9145
9146hpux9* | hpux10* | hpux11*)
9147 # Give a soname corresponding to the major version so that dld.sl refuses to
9148 # link against other versions.
9149 version_type=sunos
9150 need_lib_prefix=no
9151 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009152 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009153 ia64*)
9154 shrext_cmds='.so'
9155 hardcode_into_libs=yes
9156 dynamic_linker="$host_os dld.so"
9157 shlibpath_var=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9160 soname_spec='${libname}${release}${shared_ext}$major'
9161 if test "X$HPUX_IA64_MODE" = X32; then
9162 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9163 else
9164 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9165 fi
9166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9167 ;;
9168 hppa*64*)
9169 shrext_cmds='.sl'
9170 hardcode_into_libs=yes
9171 dynamic_linker="$host_os dld.sl"
9172 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9178 ;;
9179 *)
9180 shrext_cmds='.sl'
9181 dynamic_linker="$host_os dld.sl"
9182 shlibpath_var=SHLIB_PATH
9183 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 ;;
9187 esac
9188 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9189 postinstall_cmds='chmod 555 $lib'
9190 ;;
9191
Reid Spencera773bd52006-08-04 18:18:08 +00009192interix3*)
9193 version_type=linux
9194 need_lib_prefix=no
9195 need_version=no
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9199 shlibpath_var=LD_LIBRARY_PATH
9200 shlibpath_overrides_runpath=no
9201 hardcode_into_libs=yes
9202 ;;
9203
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009204irix5* | irix6* | nonstopux*)
9205 case $host_os in
9206 nonstopux*) version_type=nonstopux ;;
9207 *)
9208 if test "$lt_cv_prog_gnu_ld" = yes; then
9209 version_type=linux
9210 else
9211 version_type=irix
9212 fi ;;
9213 esac
9214 need_lib_prefix=no
9215 need_version=no
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9218 case $host_os in
9219 irix5* | nonstopux*)
9220 libsuff= shlibsuff=
9221 ;;
9222 *)
9223 case $LD in # libtool.m4 will add one of these switches to LD
9224 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9225 libsuff= shlibsuff= libmagic=32-bit;;
9226 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9227 libsuff=32 shlibsuff=N32 libmagic=N32;;
9228 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9229 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9230 *) libsuff= shlibsuff= libmagic=never-match;;
9231 esac
9232 ;;
9233 esac
9234 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9235 shlibpath_overrides_runpath=no
9236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9238 hardcode_into_libs=yes
9239 ;;
9240
9241# No shared lib support for Linux oldld, aout, or coff.
9242linux*oldld* | linux*aout* | linux*coff*)
9243 dynamic_linker=no
9244 ;;
9245
9246# This must be Linux ELF.
9247linux*)
9248 version_type=linux
9249 need_lib_prefix=no
9250 need_version=no
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252 soname_spec='${libname}${release}${shared_ext}$major'
9253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9254 shlibpath_var=LD_LIBRARY_PATH
9255 shlibpath_overrides_runpath=no
9256 # This implies no fast_install, which is unacceptable.
9257 # Some rework will be needed to allow for fast_install
9258 # before this can be enabled.
9259 hardcode_into_libs=yes
9260
9261 # Append ld.so.conf contents to the search path
9262 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009263 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 +00009264 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9265 fi
9266
9267 # We used to test for /lib/ld.so.1 and disable shared libraries on
9268 # powerpc, because MkLinux only supported shared libraries with the
9269 # GNU dynamic linker. Since this was broken with cross compilers,
9270 # most powerpc-linux boxes support dynamic linking these days and
9271 # people can always --disable-shared, the test was removed, and we
9272 # assume the GNU/Linux dynamic linker is in use.
9273 dynamic_linker='GNU/Linux ld.so'
9274 ;;
9275
9276knetbsd*-gnu)
9277 version_type=linux
9278 need_lib_prefix=no
9279 need_version=no
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9281 soname_spec='${libname}${release}${shared_ext}$major'
9282 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=no
9284 hardcode_into_libs=yes
9285 dynamic_linker='GNU ld.so'
9286 ;;
9287
9288netbsd*)
9289 version_type=sunos
9290 need_lib_prefix=no
9291 need_version=no
9292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9295 dynamic_linker='NetBSD (a.out) ld.so'
9296 else
9297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9298 soname_spec='${libname}${release}${shared_ext}$major'
9299 dynamic_linker='NetBSD ld.elf_so'
9300 fi
9301 shlibpath_var=LD_LIBRARY_PATH
9302 shlibpath_overrides_runpath=yes
9303 hardcode_into_libs=yes
9304 ;;
9305
9306newsos6)
9307 version_type=linux
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309 shlibpath_var=LD_LIBRARY_PATH
9310 shlibpath_overrides_runpath=yes
9311 ;;
9312
9313nto-qnx*)
9314 version_type=linux
9315 need_lib_prefix=no
9316 need_version=no
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 shlibpath_overrides_runpath=yes
9321 ;;
9322
9323openbsd*)
9324 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009325 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009326 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009327 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9328 case $host_os in
9329 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9330 *) need_version=no ;;
9331 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9334 shlibpath_var=LD_LIBRARY_PATH
9335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9336 case $host_os in
9337 openbsd2.[89] | openbsd2.[89].*)
9338 shlibpath_overrides_runpath=no
9339 ;;
9340 *)
9341 shlibpath_overrides_runpath=yes
9342 ;;
9343 esac
9344 else
9345 shlibpath_overrides_runpath=yes
9346 fi
9347 ;;
9348
9349os2*)
9350 libname_spec='$name'
9351 shrext_cmds=".dll"
9352 need_lib_prefix=no
9353 library_names_spec='$libname${shared_ext} $libname.a'
9354 dynamic_linker='OS/2 ld.exe'
9355 shlibpath_var=LIBPATH
9356 ;;
9357
9358osf3* | osf4* | osf5*)
9359 version_type=osf
9360 need_lib_prefix=no
9361 need_version=no
9362 soname_spec='${libname}${release}${shared_ext}$major'
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364 shlibpath_var=LD_LIBRARY_PATH
9365 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9366 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9367 ;;
9368
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009369solaris*)
9370 version_type=linux
9371 need_lib_prefix=no
9372 need_version=no
9373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9374 soname_spec='${libname}${release}${shared_ext}$major'
9375 shlibpath_var=LD_LIBRARY_PATH
9376 shlibpath_overrides_runpath=yes
9377 hardcode_into_libs=yes
9378 # ldd complains unless libraries are executable
9379 postinstall_cmds='chmod +x $lib'
9380 ;;
9381
9382sunos4*)
9383 version_type=sunos
9384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9386 shlibpath_var=LD_LIBRARY_PATH
9387 shlibpath_overrides_runpath=yes
9388 if test "$with_gnu_ld" = yes; then
9389 need_lib_prefix=no
9390 fi
9391 need_version=yes
9392 ;;
9393
Reid Spencera773bd52006-08-04 18:18:08 +00009394sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009395 version_type=linux
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 shlibpath_var=LD_LIBRARY_PATH
9399 case $host_vendor in
9400 sni)
9401 shlibpath_overrides_runpath=no
9402 need_lib_prefix=no
9403 export_dynamic_flag_spec='${wl}-Blargedynsym'
9404 runpath_var=LD_RUN_PATH
9405 ;;
9406 siemens)
9407 need_lib_prefix=no
9408 ;;
9409 motorola)
9410 need_lib_prefix=no
9411 need_version=no
9412 shlibpath_overrides_runpath=no
9413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9414 ;;
9415 esac
9416 ;;
9417
9418sysv4*MP*)
9419 if test -d /usr/nec ;then
9420 version_type=linux
9421 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9422 soname_spec='$libname${shared_ext}.$major'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 fi
9425 ;;
9426
Reid Spencera773bd52006-08-04 18:18:08 +00009427sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9428 version_type=freebsd-elf
9429 need_lib_prefix=no
9430 need_version=no
9431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9432 soname_spec='${libname}${release}${shared_ext}$major'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 hardcode_into_libs=yes
9435 if test "$with_gnu_ld" = yes; then
9436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9437 shlibpath_overrides_runpath=no
9438 else
9439 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9440 shlibpath_overrides_runpath=yes
9441 case $host_os in
9442 sco3.2v5*)
9443 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9444 ;;
9445 esac
9446 fi
9447 sys_lib_dlsearch_path_spec='/usr/lib'
9448 ;;
9449
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009450uts4*)
9451 version_type=linux
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9453 soname_spec='${libname}${release}${shared_ext}$major'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 ;;
9456
9457*)
9458 dynamic_linker=no
9459 ;;
9460esac
Reid Spencera773bd52006-08-04 18:18:08 +00009461{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9462echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009463test "$dynamic_linker" = no && can_build_shared=no
9464
Reid Spencera773bd52006-08-04 18:18:08 +00009465variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9466if test "$GCC" = yes; then
9467 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9468fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009469
Reid Spencera773bd52006-08-04 18:18:08 +00009470
9471{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9472echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009473if test "${libltdl_cv_shlibext+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475else
9476
9477module=yes
9478eval libltdl_cv_shlibext=$shrext_cmds
9479
9480fi
Reid Spencera773bd52006-08-04 18:18:08 +00009481{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9482echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009483if test -n "$libltdl_cv_shlibext"; then
9484
9485cat >>confdefs.h <<_ACEOF
9486#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9487_ACEOF
9488
9489fi
9490
9491
Reid Spencera773bd52006-08-04 18:18:08 +00009492{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9493echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009494if test "${libltdl_cv_shlibpath_var+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496else
9497 libltdl_cv_shlibpath_var="$shlibpath_var"
9498fi
Reid Spencera773bd52006-08-04 18:18:08 +00009499{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9500echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009501if test -n "$libltdl_cv_shlibpath_var"; then
9502
9503cat >>confdefs.h <<_ACEOF
9504#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9505_ACEOF
9506
9507fi
9508
9509
Reid Spencera773bd52006-08-04 18:18:08 +00009510{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9511echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512if test "${libltdl_cv_sys_search_path+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9516fi
Reid Spencera773bd52006-08-04 18:18:08 +00009517{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9518echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009519if test -n "$libltdl_cv_sys_search_path"; then
9520 sys_search_path=
9521 for dir in $libltdl_cv_sys_search_path; do
9522 if test -z "$sys_search_path"; then
9523 sys_search_path="$dir"
9524 else
9525 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9526 fi
9527 done
9528
9529cat >>confdefs.h <<_ACEOF
9530#define LTDL_SYSSEARCHPATH "$sys_search_path"
9531_ACEOF
9532
9533fi
9534
Reid Spencera773bd52006-08-04 18:18:08 +00009535{ echo "$as_me:$LINENO: checking for objdir" >&5
9536echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009537if test "${libltdl_cv_objdir+set}" = set; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9539else
9540 libltdl_cv_objdir="$objdir"
9541 if test -n "$objdir"; then
9542 :
9543 else
9544 rm -f .libs 2>/dev/null
9545 mkdir .libs 2>/dev/null
9546 if test -d .libs; then
9547 libltdl_cv_objdir=.libs
9548 else
9549 # MS-DOS does not allow filenames that begin with a dot.
9550 libltdl_cv_objdir=_libs
9551 fi
9552 rmdir .libs 2>/dev/null
9553 fi
9554
9555fi
Reid Spencera773bd52006-08-04 18:18:08 +00009556{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9557echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009558
9559cat >>confdefs.h <<_ACEOF
9560#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9561_ACEOF
9562
9563
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009564
9565
9566
9567
9568# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009569{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9570echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009571if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573else
9574
9575# These are sane defaults that work on at least a few old systems.
9576# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9577
9578# Character class describing NM global symbol codes.
9579symcode='[BCDEGRST]'
9580
9581# Regexp to match symbols that can be accessed directly from C.
9582sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9583
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009584# Transform an extracted symbol line into a proper C declaration
9585lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9586
9587# Transform an extracted symbol line into symbol name and symbol address
9588lt_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'"
9589
9590# Define system-specific variables.
9591case $host_os in
9592aix*)
9593 symcode='[BCDT]'
9594 ;;
9595cygwin* | mingw* | pw32*)
9596 symcode='[ABCDGISTW]'
9597 ;;
9598hpux*) # Its linker distinguishes data from code symbols
9599 if test "$host_cpu" = ia64; then
9600 symcode='[ABCDEGRST]'
9601 fi
9602 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9603 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'"
9604 ;;
9605linux*)
9606 if test "$host_cpu" = ia64; then
9607 symcode='[ABCDGIRSTW]'
9608 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9609 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'"
9610 fi
9611 ;;
9612irix* | nonstopux*)
9613 symcode='[BCDEGRST]'
9614 ;;
9615osf*)
9616 symcode='[BCDEGQRST]'
9617 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009618solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009619 symcode='[BDRT]'
9620 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009621sco3.2v5*)
9622 symcode='[DT]'
9623 ;;
9624sysv4.2uw2*)
9625 symcode='[DT]'
9626 ;;
9627sysv5* | sco5v6* | unixware* | OpenUNIX*)
9628 symcode='[ABDT]'
9629 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009630sysv4)
9631 symcode='[DFNSTU]'
9632 ;;
9633esac
9634
9635# Handle CRLF in mingw tool chain
9636opt_cr=
9637case $build_os in
9638mingw*)
9639 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9640 ;;
9641esac
9642
9643# If we're using GNU nm, then use its standard symbol codes.
9644case `$NM -V 2>&1` in
9645*GNU* | *'with BFD'*)
9646 symcode='[ABCDGIRSTW]' ;;
9647esac
9648
9649# Try without a prefix undercore, then with it.
9650for ac_symprfx in "" "_"; do
9651
Reid Spencera773bd52006-08-04 18:18:08 +00009652 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9653 symxfrm="\\1 $ac_symprfx\\2 \\2"
9654
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009655 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009656 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 +00009657
9658 # Check to see that the pipe works correctly.
9659 pipe_works=no
9660
9661 rm -f conftest*
9662 cat > conftest.$ac_ext <<EOF
9663#ifdef __cplusplus
9664extern "C" {
9665#endif
9666char nm_test_var;
9667void nm_test_func(){}
9668#ifdef __cplusplus
9669}
9670#endif
9671int main(){nm_test_var='a';nm_test_func();return(0);}
9672EOF
9673
9674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9675 (eval $ac_compile) 2>&5
9676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; then
9679 # Now try to grab the symbols.
9680 nlist=conftest.nm
9681 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9682 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9683 ac_status=$?
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } && test -s "$nlist"; then
9686 # Try sorting and uniquifying the output.
9687 if sort "$nlist" | uniq > "$nlist"T; then
9688 mv -f "$nlist"T "$nlist"
9689 else
9690 rm -f "$nlist"T
9691 fi
9692
9693 # Make sure that we snagged all the symbols we need.
9694 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9695 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9696 cat <<EOF > conftest.$ac_ext
9697#ifdef __cplusplus
9698extern "C" {
9699#endif
9700
9701EOF
9702 # Now generate the symbol file.
9703 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9704
9705 cat <<EOF >> conftest.$ac_ext
9706#if defined (__STDC__) && __STDC__
9707# define lt_ptr_t void *
9708#else
9709# define lt_ptr_t char *
9710# define const
9711#endif
9712
9713/* The mapping between symbol names and symbols. */
9714const struct {
9715 const char *name;
9716 lt_ptr_t address;
9717}
9718lt_preloaded_symbols[] =
9719{
9720EOF
9721 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9722 cat <<\EOF >> conftest.$ac_ext
9723 {0, (lt_ptr_t) 0}
9724};
9725
9726#ifdef __cplusplus
9727}
9728#endif
9729EOF
9730 # Now try linking the two files.
9731 mv conftest.$ac_objext conftstm.$ac_objext
9732 lt_save_LIBS="$LIBS"
9733 lt_save_CFLAGS="$CFLAGS"
9734 LIBS="conftstm.$ac_objext"
9735 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9741 pipe_works=yes
9742 fi
9743 LIBS="$lt_save_LIBS"
9744 CFLAGS="$lt_save_CFLAGS"
9745 else
9746 echo "cannot find nm_test_func in $nlist" >&5
9747 fi
9748 else
9749 echo "cannot find nm_test_var in $nlist" >&5
9750 fi
9751 else
9752 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9753 fi
9754 else
9755 echo "$progname: failed program was:" >&5
9756 cat conftest.$ac_ext >&5
9757 fi
9758 rm -f conftest* conftst*
9759
9760 # Do not use the global_symbol_pipe unless it works.
9761 if test "$pipe_works" = yes; then
9762 break
9763 else
9764 lt_cv_sys_global_symbol_pipe=
9765 fi
9766done
9767
9768fi
9769
9770if test -z "$lt_cv_sys_global_symbol_pipe"; then
9771 lt_cv_sys_global_symbol_to_cdecl=
9772fi
9773if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009774 { echo "$as_me:$LINENO: result: failed" >&5
9775echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009776else
Reid Spencera773bd52006-08-04 18:18:08 +00009777 { echo "$as_me:$LINENO: result: ok" >&5
9778echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009779fi
9780
9781
Reid Spencera773bd52006-08-04 18:18:08 +00009782{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9783echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009784if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9786else
9787 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9788 libltdl_cv_preloaded_symbols=yes
9789 else
9790 libltdl_cv_preloaded_symbols=no
9791 fi
9792
9793fi
Reid Spencera773bd52006-08-04 18:18:08 +00009794{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9795echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009796if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9797
9798cat >>confdefs.h <<\_ACEOF
9799#define HAVE_PRELOADED_SYMBOLS 1
9800_ACEOF
9801
9802fi
9803
9804LIBADD_DL=
9805
9806ac_ext=c
9807ac_cpp='$CPP $CPPFLAGS'
9808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9810ac_compiler_gnu=$ac_cv_c_compiler_gnu
9811
9812
Reid Spencera773bd52006-08-04 18:18:08 +00009813{ echo "$as_me:$LINENO: checking for shl_load" >&5
9814echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009815if test "${ac_cv_func_shl_load+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817else
9818 cat >conftest.$ac_ext <<_ACEOF
9819/* confdefs.h. */
9820_ACEOF
9821cat confdefs.h >>conftest.$ac_ext
9822cat >>conftest.$ac_ext <<_ACEOF
9823/* end confdefs.h. */
9824/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9826#define shl_load innocuous_shl_load
9827
9828/* System header to define __stub macros and hopefully few prototypes,
9829 which can conflict with char shl_load (); below.
9830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9831 <limits.h> exists even on freestanding compilers. */
9832
9833#ifdef __STDC__
9834# include <limits.h>
9835#else
9836# include <assert.h>
9837#endif
9838
9839#undef shl_load
9840
Reid Spencera773bd52006-08-04 18:18:08 +00009841/* Override any GCC internal prototype to avoid an error.
9842 Use char because int might match the return type of a GCC
9843 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009844#ifdef __cplusplus
9845extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009846#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009847char shl_load ();
9848/* The GNU C library defines this for functions which it implements
9849 to always fail with ENOSYS. Some functions are actually named
9850 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009851#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853#endif
9854
9855int
9856main ()
9857{
Reid Spencera773bd52006-08-04 18:18:08 +00009858return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009859 ;
9860 return 0;
9861}
9862_ACEOF
9863rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009864if { (ac_try="$ac_link"
9865case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868esac
9869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009876 (exit $ac_status); } &&
9877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9887 { ac_try='test -s conftest$ac_exeext'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9891esac
9892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9894 ac_status=$?
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897 ac_cv_func_shl_load=yes
9898else
9899 echo "$as_me: failed program was:" >&5
9900sed 's/^/| /' conftest.$ac_ext >&5
9901
Reid Spencera773bd52006-08-04 18:18:08 +00009902 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903fi
Reid Spencera773bd52006-08-04 18:18:08 +00009904
Bill Wendlingebcceee2009-04-18 11:20:33 +00009905rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009906 conftest$ac_exeext conftest.$ac_ext
9907fi
Reid Spencera773bd52006-08-04 18:18:08 +00009908{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9909echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009910if test $ac_cv_func_shl_load = yes; then
9911
9912cat >>confdefs.h <<\_ACEOF
9913#define HAVE_SHL_LOAD 1
9914_ACEOF
9915
9916else
Reid Spencera773bd52006-08-04 18:18:08 +00009917 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9918echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9920 echo $ECHO_N "(cached) $ECHO_C" >&6
9921else
9922 ac_check_lib_save_LIBS=$LIBS
9923LIBS="-ldld $LIBS"
9924cat >conftest.$ac_ext <<_ACEOF
9925/* confdefs.h. */
9926_ACEOF
9927cat confdefs.h >>conftest.$ac_ext
9928cat >>conftest.$ac_ext <<_ACEOF
9929/* end confdefs.h. */
9930
Reid Spencera773bd52006-08-04 18:18:08 +00009931/* Override any GCC internal prototype to avoid an error.
9932 Use char because int might match the return type of a GCC
9933 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009934#ifdef __cplusplus
9935extern "C"
9936#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009937char shl_load ();
9938int
9939main ()
9940{
Reid Spencera773bd52006-08-04 18:18:08 +00009941return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942 ;
9943 return 0;
9944}
9945_ACEOF
9946rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009947if { (ac_try="$ac_link"
9948case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951esac
9952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9961 { (case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964esac
9965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_try") 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; } &&
9970 { ac_try='test -s conftest$ac_exeext'
9971 { (case "(($ac_try" in
9972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973 *) ac_try_echo=$ac_try;;
9974esac
9975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976 (eval "$ac_try") 2>&5
9977 ac_status=$?
9978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009980 ac_cv_lib_dld_shl_load=yes
9981else
9982 echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
Reid Spencera773bd52006-08-04 18:18:08 +00009985 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009986fi
Reid Spencera773bd52006-08-04 18:18:08 +00009987
Bill Wendlingebcceee2009-04-18 11:20:33 +00009988rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009989 conftest$ac_exeext conftest.$ac_ext
9990LIBS=$ac_check_lib_save_LIBS
9991fi
Reid Spencera773bd52006-08-04 18:18:08 +00009992{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9993echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009994if test $ac_cv_lib_dld_shl_load = yes; then
9995
9996cat >>confdefs.h <<\_ACEOF
9997#define HAVE_SHL_LOAD 1
9998_ACEOF
9999
10000 LIBADD_DL="$LIBADD_DL -ldld"
10001else
Reid Spencera773bd52006-08-04 18:18:08 +000010002 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10003echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10006else
10007 ac_check_lib_save_LIBS=$LIBS
10008LIBS="-ldl $LIBS"
10009cat >conftest.$ac_ext <<_ACEOF
10010/* confdefs.h. */
10011_ACEOF
10012cat confdefs.h >>conftest.$ac_ext
10013cat >>conftest.$ac_ext <<_ACEOF
10014/* end confdefs.h. */
10015
Reid Spencera773bd52006-08-04 18:18:08 +000010016/* Override any GCC internal prototype to avoid an error.
10017 Use char because int might match the return type of a GCC
10018 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010019#ifdef __cplusplus
10020extern "C"
10021#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010022char dlopen ();
10023int
10024main ()
10025{
Reid Spencera773bd52006-08-04 18:18:08 +000010026return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027 ;
10028 return 0;
10029}
10030_ACEOF
10031rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010032if { (ac_try="$ac_link"
10033case "(($ac_try" in
10034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10035 *) ac_try_echo=$ac_try;;
10036esac
10037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10038 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010039 ac_status=$?
10040 grep -v '^ *+' conftest.er1 >conftest.err
10041 rm -f conftest.er1
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10046 { (case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049esac
10050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_try") 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest$ac_exeext'
10056 { (case "(($ac_try" in
10057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10058 *) ac_try_echo=$ac_try;;
10059esac
10060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10061 (eval "$ac_try") 2>&5
10062 ac_status=$?
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010065 ac_cv_lib_dl_dlopen=yes
10066else
10067 echo "$as_me: failed program was:" >&5
10068sed 's/^/| /' conftest.$ac_ext >&5
10069
Reid Spencera773bd52006-08-04 18:18:08 +000010070 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010071fi
Reid Spencera773bd52006-08-04 18:18:08 +000010072
Bill Wendlingebcceee2009-04-18 11:20:33 +000010073rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010074 conftest$ac_exeext conftest.$ac_ext
10075LIBS=$ac_check_lib_save_LIBS
10076fi
Reid Spencera773bd52006-08-04 18:18:08 +000010077{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10078echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010079if test $ac_cv_lib_dl_dlopen = yes; then
10080
10081cat >>confdefs.h <<\_ACEOF
10082#define HAVE_LIBDL 1
10083_ACEOF
10084
10085 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10086else
10087 cat >conftest.$ac_ext <<_ACEOF
10088/* confdefs.h. */
10089_ACEOF
10090cat confdefs.h >>conftest.$ac_ext
10091cat >>conftest.$ac_ext <<_ACEOF
10092/* end confdefs.h. */
10093#if HAVE_DLFCN_H
10094# include <dlfcn.h>
10095#endif
10096
10097int
10098main ()
10099{
10100dlopen(0, 0);
10101 ;
10102 return 0;
10103}
10104_ACEOF
10105rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010106if { (ac_try="$ac_link"
10107case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110esac
10111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010118 (exit $ac_status); } &&
10119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10120 { (case "(($ac_try" in
10121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10122 *) ac_try_echo=$ac_try;;
10123esac
10124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10125 (eval "$ac_try") 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; } &&
10129 { ac_try='test -s conftest$ac_exeext'
10130 { (case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133esac
10134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010139
10140cat >>confdefs.h <<\_ACEOF
10141#define HAVE_LIBDL 1
10142_ACEOF
10143 libltdl_cv_func_dlopen="yes"
10144else
10145 echo "$as_me: failed program was:" >&5
10146sed 's/^/| /' conftest.$ac_ext >&5
10147
Reid Spencera773bd52006-08-04 18:18:08 +000010148 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10149echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010150if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152else
10153 ac_check_lib_save_LIBS=$LIBS
10154LIBS="-lsvld $LIBS"
10155cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
10161
Reid Spencera773bd52006-08-04 18:18:08 +000010162/* Override any GCC internal prototype to avoid an error.
10163 Use char because int might match the return type of a GCC
10164 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010165#ifdef __cplusplus
10166extern "C"
10167#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168char dlopen ();
10169int
10170main ()
10171{
Reid Spencera773bd52006-08-04 18:18:08 +000010172return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010173 ;
10174 return 0;
10175}
10176_ACEOF
10177rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010178if { (ac_try="$ac_link"
10179case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10182esac
10183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010185 ac_status=$?
10186 grep -v '^ *+' conftest.er1 >conftest.err
10187 rm -f conftest.er1
10188 cat conftest.err >&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010190 (exit $ac_status); } &&
10191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10192 { (case "(($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_try") 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205esac
10206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_try") 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010211 ac_cv_lib_svld_dlopen=yes
10212else
10213 echo "$as_me: failed program was:" >&5
10214sed 's/^/| /' conftest.$ac_ext >&5
10215
Reid Spencera773bd52006-08-04 18:18:08 +000010216 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010217fi
Reid Spencera773bd52006-08-04 18:18:08 +000010218
Bill Wendlingebcceee2009-04-18 11:20:33 +000010219rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010220 conftest$ac_exeext conftest.$ac_ext
10221LIBS=$ac_check_lib_save_LIBS
10222fi
Reid Spencera773bd52006-08-04 18:18:08 +000010223{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10224echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225if test $ac_cv_lib_svld_dlopen = yes; then
10226
10227cat >>confdefs.h <<\_ACEOF
10228#define HAVE_LIBDL 1
10229_ACEOF
10230
10231 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10232else
Reid Spencera773bd52006-08-04 18:18:08 +000010233 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10234echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010235if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10237else
10238 ac_check_lib_save_LIBS=$LIBS
10239LIBS="-ldld $LIBS"
10240cat >conftest.$ac_ext <<_ACEOF
10241/* confdefs.h. */
10242_ACEOF
10243cat confdefs.h >>conftest.$ac_ext
10244cat >>conftest.$ac_ext <<_ACEOF
10245/* end confdefs.h. */
10246
Reid Spencera773bd52006-08-04 18:18:08 +000010247/* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010250#ifdef __cplusplus
10251extern "C"
10252#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010253char dld_link ();
10254int
10255main ()
10256{
Reid Spencera773bd52006-08-04 18:18:08 +000010257return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010258 ;
10259 return 0;
10260}
10261_ACEOF
10262rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010263if { (ac_try="$ac_link"
10264case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267esac
10268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010270 ac_status=$?
10271 grep -v '^ *+' conftest.er1 >conftest.err
10272 rm -f conftest.er1
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010275 (exit $ac_status); } &&
10276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10277 { (case "(($ac_try" in
10278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279 *) ac_try_echo=$ac_try;;
10280esac
10281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282 (eval "$ac_try") 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }; } &&
10286 { ac_try='test -s conftest$ac_exeext'
10287 { (case "(($ac_try" in
10288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10289 *) ac_try_echo=$ac_try;;
10290esac
10291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10292 (eval "$ac_try") 2>&5
10293 ac_status=$?
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010296 ac_cv_lib_dld_dld_link=yes
10297else
10298 echo "$as_me: failed program was:" >&5
10299sed 's/^/| /' conftest.$ac_ext >&5
10300
Reid Spencera773bd52006-08-04 18:18:08 +000010301 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010302fi
Reid Spencera773bd52006-08-04 18:18:08 +000010303
Bill Wendlingebcceee2009-04-18 11:20:33 +000010304rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305 conftest$ac_exeext conftest.$ac_ext
10306LIBS=$ac_check_lib_save_LIBS
10307fi
Reid Spencera773bd52006-08-04 18:18:08 +000010308{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10309echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010310if test $ac_cv_lib_dld_dld_link = yes; then
10311
10312cat >>confdefs.h <<\_ACEOF
10313#define HAVE_DLD 1
10314_ACEOF
10315
10316 LIBADD_DL="$LIBADD_DL -ldld"
10317else
Reid Spencera773bd52006-08-04 18:18:08 +000010318 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10319echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010320if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10322else
10323 cat >conftest.$ac_ext <<_ACEOF
10324/* confdefs.h. */
10325_ACEOF
10326cat confdefs.h >>conftest.$ac_ext
10327cat >>conftest.$ac_ext <<_ACEOF
10328/* end confdefs.h. */
10329/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10331#define _dyld_func_lookup innocuous__dyld_func_lookup
10332
10333/* System header to define __stub macros and hopefully few prototypes,
10334 which can conflict with char _dyld_func_lookup (); below.
10335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10336 <limits.h> exists even on freestanding compilers. */
10337
10338#ifdef __STDC__
10339# include <limits.h>
10340#else
10341# include <assert.h>
10342#endif
10343
10344#undef _dyld_func_lookup
10345
Reid Spencera773bd52006-08-04 18:18:08 +000010346/* Override any GCC internal prototype to avoid an error.
10347 Use char because int might match the return type of a GCC
10348 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010349#ifdef __cplusplus
10350extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010351#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010352char _dyld_func_lookup ();
10353/* The GNU C library defines this for functions which it implements
10354 to always fail with ENOSYS. Some functions are actually named
10355 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010356#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358#endif
10359
10360int
10361main ()
10362{
Reid Spencera773bd52006-08-04 18:18:08 +000010363return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010364 ;
10365 return 0;
10366}
10367_ACEOF
10368rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010369if { (ac_try="$ac_link"
10370case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10373esac
10374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010381 (exit $ac_status); } &&
10382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10383 { (case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10386esac
10387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_try") 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; } &&
10392 { ac_try='test -s conftest$ac_exeext'
10393 { (case "(($ac_try" in
10394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395 *) ac_try_echo=$ac_try;;
10396esac
10397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10398 (eval "$ac_try") 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402 ac_cv_func__dyld_func_lookup=yes
10403else
10404 echo "$as_me: failed program was:" >&5
10405sed 's/^/| /' conftest.$ac_ext >&5
10406
Reid Spencera773bd52006-08-04 18:18:08 +000010407 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408fi
Reid Spencera773bd52006-08-04 18:18:08 +000010409
Bill Wendlingebcceee2009-04-18 11:20:33 +000010410rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010411 conftest$ac_exeext conftest.$ac_ext
10412fi
Reid Spencera773bd52006-08-04 18:18:08 +000010413{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10414echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415if test $ac_cv_func__dyld_func_lookup = yes; then
10416
10417cat >>confdefs.h <<\_ACEOF
10418#define HAVE_DYLD 1
10419_ACEOF
10420
10421fi
10422
10423
10424fi
10425
10426
10427fi
10428
10429
10430fi
Reid Spencera773bd52006-08-04 18:18:08 +000010431
Bill Wendlingebcceee2009-04-18 11:20:33 +000010432rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010433 conftest$ac_exeext conftest.$ac_ext
10434
10435fi
10436
10437
10438fi
10439
10440
10441fi
10442
10443
10444if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10445then
10446 lt_save_LIBS="$LIBS"
10447 LIBS="$LIBS $LIBADD_DL"
10448
10449for ac_func in dlerror
10450do
10451as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010452{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10453echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10454if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010455 echo $ECHO_N "(cached) $ECHO_C" >&6
10456else
10457 cat >conftest.$ac_ext <<_ACEOF
10458/* confdefs.h. */
10459_ACEOF
10460cat confdefs.h >>conftest.$ac_ext
10461cat >>conftest.$ac_ext <<_ACEOF
10462/* end confdefs.h. */
10463/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10465#define $ac_func innocuous_$ac_func
10466
10467/* System header to define __stub macros and hopefully few prototypes,
10468 which can conflict with char $ac_func (); below.
10469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10470 <limits.h> exists even on freestanding compilers. */
10471
10472#ifdef __STDC__
10473# include <limits.h>
10474#else
10475# include <assert.h>
10476#endif
10477
10478#undef $ac_func
10479
Reid Spencera773bd52006-08-04 18:18:08 +000010480/* Override any GCC internal prototype to avoid an error.
10481 Use char because int might match the return type of a GCC
10482 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010483#ifdef __cplusplus
10484extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010485#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010486char $ac_func ();
10487/* The GNU C library defines this for functions which it implements
10488 to always fail with ENOSYS. Some functions are actually named
10489 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010490#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010492#endif
10493
10494int
10495main ()
10496{
Reid Spencera773bd52006-08-04 18:18:08 +000010497return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498 ;
10499 return 0;
10500}
10501_ACEOF
10502rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010503if { (ac_try="$ac_link"
10504case "(($ac_try" in
10505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10506 *) ac_try_echo=$ac_try;;
10507esac
10508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10509 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010510 ac_status=$?
10511 grep -v '^ *+' conftest.er1 >conftest.err
10512 rm -f conftest.er1
10513 cat conftest.err >&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010515 (exit $ac_status); } &&
10516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10517 { (case "(($ac_try" in
10518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519 *) ac_try_echo=$ac_try;;
10520esac
10521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522 (eval "$ac_try") 2>&5
10523 ac_status=$?
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); }; } &&
10526 { ac_try='test -s conftest$ac_exeext'
10527 { (case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10530esac
10531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_try") 2>&5
10533 ac_status=$?
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010536 eval "$as_ac_var=yes"
10537else
10538 echo "$as_me: failed program was:" >&5
10539sed 's/^/| /' conftest.$ac_ext >&5
10540
Reid Spencera773bd52006-08-04 18:18:08 +000010541 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010542fi
Reid Spencera773bd52006-08-04 18:18:08 +000010543
Bill Wendlingebcceee2009-04-18 11:20:33 +000010544rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010545 conftest$ac_exeext conftest.$ac_ext
10546fi
Reid Spencera773bd52006-08-04 18:18:08 +000010547ac_res=`eval echo '${'$as_ac_var'}'`
10548 { echo "$as_me:$LINENO: result: $ac_res" >&5
10549echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010550if test `eval echo '${'$as_ac_var'}'` = yes; then
10551 cat >>confdefs.h <<_ACEOF
10552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10553_ACEOF
10554
10555fi
10556done
10557
10558 LIBS="$lt_save_LIBS"
10559fi
10560ac_ext=c
10561ac_cpp='$CPP $CPPFLAGS'
10562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10564ac_compiler_gnu=$ac_cv_c_compiler_gnu
10565
10566
10567
Reid Spencera773bd52006-08-04 18:18:08 +000010568{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10569echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010570if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10572else
10573 ac_cv_sys_symbol_underscore=no
10574 cat > conftest.$ac_ext <<EOF
10575void nm_test_func(){}
10576int main(){nm_test_func;return 0;}
10577EOF
10578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579 (eval $ac_compile) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; then
10583 # Now try to grab the symbols.
10584 ac_nlist=conftest.nm
10585 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10586 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } && test -s "$ac_nlist"; then
10590 # See whether the symbols have a leading underscore.
10591 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10592 ac_cv_sys_symbol_underscore=yes
10593 else
10594 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10595 :
10596 else
10597 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10598 fi
10599 fi
10600 else
10601 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10602 fi
10603 else
10604 echo "configure: failed program was:" >&5
10605 cat conftest.c >&5
10606 fi
10607 rm -rf conftest*
10608
10609fi
Reid Spencera773bd52006-08-04 18:18:08 +000010610{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10611echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010612
10613
10614if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10615 if test x"$libltdl_cv_func_dlopen" = xyes ||
10616 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010617 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10618echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619if test "${libltdl_cv_need_uscore+set}" = set; then
10620 echo $ECHO_N "(cached) $ECHO_C" >&6
10621else
10622 libltdl_cv_need_uscore=unknown
10623 save_LIBS="$LIBS"
10624 LIBS="$LIBS $LIBADD_DL"
10625 if test "$cross_compiling" = yes; then :
10626 libltdl_cv_need_uscore=cross
10627else
10628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10629 lt_status=$lt_dlunknown
10630 cat > conftest.$ac_ext <<EOF
Douglas Gregor0711c302009-06-17 00:43:20 +000010631#line 10631 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010632#include "confdefs.h"
10633
10634#if HAVE_DLFCN_H
10635#include <dlfcn.h>
10636#endif
10637
10638#include <stdio.h>
10639
10640#ifdef RTLD_GLOBAL
10641# define LT_DLGLOBAL RTLD_GLOBAL
10642#else
10643# ifdef DL_GLOBAL
10644# define LT_DLGLOBAL DL_GLOBAL
10645# else
10646# define LT_DLGLOBAL 0
10647# endif
10648#endif
10649
10650/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10651 find out it does not work in some platform. */
10652#ifndef LT_DLLAZY_OR_NOW
10653# ifdef RTLD_LAZY
10654# define LT_DLLAZY_OR_NOW RTLD_LAZY
10655# else
10656# ifdef DL_LAZY
10657# define LT_DLLAZY_OR_NOW DL_LAZY
10658# else
10659# ifdef RTLD_NOW
10660# define LT_DLLAZY_OR_NOW RTLD_NOW
10661# else
10662# ifdef DL_NOW
10663# define LT_DLLAZY_OR_NOW DL_NOW
10664# else
10665# define LT_DLLAZY_OR_NOW 0
10666# endif
10667# endif
10668# endif
10669# endif
10670#endif
10671
10672#ifdef __cplusplus
10673extern "C" void exit (int);
10674#endif
10675
10676void fnord() { int i=42;}
10677int main ()
10678{
10679 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10680 int status = $lt_dlunknown;
10681
10682 if (self)
10683 {
10684 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10685 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10686 /* dlclose (self); */
10687 }
Reid Spencera773bd52006-08-04 18:18:08 +000010688 else
10689 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690
10691 exit (status);
10692}
10693EOF
10694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010699 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010700 lt_status=$?
10701 case x$lt_status in
10702 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10703 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010704 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010705 esac
10706 else :
10707 # compilation failed
10708
10709 fi
10710fi
10711rm -fr conftest*
10712
10713 LIBS="$save_LIBS"
10714
10715fi
Reid Spencera773bd52006-08-04 18:18:08 +000010716{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10717echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718 fi
10719fi
10720
10721if test x"$libltdl_cv_need_uscore" = xyes; then
10722
10723cat >>confdefs.h <<\_ACEOF
10724#define NEED_USCORE 1
10725_ACEOF
10726
10727fi
10728
10729
Reid Spencera773bd52006-08-04 18:18:08 +000010730{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10731echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010732if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10734else
10735 # PORTME does your system automatically load deplibs for dlopen?
10736 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10737 # For now, we just catch OSes we know something about -- in the
10738 # future, we'll try test this programmatically.
10739 libltdl_cv_sys_dlopen_deplibs=unknown
10740 case "$host_os" in
10741 aix3*|aix4.1.*|aix4.2.*)
10742 # Unknown whether this is true for these versions of AIX, but
10743 # we want this `case' here to explicitly catch those versions.
10744 libltdl_cv_sys_dlopen_deplibs=unknown
10745 ;;
10746 aix[45]*)
10747 libltdl_cv_sys_dlopen_deplibs=yes
10748 ;;
10749 darwin*)
10750 # Assuming the user has installed a libdl from somewhere, this is true
10751 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10752 libltdl_cv_sys_dlopen_deplibs=yes
10753 ;;
10754 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10755 # GNU and its variants, using gnu ld.so (Glibc)
10756 libltdl_cv_sys_dlopen_deplibs=yes
10757 ;;
10758 hpux10*|hpux11*)
10759 libltdl_cv_sys_dlopen_deplibs=yes
10760 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010761 interix*)
10762 libltdl_cv_sys_dlopen_deplibs=yes
10763 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010764 irix[12345]*|irix6.[01]*)
10765 # Catch all versions of IRIX before 6.2, and indicate that we don't
10766 # know how it worked for any of those versions.
10767 libltdl_cv_sys_dlopen_deplibs=unknown
10768 ;;
10769 irix*)
10770 # The case above catches anything before 6.2, and it's known that
10771 # at 6.2 and later dlopen does load deplibs.
10772 libltdl_cv_sys_dlopen_deplibs=yes
10773 ;;
10774 netbsd*)
10775 libltdl_cv_sys_dlopen_deplibs=yes
10776 ;;
10777 openbsd*)
10778 libltdl_cv_sys_dlopen_deplibs=yes
10779 ;;
10780 osf[1234]*)
10781 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10782 # it did *not* use an RPATH in a shared library to find objects the
10783 # library depends on, so we explictly say `no'.
10784 libltdl_cv_sys_dlopen_deplibs=no
10785 ;;
10786 osf5.0|osf5.0a|osf5.1)
10787 # dlopen *does* load deplibs and with the right loader patch applied
10788 # it even uses RPATH in a shared library to search for shared objects
10789 # that the library depends on, but there's no easy way to know if that
10790 # patch is installed. Since this is the case, all we can really
10791 # say is unknown -- it depends on the patch being installed. If
10792 # it is, this changes to `yes'. Without it, it would be `no'.
10793 libltdl_cv_sys_dlopen_deplibs=unknown
10794 ;;
10795 osf*)
10796 # the two cases above should catch all versions of osf <= 5.1. Read
10797 # the comments above for what we know about them.
10798 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10799 # is used to find them so we can finally say `yes'.
10800 libltdl_cv_sys_dlopen_deplibs=yes
10801 ;;
10802 solaris*)
10803 libltdl_cv_sys_dlopen_deplibs=yes
10804 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010805 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10806 libltdl_cv_sys_dlopen_deplibs=yes
10807 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010808 esac
10809
10810fi
Reid Spencera773bd52006-08-04 18:18:08 +000010811{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10812echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010813if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10814
10815cat >>confdefs.h <<\_ACEOF
10816#define LTDL_DLOPEN_DEPLIBS 1
10817_ACEOF
10818
10819fi
10820
10821
10822for ac_header in argz.h
10823do
10824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010825if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830fi
Reid Spencera773bd52006-08-04 18:18:08 +000010831ac_res=`eval echo '${'$as_ac_Header'}'`
10832 { echo "$as_me:$LINENO: result: $ac_res" >&5
10833echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834else
10835 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010836{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010838cat >conftest.$ac_ext <<_ACEOF
10839/* confdefs.h. */
10840_ACEOF
10841cat confdefs.h >>conftest.$ac_ext
10842cat >>conftest.$ac_ext <<_ACEOF
10843/* end confdefs.h. */
10844$ac_includes_default
10845#include <$ac_header>
10846_ACEOF
10847rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010848if { (ac_try="$ac_compile"
10849case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10852esac
10853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010855 ac_status=$?
10856 grep -v '^ *+' conftest.er1 >conftest.err
10857 rm -f conftest.er1
10858 cat conftest.err >&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010860 (exit $ac_status); } &&
10861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10862 { (case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865esac
10866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_try") 2>&5
10868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; } &&
10871 { ac_try='test -s conftest.$ac_objext'
10872 { (case "(($ac_try" in
10873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10875esac
10876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_try") 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010881 ac_header_compiler=yes
10882else
10883 echo "$as_me: failed program was:" >&5
10884sed 's/^/| /' conftest.$ac_ext >&5
10885
Reid Spencera773bd52006-08-04 18:18:08 +000010886 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010887fi
Reid Spencera773bd52006-08-04 18:18:08 +000010888
10889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10890{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10891echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892
10893# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010894{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10895echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010896cat >conftest.$ac_ext <<_ACEOF
10897/* confdefs.h. */
10898_ACEOF
10899cat confdefs.h >>conftest.$ac_ext
10900cat >>conftest.$ac_ext <<_ACEOF
10901/* end confdefs.h. */
10902#include <$ac_header>
10903_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010904if { (ac_try="$ac_cpp conftest.$ac_ext"
10905case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10908esac
10909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010916 (exit $ac_status); } >/dev/null; then
10917 if test -s conftest.err; then
10918 ac_cpp_err=$ac_c_preproc_warn_flag
10919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10920 else
10921 ac_cpp_err=
10922 fi
10923else
10924 ac_cpp_err=yes
10925fi
10926if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010927 ac_header_preproc=yes
10928else
10929 echo "$as_me: failed program was:" >&5
10930sed 's/^/| /' conftest.$ac_ext >&5
10931
10932 ac_header_preproc=no
10933fi
Reid Spencera773bd52006-08-04 18:18:08 +000010934
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010935rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010936{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10937echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010938
10939# So? What about this header?
10940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10941 yes:no: )
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10945echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10946 ac_header_preproc=yes
10947 ;;
10948 no:yes:* )
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10950echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10952echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10954echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10956echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10958echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10960echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010961 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010962## ----------------------------------- ##
10963## Report this to llvmbugs@cs.uiuc.edu ##
10964## ----------------------------------- ##
10965_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010966 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967 ;;
10968esac
Reid Spencera773bd52006-08-04 18:18:08 +000010969{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010972 echo $ECHO_N "(cached) $ECHO_C" >&6
10973else
10974 eval "$as_ac_Header=\$ac_header_preproc"
10975fi
Reid Spencera773bd52006-08-04 18:18:08 +000010976ac_res=`eval echo '${'$as_ac_Header'}'`
10977 { echo "$as_me:$LINENO: result: $ac_res" >&5
10978echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979
10980fi
10981if test `eval echo '${'$as_ac_Header'}'` = yes; then
10982 cat >>confdefs.h <<_ACEOF
10983#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10984_ACEOF
10985
10986fi
10987
10988done
10989
10990
Reid Spencera773bd52006-08-04 18:18:08 +000010991{ echo "$as_me:$LINENO: checking for error_t" >&5
10992echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010993if test "${ac_cv_type_error_t+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995else
10996 cat >conftest.$ac_ext <<_ACEOF
10997/* confdefs.h. */
10998_ACEOF
10999cat confdefs.h >>conftest.$ac_ext
11000cat >>conftest.$ac_ext <<_ACEOF
11001/* end confdefs.h. */
11002#if HAVE_ARGZ_H
11003# include <argz.h>
11004#endif
11005
Reid Spencera773bd52006-08-04 18:18:08 +000011006typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011007int
11008main ()
11009{
Reid Spencera773bd52006-08-04 18:18:08 +000011010if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011011 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011012if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011013 return 0;
11014 ;
11015 return 0;
11016}
11017_ACEOF
11018rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011019if { (ac_try="$ac_compile"
11020case "(($ac_try" in
11021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022 *) ac_try_echo=$ac_try;;
11023esac
11024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011026 ac_status=$?
11027 grep -v '^ *+' conftest.er1 >conftest.err
11028 rm -f conftest.er1
11029 cat conftest.err >&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011031 (exit $ac_status); } &&
11032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11033 { (case "(($ac_try" in
11034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035 *) ac_try_echo=$ac_try;;
11036esac
11037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038 (eval "$ac_try") 2>&5
11039 ac_status=$?
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); }; } &&
11042 { ac_try='test -s conftest.$ac_objext'
11043 { (case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046esac
11047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_try") 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011052 ac_cv_type_error_t=yes
11053else
11054 echo "$as_me: failed program was:" >&5
11055sed 's/^/| /' conftest.$ac_ext >&5
11056
Reid Spencera773bd52006-08-04 18:18:08 +000011057 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011058fi
Reid Spencera773bd52006-08-04 18:18:08 +000011059
11060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061fi
Reid Spencera773bd52006-08-04 18:18:08 +000011062{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11063echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011064if test $ac_cv_type_error_t = yes; then
11065
11066cat >>confdefs.h <<_ACEOF
11067#define HAVE_ERROR_T 1
11068_ACEOF
11069
11070
11071else
11072
11073cat >>confdefs.h <<\_ACEOF
11074#define error_t int
11075_ACEOF
11076
11077fi
11078
11079
11080
11081
11082
11083
11084
11085for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11086do
11087as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011088{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11089echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11090if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092else
11093 cat >conftest.$ac_ext <<_ACEOF
11094/* confdefs.h. */
11095_ACEOF
11096cat confdefs.h >>conftest.$ac_ext
11097cat >>conftest.$ac_ext <<_ACEOF
11098/* end confdefs.h. */
11099/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11101#define $ac_func innocuous_$ac_func
11102
11103/* System header to define __stub macros and hopefully few prototypes,
11104 which can conflict with char $ac_func (); below.
11105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11106 <limits.h> exists even on freestanding compilers. */
11107
11108#ifdef __STDC__
11109# include <limits.h>
11110#else
11111# include <assert.h>
11112#endif
11113
11114#undef $ac_func
11115
Reid Spencera773bd52006-08-04 18:18:08 +000011116/* Override any GCC internal prototype to avoid an error.
11117 Use char because int might match the return type of a GCC
11118 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011119#ifdef __cplusplus
11120extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011121#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011122char $ac_func ();
11123/* The GNU C library defines this for functions which it implements
11124 to always fail with ENOSYS. Some functions are actually named
11125 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011126#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011127choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011128#endif
11129
11130int
11131main ()
11132{
Reid Spencera773bd52006-08-04 18:18:08 +000011133return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011134 ;
11135 return 0;
11136}
11137_ACEOF
11138rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011139if { (ac_try="$ac_link"
11140case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11143esac
11144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011146 ac_status=$?
11147 grep -v '^ *+' conftest.er1 >conftest.err
11148 rm -f conftest.er1
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011151 (exit $ac_status); } &&
11152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11153 { (case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11156esac
11157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_try") 2>&5
11159 ac_status=$?
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; } &&
11162 { ac_try='test -s conftest$ac_exeext'
11163 { (case "(($ac_try" in
11164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11165 *) ac_try_echo=$ac_try;;
11166esac
11167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11168 (eval "$ac_try") 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011172 eval "$as_ac_var=yes"
11173else
11174 echo "$as_me: failed program was:" >&5
11175sed 's/^/| /' conftest.$ac_ext >&5
11176
Reid Spencera773bd52006-08-04 18:18:08 +000011177 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011178fi
Reid Spencera773bd52006-08-04 18:18:08 +000011179
Bill Wendlingebcceee2009-04-18 11:20:33 +000011180rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011181 conftest$ac_exeext conftest.$ac_ext
11182fi
Reid Spencera773bd52006-08-04 18:18:08 +000011183ac_res=`eval echo '${'$as_ac_var'}'`
11184 { echo "$as_me:$LINENO: result: $ac_res" >&5
11185echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011186if test `eval echo '${'$as_ac_var'}'` = yes; then
11187 cat >>confdefs.h <<_ACEOF
11188#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11189_ACEOF
11190
11191fi
11192done
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11222 stdio.h unistd.h
11223do
11224as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11227echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11228if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229 echo $ECHO_N "(cached) $ECHO_C" >&6
11230fi
Reid Spencera773bd52006-08-04 18:18:08 +000011231ac_res=`eval echo '${'$as_ac_Header'}'`
11232 { echo "$as_me:$LINENO: result: $ac_res" >&5
11233echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011234else
11235 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011236{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11237echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011238cat >conftest.$ac_ext <<_ACEOF
11239/* confdefs.h. */
11240_ACEOF
11241cat confdefs.h >>conftest.$ac_ext
11242cat >>conftest.$ac_ext <<_ACEOF
11243/* end confdefs.h. */
11244$ac_includes_default
11245#include <$ac_header>
11246_ACEOF
11247rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011248if { (ac_try="$ac_compile"
11249case "(($ac_try" in
11250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251 *) ac_try_echo=$ac_try;;
11252esac
11253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011255 ac_status=$?
11256 grep -v '^ *+' conftest.er1 >conftest.err
11257 rm -f conftest.er1
11258 cat conftest.err >&5
11259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011260 (exit $ac_status); } &&
11261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11262 { (case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11265esac
11266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_try") 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; } &&
11271 { ac_try='test -s conftest.$ac_objext'
11272 { (case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11275esac
11276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_try") 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011281 ac_header_compiler=yes
11282else
11283 echo "$as_me: failed program was:" >&5
11284sed 's/^/| /' conftest.$ac_ext >&5
11285
Reid Spencera773bd52006-08-04 18:18:08 +000011286 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011287fi
Reid Spencera773bd52006-08-04 18:18:08 +000011288
11289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11290{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11291echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292
11293# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011294{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011296cat >conftest.$ac_ext <<_ACEOF
11297/* confdefs.h. */
11298_ACEOF
11299cat confdefs.h >>conftest.$ac_ext
11300cat >>conftest.$ac_ext <<_ACEOF
11301/* end confdefs.h. */
11302#include <$ac_header>
11303_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011304if { (ac_try="$ac_cpp conftest.$ac_ext"
11305case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11308esac
11309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311 ac_status=$?
11312 grep -v '^ *+' conftest.er1 >conftest.err
11313 rm -f conftest.er1
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011316 (exit $ac_status); } >/dev/null; then
11317 if test -s conftest.err; then
11318 ac_cpp_err=$ac_c_preproc_warn_flag
11319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11320 else
11321 ac_cpp_err=
11322 fi
11323else
11324 ac_cpp_err=yes
11325fi
11326if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011327 ac_header_preproc=yes
11328else
11329 echo "$as_me: failed program was:" >&5
11330sed 's/^/| /' conftest.$ac_ext >&5
11331
11332 ac_header_preproc=no
11333fi
Reid Spencera773bd52006-08-04 18:18:08 +000011334
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011336{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11337echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338
11339# So? What about this header?
11340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11341 yes:no: )
11342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11343echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11345echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11346 ac_header_preproc=yes
11347 ;;
11348 no:yes:* )
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11350echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11352echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11354echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11356echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11358echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11360echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011361 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362## ----------------------------------- ##
11363## Report this to llvmbugs@cs.uiuc.edu ##
11364## ----------------------------------- ##
11365_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011366 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011367 ;;
11368esac
Reid Spencera773bd52006-08-04 18:18:08 +000011369{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373else
11374 eval "$as_ac_Header=\$ac_header_preproc"
11375fi
Reid Spencera773bd52006-08-04 18:18:08 +000011376ac_res=`eval echo '${'$as_ac_Header'}'`
11377 { echo "$as_me:$LINENO: result: $ac_res" >&5
11378echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011379
11380fi
11381if test `eval echo '${'$as_ac_Header'}'` = yes; then
11382 cat >>confdefs.h <<_ACEOF
11383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11384_ACEOF
11385
11386fi
11387
11388done
11389
11390
11391
11392
11393
11394for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11395do
11396as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011397if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11399echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11400if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402fi
Reid Spencera773bd52006-08-04 18:18:08 +000011403ac_res=`eval echo '${'$as_ac_Header'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011406else
11407 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011408{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011410cat >conftest.$ac_ext <<_ACEOF
11411/* confdefs.h. */
11412_ACEOF
11413cat confdefs.h >>conftest.$ac_ext
11414cat >>conftest.$ac_ext <<_ACEOF
11415/* end confdefs.h. */
11416$ac_includes_default
11417#include <$ac_header>
11418_ACEOF
11419rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011420if { (ac_try="$ac_compile"
11421case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11424esac
11425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011427 ac_status=$?
11428 grep -v '^ *+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011432 (exit $ac_status); } &&
11433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11434 { (case "(($ac_try" in
11435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436 *) ac_try_echo=$ac_try;;
11437esac
11438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439 (eval "$ac_try") 2>&5
11440 ac_status=$?
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; } &&
11443 { ac_try='test -s conftest.$ac_objext'
11444 { (case "(($ac_try" in
11445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11446 *) ac_try_echo=$ac_try;;
11447esac
11448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11449 (eval "$ac_try") 2>&5
11450 ac_status=$?
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011453 ac_header_compiler=yes
11454else
11455 echo "$as_me: failed program was:" >&5
11456sed 's/^/| /' conftest.$ac_ext >&5
11457
Reid Spencera773bd52006-08-04 18:18:08 +000011458 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011459fi
Reid Spencera773bd52006-08-04 18:18:08 +000011460
11461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11463echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011464
11465# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011466{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11467echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011468cat >conftest.$ac_ext <<_ACEOF
11469/* confdefs.h. */
11470_ACEOF
11471cat confdefs.h >>conftest.$ac_ext
11472cat >>conftest.$ac_ext <<_ACEOF
11473/* end confdefs.h. */
11474#include <$ac_header>
11475_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011476if { (ac_try="$ac_cpp conftest.$ac_ext"
11477case "(($ac_try" in
11478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11479 *) ac_try_echo=$ac_try;;
11480esac
11481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011483 ac_status=$?
11484 grep -v '^ *+' conftest.er1 >conftest.err
11485 rm -f conftest.er1
11486 cat conftest.err >&5
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011488 (exit $ac_status); } >/dev/null; then
11489 if test -s conftest.err; then
11490 ac_cpp_err=$ac_c_preproc_warn_flag
11491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11492 else
11493 ac_cpp_err=
11494 fi
11495else
11496 ac_cpp_err=yes
11497fi
11498if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011499 ac_header_preproc=yes
11500else
11501 echo "$as_me: failed program was:" >&5
11502sed 's/^/| /' conftest.$ac_ext >&5
11503
11504 ac_header_preproc=no
11505fi
Reid Spencera773bd52006-08-04 18:18:08 +000011506
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011507rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011508{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11509echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011510
11511# So? What about this header?
11512case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11513 yes:no: )
11514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11518 ac_header_preproc=yes
11519 ;;
11520 no:yes:* )
11521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11528echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011533 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011534## ----------------------------------- ##
11535## Report this to llvmbugs@cs.uiuc.edu ##
11536## ----------------------------------- ##
11537_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011538 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011539 ;;
11540esac
Reid Spencera773bd52006-08-04 18:18:08 +000011541{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11542echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011544 echo $ECHO_N "(cached) $ECHO_C" >&6
11545else
11546 eval "$as_ac_Header=\$ac_header_preproc"
11547fi
Reid Spencera773bd52006-08-04 18:18:08 +000011548ac_res=`eval echo '${'$as_ac_Header'}'`
11549 { echo "$as_me:$LINENO: result: $ac_res" >&5
11550echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551
11552fi
11553if test `eval echo '${'$as_ac_Header'}'` = yes; then
11554 cat >>confdefs.h <<_ACEOF
11555#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11556_ACEOF
11557
11558fi
11559
11560done
11561
11562
11563
11564for ac_header in string.h strings.h
11565do
11566as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11568 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11570if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011571 echo $ECHO_N "(cached) $ECHO_C" >&6
11572fi
Reid Spencera773bd52006-08-04 18:18:08 +000011573ac_res=`eval echo '${'$as_ac_Header'}'`
11574 { echo "$as_me:$LINENO: result: $ac_res" >&5
11575echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011576else
11577 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011578{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011580cat >conftest.$ac_ext <<_ACEOF
11581/* confdefs.h. */
11582_ACEOF
11583cat confdefs.h >>conftest.$ac_ext
11584cat >>conftest.$ac_ext <<_ACEOF
11585/* end confdefs.h. */
11586$ac_includes_default
11587#include <$ac_header>
11588_ACEOF
11589rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011590if { (ac_try="$ac_compile"
11591case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11594esac
11595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011597 ac_status=$?
11598 grep -v '^ *+' conftest.er1 >conftest.err
11599 rm -f conftest.er1
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011602 (exit $ac_status); } &&
11603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11604 { (case "(($ac_try" in
11605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11606 *) ac_try_echo=$ac_try;;
11607esac
11608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11609 (eval "$ac_try") 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; } &&
11613 { ac_try='test -s conftest.$ac_objext'
11614 { (case "(($ac_try" in
11615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616 *) ac_try_echo=$ac_try;;
11617esac
11618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619 (eval "$ac_try") 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011623 ac_header_compiler=yes
11624else
11625 echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
Reid Spencera773bd52006-08-04 18:18:08 +000011628 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011629fi
Reid Spencera773bd52006-08-04 18:18:08 +000011630
11631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11632{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11633echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011634
11635# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011636{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11637echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011638cat >conftest.$ac_ext <<_ACEOF
11639/* confdefs.h. */
11640_ACEOF
11641cat confdefs.h >>conftest.$ac_ext
11642cat >>conftest.$ac_ext <<_ACEOF
11643/* end confdefs.h. */
11644#include <$ac_header>
11645_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011646if { (ac_try="$ac_cpp conftest.$ac_ext"
11647case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650esac
11651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653 ac_status=$?
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011658 (exit $ac_status); } >/dev/null; then
11659 if test -s conftest.err; then
11660 ac_cpp_err=$ac_c_preproc_warn_flag
11661 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11662 else
11663 ac_cpp_err=
11664 fi
11665else
11666 ac_cpp_err=yes
11667fi
11668if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011669 ac_header_preproc=yes
11670else
11671 echo "$as_me: failed program was:" >&5
11672sed 's/^/| /' conftest.$ac_ext >&5
11673
11674 ac_header_preproc=no
11675fi
Reid Spencera773bd52006-08-04 18:18:08 +000011676
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011677rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011678{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11679echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011680
11681# So? What about this header?
11682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11683 yes:no: )
11684 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11685echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11687echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11688 ac_header_preproc=yes
11689 ;;
11690 no:yes:* )
11691 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11692echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11694echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11696echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11698echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11700echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11702echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011703 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011704## ----------------------------------- ##
11705## Report this to llvmbugs@cs.uiuc.edu ##
11706## ----------------------------------- ##
11707_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011708 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011709 ;;
11710esac
Reid Spencera773bd52006-08-04 18:18:08 +000011711{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11712echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11713if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011714 echo $ECHO_N "(cached) $ECHO_C" >&6
11715else
11716 eval "$as_ac_Header=\$ac_header_preproc"
11717fi
Reid Spencera773bd52006-08-04 18:18:08 +000011718ac_res=`eval echo '${'$as_ac_Header'}'`
11719 { echo "$as_me:$LINENO: result: $ac_res" >&5
11720echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011721
11722fi
11723if test `eval echo '${'$as_ac_Header'}'` = yes; then
11724 cat >>confdefs.h <<_ACEOF
11725#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11726_ACEOF
11727 break
11728fi
11729
11730done
11731
11732
11733
11734
11735for ac_func in strchr index
11736do
11737as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011738{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11739echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11740if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742else
11743 cat >conftest.$ac_ext <<_ACEOF
11744/* confdefs.h. */
11745_ACEOF
11746cat confdefs.h >>conftest.$ac_ext
11747cat >>conftest.$ac_ext <<_ACEOF
11748/* end confdefs.h. */
11749/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11751#define $ac_func innocuous_$ac_func
11752
11753/* System header to define __stub macros and hopefully few prototypes,
11754 which can conflict with char $ac_func (); below.
11755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756 <limits.h> exists even on freestanding compilers. */
11757
11758#ifdef __STDC__
11759# include <limits.h>
11760#else
11761# include <assert.h>
11762#endif
11763
11764#undef $ac_func
11765
Reid Spencera773bd52006-08-04 18:18:08 +000011766/* Override any GCC internal prototype to avoid an error.
11767 Use char because int might match the return type of a GCC
11768 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011769#ifdef __cplusplus
11770extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011771#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011772char $ac_func ();
11773/* The GNU C library defines this for functions which it implements
11774 to always fail with ENOSYS. Some functions are actually named
11775 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011776#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011777choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778#endif
11779
11780int
11781main ()
11782{
Reid Spencera773bd52006-08-04 18:18:08 +000011783return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784 ;
11785 return 0;
11786}
11787_ACEOF
11788rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011789if { (ac_try="$ac_link"
11790case "(($ac_try" in
11791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792 *) ac_try_echo=$ac_try;;
11793esac
11794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011801 (exit $ac_status); } &&
11802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11803 { (case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11806esac
11807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_try") 2>&5
11809 ac_status=$?
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); }; } &&
11812 { ac_try='test -s conftest$ac_exeext'
11813 { (case "(($ac_try" in
11814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815 *) ac_try_echo=$ac_try;;
11816esac
11817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818 (eval "$ac_try") 2>&5
11819 ac_status=$?
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822 eval "$as_ac_var=yes"
11823else
11824 echo "$as_me: failed program was:" >&5
11825sed 's/^/| /' conftest.$ac_ext >&5
11826
Reid Spencera773bd52006-08-04 18:18:08 +000011827 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011828fi
Reid Spencera773bd52006-08-04 18:18:08 +000011829
Bill Wendlingebcceee2009-04-18 11:20:33 +000011830rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011831 conftest$ac_exeext conftest.$ac_ext
11832fi
Reid Spencera773bd52006-08-04 18:18:08 +000011833ac_res=`eval echo '${'$as_ac_var'}'`
11834 { echo "$as_me:$LINENO: result: $ac_res" >&5
11835echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011836if test `eval echo '${'$as_ac_var'}'` = yes; then
11837 cat >>confdefs.h <<_ACEOF
11838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11839_ACEOF
11840 break
11841fi
11842done
11843
11844
11845
11846for ac_func in strrchr rindex
11847do
11848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011849{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11851if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011852 echo $ECHO_N "(cached) $ECHO_C" >&6
11853else
11854 cat >conftest.$ac_ext <<_ACEOF
11855/* confdefs.h. */
11856_ACEOF
11857cat confdefs.h >>conftest.$ac_ext
11858cat >>conftest.$ac_ext <<_ACEOF
11859/* end confdefs.h. */
11860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11862#define $ac_func innocuous_$ac_func
11863
11864/* System header to define __stub macros and hopefully few prototypes,
11865 which can conflict with char $ac_func (); below.
11866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867 <limits.h> exists even on freestanding compilers. */
11868
11869#ifdef __STDC__
11870# include <limits.h>
11871#else
11872# include <assert.h>
11873#endif
11874
11875#undef $ac_func
11876
Reid Spencera773bd52006-08-04 18:18:08 +000011877/* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011880#ifdef __cplusplus
11881extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011882#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011883char $ac_func ();
11884/* The GNU C library defines this for functions which it implements
11885 to always fail with ENOSYS. Some functions are actually named
11886 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011887#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011889#endif
11890
11891int
11892main ()
11893{
Reid Spencera773bd52006-08-04 18:18:08 +000011894return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011895 ;
11896 return 0;
11897}
11898_ACEOF
11899rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011900if { (ac_try="$ac_link"
11901case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904esac
11905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011907 ac_status=$?
11908 grep -v '^ *+' conftest.er1 >conftest.err
11909 rm -f conftest.er1
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914 { (case "(($ac_try" in
11915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11917esac
11918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_try") 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try='test -s conftest$ac_exeext'
11924 { (case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11927esac
11928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_try") 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011933 eval "$as_ac_var=yes"
11934else
11935 echo "$as_me: failed program was:" >&5
11936sed 's/^/| /' conftest.$ac_ext >&5
11937
Reid Spencera773bd52006-08-04 18:18:08 +000011938 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011939fi
Reid Spencera773bd52006-08-04 18:18:08 +000011940
Bill Wendlingebcceee2009-04-18 11:20:33 +000011941rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011942 conftest$ac_exeext conftest.$ac_ext
11943fi
Reid Spencera773bd52006-08-04 18:18:08 +000011944ac_res=`eval echo '${'$as_ac_var'}'`
11945 { echo "$as_me:$LINENO: result: $ac_res" >&5
11946echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011947if test `eval echo '${'$as_ac_var'}'` = yes; then
11948 cat >>confdefs.h <<_ACEOF
11949#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11950_ACEOF
11951 break
11952fi
11953done
11954
11955
11956
11957for ac_func in memcpy bcopy
11958do
11959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011960{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011963 echo $ECHO_N "(cached) $ECHO_C" >&6
11964else
11965 cat >conftest.$ac_ext <<_ACEOF
11966/* confdefs.h. */
11967_ACEOF
11968cat confdefs.h >>conftest.$ac_ext
11969cat >>conftest.$ac_ext <<_ACEOF
11970/* end confdefs.h. */
11971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11973#define $ac_func innocuous_$ac_func
11974
11975/* System header to define __stub macros and hopefully few prototypes,
11976 which can conflict with char $ac_func (); below.
11977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11978 <limits.h> exists even on freestanding compilers. */
11979
11980#ifdef __STDC__
11981# include <limits.h>
11982#else
11983# include <assert.h>
11984#endif
11985
11986#undef $ac_func
11987
Reid Spencera773bd52006-08-04 18:18:08 +000011988/* Override any GCC internal prototype to avoid an error.
11989 Use char because int might match the return type of a GCC
11990 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011991#ifdef __cplusplus
11992extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011993#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011994char $ac_func ();
11995/* The GNU C library defines this for functions which it implements
11996 to always fail with ENOSYS. Some functions are actually named
11997 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011998#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011999choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000#endif
12001
12002int
12003main ()
12004{
Reid Spencera773bd52006-08-04 18:18:08 +000012005return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012006 ;
12007 return 0;
12008}
12009_ACEOF
12010rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012011if { (ac_try="$ac_link"
12012case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12015esac
12016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012018 ac_status=$?
12019 grep -v '^ *+' conftest.er1 >conftest.err
12020 rm -f conftest.er1
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012023 (exit $ac_status); } &&
12024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12025 { (case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12028esac
12029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_try") 2>&5
12031 ac_status=$?
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); }; } &&
12034 { ac_try='test -s conftest$ac_exeext'
12035 { (case "(($ac_try" in
12036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037 *) ac_try_echo=$ac_try;;
12038esac
12039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040 (eval "$ac_try") 2>&5
12041 ac_status=$?
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012044 eval "$as_ac_var=yes"
12045else
12046 echo "$as_me: failed program was:" >&5
12047sed 's/^/| /' conftest.$ac_ext >&5
12048
Reid Spencera773bd52006-08-04 18:18:08 +000012049 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012050fi
Reid Spencera773bd52006-08-04 18:18:08 +000012051
Bill Wendlingebcceee2009-04-18 11:20:33 +000012052rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012053 conftest$ac_exeext conftest.$ac_ext
12054fi
Reid Spencera773bd52006-08-04 18:18:08 +000012055ac_res=`eval echo '${'$as_ac_var'}'`
12056 { echo "$as_me:$LINENO: result: $ac_res" >&5
12057echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058if test `eval echo '${'$as_ac_var'}'` = yes; then
12059 cat >>confdefs.h <<_ACEOF
12060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12061_ACEOF
12062 break
12063fi
12064done
12065
12066
12067
12068for ac_func in memmove strcmp
12069do
12070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012071{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12073if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075else
12076 cat >conftest.$ac_ext <<_ACEOF
12077/* confdefs.h. */
12078_ACEOF
12079cat confdefs.h >>conftest.$ac_ext
12080cat >>conftest.$ac_ext <<_ACEOF
12081/* end confdefs.h. */
12082/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12084#define $ac_func innocuous_$ac_func
12085
12086/* System header to define __stub macros and hopefully few prototypes,
12087 which can conflict with char $ac_func (); below.
12088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12089 <limits.h> exists even on freestanding compilers. */
12090
12091#ifdef __STDC__
12092# include <limits.h>
12093#else
12094# include <assert.h>
12095#endif
12096
12097#undef $ac_func
12098
Reid Spencera773bd52006-08-04 18:18:08 +000012099/* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012102#ifdef __cplusplus
12103extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012104#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012105char $ac_func ();
12106/* The GNU C library defines this for functions which it implements
12107 to always fail with ENOSYS. Some functions are actually named
12108 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012109#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012110choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012111#endif
12112
12113int
12114main ()
12115{
Reid Spencera773bd52006-08-04 18:18:08 +000012116return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012117 ;
12118 return 0;
12119}
12120_ACEOF
12121rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012122if { (ac_try="$ac_link"
12123case "(($ac_try" in
12124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12126esac
12127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012129 ac_status=$?
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012134 (exit $ac_status); } &&
12135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12136 { (case "(($ac_try" in
12137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12138 *) ac_try_echo=$ac_try;;
12139esac
12140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12141 (eval "$ac_try") 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); }; } &&
12145 { ac_try='test -s conftest$ac_exeext'
12146 { (case "(($ac_try" in
12147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12148 *) ac_try_echo=$ac_try;;
12149esac
12150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12151 (eval "$ac_try") 2>&5
12152 ac_status=$?
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012155 eval "$as_ac_var=yes"
12156else
12157 echo "$as_me: failed program was:" >&5
12158sed 's/^/| /' conftest.$ac_ext >&5
12159
Reid Spencera773bd52006-08-04 18:18:08 +000012160 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012161fi
Reid Spencera773bd52006-08-04 18:18:08 +000012162
Bill Wendlingebcceee2009-04-18 11:20:33 +000012163rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012164 conftest$ac_exeext conftest.$ac_ext
12165fi
Reid Spencera773bd52006-08-04 18:18:08 +000012166ac_res=`eval echo '${'$as_ac_var'}'`
12167 { echo "$as_me:$LINENO: result: $ac_res" >&5
12168echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012169if test `eval echo '${'$as_ac_var'}'` = yes; then
12170 cat >>confdefs.h <<_ACEOF
12171#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12172_ACEOF
12173
12174fi
12175done
12176
12177
12178
12179
12180for ac_func in closedir opendir readdir
12181do
12182as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012183{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12184echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12185if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012186 echo $ECHO_N "(cached) $ECHO_C" >&6
12187else
12188 cat >conftest.$ac_ext <<_ACEOF
12189/* confdefs.h. */
12190_ACEOF
12191cat confdefs.h >>conftest.$ac_ext
12192cat >>conftest.$ac_ext <<_ACEOF
12193/* end confdefs.h. */
12194/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12196#define $ac_func innocuous_$ac_func
12197
12198/* System header to define __stub macros and hopefully few prototypes,
12199 which can conflict with char $ac_func (); below.
12200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12201 <limits.h> exists even on freestanding compilers. */
12202
12203#ifdef __STDC__
12204# include <limits.h>
12205#else
12206# include <assert.h>
12207#endif
12208
12209#undef $ac_func
12210
Reid Spencera773bd52006-08-04 18:18:08 +000012211/* Override any GCC internal prototype to avoid an error.
12212 Use char because int might match the return type of a GCC
12213 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012214#ifdef __cplusplus
12215extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012216#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012217char $ac_func ();
12218/* The GNU C library defines this for functions which it implements
12219 to always fail with ENOSYS. Some functions are actually named
12220 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012221#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012222choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012223#endif
12224
12225int
12226main ()
12227{
Reid Spencera773bd52006-08-04 18:18:08 +000012228return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012229 ;
12230 return 0;
12231}
12232_ACEOF
12233rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012234if { (ac_try="$ac_link"
12235case "(($ac_try" in
12236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12238esac
12239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012241 ac_status=$?
12242 grep -v '^ *+' conftest.er1 >conftest.err
12243 rm -f conftest.er1
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012246 (exit $ac_status); } &&
12247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12248 { (case "(($ac_try" in
12249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12250 *) ac_try_echo=$ac_try;;
12251esac
12252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12253 (eval "$ac_try") 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest$ac_exeext'
12258 { (case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261esac
12262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_try") 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012267 eval "$as_ac_var=yes"
12268else
12269 echo "$as_me: failed program was:" >&5
12270sed 's/^/| /' conftest.$ac_ext >&5
12271
Reid Spencera773bd52006-08-04 18:18:08 +000012272 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012273fi
Reid Spencera773bd52006-08-04 18:18:08 +000012274
Bill Wendlingebcceee2009-04-18 11:20:33 +000012275rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012276 conftest$ac_exeext conftest.$ac_ext
12277fi
Reid Spencera773bd52006-08-04 18:18:08 +000012278ac_res=`eval echo '${'$as_ac_var'}'`
12279 { echo "$as_me:$LINENO: result: $ac_res" >&5
12280echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012281if test `eval echo '${'$as_ac_var'}'` = yes; then
12282 cat >>confdefs.h <<_ACEOF
12283#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12284_ACEOF
12285
12286fi
12287done
12288
12289
Reid Spencera773bd52006-08-04 18:18:08 +000012290# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012291if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012292 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012293 case $enableval in
12294 yes) enable_shared=yes ;;
12295 no) enable_shared=no ;;
12296 *)
12297 enable_shared=no
12298 # Look at the argument we got. We use all the common list separators.
12299 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12300 for pkg in $enableval; do
12301 IFS="$lt_save_ifs"
12302 if test "X$pkg" = "X$p"; then
12303 enable_shared=yes
12304 fi
12305 done
12306 IFS="$lt_save_ifs"
12307 ;;
12308 esac
12309else
12310 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012311fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012312
Reid Spencera773bd52006-08-04 18:18:08 +000012313
12314# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012315if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012316 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012317 case $enableval in
12318 yes) enable_static=yes ;;
12319 no) enable_static=no ;;
12320 *)
12321 enable_static=no
12322 # Look at the argument we got. We use all the common list separators.
12323 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12324 for pkg in $enableval; do
12325 IFS="$lt_save_ifs"
12326 if test "X$pkg" = "X$p"; then
12327 enable_static=yes
12328 fi
12329 done
12330 IFS="$lt_save_ifs"
12331 ;;
12332 esac
12333else
12334 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012335fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012336
Reid Spencera773bd52006-08-04 18:18:08 +000012337
12338# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012339if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012340 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012341 case $enableval in
12342 yes) enable_fast_install=yes ;;
12343 no) enable_fast_install=no ;;
12344 *)
12345 enable_fast_install=no
12346 # Look at the argument we got. We use all the common list separators.
12347 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12348 for pkg in $enableval; do
12349 IFS="$lt_save_ifs"
12350 if test "X$pkg" = "X$p"; then
12351 enable_fast_install=yes
12352 fi
12353 done
12354 IFS="$lt_save_ifs"
12355 ;;
12356 esac
12357else
12358 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012359fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012360
Reid Spencera773bd52006-08-04 18:18:08 +000012361
12362{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12363echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012364if test "${lt_cv_path_SED+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12366else
12367 # Loop through the user's path and test for sed and gsed.
12368# Then use that list of sed's as ones to test for truncation.
12369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12370for as_dir in $PATH
12371do
12372 IFS=$as_save_IFS
12373 test -z "$as_dir" && as_dir=.
12374 for lt_ac_prog in sed gsed; do
12375 for ac_exec_ext in '' $ac_executable_extensions; do
12376 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12377 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12378 fi
12379 done
12380 done
12381done
12382lt_ac_max=0
12383lt_ac_count=0
12384# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12385# along with /bin/sed that truncates output.
12386for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012387 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012388 cat /dev/null > conftest.in
12389 lt_ac_count=0
12390 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12391 # Check for GNU sed and select it if it is found.
12392 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12393 lt_cv_path_SED=$lt_ac_sed
12394 break
12395 fi
12396 while true; do
12397 cat conftest.in conftest.in >conftest.tmp
12398 mv conftest.tmp conftest.in
12399 cp conftest.in conftest.nl
12400 echo >>conftest.nl
12401 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12402 cmp -s conftest.out conftest.nl || break
12403 # 10000 chars as input seems more than enough
12404 test $lt_ac_count -gt 10 && break
12405 lt_ac_count=`expr $lt_ac_count + 1`
12406 if test $lt_ac_count -gt $lt_ac_max; then
12407 lt_ac_max=$lt_ac_count
12408 lt_cv_path_SED=$lt_ac_sed
12409 fi
12410 done
12411done
12412
12413fi
12414
12415SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012416{ echo "$as_me:$LINENO: result: $SED" >&5
12417echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012418
12419
Reid Spencera773bd52006-08-04 18:18:08 +000012420# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012421if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012422 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012423else
12424 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012425fi
12426
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012427ac_prog=ld
12428if test "$GCC" = yes; then
12429 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012430 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12431echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012432 case $host in
12433 *-*-mingw*)
12434 # gcc leaves a trailing carriage return which upsets mingw
12435 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12436 *)
12437 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12438 esac
12439 case $ac_prog in
12440 # Accept absolute paths.
12441 [\\/]* | ?:[\\/]*)
12442 re_direlt='/[^/][^/]*/\.\./'
12443 # Canonicalize the pathname of ld
12444 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12445 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12446 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12447 done
12448 test -z "$LD" && LD="$ac_prog"
12449 ;;
12450 "")
12451 # If it fails, then pretend we aren't using GCC.
12452 ac_prog=ld
12453 ;;
12454 *)
12455 # If it is relative, then search for the first ld in PATH.
12456 with_gnu_ld=unknown
12457 ;;
12458 esac
12459elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012460 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12461echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012462else
Reid Spencera773bd52006-08-04 18:18:08 +000012463 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12464echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012465fi
12466if test "${lt_cv_path_LD+set}" = set; then
12467 echo $ECHO_N "(cached) $ECHO_C" >&6
12468else
12469 if test -z "$LD"; then
12470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12471 for ac_dir in $PATH; do
12472 IFS="$lt_save_ifs"
12473 test -z "$ac_dir" && ac_dir=.
12474 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12475 lt_cv_path_LD="$ac_dir/$ac_prog"
12476 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012477 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012478 # Break only if it was the GNU/non-GNU ld that we prefer.
12479 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12480 *GNU* | *'with BFD'*)
12481 test "$with_gnu_ld" != no && break
12482 ;;
12483 *)
12484 test "$with_gnu_ld" != yes && break
12485 ;;
12486 esac
12487 fi
12488 done
12489 IFS="$lt_save_ifs"
12490else
12491 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12492fi
12493fi
12494
12495LD="$lt_cv_path_LD"
12496if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012497 { echo "$as_me:$LINENO: result: $LD" >&5
12498echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012499else
Reid Spencera773bd52006-08-04 18:18:08 +000012500 { echo "$as_me:$LINENO: result: no" >&5
12501echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012502fi
12503test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12504echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12505 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012506{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12507echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012508if test "${lt_cv_prog_gnu_ld+set}" = set; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510else
Reid Spencera773bd52006-08-04 18:18:08 +000012511 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012512case `$LD -v 2>&1 </dev/null` in
12513*GNU* | *'with BFD'*)
12514 lt_cv_prog_gnu_ld=yes
12515 ;;
12516*)
12517 lt_cv_prog_gnu_ld=no
12518 ;;
12519esac
12520fi
Reid Spencera773bd52006-08-04 18:18:08 +000012521{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12522echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012523with_gnu_ld=$lt_cv_prog_gnu_ld
12524
12525
Reid Spencera773bd52006-08-04 18:18:08 +000012526{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12527echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012528if test "${lt_cv_ld_reload_flag+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530else
12531 lt_cv_ld_reload_flag='-r'
12532fi
Reid Spencera773bd52006-08-04 18:18:08 +000012533{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12534echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012535reload_flag=$lt_cv_ld_reload_flag
12536case $reload_flag in
12537"" | " "*) ;;
12538*) reload_flag=" $reload_flag" ;;
12539esac
12540reload_cmds='$LD$reload_flag -o $output$reload_objs'
12541case $host_os in
12542 darwin*)
12543 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012544 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012545 else
12546 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12547 fi
12548 ;;
12549esac
12550
Reid Spencera773bd52006-08-04 18:18:08 +000012551{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12552echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012553if test "${lt_cv_deplibs_check_method+set}" = set; then
12554 echo $ECHO_N "(cached) $ECHO_C" >&6
12555else
12556 lt_cv_file_magic_cmd='$MAGIC_CMD'
12557lt_cv_file_magic_test_file=
12558lt_cv_deplibs_check_method='unknown'
12559# Need to set the preceding variable on all platforms that support
12560# interlibrary dependencies.
12561# 'none' -- dependencies not supported.
12562# `unknown' -- same as none, but documents that we really don't know.
12563# 'pass_all' -- all dependencies passed with no checks.
12564# 'test_compile' -- check by making test program.
12565# 'file_magic [[regex]]' -- check by looking for files in library path
12566# which responds to the $file_magic_cmd with a given extended regex.
12567# If you have `file' or equivalent on your system and you're not sure
12568# whether `pass_all' will *always* work, you probably want this one.
12569
12570case $host_os in
12571aix4* | aix5*)
12572 lt_cv_deplibs_check_method=pass_all
12573 ;;
12574
12575beos*)
12576 lt_cv_deplibs_check_method=pass_all
12577 ;;
12578
12579bsdi[45]*)
12580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12581 lt_cv_file_magic_cmd='/usr/bin/file -L'
12582 lt_cv_file_magic_test_file=/shlib/libc.so
12583 ;;
12584
12585cygwin*)
12586 # func_win32_libid is a shell function defined in ltmain.sh
12587 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12588 lt_cv_file_magic_cmd='func_win32_libid'
12589 ;;
12590
12591mingw* | pw32*)
12592 # Base MSYS/MinGW do not provide the 'file' command needed by
12593 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12594 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12595 lt_cv_file_magic_cmd='$OBJDUMP -f'
12596 ;;
12597
12598darwin* | rhapsody*)
12599 lt_cv_deplibs_check_method=pass_all
12600 ;;
12601
Reid Spencera773bd52006-08-04 18:18:08 +000012602freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012603 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12604 case $host_cpu in
12605 i*86 )
12606 # Not sure whether the presence of OpenBSD here was a mistake.
12607 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012608 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 +000012609 lt_cv_file_magic_cmd=/usr/bin/file
12610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12611 ;;
12612 esac
12613 else
12614 lt_cv_deplibs_check_method=pass_all
12615 fi
12616 ;;
12617
12618gnu*)
12619 lt_cv_deplibs_check_method=pass_all
12620 ;;
12621
12622hpux10.20* | hpux11*)
12623 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012624 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012625 ia64*)
12626 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12627 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12628 ;;
12629 hppa*64*)
12630 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]'
12631 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12632 ;;
12633 *)
12634 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12635 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12636 ;;
12637 esac
12638 ;;
12639
Reid Spencera773bd52006-08-04 18:18:08 +000012640interix3*)
12641 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12642 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12643 ;;
12644
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012645irix5* | irix6* | nonstopux*)
12646 case $LD in
12647 *-32|*"-32 ") libmagic=32-bit;;
12648 *-n32|*"-n32 ") libmagic=N32;;
12649 *-64|*"-64 ") libmagic=64-bit;;
12650 *) libmagic=never-match;;
12651 esac
12652 lt_cv_deplibs_check_method=pass_all
12653 ;;
12654
12655# This must be Linux ELF.
12656linux*)
12657 lt_cv_deplibs_check_method=pass_all
12658 ;;
12659
12660netbsd*)
12661 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12663 else
12664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12665 fi
12666 ;;
12667
12668newos6*)
12669 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12670 lt_cv_file_magic_cmd=/usr/bin/file
12671 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12672 ;;
12673
12674nto-qnx*)
12675 lt_cv_deplibs_check_method=unknown
12676 ;;
12677
12678openbsd*)
12679 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12681 else
12682 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12683 fi
12684 ;;
12685
12686osf3* | osf4* | osf5*)
12687 lt_cv_deplibs_check_method=pass_all
12688 ;;
12689
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012690solaris*)
12691 lt_cv_deplibs_check_method=pass_all
12692 ;;
12693
Reid Spencera773bd52006-08-04 18:18:08 +000012694sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012695 case $host_vendor in
12696 motorola)
12697 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]'
12698 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12699 ;;
12700 ncr)
12701 lt_cv_deplibs_check_method=pass_all
12702 ;;
12703 sequent)
12704 lt_cv_file_magic_cmd='/bin/file'
12705 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12706 ;;
12707 sni)
12708 lt_cv_file_magic_cmd='/bin/file'
12709 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12710 lt_cv_file_magic_test_file=/lib/libc.so
12711 ;;
12712 siemens)
12713 lt_cv_deplibs_check_method=pass_all
12714 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012715 pc)
12716 lt_cv_deplibs_check_method=pass_all
12717 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012718 esac
12719 ;;
12720
Reid Spencera773bd52006-08-04 18:18:08 +000012721sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012722 lt_cv_deplibs_check_method=pass_all
12723 ;;
12724esac
12725
12726fi
Reid Spencera773bd52006-08-04 18:18:08 +000012727{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12728echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012729file_magic_cmd=$lt_cv_file_magic_cmd
12730deplibs_check_method=$lt_cv_deplibs_check_method
12731test -z "$deplibs_check_method" && deplibs_check_method=unknown
12732
12733
12734
12735# If no C compiler was specified, use CC.
12736LTCC=${LTCC-"$CC"}
12737
Reid Spencera773bd52006-08-04 18:18:08 +000012738# If no C compiler flags were specified, use CFLAGS.
12739LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12740
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012741# Allow CC to be a program name with arguments.
12742compiler=$CC
12743
Reid Spencera773bd52006-08-04 18:18:08 +000012744# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012745if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012746 enableval=$enable_libtool_lock;
12747fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012748
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012749test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12750
12751# Some flags need to be propagated to the compiler or linker for good
12752# libtool support.
12753case $host in
12754ia64-*-hpux*)
12755 # Find out which ABI we are using.
12756 echo 'int i;' > conftest.$ac_ext
12757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12758 (eval $ac_compile) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; then
12762 case `/usr/bin/file conftest.$ac_objext` in
12763 *ELF-32*)
12764 HPUX_IA64_MODE="32"
12765 ;;
12766 *ELF-64*)
12767 HPUX_IA64_MODE="64"
12768 ;;
12769 esac
12770 fi
12771 rm -rf conftest*
12772 ;;
12773*-*-irix6*)
12774 # Find out which ABI we are using.
Douglas Gregor0711c302009-06-17 00:43:20 +000012775 echo '#line 12775 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12777 (eval $ac_compile) 2>&5
12778 ac_status=$?
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); }; then
12781 if test "$lt_cv_prog_gnu_ld" = yes; then
12782 case `/usr/bin/file conftest.$ac_objext` in
12783 *32-bit*)
12784 LD="${LD-ld} -melf32bsmip"
12785 ;;
12786 *N32*)
12787 LD="${LD-ld} -melf32bmipn32"
12788 ;;
12789 *64-bit*)
12790 LD="${LD-ld} -melf64bmip"
12791 ;;
12792 esac
12793 else
12794 case `/usr/bin/file conftest.$ac_objext` in
12795 *32-bit*)
12796 LD="${LD-ld} -32"
12797 ;;
12798 *N32*)
12799 LD="${LD-ld} -n32"
12800 ;;
12801 *64-bit*)
12802 LD="${LD-ld} -64"
12803 ;;
12804 esac
12805 fi
12806 fi
12807 rm -rf conftest*
12808 ;;
12809
12810x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12811 # Find out which ABI we are using.
12812 echo 'int i;' > conftest.$ac_ext
12813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12814 (eval $ac_compile) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012818 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012819 *32-bit*)
12820 case $host in
12821 x86_64-*linux*)
12822 LD="${LD-ld} -m elf_i386"
12823 ;;
12824 ppc64-*linux*|powerpc64-*linux*)
12825 LD="${LD-ld} -m elf32ppclinux"
12826 ;;
12827 s390x-*linux*)
12828 LD="${LD-ld} -m elf_s390"
12829 ;;
12830 sparc64-*linux*)
12831 LD="${LD-ld} -m elf32_sparc"
12832 ;;
12833 esac
12834 ;;
12835 *64-bit*)
12836 case $host in
12837 x86_64-*linux*)
12838 LD="${LD-ld} -m elf_x86_64"
12839 ;;
12840 ppc*-*linux*|powerpc*-*linux*)
12841 LD="${LD-ld} -m elf64ppc"
12842 ;;
12843 s390*-*linux*)
12844 LD="${LD-ld} -m elf64_s390"
12845 ;;
12846 sparc*-*linux*)
12847 LD="${LD-ld} -m elf64_sparc"
12848 ;;
12849 esac
12850 ;;
12851 esac
12852 fi
12853 rm -rf conftest*
12854 ;;
12855
12856*-*-sco3.2v5*)
12857 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12858 SAVE_CFLAGS="$CFLAGS"
12859 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012860 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12861echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012862if test "${lt_cv_cc_needs_belf+set}" = set; then
12863 echo $ECHO_N "(cached) $ECHO_C" >&6
12864else
12865 ac_ext=c
12866ac_cpp='$CPP $CPPFLAGS'
12867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12869ac_compiler_gnu=$ac_cv_c_compiler_gnu
12870
12871 cat >conftest.$ac_ext <<_ACEOF
12872/* confdefs.h. */
12873_ACEOF
12874cat confdefs.h >>conftest.$ac_ext
12875cat >>conftest.$ac_ext <<_ACEOF
12876/* end confdefs.h. */
12877
Reid Spencera773bd52006-08-04 18:18:08 +000012878int
12879main ()
12880{
12881
12882 ;
12883 return 0;
12884}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012885_ACEOF
12886rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012887if { (ac_try="$ac_link"
12888case "(($ac_try" in
12889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890 *) ac_try_echo=$ac_try;;
12891esac
12892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12893 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012899 (exit $ac_status); } &&
12900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12901 { (case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904esac
12905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_try") 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try='test -s conftest$ac_exeext'
12911 { (case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12914esac
12915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916 (eval "$ac_try") 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012920 lt_cv_cc_needs_belf=yes
12921else
12922 echo "$as_me: failed program was:" >&5
12923sed 's/^/| /' conftest.$ac_ext >&5
12924
Reid Spencera773bd52006-08-04 18:18:08 +000012925 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012926fi
Reid Spencera773bd52006-08-04 18:18:08 +000012927
Bill Wendlingebcceee2009-04-18 11:20:33 +000012928rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012929 conftest$ac_exeext conftest.$ac_ext
12930 ac_ext=c
12931ac_cpp='$CPP $CPPFLAGS'
12932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934ac_compiler_gnu=$ac_cv_c_compiler_gnu
12935
12936fi
Reid Spencera773bd52006-08-04 18:18:08 +000012937{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12938echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012939 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12940 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12941 CFLAGS="$SAVE_CFLAGS"
12942 fi
12943 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012944sparc*-*solaris*)
12945 # Find out which ABI we are using.
12946 echo 'int i;' > conftest.$ac_ext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12948 (eval $ac_compile) 2>&5
12949 ac_status=$?
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); }; then
12952 case `/usr/bin/file conftest.o` in
12953 *64-bit*)
12954 case $lt_cv_prog_gnu_ld in
12955 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12956 *) LD="${LD-ld} -64" ;;
12957 esac
12958 ;;
12959 esac
12960 fi
12961 rm -rf conftest*
12962 ;;
12963
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012964
12965esac
12966
12967need_locks="$enable_libtool_lock"
12968
12969
Reid Spencer2706f8c2004-09-19 23:53:36 +000012970
12971
12972if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12973 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12974 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012975 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012976ac_cpp='$CXXCPP $CPPFLAGS'
12977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012980{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12981echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012982if test -z "$CXXCPP"; then
12983 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985else
John Criswell47fdd832003-07-14 16:52:07 +000012986 # Double quotes because CXXCPP needs to be expanded
12987 for CXXCPP in "$CXX -E" "/lib/cpp"
12988 do
12989 ac_preproc_ok=false
12990for ac_cxx_preproc_warn_flag in '' yes
12991do
12992 # Use a header file that comes with gcc, so configuring glibc
12993 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12995 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012996 # On the NeXT, cc -E runs the code through the compiler's parser,
12997 # not just through cpp. "Syntax error" is here to catch this case.
12998 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012999/* confdefs.h. */
13000_ACEOF
13001cat confdefs.h >>conftest.$ac_ext
13002cat >>conftest.$ac_ext <<_ACEOF
13003/* end confdefs.h. */
13004#ifdef __STDC__
13005# include <limits.h>
13006#else
13007# include <assert.h>
13008#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013009 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013010_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013011if { (ac_try="$ac_cpp conftest.$ac_ext"
13012case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13015esac
13016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013018 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013019 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013020 rm -f conftest.er1
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013023 (exit $ac_status); } >/dev/null; then
13024 if test -s conftest.err; then
13025 ac_cpp_err=$ac_cxx_preproc_warn_flag
13026 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13027 else
13028 ac_cpp_err=
13029 fi
13030else
13031 ac_cpp_err=yes
13032fi
13033if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013034 :
13035else
13036 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013037sed 's/^/| /' conftest.$ac_ext >&5
13038
John Criswell47fdd832003-07-14 16:52:07 +000013039 # Broken: fails on valid input.
13040continue
13041fi
Reid Spencera773bd52006-08-04 18:18:08 +000013042
John Criswell47fdd832003-07-14 16:52:07 +000013043rm -f conftest.err conftest.$ac_ext
13044
Reid Spencera773bd52006-08-04 18:18:08 +000013045 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013046 # can be detected and how.
13047 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013048/* confdefs.h. */
13049_ACEOF
13050cat confdefs.h >>conftest.$ac_ext
13051cat >>conftest.$ac_ext <<_ACEOF
13052/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013053#include <ac_nonexistent.h>
13054_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013055if { (ac_try="$ac_cpp conftest.$ac_ext"
13056case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059esac
13060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013062 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013063 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013064 rm -f conftest.er1
13065 cat conftest.err >&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013067 (exit $ac_status); } >/dev/null; then
13068 if test -s conftest.err; then
13069 ac_cpp_err=$ac_cxx_preproc_warn_flag
13070 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13071 else
13072 ac_cpp_err=
13073 fi
13074else
13075 ac_cpp_err=yes
13076fi
13077if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013078 # Broken: success on invalid input.
13079continue
13080else
13081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013082sed 's/^/| /' conftest.$ac_ext >&5
13083
John Criswell47fdd832003-07-14 16:52:07 +000013084 # Passes both tests.
13085ac_preproc_ok=:
13086break
13087fi
Reid Spencera773bd52006-08-04 18:18:08 +000013088
John Criswell47fdd832003-07-14 16:52:07 +000013089rm -f conftest.err conftest.$ac_ext
13090
13091done
13092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13093rm -f conftest.err conftest.$ac_ext
13094if $ac_preproc_ok; then
13095 break
John Criswell7a73b802003-06-30 21:59:07 +000013096fi
13097
John Criswell47fdd832003-07-14 16:52:07 +000013098 done
13099 ac_cv_prog_CXXCPP=$CXXCPP
13100
13101fi
13102 CXXCPP=$ac_cv_prog_CXXCPP
13103else
13104 ac_cv_prog_CXXCPP=$CXXCPP
13105fi
Reid Spencera773bd52006-08-04 18:18:08 +000013106{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13107echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013108ac_preproc_ok=false
13109for ac_cxx_preproc_warn_flag in '' yes
13110do
13111 # Use a header file that comes with gcc, so configuring glibc
13112 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13114 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013115 # On the NeXT, cc -E runs the code through the compiler's parser,
13116 # not just through cpp. "Syntax error" is here to catch this case.
13117 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013118/* confdefs.h. */
13119_ACEOF
13120cat confdefs.h >>conftest.$ac_ext
13121cat >>conftest.$ac_ext <<_ACEOF
13122/* end confdefs.h. */
13123#ifdef __STDC__
13124# include <limits.h>
13125#else
13126# include <assert.h>
13127#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013128 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013129_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013130if { (ac_try="$ac_cpp conftest.$ac_ext"
13131case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13134esac
13135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013137 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013138 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013139 rm -f conftest.er1
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013142 (exit $ac_status); } >/dev/null; then
13143 if test -s conftest.err; then
13144 ac_cpp_err=$ac_cxx_preproc_warn_flag
13145 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13146 else
13147 ac_cpp_err=
13148 fi
13149else
13150 ac_cpp_err=yes
13151fi
13152if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013153 :
13154else
13155 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013156sed 's/^/| /' conftest.$ac_ext >&5
13157
John Criswell47fdd832003-07-14 16:52:07 +000013158 # Broken: fails on valid input.
13159continue
13160fi
Reid Spencera773bd52006-08-04 18:18:08 +000013161
John Criswell47fdd832003-07-14 16:52:07 +000013162rm -f conftest.err conftest.$ac_ext
13163
Reid Spencera773bd52006-08-04 18:18:08 +000013164 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013165 # can be detected and how.
13166 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013167/* confdefs.h. */
13168_ACEOF
13169cat confdefs.h >>conftest.$ac_ext
13170cat >>conftest.$ac_ext <<_ACEOF
13171/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013172#include <ac_nonexistent.h>
13173_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013174if { (ac_try="$ac_cpp conftest.$ac_ext"
13175case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13178esac
13179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013181 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013182 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013183 rm -f conftest.er1
13184 cat conftest.err >&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013186 (exit $ac_status); } >/dev/null; then
13187 if test -s conftest.err; then
13188 ac_cpp_err=$ac_cxx_preproc_warn_flag
13189 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13190 else
13191 ac_cpp_err=
13192 fi
13193else
13194 ac_cpp_err=yes
13195fi
13196if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013197 # Broken: success on invalid input.
13198continue
13199else
13200 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013201sed 's/^/| /' conftest.$ac_ext >&5
13202
John Criswell47fdd832003-07-14 16:52:07 +000013203 # Passes both tests.
13204ac_preproc_ok=:
13205break
13206fi
Reid Spencera773bd52006-08-04 18:18:08 +000013207
John Criswell47fdd832003-07-14 16:52:07 +000013208rm -f conftest.err conftest.$ac_ext
13209
13210done
13211# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13212rm -f conftest.err conftest.$ac_ext
13213if $ac_preproc_ok; then
13214 :
13215else
John Criswell0c38eaf2003-09-10 15:17:25 +000013216 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13217See \`config.log' for more details." >&5
13218echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13219See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013220 { (exit 1); exit 1; }; }
13221fi
13222
Reid Spencera773bd52006-08-04 18:18:08 +000013223ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013224ac_cpp='$CXXCPP $CPPFLAGS'
13225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13228
Reid Spencer2706f8c2004-09-19 23:53:36 +000013229fi
13230
John Criswell47fdd832003-07-14 16:52:07 +000013231
13232ac_ext=f
13233ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13234ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13235ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13236if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013237 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 +000013238 do
13239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13240set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013241{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013243if test "${ac_cv_prog_F77+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13245else
13246 if test -n "$F77"; then
13247 ac_cv_prog_F77="$F77" # Let the user override the test.
13248else
13249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250for as_dir in $PATH
13251do
13252 IFS=$as_save_IFS
13253 test -z "$as_dir" && as_dir=.
13254 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013255 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 +000013256 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13258 break 2
13259 fi
13260done
13261done
Reid Spencera773bd52006-08-04 18:18:08 +000013262IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013263
13264fi
13265fi
13266F77=$ac_cv_prog_F77
13267if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013268 { echo "$as_me:$LINENO: result: $F77" >&5
13269echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013270else
Reid Spencera773bd52006-08-04 18:18:08 +000013271 { echo "$as_me:$LINENO: result: no" >&5
13272echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013273fi
13274
Reid Spencera773bd52006-08-04 18:18:08 +000013275
John Criswell47fdd832003-07-14 16:52:07 +000013276 test -n "$F77" && break
13277 done
13278fi
13279if test -z "$F77"; then
13280 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013281 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 +000013282do
13283 # Extract the first word of "$ac_prog", so it can be a program name with args.
13284set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013287if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13289else
13290 if test -n "$ac_ct_F77"; then
13291 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13292else
13293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13294for as_dir in $PATH
13295do
13296 IFS=$as_save_IFS
13297 test -z "$as_dir" && as_dir=.
13298 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013299 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 +000013300 ac_cv_prog_ac_ct_F77="$ac_prog"
13301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13302 break 2
13303 fi
13304done
13305done
Reid Spencera773bd52006-08-04 18:18:08 +000013306IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013307
13308fi
13309fi
13310ac_ct_F77=$ac_cv_prog_ac_ct_F77
13311if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013312 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13313echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013314else
Reid Spencera773bd52006-08-04 18:18:08 +000013315 { echo "$as_me:$LINENO: result: no" >&5
13316echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013317fi
13318
Reid Spencera773bd52006-08-04 18:18:08 +000013319
John Criswell47fdd832003-07-14 16:52:07 +000013320 test -n "$ac_ct_F77" && break
13321done
13322
Reid Spencera773bd52006-08-04 18:18:08 +000013323 if test "x$ac_ct_F77" = x; then
13324 F77=""
13325 else
13326 case $cross_compiling:$ac_tool_warned in
13327yes:)
13328{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13329whose name does not start with the host triplet. If you think this
13330configuration is useful to you, please write to autoconf@gnu.org." >&5
13331echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13332whose name does not start with the host triplet. If you think this
13333configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13334ac_tool_warned=yes ;;
13335esac
13336 F77=$ac_ct_F77
13337 fi
John Criswell47fdd832003-07-14 16:52:07 +000013338fi
13339
13340
13341# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013342echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013343ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013344{ (ac_try="$ac_compiler --version >&5"
13345case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348esac
13349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013351 ac_status=$?
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013354{ (ac_try="$ac_compiler -v >&5"
13355case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13358esac
13359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013364{ (ac_try="$ac_compiler -V >&5"
13365case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13368esac
13369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013374rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013375
13376# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013377# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013378ac_save_ext=$ac_ext
13379ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013380{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13381echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013382if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13384else
13385 cat >conftest.$ac_ext <<_ACEOF
13386 program main
13387#ifndef __GNUC__
13388 choke me
13389#endif
13390
13391 end
13392_ACEOF
13393rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013394if { (ac_try="$ac_compile"
13395case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13398esac
13399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013401 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13408 { (case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13411esac
13412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_try") 2>&5
13414 ac_status=$?
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; } &&
13417 { ac_try='test -s conftest.$ac_objext'
13418 { (case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13421esac
13422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_try") 2>&5
13424 ac_status=$?
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013427 ac_compiler_gnu=yes
13428else
13429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013430sed 's/^/| /' conftest.$ac_ext >&5
13431
Reid Spencera773bd52006-08-04 18:18:08 +000013432 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013433fi
Reid Spencera773bd52006-08-04 18:18:08 +000013434
13435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013436ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13437
13438fi
Reid Spencera773bd52006-08-04 18:18:08 +000013439{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13440echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013441ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013442ac_test_FFLAGS=${FFLAGS+set}
13443ac_save_FFLAGS=$FFLAGS
13444FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013445{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13446echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013447if test "${ac_cv_prog_f77_g+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449else
13450 FFLAGS=-g
13451cat >conftest.$ac_ext <<_ACEOF
13452 program main
13453
13454 end
13455_ACEOF
13456rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013457if { (ac_try="$ac_compile"
13458case "(($ac_try" in
13459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13461esac
13462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013464 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013469 (exit $ac_status); } &&
13470 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13471 { (case "(($ac_try" in
13472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13474esac
13475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_try") 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; } &&
13480 { ac_try='test -s conftest.$ac_objext'
13481 { (case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13484esac
13485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486 (eval "$ac_try") 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013490 ac_cv_prog_f77_g=yes
13491else
13492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013493sed 's/^/| /' conftest.$ac_ext >&5
13494
Reid Spencera773bd52006-08-04 18:18:08 +000013495 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013496fi
Reid Spencera773bd52006-08-04 18:18:08 +000013497
13498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013499
13500fi
Reid Spencera773bd52006-08-04 18:18:08 +000013501{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13502echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013503if test "$ac_test_FFLAGS" = set; then
13504 FFLAGS=$ac_save_FFLAGS
13505elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013506 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013507 FFLAGS="-g -O2"
13508 else
13509 FFLAGS="-g"
13510 fi
13511else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013512 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013513 FFLAGS="-O2"
13514 else
13515 FFLAGS=
13516 fi
13517fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013518
13519G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013520ac_ext=c
13521ac_cpp='$CPP $CPPFLAGS'
13522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13524ac_compiler_gnu=$ac_cv_c_compiler_gnu
13525
13526
13527
13528# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13529
13530# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013531{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13532echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013533if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13535else
13536 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013537 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013538
13539 case $build_os in
13540 msdosdjgpp*)
13541 # On DJGPP, this test can blow up pretty badly due to problems in libc
13542 # (any single argument exceeding 2000 bytes causes a buffer overrun
13543 # during glob expansion). Even if it were fixed, the result of this
13544 # check would be larger than it should be.
13545 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13546 ;;
13547
13548 gnu*)
13549 # Under GNU Hurd, this test is not required because there is
13550 # no limit to the length of command line arguments.
13551 # Libtool will interpret -1 as no limit whatsoever
13552 lt_cv_sys_max_cmd_len=-1;
13553 ;;
13554
13555 cygwin* | mingw*)
13556 # On Win9x/ME, this test blows up -- it succeeds, but takes
13557 # about 5 minutes as the teststring grows exponentially.
13558 # Worse, since 9x/ME are not pre-emptively multitasking,
13559 # you end up with a "frozen" computer, even though with patience
13560 # the test eventually succeeds (with a max line length of 256k).
13561 # Instead, let's just punt: use the minimum linelength reported by
13562 # all of the supported platforms: 8192 (on NT/2K/XP).
13563 lt_cv_sys_max_cmd_len=8192;
13564 ;;
13565
Reid Spencer2706f8c2004-09-19 23:53:36 +000013566 amigaos*)
13567 # On AmigaOS with pdksh, this test takes hours, literally.
13568 # So we just punt and use a minimum line length of 8192.
13569 lt_cv_sys_max_cmd_len=8192;
13570 ;;
13571
Reid Spencera773bd52006-08-04 18:18:08 +000013572 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013573 # This has been around since 386BSD, at least. Likely further.
13574 if test -x /sbin/sysctl; then
13575 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13576 elif test -x /usr/sbin/sysctl; then
13577 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13578 else
Reid Spencera773bd52006-08-04 18:18:08 +000013579 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013580 fi
13581 # And add a safety zone
13582 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013583 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013584 ;;
13585
Reid Spencera773bd52006-08-04 18:18:08 +000013586 interix*)
13587 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13588 lt_cv_sys_max_cmd_len=196608
13589 ;;
13590
13591 osf*)
13592 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13593 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13594 # nice to cause kernel panics so lets avoid the loop below.
13595 # First set a reasonable default.
13596 lt_cv_sys_max_cmd_len=16384
13597 #
13598 if test -x /sbin/sysconfig; then
13599 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13600 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13601 esac
13602 fi
13603 ;;
13604 sco3.2v5*)
13605 lt_cv_sys_max_cmd_len=102400
13606 ;;
13607 sysv5* | sco5v6* | sysv4.2uw2*)
13608 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13609 if test -n "$kargmax"; then
13610 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13611 else
13612 lt_cv_sys_max_cmd_len=32768
13613 fi
13614 ;;
13615 *)
John Criswell47fdd832003-07-14 16:52:07 +000013616 # If test is not a shell built-in, we'll probably end up computing a
13617 # maximum length that is only half of the actual maximum length, but
13618 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013619 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13620 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13621 = "XX$teststring") >/dev/null 2>&1 &&
13622 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013623 lt_cv_sys_max_cmd_len=$new_result &&
13624 test $i != 17 # 1/2 MB should be enough
13625 do
13626 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013627 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013628 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013629 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013630 # Add a significant safety factor because C++ compilers can tack on massive
13631 # amounts of additional arguments before passing them to the linker.
13632 # It appears as though 1/2 is a usable value.
13633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13634 ;;
13635 esac
13636
13637fi
13638
13639if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013640 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13641echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013642else
Reid Spencera773bd52006-08-04 18:18:08 +000013643 { echo "$as_me:$LINENO: result: none" >&5
13644echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013645fi
13646
13647
13648
13649
13650# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013651{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13652echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013653if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655else
13656
13657# These are sane defaults that work on at least a few old systems.
13658# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13659
13660# Character class describing NM global symbol codes.
13661symcode='[BCDEGRST]'
13662
13663# Regexp to match symbols that can be accessed directly from C.
13664sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13665
John Criswell47fdd832003-07-14 16:52:07 +000013666# Transform an extracted symbol line into a proper C declaration
13667lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13668
13669# Transform an extracted symbol line into symbol name and symbol address
13670lt_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'"
13671
13672# Define system-specific variables.
13673case $host_os in
13674aix*)
13675 symcode='[BCDT]'
13676 ;;
13677cygwin* | mingw* | pw32*)
13678 symcode='[ABCDGISTW]'
13679 ;;
13680hpux*) # Its linker distinguishes data from code symbols
13681 if test "$host_cpu" = ia64; then
13682 symcode='[ABCDEGRST]'
13683 fi
13684 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13685 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'"
13686 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013687linux*)
13688 if test "$host_cpu" = ia64; then
13689 symcode='[ABCDGIRSTW]'
13690 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13691 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'"
13692 fi
13693 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013694irix* | nonstopux*)
13695 symcode='[BCDEGRST]'
13696 ;;
13697osf*)
13698 symcode='[BCDEGQRST]'
13699 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013700solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013701 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013702 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013703sco3.2v5*)
13704 symcode='[DT]'
13705 ;;
13706sysv4.2uw2*)
13707 symcode='[DT]'
13708 ;;
13709sysv5* | sco5v6* | unixware* | OpenUNIX*)
13710 symcode='[ABDT]'
13711 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013712sysv4)
13713 symcode='[DFNSTU]'
13714 ;;
13715esac
13716
13717# Handle CRLF in mingw tool chain
13718opt_cr=
13719case $build_os in
13720mingw*)
13721 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13722 ;;
13723esac
13724
13725# If we're using GNU nm, then use its standard symbol codes.
13726case `$NM -V 2>&1` in
13727*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013728 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013729esac
13730
13731# Try without a prefix undercore, then with it.
13732for ac_symprfx in "" "_"; do
13733
Reid Spencera773bd52006-08-04 18:18:08 +000013734 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13735 symxfrm="\\1 $ac_symprfx\\2 \\2"
13736
John Criswell47fdd832003-07-14 16:52:07 +000013737 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013738 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 +000013739
13740 # Check to see that the pipe works correctly.
13741 pipe_works=no
13742
13743 rm -f conftest*
13744 cat > conftest.$ac_ext <<EOF
13745#ifdef __cplusplus
13746extern "C" {
13747#endif
13748char nm_test_var;
13749void nm_test_func(){}
13750#ifdef __cplusplus
13751}
13752#endif
13753int main(){nm_test_var='a';nm_test_func();return(0);}
13754EOF
13755
13756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13757 (eval $ac_compile) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; then
13761 # Now try to grab the symbols.
13762 nlist=conftest.nm
13763 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13764 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } && test -s "$nlist"; then
13768 # Try sorting and uniquifying the output.
13769 if sort "$nlist" | uniq > "$nlist"T; then
13770 mv -f "$nlist"T "$nlist"
13771 else
13772 rm -f "$nlist"T
13773 fi
13774
13775 # Make sure that we snagged all the symbols we need.
13776 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13777 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13778 cat <<EOF > conftest.$ac_ext
13779#ifdef __cplusplus
13780extern "C" {
13781#endif
13782
13783EOF
13784 # Now generate the symbol file.
13785 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13786
13787 cat <<EOF >> conftest.$ac_ext
13788#if defined (__STDC__) && __STDC__
13789# define lt_ptr_t void *
13790#else
13791# define lt_ptr_t char *
13792# define const
13793#endif
13794
13795/* The mapping between symbol names and symbols. */
13796const struct {
13797 const char *name;
13798 lt_ptr_t address;
13799}
13800lt_preloaded_symbols[] =
13801{
13802EOF
13803 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13804 cat <<\EOF >> conftest.$ac_ext
13805 {0, (lt_ptr_t) 0}
13806};
13807
13808#ifdef __cplusplus
13809}
13810#endif
13811EOF
13812 # Now try linking the two files.
13813 mv conftest.$ac_objext conftstm.$ac_objext
13814 lt_save_LIBS="$LIBS"
13815 lt_save_CFLAGS="$CFLAGS"
13816 LIBS="conftstm.$ac_objext"
13817 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13819 (eval $ac_link) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13823 pipe_works=yes
13824 fi
13825 LIBS="$lt_save_LIBS"
13826 CFLAGS="$lt_save_CFLAGS"
13827 else
13828 echo "cannot find nm_test_func in $nlist" >&5
13829 fi
13830 else
13831 echo "cannot find nm_test_var in $nlist" >&5
13832 fi
13833 else
13834 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13835 fi
13836 else
13837 echo "$progname: failed program was:" >&5
13838 cat conftest.$ac_ext >&5
13839 fi
13840 rm -f conftest* conftst*
13841
13842 # Do not use the global_symbol_pipe unless it works.
13843 if test "$pipe_works" = yes; then
13844 break
13845 else
13846 lt_cv_sys_global_symbol_pipe=
13847 fi
13848done
13849
13850fi
13851
13852if test -z "$lt_cv_sys_global_symbol_pipe"; then
13853 lt_cv_sys_global_symbol_to_cdecl=
13854fi
13855if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013856 { echo "$as_me:$LINENO: result: failed" >&5
13857echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013858else
Reid Spencera773bd52006-08-04 18:18:08 +000013859 { echo "$as_me:$LINENO: result: ok" >&5
13860echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013861fi
13862
Reid Spencera773bd52006-08-04 18:18:08 +000013863{ echo "$as_me:$LINENO: checking for objdir" >&5
13864echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013865if test "${lt_cv_objdir+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13867else
13868 rm -f .libs 2>/dev/null
13869mkdir .libs 2>/dev/null
13870if test -d .libs; then
13871 lt_cv_objdir=.libs
13872else
13873 # MS-DOS does not allow filenames that begin with a dot.
13874 lt_cv_objdir=_libs
13875fi
13876rmdir .libs 2>/dev/null
13877fi
Reid Spencera773bd52006-08-04 18:18:08 +000013878{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13879echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013880objdir=$lt_cv_objdir
13881
13882
13883
13884
13885
13886case $host_os in
13887aix3*)
13888 # AIX sometimes has problems with the GCC collect2 program. For some
13889 # reason, if we set the COLLECT_NAMES environment variable, the problems
13890 # vanish in a puff of smoke.
13891 if test "X${COLLECT_NAMES+set}" != Xset; then
13892 COLLECT_NAMES=
13893 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013894 fi
13895 ;;
13896esac
13897
John Criswell47fdd832003-07-14 16:52:07 +000013898# Sed substitution that helps us do robust quoting. It backslashifies
13899# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013900Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013901sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13902
13903# Same as above, but do not quote variable references.
13904double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13905
13906# Sed substitution to delay expansion of an escaped shell variable in a
13907# double_quote_subst'ed string.
13908delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13909
13910# Sed substitution to avoid accidental globbing in evaled expressions
13911no_glob_subst='s/\*/\\\*/g'
13912
13913# Constants:
13914rm="rm -f"
13915
13916# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013917default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013918can_build_shared=yes
13919
Reid Spencera773bd52006-08-04 18:18:08 +000013920# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013921# which needs '.lib').
13922libext=a
13923ltmain="$ac_aux_dir/ltmain.sh"
13924ofile="$default_ofile"
13925with_gnu_ld="$lt_cv_prog_gnu_ld"
13926
13927if test -n "$ac_tool_prefix"; then
13928 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13929set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013932if test "${ac_cv_prog_AR+set}" = set; then
13933 echo $ECHO_N "(cached) $ECHO_C" >&6
13934else
13935 if test -n "$AR"; then
13936 ac_cv_prog_AR="$AR" # Let the user override the test.
13937else
13938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939for as_dir in $PATH
13940do
13941 IFS=$as_save_IFS
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013944 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 +000013945 ac_cv_prog_AR="${ac_tool_prefix}ar"
13946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13947 break 2
13948 fi
13949done
13950done
Reid Spencera773bd52006-08-04 18:18:08 +000013951IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013952
13953fi
13954fi
13955AR=$ac_cv_prog_AR
13956if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013957 { echo "$as_me:$LINENO: result: $AR" >&5
13958echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013959else
Reid Spencera773bd52006-08-04 18:18:08 +000013960 { echo "$as_me:$LINENO: result: no" >&5
13961echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013962fi
13963
Reid Spencera773bd52006-08-04 18:18:08 +000013964
John Criswell47fdd832003-07-14 16:52:07 +000013965fi
13966if test -z "$ac_cv_prog_AR"; then
13967 ac_ct_AR=$AR
13968 # Extract the first word of "ar", so it can be a program name with args.
13969set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013972if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
13974else
13975 if test -n "$ac_ct_AR"; then
13976 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13977else
13978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13979for as_dir in $PATH
13980do
13981 IFS=$as_save_IFS
13982 test -z "$as_dir" && as_dir=.
13983 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013984 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 +000013985 ac_cv_prog_ac_ct_AR="ar"
13986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13987 break 2
13988 fi
13989done
13990done
Reid Spencera773bd52006-08-04 18:18:08 +000013991IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013992
John Criswell47fdd832003-07-14 16:52:07 +000013993fi
13994fi
13995ac_ct_AR=$ac_cv_prog_ac_ct_AR
13996if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013997 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13998echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013999else
Reid Spencera773bd52006-08-04 18:18:08 +000014000 { echo "$as_me:$LINENO: result: no" >&5
14001echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014002fi
14003
Reid Spencera773bd52006-08-04 18:18:08 +000014004 if test "x$ac_ct_AR" = x; then
14005 AR="false"
14006 else
14007 case $cross_compiling:$ac_tool_warned in
14008yes:)
14009{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14010whose name does not start with the host triplet. If you think this
14011configuration is useful to you, please write to autoconf@gnu.org." >&5
14012echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14013whose name does not start with the host triplet. If you think this
14014configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14015ac_tool_warned=yes ;;
14016esac
14017 AR=$ac_ct_AR
14018 fi
John Criswell47fdd832003-07-14 16:52:07 +000014019else
14020 AR="$ac_cv_prog_AR"
14021fi
14022
John Criswell7a73b802003-06-30 21:59:07 +000014023if test -n "$ac_tool_prefix"; then
14024 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14025set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014026{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014028if test "${ac_cv_prog_RANLIB+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14030else
14031 if test -n "$RANLIB"; then
14032 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14033else
14034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14035for as_dir in $PATH
14036do
14037 IFS=$as_save_IFS
14038 test -z "$as_dir" && as_dir=.
14039 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014040 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 +000014041 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14043 break 2
14044 fi
14045done
14046done
Reid Spencera773bd52006-08-04 18:18:08 +000014047IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014048
14049fi
14050fi
14051RANLIB=$ac_cv_prog_RANLIB
14052if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014053 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14054echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014055else
Reid Spencera773bd52006-08-04 18:18:08 +000014056 { echo "$as_me:$LINENO: result: no" >&5
14057echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014058fi
14059
Reid Spencera773bd52006-08-04 18:18:08 +000014060
John Criswell7a73b802003-06-30 21:59:07 +000014061fi
14062if test -z "$ac_cv_prog_RANLIB"; then
14063 ac_ct_RANLIB=$RANLIB
14064 # Extract the first word of "ranlib", so it can be a program name with args.
14065set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014068if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14070else
14071 if test -n "$ac_ct_RANLIB"; then
14072 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14073else
14074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14075for as_dir in $PATH
14076do
14077 IFS=$as_save_IFS
14078 test -z "$as_dir" && as_dir=.
14079 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014080 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 +000014081 ac_cv_prog_ac_ct_RANLIB="ranlib"
14082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14083 break 2
14084 fi
14085done
14086done
Reid Spencera773bd52006-08-04 18:18:08 +000014087IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014088
John Criswell7a73b802003-06-30 21:59:07 +000014089fi
14090fi
14091ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14092if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014093 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14094echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014095else
Reid Spencera773bd52006-08-04 18:18:08 +000014096 { echo "$as_me:$LINENO: result: no" >&5
14097echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014098fi
14099
Reid Spencera773bd52006-08-04 18:18:08 +000014100 if test "x$ac_ct_RANLIB" = x; then
14101 RANLIB=":"
14102 else
14103 case $cross_compiling:$ac_tool_warned in
14104yes:)
14105{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14106whose name does not start with the host triplet. If you think this
14107configuration is useful to you, please write to autoconf@gnu.org." >&5
14108echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14109whose name does not start with the host triplet. If you think this
14110configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14111ac_tool_warned=yes ;;
14112esac
14113 RANLIB=$ac_ct_RANLIB
14114 fi
John Criswell7a73b802003-06-30 21:59:07 +000014115else
14116 RANLIB="$ac_cv_prog_RANLIB"
14117fi
14118
14119if test -n "$ac_tool_prefix"; then
14120 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14121set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014124if test "${ac_cv_prog_STRIP+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14126else
14127 if test -n "$STRIP"; then
14128 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14129else
14130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14131for as_dir in $PATH
14132do
14133 IFS=$as_save_IFS
14134 test -z "$as_dir" && as_dir=.
14135 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014136 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 +000014137 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14139 break 2
14140 fi
14141done
14142done
Reid Spencera773bd52006-08-04 18:18:08 +000014143IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014144
14145fi
14146fi
14147STRIP=$ac_cv_prog_STRIP
14148if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014149 { echo "$as_me:$LINENO: result: $STRIP" >&5
14150echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014151else
Reid Spencera773bd52006-08-04 18:18:08 +000014152 { echo "$as_me:$LINENO: result: no" >&5
14153echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014154fi
14155
Reid Spencera773bd52006-08-04 18:18:08 +000014156
John Criswell7a73b802003-06-30 21:59:07 +000014157fi
14158if test -z "$ac_cv_prog_STRIP"; then
14159 ac_ct_STRIP=$STRIP
14160 # Extract the first word of "strip", so it can be a program name with args.
14161set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014164if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166else
14167 if test -n "$ac_ct_STRIP"; then
14168 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14169else
14170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14171for as_dir in $PATH
14172do
14173 IFS=$as_save_IFS
14174 test -z "$as_dir" && as_dir=.
14175 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014176 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 +000014177 ac_cv_prog_ac_ct_STRIP="strip"
14178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14179 break 2
14180 fi
14181done
14182done
Reid Spencera773bd52006-08-04 18:18:08 +000014183IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014184
John Criswell7a73b802003-06-30 21:59:07 +000014185fi
14186fi
14187ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14188if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014189 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14190echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014191else
Reid Spencera773bd52006-08-04 18:18:08 +000014192 { echo "$as_me:$LINENO: result: no" >&5
14193echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014194fi
14195
Reid Spencera773bd52006-08-04 18:18:08 +000014196 if test "x$ac_ct_STRIP" = x; then
14197 STRIP=":"
14198 else
14199 case $cross_compiling:$ac_tool_warned in
14200yes:)
14201{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14202whose name does not start with the host triplet. If you think this
14203configuration is useful to you, please write to autoconf@gnu.org." >&5
14204echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14205whose name does not start with the host triplet. If you think this
14206configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14207ac_tool_warned=yes ;;
14208esac
14209 STRIP=$ac_ct_STRIP
14210 fi
John Criswell7a73b802003-06-30 21:59:07 +000014211else
14212 STRIP="$ac_cv_prog_STRIP"
14213fi
14214
14215
John Criswell7a73b802003-06-30 21:59:07 +000014216old_CC="$CC"
14217old_CFLAGS="$CFLAGS"
14218
14219# Set sane defaults for various variables
14220test -z "$AR" && AR=ar
14221test -z "$AR_FLAGS" && AR_FLAGS=cru
14222test -z "$AS" && AS=as
14223test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014224test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014225test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014226test -z "$DLLTOOL" && DLLTOOL=dlltool
14227test -z "$LD" && LD=ld
14228test -z "$LN_S" && LN_S="ln -s"
14229test -z "$MAGIC_CMD" && MAGIC_CMD=file
14230test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014231test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014232test -z "$OBJDUMP" && OBJDUMP=objdump
14233test -z "$RANLIB" && RANLIB=:
14234test -z "$STRIP" && STRIP=:
14235test -z "$ac_objext" && ac_objext=o
14236
John Criswell7a73b802003-06-30 21:59:07 +000014237# Determine commands to create old-style static archives.
14238old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14239old_postinstall_cmds='chmod 644 $oldlib'
14240old_postuninstall_cmds=
14241
14242if test -n "$RANLIB"; then
14243 case $host_os in
14244 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014245 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014246 ;;
14247 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014248 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014249 ;;
14250 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014251 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014252fi
14253
Reid Spencera773bd52006-08-04 18:18:08 +000014254for cc_temp in $compiler""; do
14255 case $cc_temp in
14256 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14257 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14258 \-*) ;;
14259 *) break;;
14260 esac
14261done
14262cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14263
Reid Spencer2706f8c2004-09-19 23:53:36 +000014264
John Criswell47fdd832003-07-14 16:52:07 +000014265# Only perform the check for file, if the check method requires it
14266case $deplibs_check_method in
14267file_magic*)
14268 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014269 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14270echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014271if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14272 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014273else
John Criswell47fdd832003-07-14 16:52:07 +000014274 case $MAGIC_CMD in
14275[\\/*] | ?:[\\/]*)
14276 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14277 ;;
14278*)
14279 lt_save_MAGIC_CMD="$MAGIC_CMD"
14280 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14281 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14282 for ac_dir in $ac_dummy; do
14283 IFS="$lt_save_ifs"
14284 test -z "$ac_dir" && ac_dir=.
14285 if test -f $ac_dir/${ac_tool_prefix}file; then
14286 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14287 if test -n "$file_magic_test_file"; then
14288 case $deplibs_check_method in
14289 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014290 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14292 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14293 $EGREP "$file_magic_regex" > /dev/null; then
14294 :
14295 else
14296 cat <<EOF 1>&2
14297
14298*** Warning: the command libtool uses to detect shared libraries,
14299*** $file_magic_cmd, produces output that libtool cannot recognize.
14300*** The result is that libtool may fail to recognize shared libraries
14301*** as such. This will affect the creation of libtool libraries that
14302*** depend on shared libraries, but programs linked with such libtool
14303*** libraries will work regardless of this problem. Nevertheless, you
14304*** may want to report the problem to your system manager and/or to
14305*** bug-libtool@gnu.org
14306
14307EOF
14308 fi ;;
14309 esac
14310 fi
14311 break
14312 fi
14313 done
14314 IFS="$lt_save_ifs"
14315 MAGIC_CMD="$lt_save_MAGIC_CMD"
14316 ;;
14317esac
John Criswell7a73b802003-06-30 21:59:07 +000014318fi
John Criswell7a73b802003-06-30 21:59:07 +000014319
John Criswell47fdd832003-07-14 16:52:07 +000014320MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14321if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014322 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14323echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014324else
Reid Spencera773bd52006-08-04 18:18:08 +000014325 { echo "$as_me:$LINENO: result: no" >&5
14326echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014327fi
John Criswell7a73b802003-06-30 21:59:07 +000014328
John Criswell47fdd832003-07-14 16:52:07 +000014329if test -z "$lt_cv_path_MAGIC_CMD"; then
14330 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014331 { echo "$as_me:$LINENO: checking for file" >&5
14332echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014333if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14335else
14336 case $MAGIC_CMD in
14337[\\/*] | ?:[\\/]*)
14338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14339 ;;
14340*)
14341 lt_save_MAGIC_CMD="$MAGIC_CMD"
14342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14344 for ac_dir in $ac_dummy; do
14345 IFS="$lt_save_ifs"
14346 test -z "$ac_dir" && ac_dir=.
14347 if test -f $ac_dir/file; then
14348 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14349 if test -n "$file_magic_test_file"; then
14350 case $deplibs_check_method in
14351 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14355 $EGREP "$file_magic_regex" > /dev/null; then
14356 :
14357 else
14358 cat <<EOF 1>&2
14359
14360*** Warning: the command libtool uses to detect shared libraries,
14361*** $file_magic_cmd, produces output that libtool cannot recognize.
14362*** The result is that libtool may fail to recognize shared libraries
14363*** as such. This will affect the creation of libtool libraries that
14364*** depend on shared libraries, but programs linked with such libtool
14365*** libraries will work regardless of this problem. Nevertheless, you
14366*** may want to report the problem to your system manager and/or to
14367*** bug-libtool@gnu.org
14368
14369EOF
14370 fi ;;
14371 esac
14372 fi
14373 break
14374 fi
14375 done
14376 IFS="$lt_save_ifs"
14377 MAGIC_CMD="$lt_save_MAGIC_CMD"
14378 ;;
14379esac
14380fi
14381
14382MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14383if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014384 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14385echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014386else
Reid Spencera773bd52006-08-04 18:18:08 +000014387 { echo "$as_me:$LINENO: result: no" >&5
14388echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014389fi
14390
14391 else
14392 MAGIC_CMD=:
14393 fi
14394fi
14395
14396 fi
14397 ;;
14398esac
14399
Reid Spencer17795972004-11-18 09:47:37 +000014400enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014401enable_win32_dll=no
14402
Reid Spencera773bd52006-08-04 18:18:08 +000014403# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014404if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014405 enableval=$enable_libtool_lock;
14406fi
John Criswell47fdd832003-07-14 16:52:07 +000014407
John Criswell47fdd832003-07-14 16:52:07 +000014408test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14409
John Criswell7a73b802003-06-30 21:59:07 +000014410
Reid Spencera773bd52006-08-04 18:18:08 +000014411# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014412if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014413 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014414else
14415 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014416fi
14417
John Criswell7a73b802003-06-30 21:59:07 +000014418test -z "$pic_mode" && pic_mode=default
14419
John Criswell47fdd832003-07-14 16:52:07 +000014420# Use C for the default configuration in the libtool script
14421tagname=
14422lt_save_CC="$CC"
14423ac_ext=c
14424ac_cpp='$CPP $CPPFLAGS'
14425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14427ac_compiler_gnu=$ac_cv_c_compiler_gnu
14428
14429
14430# Source file extension for C test sources.
14431ac_ext=c
14432
14433# Object file extension for compiled C test sources.
14434objext=o
14435objext=$objext
14436
14437# Code to be used in simple compile tests
14438lt_simple_compile_test_code="int some_variable = 0;\n"
14439
14440# Code to be used in simple link tests
14441lt_simple_link_test_code='int main(){return(0);}\n'
14442
14443
14444# If no C compiler was specified, use CC.
14445LTCC=${LTCC-"$CC"}
14446
Reid Spencera773bd52006-08-04 18:18:08 +000014447# If no C compiler flags were specified, use CFLAGS.
14448LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14449
John Criswell47fdd832003-07-14 16:52:07 +000014450# Allow CC to be a program name with arguments.
14451compiler=$CC
14452
14453
Reid Spencera773bd52006-08-04 18:18:08 +000014454# save warnings/boilerplate of simple test code
14455ac_outfile=conftest.$ac_objext
14456printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14457eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14458_lt_compiler_boilerplate=`cat conftest.err`
14459$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014460
Reid Spencera773bd52006-08-04 18:18:08 +000014461ac_outfile=conftest.$ac_objext
14462printf "$lt_simple_link_test_code" >conftest.$ac_ext
14463eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14464_lt_linker_boilerplate=`cat conftest.err`
14465$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014466
14467
John Criswell47fdd832003-07-14 16:52:07 +000014468
14469lt_prog_compiler_no_builtin_flag=
14470
14471if test "$GCC" = yes; then
14472 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14473
Reid Spencer2706f8c2004-09-19 23:53:36 +000014474
Reid Spencera773bd52006-08-04 18:18:08 +000014475{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14476echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014477if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14479else
14480 lt_cv_prog_compiler_rtti_exceptions=no
14481 ac_outfile=conftest.$ac_objext
14482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14483 lt_compiler_flag="-fno-rtti -fno-exceptions"
14484 # Insert the option either (1) after the last *FLAGS variable, or
14485 # (2) before a word containing "conftest.", or (3) at the end.
14486 # Note that $ac_compile itself does not contain backslashes and begins
14487 # with a dollar sign (not a hyphen), so the echo should work correctly.
14488 # The option is referenced via a variable to avoid confusing sed.
14489 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14492 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor0711c302009-06-17 00:43:20 +000014493 (eval echo "\"\$as_me:14493: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014494 (eval "$lt_compile" 2>conftest.err)
14495 ac_status=$?
14496 cat conftest.err >&5
Douglas Gregor0711c302009-06-17 00:43:20 +000014497 echo "$as_me:14497: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014498 if (exit $ac_status) && test -s "$ac_outfile"; then
14499 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014500 # So say no if there are warnings other than the usual output.
14501 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14503 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014504 lt_cv_prog_compiler_rtti_exceptions=yes
14505 fi
14506 fi
14507 $rm conftest*
14508
14509fi
Reid Spencera773bd52006-08-04 18:18:08 +000014510{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14511echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014512
14513if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14514 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14515else
14516 :
14517fi
14518
14519fi
14520
14521lt_prog_compiler_wl=
14522lt_prog_compiler_pic=
14523lt_prog_compiler_static=
14524
Reid Spencera773bd52006-08-04 18:18:08 +000014525{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14526echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014527
14528 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014529 lt_prog_compiler_wl='-Wl,'
14530 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014531
14532 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014533 aix*)
14534 # All AIX code is PIC.
14535 if test "$host_cpu" = ia64; then
14536 # AIX 5 now supports IA64 processor
14537 lt_prog_compiler_static='-Bstatic'
14538 fi
John Criswell7a73b802003-06-30 21:59:07 +000014539 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014540
John Criswell7a73b802003-06-30 21:59:07 +000014541 amigaos*)
14542 # FIXME: we need at least 68020 code to build shared libraries, but
14543 # adding the `-m68020' flag to GCC prevents building anything better,
14544 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014545 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014546 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014547
14548 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014549 # PIC is the default for these OSes.
14550 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014551
14552 mingw* | pw32* | os2*)
14553 # This hack is so that the source file can tell whether it is being
14554 # built for inclusion in a dll (and should export symbols for example).
14555 lt_prog_compiler_pic='-DDLL_EXPORT'
14556 ;;
14557
John Criswell7a73b802003-06-30 21:59:07 +000014558 darwin* | rhapsody*)
14559 # PIC is the default on this platform
14560 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014561 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014562 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014563
Reid Spencera773bd52006-08-04 18:18:08 +000014564 interix3*)
14565 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14566 # Instead, we relocate shared libraries at runtime.
14567 ;;
14568
John Criswell47fdd832003-07-14 16:52:07 +000014569 msdosdjgpp*)
14570 # Just because we use GCC doesn't mean we suddenly get shared libraries
14571 # on systems that don't support them.
14572 lt_prog_compiler_can_build_shared=no
14573 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014574 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014575
John Criswell7a73b802003-06-30 21:59:07 +000014576 sysv4*MP*)
14577 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014578 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014579 fi
14580 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014581
14582 hpux*)
14583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14584 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014585 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014586 hppa*64*|ia64*)
14587 # +Z the default
14588 ;;
14589 *)
14590 lt_prog_compiler_pic='-fPIC'
14591 ;;
14592 esac
14593 ;;
14594
John Criswell7a73b802003-06-30 21:59:07 +000014595 *)
John Criswell47fdd832003-07-14 16:52:07 +000014596 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014597 ;;
14598 esac
14599 else
John Criswell47fdd832003-07-14 16:52:07 +000014600 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014601 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014602 aix*)
14603 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014604 if test "$host_cpu" = ia64; then
14605 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014606 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014607 else
John Criswell47fdd832003-07-14 16:52:07 +000014608 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014609 fi
14610 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014611 darwin*)
14612 # PIC is the default on this platform
14613 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014614 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014615 xlc*)
14616 lt_prog_compiler_pic='-qnocommon'
14617 lt_prog_compiler_wl='-Wl,'
14618 ;;
14619 esac
14620 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014621
John Criswell47fdd832003-07-14 16:52:07 +000014622 mingw* | pw32* | os2*)
14623 # This hack is so that the source file can tell whether it is being
14624 # built for inclusion in a dll (and should export symbols for example).
14625 lt_prog_compiler_pic='-DDLL_EXPORT'
14626 ;;
14627
John Criswell7a73b802003-06-30 21:59:07 +000014628 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014629 lt_prog_compiler_wl='-Wl,'
14630 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14631 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014632 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014633 hppa*64*|ia64*)
14634 # +Z the default
14635 ;;
14636 *)
14637 lt_prog_compiler_pic='+Z'
14638 ;;
14639 esac
14640 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14641 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014642 ;;
14643
John Criswell47fdd832003-07-14 16:52:07 +000014644 irix5* | irix6* | nonstopux*)
14645 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014646 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014647 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014648 ;;
14649
14650 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014651 lt_prog_compiler_pic='-KPIC'
14652 lt_prog_compiler_static='-Bstatic'
14653 ;;
14654
14655 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014656 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014657 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014658 lt_prog_compiler_wl='-Wl,'
14659 lt_prog_compiler_pic='-KPIC'
14660 lt_prog_compiler_static='-static'
14661 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014662 pgcc* | pgf77* | pgf90* | pgf95*)
14663 # Portland Group compilers (*not* the Pentium gcc compiler,
14664 # which looks to be a dead project)
14665 lt_prog_compiler_wl='-Wl,'
14666 lt_prog_compiler_pic='-fpic'
14667 lt_prog_compiler_static='-Bstatic'
14668 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014669 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014670 lt_prog_compiler_wl='-Wl,'
14671 # All Alpha code is PIC.
14672 lt_prog_compiler_static='-non_shared'
14673 ;;
14674 esac
John Criswell7a73b802003-06-30 21:59:07 +000014675 ;;
14676
14677 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014678 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014679 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014680 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014681 ;;
14682
John Criswell7a73b802003-06-30 21:59:07 +000014683 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014684 lt_prog_compiler_pic='-KPIC'
14685 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014686 case $cc_basename in
14687 f77* | f90* | f95*)
14688 lt_prog_compiler_wl='-Qoption ld ';;
14689 *)
14690 lt_prog_compiler_wl='-Wl,';;
14691 esac
John Criswell7a73b802003-06-30 21:59:07 +000014692 ;;
14693
14694 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014695 lt_prog_compiler_wl='-Qoption ld '
14696 lt_prog_compiler_pic='-PIC'
14697 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014698 ;;
14699
Reid Spencera773bd52006-08-04 18:18:08 +000014700 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014701 lt_prog_compiler_wl='-Wl,'
14702 lt_prog_compiler_pic='-KPIC'
14703 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014704 ;;
14705
14706 sysv4*MP*)
14707 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014708 lt_prog_compiler_pic='-Kconform_pic'
14709 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014710 fi
14711 ;;
14712
Reid Spencera773bd52006-08-04 18:18:08 +000014713 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14714 lt_prog_compiler_wl='-Wl,'
14715 lt_prog_compiler_pic='-KPIC'
14716 lt_prog_compiler_static='-Bstatic'
14717 ;;
14718
14719 unicos*)
14720 lt_prog_compiler_wl='-Wl,'
14721 lt_prog_compiler_can_build_shared=no
14722 ;;
14723
John Criswell47fdd832003-07-14 16:52:07 +000014724 uts4*)
14725 lt_prog_compiler_pic='-pic'
14726 lt_prog_compiler_static='-Bstatic'
14727 ;;
14728
John Criswell7a73b802003-06-30 21:59:07 +000014729 *)
John Criswell47fdd832003-07-14 16:52:07 +000014730 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014731 ;;
14732 esac
14733 fi
14734
Reid Spencera773bd52006-08-04 18:18:08 +000014735{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14736echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014737
John Criswell47fdd832003-07-14 16:52:07 +000014738#
14739# Check to make sure the PIC flag actually works.
14740#
14741if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014742
Reid Spencera773bd52006-08-04 18:18:08 +000014743{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14744echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014745if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747else
John Criswell47fdd832003-07-14 16:52:07 +000014748 lt_prog_compiler_pic_works=no
14749 ac_outfile=conftest.$ac_objext
14750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14751 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14752 # Insert the option either (1) after the last *FLAGS variable, or
14753 # (2) before a word containing "conftest.", or (3) at the end.
14754 # Note that $ac_compile itself does not contain backslashes and begins
14755 # with a dollar sign (not a hyphen), so the echo should work correctly.
14756 # The option is referenced via a variable to avoid confusing sed.
14757 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14760 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor0711c302009-06-17 00:43:20 +000014761 (eval echo "\"\$as_me:14761: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014762 (eval "$lt_compile" 2>conftest.err)
14763 ac_status=$?
14764 cat conftest.err >&5
Douglas Gregor0711c302009-06-17 00:43:20 +000014765 echo "$as_me:14765: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014766 if (exit $ac_status) && test -s "$ac_outfile"; then
14767 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014768 # So say no if there are warnings other than the usual output.
14769 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014772 lt_prog_compiler_pic_works=yes
14773 fi
14774 fi
14775 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014776
John Criswell47fdd832003-07-14 16:52:07 +000014777fi
Reid Spencera773bd52006-08-04 18:18:08 +000014778{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14779echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014780
John Criswell47fdd832003-07-14 16:52:07 +000014781if test x"$lt_prog_compiler_pic_works" = xyes; then
14782 case $lt_prog_compiler_pic in
14783 "" | " "*) ;;
14784 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14785 esac
John Criswell7a73b802003-06-30 21:59:07 +000014786else
John Criswell47fdd832003-07-14 16:52:07 +000014787 lt_prog_compiler_pic=
14788 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014789fi
14790
John Criswell7a73b802003-06-30 21:59:07 +000014791fi
Reid Spencera773bd52006-08-04 18:18:08 +000014792case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014793 # For platforms which do not support PIC, -DPIC is meaningless:
14794 *djgpp*)
14795 lt_prog_compiler_pic=
14796 ;;
14797 *)
14798 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14799 ;;
14800esac
John Criswell7a73b802003-06-30 21:59:07 +000014801
Reid Spencera773bd52006-08-04 18:18:08 +000014802#
14803# Check to make sure the static flag actually works.
14804#
14805wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14806{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14807echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14808if test "${lt_prog_compiler_static_works+set}" = set; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14810else
14811 lt_prog_compiler_static_works=no
14812 save_LDFLAGS="$LDFLAGS"
14813 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14814 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14815 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14816 # The linker can only warn and ignore the option if not recognized
14817 # So say no if there are warnings
14818 if test -s conftest.err; then
14819 # Append any errors to the config.log.
14820 cat conftest.err 1>&5
14821 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14823 if diff conftest.exp conftest.er2 >/dev/null; then
14824 lt_prog_compiler_static_works=yes
14825 fi
14826 else
14827 lt_prog_compiler_static_works=yes
14828 fi
14829 fi
14830 $rm conftest*
14831 LDFLAGS="$save_LDFLAGS"
14832
14833fi
14834{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14835echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14836
14837if test x"$lt_prog_compiler_static_works" = xyes; then
14838 :
14839else
14840 lt_prog_compiler_static=
14841fi
14842
14843
14844{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14845echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014846if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014847 echo $ECHO_N "(cached) $ECHO_C" >&6
14848else
John Criswell47fdd832003-07-14 16:52:07 +000014849 lt_cv_prog_compiler_c_o=no
14850 $rm -r conftest 2>/dev/null
14851 mkdir conftest
14852 cd conftest
14853 mkdir out
14854 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014855
John Criswell47fdd832003-07-14 16:52:07 +000014856 lt_compiler_flag="-o out/conftest2.$ac_objext"
14857 # Insert the option either (1) after the last *FLAGS variable, or
14858 # (2) before a word containing "conftest.", or (3) at the end.
14859 # Note that $ac_compile itself does not contain backslashes and begins
14860 # with a dollar sign (not a hyphen), so the echo should work correctly.
14861 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14864 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor0711c302009-06-17 00:43:20 +000014865 (eval echo "\"\$as_me:14865: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014866 (eval "$lt_compile" 2>out/conftest.err)
14867 ac_status=$?
14868 cat out/conftest.err >&5
Douglas Gregor0711c302009-06-17 00:43:20 +000014869 echo "$as_me:14869: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14871 then
14872 # The compiler can only warn and ignore the option if not recognized
14873 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014874 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014877 lt_cv_prog_compiler_c_o=yes
14878 fi
14879 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014880 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014881 $rm conftest*
14882 # SGI C++ compiler will create directory out/ii_files/ for
14883 # template instantiation
14884 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14885 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014886 cd ..
14887 rmdir conftest
14888 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014889
14890fi
Reid Spencera773bd52006-08-04 18:18:08 +000014891{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14892echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014893
John Criswell7a73b802003-06-30 21:59:07 +000014894
John Criswell7a73b802003-06-30 21:59:07 +000014895hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014896if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014897 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014898 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14899echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014900 hard_links=yes
14901 $rm conftest*
14902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14903 touch conftest.a
14904 ln conftest.a conftest.b 2>&5 || hard_links=no
14905 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014906 { echo "$as_me:$LINENO: result: $hard_links" >&5
14907echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014908 if test "$hard_links" = no; then
14909 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14910echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14911 need_locks=warn
14912 fi
14913else
14914 need_locks=no
14915fi
John Criswell7a73b802003-06-30 21:59:07 +000014916
Reid Spencera773bd52006-08-04 18:18:08 +000014917{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14918echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014919
14920 runpath_var=
14921 allow_undefined_flag=
14922 enable_shared_with_static_runtimes=no
14923 archive_cmds=
14924 archive_expsym_cmds=
14925 old_archive_From_new_cmds=
14926 old_archive_from_expsyms_cmds=
14927 export_dynamic_flag_spec=
14928 whole_archive_flag_spec=
14929 thread_safe_flag_spec=
14930 hardcode_libdir_flag_spec=
14931 hardcode_libdir_flag_spec_ld=
14932 hardcode_libdir_separator=
14933 hardcode_direct=no
14934 hardcode_minus_L=no
14935 hardcode_shlibpath_var=unsupported
14936 link_all_deplibs=unknown
14937 hardcode_automatic=no
14938 module_cmds=
14939 module_expsym_cmds=
14940 always_export_symbols=no
14941 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14942 # include_expsyms should be a list of space-separated symbols to be *always*
14943 # included in the symbol list
14944 include_expsyms=
14945 # exclude_expsyms can be an extended regexp of symbols to exclude
14946 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14947 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14948 # as well as any symbol that contains `d'.
14949 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14950 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14951 # platforms (ab)use it in PIC code, but their linkers get confused if
14952 # the symbol is explicitly referenced. Since portable code cannot
14953 # rely on this symbol name, it's probably fine to never include it in
14954 # preloaded symbol tables.
14955 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014956 # Just being paranoid about ensuring that cc_basename is set.
14957 for cc_temp in $compiler""; do
14958 case $cc_temp in
14959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14961 \-*) ;;
14962 *) break;;
14963 esac
14964done
14965cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014966
14967 case $host_os in
14968 cygwin* | mingw* | pw32*)
14969 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14970 # When not using gcc, we currently assume that we are using
14971 # Microsoft Visual C++.
14972 if test "$GCC" != yes; then
14973 with_gnu_ld=no
14974 fi
14975 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014976 interix*)
14977 # we just hope/assume this is gcc and not c89 (= MSVC++)
14978 with_gnu_ld=yes
14979 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014980 openbsd*)
14981 with_gnu_ld=no
14982 ;;
14983 esac
14984
14985 ld_shlibs=yes
14986 if test "$with_gnu_ld" = yes; then
14987 # If archive_cmds runs LD, not CC, wlarc should be empty
14988 wlarc='${wl}'
14989
Reid Spencera773bd52006-08-04 18:18:08 +000014990 # Set some defaults for GNU ld with shared library support. These
14991 # are reset later if shared libraries are not supported. Putting them
14992 # here allows them to be overridden if necessary.
14993 runpath_var=LD_RUN_PATH
14994 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14995 export_dynamic_flag_spec='${wl}--export-dynamic'
14996 # ancient GNU ld didn't support --whole-archive et. al.
14997 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14998 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14999 else
15000 whole_archive_flag_spec=
15001 fi
15002 supports_anon_versioning=no
15003 case `$LD -v 2>/dev/null` in
15004 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15005 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15006 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15007 *\ 2.11.*) ;; # other 2.11 versions
15008 *) supports_anon_versioning=yes ;;
15009 esac
15010
John Criswell47fdd832003-07-14 16:52:07 +000015011 # See if GNU ld supports shared libraries.
15012 case $host_os in
15013 aix3* | aix4* | aix5*)
15014 # On AIX/PPC, the GNU linker is very broken
15015 if test "$host_cpu" != ia64; then
15016 ld_shlibs=no
15017 cat <<EOF 1>&2
15018
15019*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15020*** to be unable to reliably create shared libraries on AIX.
15021*** Therefore, libtool is disabling shared libraries support. If you
15022*** really care for shared libraries, you may want to modify your PATH
15023*** so that a non-GNU linker is found, and then restart.
15024
15025EOF
15026 fi
15027 ;;
15028
15029 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015030 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 +000015031 hardcode_libdir_flag_spec='-L$libdir'
15032 hardcode_minus_L=yes
15033
15034 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15035 # that the semantics of dynamic libraries on AmigaOS, at least up
15036 # to version 4, is to share data among multiple programs linked
15037 # with the same dynamic library. Since this doesn't match the
15038 # behavior of shared libraries on other platforms, we can't use
15039 # them.
15040 ld_shlibs=no
15041 ;;
15042
15043 beos*)
15044 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15045 allow_undefined_flag=unsupported
15046 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15047 # support --undefined. This deserves some investigation. FIXME
15048 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15049 else
15050 ld_shlibs=no
15051 fi
15052 ;;
15053
15054 cygwin* | mingw* | pw32*)
15055 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15056 # as there is no search path for DLLs.
15057 hardcode_libdir_flag_spec='-L$libdir'
15058 allow_undefined_flag=unsupported
15059 always_export_symbols=no
15060 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015061 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 +000015062
15063 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015064 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 +000015065 # If the export-symbols file already is a .def file (1st line
15066 # is EXPORTS), use it as is; otherwise, prepend...
15067 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15068 cp $export_symbols $output_objdir/$soname.def;
15069 else
15070 echo EXPORTS > $output_objdir/$soname.def;
15071 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015072 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015073 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15074 else
15075 ld_shlibs=no
15076 fi
15077 ;;
15078
15079 interix3*)
15080 hardcode_direct=no
15081 hardcode_shlibpath_var=no
15082 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15083 export_dynamic_flag_spec='${wl}-E'
15084 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15085 # Instead, shared libraries are loaded at an image base (0x10000000 by
15086 # default) and relocated if they conflict, which is a slow very memory
15087 # consuming and fragmenting process. To avoid this, we pick a random,
15088 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15089 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15090 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15091 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'
15092 ;;
15093
15094 linux*)
15095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15096 tmp_addflag=
15097 case $cc_basename,$host_cpu in
15098 pgcc*) # Portland Group C compiler
15099 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'
15100 tmp_addflag=' $pic_flag'
15101 ;;
15102 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15103 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'
15104 tmp_addflag=' $pic_flag -Mnomain' ;;
15105 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15106 tmp_addflag=' -i_dynamic' ;;
15107 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15108 tmp_addflag=' -i_dynamic -nofor_main' ;;
15109 ifc* | ifort*) # Intel Fortran compiler
15110 tmp_addflag=' -nofor_main' ;;
15111 esac
15112 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15113
15114 if test $supports_anon_versioning = yes; then
15115 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15117 $echo "local: *; };" >> $output_objdir/$libname.ver~
15118 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15119 fi
John Criswell47fdd832003-07-14 16:52:07 +000015120 else
15121 ld_shlibs=no
15122 fi
15123 ;;
15124
15125 netbsd*)
15126 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15127 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15128 wlarc=
15129 else
15130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15132 fi
15133 ;;
15134
Reid Spencera773bd52006-08-04 18:18:08 +000015135 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015136 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15137 ld_shlibs=no
15138 cat <<EOF 1>&2
15139
15140*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15141*** create shared libraries on Solaris systems. Therefore, libtool
15142*** is disabling shared libraries support. We urge you to upgrade GNU
15143*** binutils to release 2.9.1 or newer. Another option is to modify
15144*** your PATH or compiler configuration so that the native linker is
15145*** used, and then restart.
15146
15147EOF
15148 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15150 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15151 else
15152 ld_shlibs=no
15153 fi
15154 ;;
15155
Reid Spencera773bd52006-08-04 18:18:08 +000015156 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15157 case `$LD -v 2>&1` in
15158 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15159 ld_shlibs=no
15160 cat <<_LT_EOF 1>&2
15161
15162*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15163*** reliably create shared libraries on SCO systems. Therefore, libtool
15164*** is disabling shared libraries support. We urge you to upgrade GNU
15165*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15166*** your PATH or compiler configuration so that the native linker is
15167*** used, and then restart.
15168
15169_LT_EOF
15170 ;;
15171 *)
15172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15173 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15175 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15176 else
15177 ld_shlibs=no
15178 fi
15179 ;;
15180 esac
15181 ;;
15182
John Criswell47fdd832003-07-14 16:52:07 +000015183 sunos4*)
15184 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15185 wlarc=
15186 hardcode_direct=yes
15187 hardcode_shlibpath_var=no
15188 ;;
15189
15190 *)
15191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15192 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15193 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15194 else
15195 ld_shlibs=no
15196 fi
15197 ;;
15198 esac
15199
Reid Spencera773bd52006-08-04 18:18:08 +000015200 if test "$ld_shlibs" = no; then
15201 runpath_var=
15202 hardcode_libdir_flag_spec=
15203 export_dynamic_flag_spec=
15204 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015205 fi
15206 else
15207 # PORTME fill in a description of your system's linker (not GNU ld)
15208 case $host_os in
15209 aix3*)
15210 allow_undefined_flag=unsupported
15211 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015212 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 +000015213 # Note: this linker hardcodes the directories in LIBPATH if there
15214 # are no directories specified by -L.
15215 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015216 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015217 # Neither direct hardcoding nor static linking is supported with a
15218 # broken collect2.
15219 hardcode_direct=unsupported
15220 fi
15221 ;;
15222
15223 aix4* | aix5*)
15224 if test "$host_cpu" = ia64; then
15225 # On IA64, the linker does run time linking by default, so we don't
15226 # have to do anything special.
15227 aix_use_runtimelinking=no
15228 exp_sym_flag='-Bexport'
15229 no_entry_flag=""
15230 else
15231 # If we're using GNU nm, then we don't want the "-C" option.
15232 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15233 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15234 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'
15235 else
15236 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'
15237 fi
15238 aix_use_runtimelinking=no
15239
15240 # Test if we are trying to use run time linking or normal
15241 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15242 # need to do runtime linking.
15243 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15244 for ld_flag in $LDFLAGS; do
15245 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15246 aix_use_runtimelinking=yes
15247 break
15248 fi
15249 done
Reid Spencera773bd52006-08-04 18:18:08 +000015250 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015251 esac
15252
15253 exp_sym_flag='-bexport'
15254 no_entry_flag='-bnoentry'
15255 fi
15256
15257 # When large executables or shared objects are built, AIX ld can
15258 # have problems creating the table of contents. If linking a library
15259 # or program results in "error TOC overflow" add -mminimal-toc to
15260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15262
15263 archive_cmds=''
15264 hardcode_direct=yes
15265 hardcode_libdir_separator=':'
15266 link_all_deplibs=yes
15267
15268 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015269 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015270 # We only want to do this on AIX 4.2 and lower, the check
15271 # below for broken collect2 doesn't work under 4.3+
15272 collect2name=`${CC} -print-prog-name=collect2`
15273 if test -f "$collect2name" && \
15274 strings "$collect2name" | grep resolve_lib_name >/dev/null
15275 then
15276 # We have reworked collect2
15277 hardcode_direct=yes
15278 else
15279 # We have old collect2
15280 hardcode_direct=unsupported
15281 # It fails to find uninstalled libraries when the uninstalled
15282 # path is not listed in the libpath. Setting hardcode_minus_L
15283 # to unsupported forces relinking
15284 hardcode_minus_L=yes
15285 hardcode_libdir_flag_spec='-L$libdir'
15286 hardcode_libdir_separator=
15287 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015288 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015289 esac
15290 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015291 if test "$aix_use_runtimelinking" = yes; then
15292 shared_flag="$shared_flag "'${wl}-G'
15293 fi
John Criswell47fdd832003-07-14 16:52:07 +000015294 else
15295 # not using gcc
15296 if test "$host_cpu" = ia64; then
15297 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15298 # chokes on -Wl,-G. The following line is correct:
15299 shared_flag='-G'
15300 else
Reid Spencera773bd52006-08-04 18:18:08 +000015301 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015302 shared_flag='${wl}-G'
15303 else
15304 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015305 fi
John Criswell47fdd832003-07-14 16:52:07 +000015306 fi
15307 fi
15308
15309 # It seems that -bexpall does not export symbols beginning with
15310 # underscore (_), so it is better to generate a list of symbols to export.
15311 always_export_symbols=yes
15312 if test "$aix_use_runtimelinking" = yes; then
15313 # Warning - without using the other runtime loading flags (-brtl),
15314 # -berok will link without error, but may produce a broken library.
15315 allow_undefined_flag='-berok'
15316 # Determine the default libpath from the value encoded in an empty executable.
15317 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015318/* confdefs.h. */
15319_ACEOF
15320cat confdefs.h >>conftest.$ac_ext
15321cat >>conftest.$ac_ext <<_ACEOF
15322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015323
John Criswell7a73b802003-06-30 21:59:07 +000015324int
15325main ()
15326{
John Criswell47fdd832003-07-14 16:52:07 +000015327
John Criswell7a73b802003-06-30 21:59:07 +000015328 ;
15329 return 0;
15330}
15331_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015332rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015333if { (ac_try="$ac_link"
15334case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15337esac
15338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015340 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015341 grep -v '^ *+' conftest.er1 >conftest.err
15342 rm -f conftest.er1
15343 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015345 (exit $ac_status); } &&
15346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15347 { (case "(($ac_try" in
15348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15349 *) ac_try_echo=$ac_try;;
15350esac
15351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15352 (eval "$ac_try") 2>&5
15353 ac_status=$?
15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); }; } &&
15356 { ac_try='test -s conftest$ac_exeext'
15357 { (case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15360esac
15361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_try") 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015366
John Criswell47fdd832003-07-14 16:52:07 +000015367aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15368}'`
15369# Check for a 64-bit object if we didn't find anything.
15370if 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; }
15371}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015372else
15373 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015374sed 's/^/| /' conftest.$ac_ext >&5
15375
Reid Spencera773bd52006-08-04 18:18:08 +000015376
John Criswell7a73b802003-06-30 21:59:07 +000015377fi
Reid Spencera773bd52006-08-04 18:18:08 +000015378
Bill Wendlingebcceee2009-04-18 11:20:33 +000015379rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015380 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015381if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015382
John Criswell47fdd832003-07-14 16:52:07 +000015383 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015384 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 +000015385 else
15386 if test "$host_cpu" = ia64; then
15387 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15388 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015389 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 +000015390 else
15391 # Determine the default libpath from the value encoded in an empty executable.
15392 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015393/* confdefs.h. */
15394_ACEOF
15395cat confdefs.h >>conftest.$ac_ext
15396cat >>conftest.$ac_ext <<_ACEOF
15397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015398
John Criswell47fdd832003-07-14 16:52:07 +000015399int
15400main ()
15401{
John Criswell7a73b802003-06-30 21:59:07 +000015402
John Criswell47fdd832003-07-14 16:52:07 +000015403 ;
15404 return 0;
15405}
15406_ACEOF
15407rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015408if { (ac_try="$ac_link"
15409case "(($ac_try" in
15410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15412esac
15413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015415 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015416 grep -v '^ *+' conftest.er1 >conftest.err
15417 rm -f conftest.er1
15418 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015420 (exit $ac_status); } &&
15421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15422 { (case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15425esac
15426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_try") 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; } &&
15431 { ac_try='test -s conftest$ac_exeext'
15432 { (case "(($ac_try" in
15433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15435esac
15436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_try") 2>&5
15438 ac_status=$?
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015441
John Criswell47fdd832003-07-14 16:52:07 +000015442aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15443}'`
15444# Check for a 64-bit object if we didn't find anything.
15445if 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; }
15446}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015447else
John Criswell47fdd832003-07-14 16:52:07 +000015448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015449sed 's/^/| /' conftest.$ac_ext >&5
15450
Reid Spencera773bd52006-08-04 18:18:08 +000015451
John Criswell47fdd832003-07-14 16:52:07 +000015452fi
Reid Spencera773bd52006-08-04 18:18:08 +000015453
Bill Wendlingebcceee2009-04-18 11:20:33 +000015454rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015455 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015457
John Criswell47fdd832003-07-14 16:52:07 +000015458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15459 # Warning - without using the other run time loading flags,
15460 # -berok will link without error, but may produce a broken library.
15461 no_undefined_flag=' ${wl}-bernotok'
15462 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015463 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015464 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015465 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015466 # This is similar to how AIX traditionally builds its shared libraries.
15467 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 +000015468 fi
15469 fi
John Criswell7a73b802003-06-30 21:59:07 +000015470 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015471
15472 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015473 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 +000015474 hardcode_libdir_flag_spec='-L$libdir'
15475 hardcode_minus_L=yes
15476 # see comment about different semantics on the GNU ld section
15477 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015478 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015479
Reid Spencer2706f8c2004-09-19 23:53:36 +000015480 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015481 export_dynamic_flag_spec=-rdynamic
15482 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015483
John Criswell47fdd832003-07-14 16:52:07 +000015484 cygwin* | mingw* | pw32*)
15485 # When not using gcc, we currently assume that we are using
15486 # Microsoft Visual C++.
15487 # hardcode_libdir_flag_spec is actually meaningless, as there is
15488 # no search path for DLLs.
15489 hardcode_libdir_flag_spec=' '
15490 allow_undefined_flag=unsupported
15491 # Tell ltmain to make .lib files, not .a files.
15492 libext=lib
15493 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015494 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015495 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015496 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015497 # The linker will automatically build a .lib file if we build a DLL.
15498 old_archive_From_new_cmds='true'
15499 # FIXME: Should let the user specify the lib program.
15500 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15501 fix_srcfile_path='`cygpath -w "$srcfile"`'
15502 enable_shared_with_static_runtimes=yes
15503 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015504
John Criswell47fdd832003-07-14 16:52:07 +000015505 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015506 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015507 rhapsody* | darwin1.[012])
15508 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15509 ;;
15510 *) # Darwin 1.3 on
15511 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15512 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15513 else
15514 case ${MACOSX_DEPLOYMENT_TARGET} in
15515 10.[012])
15516 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15517 ;;
15518 10.*)
15519 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15520 ;;
15521 esac
15522 fi
15523 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015524 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015525 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015526 hardcode_direct=no
15527 hardcode_automatic=yes
15528 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015529 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015530 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015531 if test "$GCC" = yes ; then
15532 output_verbose_link_cmd='echo'
15533 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15534 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015535 # 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 +000015536 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}'
15537 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 +000015538 else
Reid Spencera773bd52006-08-04 18:18:08 +000015539 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015540 xlc*)
15541 output_verbose_link_cmd='echo'
15542 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15543 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015544 # 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 +000015545 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}'
15546 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 +000015547 ;;
15548 *)
15549 ld_shlibs=no
15550 ;;
15551 esac
John Criswell7a73b802003-06-30 21:59:07 +000015552 fi
John Criswell47fdd832003-07-14 16:52:07 +000015553 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015554
John Criswell47fdd832003-07-14 16:52:07 +000015555 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015557 hardcode_libdir_flag_spec='-L$libdir'
15558 hardcode_shlibpath_var=no
15559 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015560
John Criswell47fdd832003-07-14 16:52:07 +000015561 freebsd1*)
15562 ld_shlibs=no
15563 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015564
John Criswell47fdd832003-07-14 16:52:07 +000015565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15566 # support. Future versions do this automatically, but an explicit c++rt0.o
15567 # does not break anything, and helps significantly (at the cost of a little
15568 # extra space).
15569 freebsd2.2*)
15570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15571 hardcode_libdir_flag_spec='-R$libdir'
15572 hardcode_direct=yes
15573 hardcode_shlibpath_var=no
15574 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015575
John Criswell47fdd832003-07-14 16:52:07 +000015576 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15577 freebsd2*)
15578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15579 hardcode_direct=yes
15580 hardcode_minus_L=yes
15581 hardcode_shlibpath_var=no
15582 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015583
John Criswell47fdd832003-07-14 16:52:07 +000015584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015585 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015586 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15587 hardcode_libdir_flag_spec='-R$libdir'
15588 hardcode_direct=yes
15589 hardcode_shlibpath_var=no
15590 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015591
John Criswell47fdd832003-07-14 16:52:07 +000015592 hpux9*)
15593 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015594 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 +000015595 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015596 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 +000015597 fi
15598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15599 hardcode_libdir_separator=:
15600 hardcode_direct=yes
15601
15602 # hardcode_minus_L: Not really in the search PATH,
15603 # but as the default location of the library.
15604 hardcode_minus_L=yes
15605 export_dynamic_flag_spec='${wl}-E'
15606 ;;
15607
Reid Spencera773bd52006-08-04 18:18:08 +000015608 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015609 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015610 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15611 else
15612 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15613 fi
15614 if test "$with_gnu_ld" = no; then
15615 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15616 hardcode_libdir_separator=:
15617
15618 hardcode_direct=yes
15619 export_dynamic_flag_spec='${wl}-E'
15620
15621 # hardcode_minus_L: Not really in the search PATH,
15622 # but as the default location of the library.
15623 hardcode_minus_L=yes
15624 fi
15625 ;;
15626
15627 hpux11*)
15628 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15629 case $host_cpu in
15630 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015631 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15632 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015633 ia64*)
15634 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15635 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015636 *)
15637 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15638 ;;
15639 esac
15640 else
Reid Spencera773bd52006-08-04 18:18:08 +000015641 case $host_cpu in
15642 hppa*64*)
15643 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15644 ;;
15645 ia64*)
15646 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015647 ;;
15648 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015649 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 +000015650 ;;
15651 esac
15652 fi
15653 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015654 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15655 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015656
Reid Spencera773bd52006-08-04 18:18:08 +000015657 case $host_cpu in
15658 hppa*64*|ia64*)
15659 hardcode_libdir_flag_spec_ld='+b $libdir'
15660 hardcode_direct=no
15661 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015662 ;;
15663 *)
John Criswell47fdd832003-07-14 16:52:07 +000015664 hardcode_direct=yes
15665 export_dynamic_flag_spec='${wl}-E'
15666
15667 # hardcode_minus_L: Not really in the search PATH,
15668 # but as the default location of the library.
15669 hardcode_minus_L=yes
15670 ;;
15671 esac
15672 fi
15673 ;;
15674
15675 irix5* | irix6* | nonstopux*)
15676 if test "$GCC" = yes; then
15677 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'
15678 else
15679 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'
15680 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15681 fi
15682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15683 hardcode_libdir_separator=:
15684 link_all_deplibs=yes
15685 ;;
15686
15687 netbsd*)
15688 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15689 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15690 else
15691 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15692 fi
15693 hardcode_libdir_flag_spec='-R$libdir'
15694 hardcode_direct=yes
15695 hardcode_shlibpath_var=no
15696 ;;
15697
15698 newsos6)
15699 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700 hardcode_direct=yes
15701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15702 hardcode_libdir_separator=:
15703 hardcode_shlibpath_var=no
15704 ;;
15705
15706 openbsd*)
15707 hardcode_direct=yes
15708 hardcode_shlibpath_var=no
15709 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15710 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015711 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 +000015712 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15713 export_dynamic_flag_spec='${wl}-E'
15714 else
15715 case $host_os in
15716 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15718 hardcode_libdir_flag_spec='-R$libdir'
15719 ;;
15720 *)
15721 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15722 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15723 ;;
15724 esac
15725 fi
15726 ;;
15727
15728 os2*)
15729 hardcode_libdir_flag_spec='-L$libdir'
15730 hardcode_minus_L=yes
15731 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015732 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 +000015733 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15734 ;;
15735
15736 osf3*)
15737 if test "$GCC" = yes; then
15738 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15739 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'
15740 else
15741 allow_undefined_flag=' -expect_unresolved \*'
15742 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'
15743 fi
15744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15745 hardcode_libdir_separator=:
15746 ;;
15747
15748 osf4* | osf5*) # as osf3* with the addition of -msym flag
15749 if test "$GCC" = yes; then
15750 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15751 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'
15752 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15753 else
15754 allow_undefined_flag=' -expect_unresolved \*'
15755 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 +000015756 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 +000015757 $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 +000015758
John Criswell47fdd832003-07-14 16:52:07 +000015759 # Both c and cxx compiler support -rpath directly
15760 hardcode_libdir_flag_spec='-rpath $libdir'
15761 fi
15762 hardcode_libdir_separator=:
15763 ;;
15764
John Criswell47fdd832003-07-14 16:52:07 +000015765 solaris*)
15766 no_undefined_flag=' -z text'
15767 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015768 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015769 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015770 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15771 $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 +000015772 else
Reid Spencera773bd52006-08-04 18:18:08 +000015773 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015774 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015775 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15776 $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 +000015777 fi
15778 hardcode_libdir_flag_spec='-R$libdir'
15779 hardcode_shlibpath_var=no
15780 case $host_os in
15781 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015782 *)
15783 # The compiler driver will combine linker options so we
15784 # cannot just pass the convience library names through
15785 # without $wl, iff we do not link with $LD.
15786 # Luckily, gcc supports the same syntax we need for Sun Studio.
15787 # Supported since Solaris 2.6 (maybe 2.5.1?)
15788 case $wlarc in
15789 '')
15790 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15791 *)
15792 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' ;;
15793 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015794 esac
15795 link_all_deplibs=yes
15796 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015797
John Criswell47fdd832003-07-14 16:52:07 +000015798 sunos4*)
15799 if test "x$host_vendor" = xsequent; then
15800 # Use $CC to link under sequent, because it throws in some extra .o
15801 # files that make .init and .fini sections work.
15802 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15803 else
15804 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15805 fi
15806 hardcode_libdir_flag_spec='-L$libdir'
15807 hardcode_direct=yes
15808 hardcode_minus_L=yes
15809 hardcode_shlibpath_var=no
15810 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015811
John Criswell47fdd832003-07-14 16:52:07 +000015812 sysv4)
15813 case $host_vendor in
15814 sni)
15815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816 hardcode_direct=yes # is this really true???
15817 ;;
15818 siemens)
15819 ## LD is ld it makes a PLAMLIB
15820 ## CC just makes a GrossModule.
15821 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15822 reload_cmds='$CC -r -o $output$reload_objs'
15823 hardcode_direct=no
15824 ;;
15825 motorola)
15826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15827 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15828 ;;
15829 esac
15830 runpath_var='LD_RUN_PATH'
15831 hardcode_shlibpath_var=no
15832 ;;
15833
15834 sysv4.3*)
15835 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15836 hardcode_shlibpath_var=no
15837 export_dynamic_flag_spec='-Bexport'
15838 ;;
15839
15840 sysv4*MP*)
15841 if test -d /usr/nec; then
15842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15843 hardcode_shlibpath_var=no
15844 runpath_var=LD_RUN_PATH
15845 hardcode_runpath_var=yes
15846 ld_shlibs=yes
15847 fi
15848 ;;
15849
Reid Spencera773bd52006-08-04 18:18:08 +000015850 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15851 no_undefined_flag='${wl}-z,text'
15852 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015853 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015854 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015855
John Criswell47fdd832003-07-14 16:52:07 +000015856 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015857 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15858 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 +000015859 else
Reid Spencera773bd52006-08-04 18:18:08 +000015860 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15861 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 +000015862 fi
John Criswell47fdd832003-07-14 16:52:07 +000015863 ;;
15864
Reid Spencera773bd52006-08-04 18:18:08 +000015865 sysv5* | sco3.2v5* | sco5v6*)
15866 # Note: We can NOT use -z defs as we might desire, because we do not
15867 # link with -lc, and that would cause any symbols used from libc to
15868 # always be unresolved, which means just about no library would
15869 # ever link correctly. If we're not using GNU ld we use -z text
15870 # though, which does catch some bad symbols but isn't as heavy-handed
15871 # as -z defs.
15872 no_undefined_flag='${wl}-z,text'
15873 allow_undefined_flag='${wl}-z,nodefs'
15874 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015875 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015876 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15877 hardcode_libdir_separator=':'
15878 link_all_deplibs=yes
15879 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015880 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015881
15882 if test "$GCC" = yes; then
15883 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15884 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15885 else
15886 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15887 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15888 fi
John Criswell47fdd832003-07-14 16:52:07 +000015889 ;;
15890
15891 uts4*)
15892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15893 hardcode_libdir_flag_spec='-L$libdir'
15894 hardcode_shlibpath_var=no
15895 ;;
15896
15897 *)
15898 ld_shlibs=no
15899 ;;
15900 esac
15901 fi
15902
Reid Spencera773bd52006-08-04 18:18:08 +000015903{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15904echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015905test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015906
John Criswell47fdd832003-07-14 16:52:07 +000015907#
15908# Do we need to explicitly link libc?
15909#
15910case "x$archive_cmds_need_lc" in
15911x|xyes)
15912 # Assume -lc should be added
15913 archive_cmds_need_lc=yes
15914
15915 if test "$enable_shared" = yes && test "$GCC" = yes; then
15916 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015917 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015918 # FIXME: we may have to deal with multi-command sequences.
15919 ;;
15920 '$CC '*)
15921 # Test whether the compiler implicitly links with -lc since on some
15922 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15923 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015924 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15925echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015926 $rm conftest*
15927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15928
15929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15930 (eval $ac_compile) 2>&5
15931 ac_status=$?
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } 2>conftest.err; then
15934 soname=conftest
15935 lib=conftest
15936 libobjs=conftest.$ac_objext
15937 deplibs=
15938 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015939 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015940 compiler_flags=-v
15941 linker_flags=-v
15942 verstring=
15943 output_objdir=.
15944 libname=conftest
15945 lt_save_allow_undefined_flag=$allow_undefined_flag
15946 allow_undefined_flag=
15947 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15948 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }
15952 then
15953 archive_cmds_need_lc=no
15954 else
15955 archive_cmds_need_lc=yes
15956 fi
15957 allow_undefined_flag=$lt_save_allow_undefined_flag
15958 else
15959 cat conftest.err 1>&5
15960 fi
15961 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015962 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15963echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015964 ;;
15965 esac
15966 fi
15967 ;;
15968esac
15969
Reid Spencera773bd52006-08-04 18:18:08 +000015970{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15971echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015972library_names_spec=
15973libname_spec='lib$name'
15974soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015975shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015976postinstall_cmds=
15977postuninstall_cmds=
15978finish_cmds=
15979finish_eval=
15980shlibpath_var=
15981shlibpath_overrides_runpath=unknown
15982version_type=none
15983dynamic_linker="$host_os ld.so"
15984sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015985if test "$GCC" = yes; then
15986 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15987 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15988 # if the path contains ";" then we assume it to be the separator
15989 # otherwise default to the standard path separator (i.e. ":") - it is
15990 # assumed that no part of a normal pathname contains ";" but that should
15991 # okay in the real world where ";" in dirpaths is itself problematic.
15992 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15993 else
15994 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15995 fi
15996else
15997 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15998fi
15999need_lib_prefix=unknown
16000hardcode_into_libs=no
16001
16002# when you set need_version to no, make sure it does not cause -set_version
16003# flags to be left without arguments
16004need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016005
16006case $host_os in
16007aix3*)
16008 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016010 shlibpath_var=LIBPATH
16011
John Criswell47fdd832003-07-14 16:52:07 +000016012 # AIX 3 has no versioning support, so we append a major version to the name.
16013 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016014 ;;
16015
16016aix4* | aix5*)
16017 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016018 need_lib_prefix=no
16019 need_version=no
16020 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016021 if test "$host_cpu" = ia64; then
16022 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016023 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016024 shlibpath_var=LD_LIBRARY_PATH
16025 else
16026 # With GCC up to 2.95.x, collect2 would create an import file
16027 # for dependence libraries. The import file would start with
16028 # the line `#! .'. This would cause the generated library to
16029 # depend on `.', always an invalid library. This was fixed in
16030 # development snapshots of GCC prior to 3.0.
16031 case $host_os in
16032 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016033 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16034 echo ' yes '
16035 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16036 :
16037 else
16038 can_build_shared=no
16039 fi
16040 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016041 esac
John Criswell47fdd832003-07-14 16:52:07 +000016042 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16043 # soname into executable. Probably we can add versioning support to
16044 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016045 if test "$aix_use_runtimelinking" = yes; then
16046 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16047 # instead of lib<name>.a to let people know that these are not
16048 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016050 else
16051 # We preserve .a as extension for shared libraries through AIX4.2
16052 # and later when we are not doing run time linking.
16053 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016054 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016055 fi
16056 shlibpath_var=LIBPATH
16057 fi
16058 ;;
16059
16060amigaos*)
16061 library_names_spec='$libname.ixlibrary $libname.a'
16062 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016063 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 +000016064 ;;
16065
16066beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016067 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016068 dynamic_linker="$host_os ld.so"
16069 shlibpath_var=LIBRARY_PATH
16070 ;;
16071
Reid Spencer2706f8c2004-09-19 23:53:36 +000016072bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016073 version_type=linux
16074 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016077 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16080 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016081 # the default ld.so.conf also contains /usr/contrib/lib and
16082 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16083 # libtool to hard-code these into programs
16084 ;;
16085
16086cygwin* | mingw* | pw32*)
16087 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016088 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016089 need_version=no
16090 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016091
John Criswell7a73b802003-06-30 21:59:07 +000016092 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016093 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016094 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016095 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016096 postinstall_cmds='base_file=`basename \${file}`~
16097 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16098 dldir=$destdir/`dirname \$dlpath`~
16099 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016100 $install_prog $dir/$dlname \$dldir/$dlname~
16101 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16103 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016104 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016105 shlibpath_overrides_runpath=yes
16106
16107 case $host_os in
16108 cygwin*)
16109 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16110 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 +000016111 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016112 ;;
16113 mingw*)
16114 # MinGW DLLs use traditional 'lib' prefix
16115 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16116 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16117 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16118 # It is most probably a Windows format PATH printed by
16119 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16120 # path with ; separators, and with drive letters. We can handle the
16121 # drive letters (cygwin fileutils understands them), so leave them,
16122 # especially as we might pass files found there to a mingw objdump,
16123 # which wouldn't understand a cygwinified path. Ahh.
16124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16125 else
16126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16127 fi
16128 ;;
16129 pw32*)
16130 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016131 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 +000016132 ;;
16133 esac
John Criswell7a73b802003-06-30 21:59:07 +000016134 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016135
John Criswell7a73b802003-06-30 21:59:07 +000016136 *)
John Criswell47fdd832003-07-14 16:52:07 +000016137 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016138 ;;
16139 esac
16140 dynamic_linker='Win32 ld.exe'
16141 # FIXME: first we should search . and the directory the executable is in
16142 shlibpath_var=PATH
16143 ;;
16144
16145darwin* | rhapsody*)
16146 dynamic_linker="$host_os dyld"
16147 version_type=darwin
16148 need_lib_prefix=no
16149 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016150 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016151 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016152 shlibpath_overrides_runpath=yes
16153 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016154 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016155 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016156 if test "$GCC" = yes; then
16157 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"`
16158 else
16159 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016160 fi
16161 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16162 ;;
16163
16164dgux*)
16165 version_type=linux
16166 need_lib_prefix=no
16167 need_version=no
16168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16169 soname_spec='${libname}${release}${shared_ext}$major'
16170 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016171 ;;
16172
16173freebsd1*)
16174 dynamic_linker=no
16175 ;;
16176
Reid Spencer2706f8c2004-09-19 23:53:36 +000016177kfreebsd*-gnu)
16178 version_type=linux
16179 need_lib_prefix=no
16180 need_version=no
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 shlibpath_overrides_runpath=no
16185 hardcode_into_libs=yes
16186 dynamic_linker='GNU ld.so'
16187 ;;
16188
Reid Spencera773bd52006-08-04 18:18:08 +000016189freebsd* | dragonfly*)
16190 # DragonFly does not have aout. When/if they implement a new
16191 # versioning mechanism, adjust this.
16192 if test -x /usr/bin/objformat; then
16193 objformat=`/usr/bin/objformat`
16194 else
16195 case $host_os in
16196 freebsd[123]*) objformat=aout ;;
16197 *) objformat=elf ;;
16198 esac
16199 fi
John Criswell7a73b802003-06-30 21:59:07 +000016200 version_type=freebsd-$objformat
16201 case $version_type in
16202 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016204 need_version=no
16205 need_lib_prefix=no
16206 ;;
16207 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016209 need_version=yes
16210 ;;
16211 esac
16212 shlibpath_var=LD_LIBRARY_PATH
16213 case $host_os in
16214 freebsd2*)
16215 shlibpath_overrides_runpath=yes
16216 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016217 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016218 shlibpath_overrides_runpath=yes
16219 hardcode_into_libs=yes
16220 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016223 shlibpath_overrides_runpath=no
16224 hardcode_into_libs=yes
16225 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016226 freebsd*) # from 4.6 on
16227 shlibpath_overrides_runpath=yes
16228 hardcode_into_libs=yes
16229 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016230 esac
16231 ;;
16232
16233gnu*)
16234 version_type=linux
16235 need_lib_prefix=no
16236 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016239 shlibpath_var=LD_LIBRARY_PATH
16240 hardcode_into_libs=yes
16241 ;;
16242
16243hpux9* | hpux10* | hpux11*)
16244 # Give a soname corresponding to the major version so that dld.sl refuses to
16245 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016246 version_type=sunos
16247 need_lib_prefix=no
16248 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016249 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016250 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016251 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016252 hardcode_into_libs=yes
16253 dynamic_linker="$host_os dld.so"
16254 shlibpath_var=LD_LIBRARY_PATH
16255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16257 soname_spec='${libname}${release}${shared_ext}$major'
16258 if test "X$HPUX_IA64_MODE" = X32; then
16259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16260 else
16261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16262 fi
16263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16264 ;;
16265 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016266 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016267 hardcode_into_libs=yes
16268 dynamic_linker="$host_os dld.sl"
16269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272 soname_spec='${libname}${release}${shared_ext}$major'
16273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16275 ;;
16276 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016277 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016278 dynamic_linker="$host_os dld.sl"
16279 shlibpath_var=SHLIB_PATH
16280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16282 soname_spec='${libname}${release}${shared_ext}$major'
16283 ;;
16284 esac
John Criswell7a73b802003-06-30 21:59:07 +000016285 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16286 postinstall_cmds='chmod 555 $lib'
16287 ;;
16288
Reid Spencera773bd52006-08-04 18:18:08 +000016289interix3*)
16290 version_type=linux
16291 need_lib_prefix=no
16292 need_version=no
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16296 shlibpath_var=LD_LIBRARY_PATH
16297 shlibpath_overrides_runpath=no
16298 hardcode_into_libs=yes
16299 ;;
16300
John Criswell47fdd832003-07-14 16:52:07 +000016301irix5* | irix6* | nonstopux*)
16302 case $host_os in
16303 nonstopux*) version_type=nonstopux ;;
16304 *)
16305 if test "$lt_cv_prog_gnu_ld" = yes; then
16306 version_type=linux
16307 else
16308 version_type=irix
16309 fi ;;
16310 esac
John Criswell7a73b802003-06-30 21:59:07 +000016311 need_lib_prefix=no
16312 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016313 soname_spec='${libname}${release}${shared_ext}$major'
16314 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 +000016315 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016316 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016317 libsuff= shlibsuff=
16318 ;;
16319 *)
16320 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016321 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16322 libsuff= shlibsuff= libmagic=32-bit;;
16323 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16324 libsuff=32 shlibsuff=N32 libmagic=N32;;
16325 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16326 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016327 *) libsuff= shlibsuff= libmagic=never-match;;
16328 esac
16329 ;;
16330 esac
16331 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16332 shlibpath_overrides_runpath=no
16333 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16334 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016335 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016336 ;;
16337
16338# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016339linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016340 dynamic_linker=no
16341 ;;
16342
16343# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016344linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016345 version_type=linux
16346 need_lib_prefix=no
16347 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16349 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16351 shlibpath_var=LD_LIBRARY_PATH
16352 shlibpath_overrides_runpath=no
16353 # This implies no fast_install, which is unacceptable.
16354 # Some rework will be needed to allow for fast_install
16355 # before this can be enabled.
16356 hardcode_into_libs=yes
16357
Reid Spencer2706f8c2004-09-19 23:53:36 +000016358 # Append ld.so.conf contents to the search path
16359 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016360 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 +000016361 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16362 fi
16363
John Criswell7a73b802003-06-30 21:59:07 +000016364 # We used to test for /lib/ld.so.1 and disable shared libraries on
16365 # powerpc, because MkLinux only supported shared libraries with the
16366 # GNU dynamic linker. Since this was broken with cross compilers,
16367 # most powerpc-linux boxes support dynamic linking these days and
16368 # people can always --disable-shared, the test was removed, and we
16369 # assume the GNU/Linux dynamic linker is in use.
16370 dynamic_linker='GNU/Linux ld.so'
16371 ;;
16372
Reid Spencer2706f8c2004-09-19 23:53:36 +000016373knetbsd*-gnu)
16374 version_type=linux
16375 need_lib_prefix=no
16376 need_version=no
16377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16378 soname_spec='${libname}${release}${shared_ext}$major'
16379 shlibpath_var=LD_LIBRARY_PATH
16380 shlibpath_overrides_runpath=no
16381 hardcode_into_libs=yes
16382 dynamic_linker='GNU ld.so'
16383 ;;
16384
John Criswell7a73b802003-06-30 21:59:07 +000016385netbsd*)
16386 version_type=sunos
16387 need_lib_prefix=no
16388 need_version=no
16389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16392 dynamic_linker='NetBSD (a.out) ld.so'
16393 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016395 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016396 dynamic_linker='NetBSD ld.elf_so'
16397 fi
16398 shlibpath_var=LD_LIBRARY_PATH
16399 shlibpath_overrides_runpath=yes
16400 hardcode_into_libs=yes
16401 ;;
16402
16403newsos6)
16404 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406 shlibpath_var=LD_LIBRARY_PATH
16407 shlibpath_overrides_runpath=yes
16408 ;;
16409
Reid Spencer2706f8c2004-09-19 23:53:36 +000016410nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016411 version_type=linux
16412 need_lib_prefix=no
16413 need_version=no
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016416 shlibpath_var=LD_LIBRARY_PATH
16417 shlibpath_overrides_runpath=yes
16418 ;;
16419
16420openbsd*)
16421 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016422 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016423 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016424 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16425 case $host_os in
16426 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16427 *) need_version=no ;;
16428 esac
John Criswell47fdd832003-07-14 16:52:07 +000016429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16431 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016432 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 +000016433 case $host_os in
16434 openbsd2.[89] | openbsd2.[89].*)
16435 shlibpath_overrides_runpath=no
16436 ;;
16437 *)
16438 shlibpath_overrides_runpath=yes
16439 ;;
16440 esac
John Criswell7a73b802003-06-30 21:59:07 +000016441 else
16442 shlibpath_overrides_runpath=yes
16443 fi
John Criswell7a73b802003-06-30 21:59:07 +000016444 ;;
16445
16446os2*)
16447 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016448 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016449 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016450 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016451 dynamic_linker='OS/2 ld.exe'
16452 shlibpath_var=LIBPATH
16453 ;;
16454
16455osf3* | osf4* | osf5*)
16456 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016457 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016458 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016459 soname_spec='${libname}${release}${shared_ext}$major'
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016461 shlibpath_var=LD_LIBRARY_PATH
16462 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16463 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16464 ;;
16465
John Criswell7a73b802003-06-30 21:59:07 +000016466solaris*)
16467 version_type=linux
16468 need_lib_prefix=no
16469 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016472 shlibpath_var=LD_LIBRARY_PATH
16473 shlibpath_overrides_runpath=yes
16474 hardcode_into_libs=yes
16475 # ldd complains unless libraries are executable
16476 postinstall_cmds='chmod +x $lib'
16477 ;;
16478
16479sunos4*)
16480 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016482 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16483 shlibpath_var=LD_LIBRARY_PATH
16484 shlibpath_overrides_runpath=yes
16485 if test "$with_gnu_ld" = yes; then
16486 need_lib_prefix=no
16487 fi
16488 need_version=yes
16489 ;;
16490
Reid Spencera773bd52006-08-04 18:18:08 +000016491sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016492 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16494 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016495 shlibpath_var=LD_LIBRARY_PATH
16496 case $host_vendor in
16497 sni)
16498 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016499 need_lib_prefix=no
16500 export_dynamic_flag_spec='${wl}-Blargedynsym'
16501 runpath_var=LD_RUN_PATH
16502 ;;
16503 siemens)
16504 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016505 ;;
16506 motorola)
16507 need_lib_prefix=no
16508 need_version=no
16509 shlibpath_overrides_runpath=no
16510 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16511 ;;
16512 esac
16513 ;;
16514
John Criswell7a73b802003-06-30 21:59:07 +000016515sysv4*MP*)
16516 if test -d /usr/nec ;then
16517 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016518 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16519 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016520 shlibpath_var=LD_LIBRARY_PATH
16521 fi
16522 ;;
16523
Reid Spencera773bd52006-08-04 18:18:08 +000016524sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16525 version_type=freebsd-elf
16526 need_lib_prefix=no
16527 need_version=no
16528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16529 soname_spec='${libname}${release}${shared_ext}$major'
16530 shlibpath_var=LD_LIBRARY_PATH
16531 hardcode_into_libs=yes
16532 if test "$with_gnu_ld" = yes; then
16533 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16534 shlibpath_overrides_runpath=no
16535 else
16536 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16537 shlibpath_overrides_runpath=yes
16538 case $host_os in
16539 sco3.2v5*)
16540 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16541 ;;
16542 esac
16543 fi
16544 sys_lib_dlsearch_path_spec='/usr/lib'
16545 ;;
16546
John Criswell47fdd832003-07-14 16:52:07 +000016547uts4*)
16548 version_type=linux
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16550 soname_spec='${libname}${release}${shared_ext}$major'
16551 shlibpath_var=LD_LIBRARY_PATH
16552 ;;
16553
John Criswell7a73b802003-06-30 21:59:07 +000016554*)
16555 dynamic_linker=no
16556 ;;
16557esac
Reid Spencera773bd52006-08-04 18:18:08 +000016558{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16559echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016560test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016561
Reid Spencera773bd52006-08-04 18:18:08 +000016562variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16563if test "$GCC" = yes; then
16564 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16565fi
16566
16567{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16568echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016569hardcode_action=
16570if test -n "$hardcode_libdir_flag_spec" || \
16571 test -n "$runpath_var" || \
16572 test "X$hardcode_automatic" = "Xyes" ; then
16573
16574 # We can hardcode non-existant directories.
16575 if test "$hardcode_direct" != no &&
16576 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16577 # have to relink, otherwise we might link with an installed library
16578 # when we should be linking with a yet-to-be-installed one
16579 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16580 test "$hardcode_minus_L" != no; then
16581 # Linking always hardcodes the temporary library directory.
16582 hardcode_action=relink
16583 else
16584 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16585 hardcode_action=immediate
16586 fi
16587else
16588 # We cannot hardcode anything, or else we can only hardcode existing
16589 # directories.
16590 hardcode_action=unsupported
16591fi
Reid Spencera773bd52006-08-04 18:18:08 +000016592{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16593echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016594
16595if test "$hardcode_action" = relink; then
16596 # Fast installation is not supported
16597 enable_fast_install=no
16598elif test "$shlibpath_overrides_runpath" = yes ||
16599 test "$enable_shared" = no; then
16600 # Fast installation is not necessary
16601 enable_fast_install=needless
16602fi
16603
16604striplib=
16605old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016606{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16607echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016608if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16609 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16610 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016611 { echo "$as_me:$LINENO: result: yes" >&5
16612echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016613else
16614# FIXME - insert some real tests, host_os isn't really good enough
16615 case $host_os in
16616 darwin*)
16617 if test -n "$STRIP" ; then
16618 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016619 { echo "$as_me:$LINENO: result: yes" >&5
16620echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016621 else
Reid Spencera773bd52006-08-04 18:18:08 +000016622 { echo "$as_me:$LINENO: result: no" >&5
16623echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016624fi
16625 ;;
16626 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016627 { echo "$as_me:$LINENO: result: no" >&5
16628echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016629 ;;
16630 esac
16631fi
16632
John Criswell7a73b802003-06-30 21:59:07 +000016633if test "x$enable_dlopen" != xyes; then
16634 enable_dlopen=unknown
16635 enable_dlopen_self=unknown
16636 enable_dlopen_self_static=unknown
16637else
16638 lt_cv_dlopen=no
16639 lt_cv_dlopen_libs=
16640
16641 case $host_os in
16642 beos*)
16643 lt_cv_dlopen="load_add_on"
16644 lt_cv_dlopen_libs=
16645 lt_cv_dlopen_self=yes
16646 ;;
16647
John Criswell47fdd832003-07-14 16:52:07 +000016648 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016649 lt_cv_dlopen="LoadLibrary"
16650 lt_cv_dlopen_libs=
16651 ;;
16652
John Criswell47fdd832003-07-14 16:52:07 +000016653 cygwin*)
16654 lt_cv_dlopen="dlopen"
16655 lt_cv_dlopen_libs=
16656 ;;
16657
16658 darwin*)
16659 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016660 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16661echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016662if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16664else
16665 ac_check_lib_save_LIBS=$LIBS
16666LIBS="-ldl $LIBS"
16667cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016668/* confdefs.h. */
16669_ACEOF
16670cat confdefs.h >>conftest.$ac_ext
16671cat >>conftest.$ac_ext <<_ACEOF
16672/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016673
Reid Spencera773bd52006-08-04 18:18:08 +000016674/* Override any GCC internal prototype to avoid an error.
16675 Use char because int might match the return type of a GCC
16676 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016677#ifdef __cplusplus
16678extern "C"
16679#endif
John Criswell47fdd832003-07-14 16:52:07 +000016680char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016681int
16682main ()
16683{
Reid Spencera773bd52006-08-04 18:18:08 +000016684return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016685 ;
16686 return 0;
16687}
16688_ACEOF
16689rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016690if { (ac_try="$ac_link"
16691case "(($ac_try" in
16692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693 *) ac_try_echo=$ac_try;;
16694esac
16695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016697 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016698 grep -v '^ *+' conftest.er1 >conftest.err
16699 rm -f conftest.er1
16700 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016702 (exit $ac_status); } &&
16703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707esac
16708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
16710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; } &&
16713 { ac_try='test -s conftest$ac_exeext'
16714 { (case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16717esac
16718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_try") 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016723 ac_cv_lib_dl_dlopen=yes
16724else
16725 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016726sed 's/^/| /' conftest.$ac_ext >&5
16727
Reid Spencera773bd52006-08-04 18:18:08 +000016728 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016729fi
Reid Spencera773bd52006-08-04 18:18:08 +000016730
Bill Wendlingebcceee2009-04-18 11:20:33 +000016731rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016732 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016733LIBS=$ac_check_lib_save_LIBS
16734fi
Reid Spencera773bd52006-08-04 18:18:08 +000016735{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16736echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016737if test $ac_cv_lib_dl_dlopen = yes; then
16738 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16739else
16740
16741 lt_cv_dlopen="dyld"
16742 lt_cv_dlopen_libs=
16743 lt_cv_dlopen_self=yes
16744
16745fi
16746
16747 ;;
16748
John Criswell7a73b802003-06-30 21:59:07 +000016749 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016750 { echo "$as_me:$LINENO: checking for shl_load" >&5
16751echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016752if test "${ac_cv_func_shl_load+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16754else
16755 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016756/* confdefs.h. */
16757_ACEOF
16758cat confdefs.h >>conftest.$ac_ext
16759cat >>conftest.$ac_ext <<_ACEOF
16760/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016761/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16763#define shl_load innocuous_shl_load
16764
John Criswell7a73b802003-06-30 21:59:07 +000016765/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016766 which can conflict with char shl_load (); below.
16767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16768 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016769
John Criswell0c38eaf2003-09-10 15:17:25 +000016770#ifdef __STDC__
16771# include <limits.h>
16772#else
16773# include <assert.h>
16774#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016775
16776#undef shl_load
16777
Reid Spencera773bd52006-08-04 18:18:08 +000016778/* Override any GCC internal prototype to avoid an error.
16779 Use char because int might match the return type of a GCC
16780 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016781#ifdef __cplusplus
16782extern "C"
16783#endif
John Criswell7a73b802003-06-30 21:59:07 +000016784char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016785/* The GNU C library defines this for functions which it implements
16786 to always fail with ENOSYS. Some functions are actually named
16787 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016788#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016789choke me
John Criswell7a73b802003-06-30 21:59:07 +000016790#endif
16791
John Criswell0c38eaf2003-09-10 15:17:25 +000016792int
16793main ()
16794{
Reid Spencera773bd52006-08-04 18:18:08 +000016795return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016796 ;
16797 return 0;
16798}
16799_ACEOF
16800rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016801if { (ac_try="$ac_link"
16802case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16805esac
16806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016809 grep -v '^ *+' conftest.er1 >conftest.err
16810 rm -f conftest.er1
16811 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016813 (exit $ac_status); } &&
16814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818esac
16819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
16821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest$ac_exeext'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16828esac
16829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016834 ac_cv_func_shl_load=yes
16835else
16836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016837sed 's/^/| /' conftest.$ac_ext >&5
16838
Reid Spencera773bd52006-08-04 18:18:08 +000016839 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016840fi
Reid Spencera773bd52006-08-04 18:18:08 +000016841
Bill Wendlingebcceee2009-04-18 11:20:33 +000016842rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016843 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016844fi
Reid Spencera773bd52006-08-04 18:18:08 +000016845{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16846echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016847if test $ac_cv_func_shl_load = yes; then
16848 lt_cv_dlopen="shl_load"
16849else
Reid Spencera773bd52006-08-04 18:18:08 +000016850 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16851echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016852if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16853 echo $ECHO_N "(cached) $ECHO_C" >&6
16854else
16855 ac_check_lib_save_LIBS=$LIBS
16856LIBS="-ldld $LIBS"
16857cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016858/* confdefs.h. */
16859_ACEOF
16860cat confdefs.h >>conftest.$ac_ext
16861cat >>conftest.$ac_ext <<_ACEOF
16862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016863
Reid Spencera773bd52006-08-04 18:18:08 +000016864/* Override any GCC internal prototype to avoid an error.
16865 Use char because int might match the return type of a GCC
16866 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016867#ifdef __cplusplus
16868extern "C"
16869#endif
John Criswell7a73b802003-06-30 21:59:07 +000016870char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016871int
16872main ()
16873{
Reid Spencera773bd52006-08-04 18:18:08 +000016874return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016875 ;
16876 return 0;
16877}
16878_ACEOF
16879rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016880if { (ac_try="$ac_link"
16881case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16884esac
16885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016887 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16900 ac_status=$?
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest$ac_exeext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907esac
16908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016913 ac_cv_lib_dld_shl_load=yes
16914else
16915 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016916sed 's/^/| /' conftest.$ac_ext >&5
16917
Reid Spencera773bd52006-08-04 18:18:08 +000016918 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016919fi
Reid Spencera773bd52006-08-04 18:18:08 +000016920
Bill Wendlingebcceee2009-04-18 11:20:33 +000016921rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016922 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016923LIBS=$ac_check_lib_save_LIBS
16924fi
Reid Spencera773bd52006-08-04 18:18:08 +000016925{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16926echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016927if test $ac_cv_lib_dld_shl_load = yes; then
16928 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16929else
Reid Spencera773bd52006-08-04 18:18:08 +000016930 { echo "$as_me:$LINENO: checking for dlopen" >&5
16931echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016932if test "${ac_cv_func_dlopen+set}" = set; then
16933 echo $ECHO_N "(cached) $ECHO_C" >&6
16934else
16935 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016936/* confdefs.h. */
16937_ACEOF
16938cat confdefs.h >>conftest.$ac_ext
16939cat >>conftest.$ac_ext <<_ACEOF
16940/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016941/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16943#define dlopen innocuous_dlopen
16944
John Criswell7a73b802003-06-30 21:59:07 +000016945/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016946 which can conflict with char dlopen (); below.
16947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16948 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016949
John Criswell0c38eaf2003-09-10 15:17:25 +000016950#ifdef __STDC__
16951# include <limits.h>
16952#else
16953# include <assert.h>
16954#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016955
16956#undef dlopen
16957
Reid Spencera773bd52006-08-04 18:18:08 +000016958/* Override any GCC internal prototype to avoid an error.
16959 Use char because int might match the return type of a GCC
16960 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016961#ifdef __cplusplus
16962extern "C"
16963#endif
John Criswell7a73b802003-06-30 21:59:07 +000016964char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016965/* The GNU C library defines this for functions which it implements
16966 to always fail with ENOSYS. Some functions are actually named
16967 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016968#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016969choke me
John Criswell7a73b802003-06-30 21:59:07 +000016970#endif
16971
John Criswell0c38eaf2003-09-10 15:17:25 +000016972int
16973main ()
16974{
Reid Spencera773bd52006-08-04 18:18:08 +000016975return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016976 ;
16977 return 0;
16978}
16979_ACEOF
16980rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016981if { (ac_try="$ac_link"
16982case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985esac
16986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016988 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016989 grep -v '^ *+' conftest.er1 >conftest.err
16990 rm -f conftest.er1
16991 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16997 *) ac_try_echo=$ac_try;;
16998esac
16999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17001 ac_status=$?
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try='test -s conftest$ac_exeext'
17005 { (case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17008esac
17009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017014 ac_cv_func_dlopen=yes
17015else
17016 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017017sed 's/^/| /' conftest.$ac_ext >&5
17018
Reid Spencera773bd52006-08-04 18:18:08 +000017019 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017020fi
Reid Spencera773bd52006-08-04 18:18:08 +000017021
Bill Wendlingebcceee2009-04-18 11:20:33 +000017022rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017023 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017024fi
Reid Spencera773bd52006-08-04 18:18:08 +000017025{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17026echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017027if test $ac_cv_func_dlopen = yes; then
17028 lt_cv_dlopen="dlopen"
17029else
Reid Spencera773bd52006-08-04 18:18:08 +000017030 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17031echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017032if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17033 echo $ECHO_N "(cached) $ECHO_C" >&6
17034else
17035 ac_check_lib_save_LIBS=$LIBS
17036LIBS="-ldl $LIBS"
17037cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017038/* confdefs.h. */
17039_ACEOF
17040cat confdefs.h >>conftest.$ac_ext
17041cat >>conftest.$ac_ext <<_ACEOF
17042/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017043
Reid Spencera773bd52006-08-04 18:18:08 +000017044/* Override any GCC internal prototype to avoid an error.
17045 Use char because int might match the return type of a GCC
17046 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017047#ifdef __cplusplus
17048extern "C"
17049#endif
John Criswell7a73b802003-06-30 21:59:07 +000017050char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017051int
17052main ()
17053{
Reid Spencera773bd52006-08-04 18:18:08 +000017054return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017055 ;
17056 return 0;
17057}
17058_ACEOF
17059rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017060if { (ac_try="$ac_link"
17061case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17064esac
17065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017067 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017068 grep -v '^ *+' conftest.er1 >conftest.err
17069 rm -f conftest.er1
17070 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017072 (exit $ac_status); } &&
17073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17074 { (case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17077esac
17078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_try") 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; } &&
17083 { ac_try='test -s conftest$ac_exeext'
17084 { (case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17087esac
17088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_try") 2>&5
17090 ac_status=$?
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017093 ac_cv_lib_dl_dlopen=yes
17094else
17095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017096sed 's/^/| /' conftest.$ac_ext >&5
17097
Reid Spencera773bd52006-08-04 18:18:08 +000017098 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017099fi
Reid Spencera773bd52006-08-04 18:18:08 +000017100
Bill Wendlingebcceee2009-04-18 11:20:33 +000017101rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017102 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017103LIBS=$ac_check_lib_save_LIBS
17104fi
Reid Spencera773bd52006-08-04 18:18:08 +000017105{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17106echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017107if test $ac_cv_lib_dl_dlopen = yes; then
17108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17109else
Reid Spencera773bd52006-08-04 18:18:08 +000017110 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17111echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017112if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17113 echo $ECHO_N "(cached) $ECHO_C" >&6
17114else
17115 ac_check_lib_save_LIBS=$LIBS
17116LIBS="-lsvld $LIBS"
17117cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017118/* confdefs.h. */
17119_ACEOF
17120cat confdefs.h >>conftest.$ac_ext
17121cat >>conftest.$ac_ext <<_ACEOF
17122/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017123
Reid Spencera773bd52006-08-04 18:18:08 +000017124/* Override any GCC internal prototype to avoid an error.
17125 Use char because int might match the return type of a GCC
17126 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017127#ifdef __cplusplus
17128extern "C"
17129#endif
John Criswell7a73b802003-06-30 21:59:07 +000017130char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017131int
17132main ()
17133{
Reid Spencera773bd52006-08-04 18:18:08 +000017134return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017135 ;
17136 return 0;
17137}
17138_ACEOF
17139rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017140if { (ac_try="$ac_link"
17141case "(($ac_try" in
17142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143 *) ac_try_echo=$ac_try;;
17144esac
17145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017147 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017148 grep -v '^ *+' conftest.er1 >conftest.err
17149 rm -f conftest.er1
17150 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017152 (exit $ac_status); } &&
17153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17154 { (case "(($ac_try" in
17155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17156 *) ac_try_echo=$ac_try;;
17157esac
17158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17159 (eval "$ac_try") 2>&5
17160 ac_status=$?
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest$ac_exeext'
17164 { (case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17167esac
17168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_try") 2>&5
17170 ac_status=$?
17171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017173 ac_cv_lib_svld_dlopen=yes
17174else
17175 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017176sed 's/^/| /' conftest.$ac_ext >&5
17177
Reid Spencera773bd52006-08-04 18:18:08 +000017178 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017179fi
Reid Spencera773bd52006-08-04 18:18:08 +000017180
Bill Wendlingebcceee2009-04-18 11:20:33 +000017181rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017182 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017183LIBS=$ac_check_lib_save_LIBS
17184fi
Reid Spencera773bd52006-08-04 18:18:08 +000017185{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17186echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017187if test $ac_cv_lib_svld_dlopen = yes; then
17188 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17189else
Reid Spencera773bd52006-08-04 18:18:08 +000017190 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17191echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017192if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17193 echo $ECHO_N "(cached) $ECHO_C" >&6
17194else
17195 ac_check_lib_save_LIBS=$LIBS
17196LIBS="-ldld $LIBS"
17197cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017198/* confdefs.h. */
17199_ACEOF
17200cat confdefs.h >>conftest.$ac_ext
17201cat >>conftest.$ac_ext <<_ACEOF
17202/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017203
Reid Spencera773bd52006-08-04 18:18:08 +000017204/* Override any GCC internal prototype to avoid an error.
17205 Use char because int might match the return type of a GCC
17206 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017207#ifdef __cplusplus
17208extern "C"
17209#endif
John Criswell7a73b802003-06-30 21:59:07 +000017210char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017211int
17212main ()
17213{
Reid Spencera773bd52006-08-04 18:18:08 +000017214return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017215 ;
17216 return 0;
17217}
17218_ACEOF
17219rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017220if { (ac_try="$ac_link"
17221case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17224esac
17225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017228 grep -v '^ *+' conftest.er1 >conftest.err
17229 rm -f conftest.er1
17230 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017232 (exit $ac_status); } &&
17233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17234 { (case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17237esac
17238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_try") 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; } &&
17243 { ac_try='test -s conftest$ac_exeext'
17244 { (case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17247esac
17248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_try") 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017253 ac_cv_lib_dld_dld_link=yes
17254else
17255 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017256sed 's/^/| /' conftest.$ac_ext >&5
17257
Reid Spencera773bd52006-08-04 18:18:08 +000017258 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017259fi
Reid Spencera773bd52006-08-04 18:18:08 +000017260
Bill Wendlingebcceee2009-04-18 11:20:33 +000017261rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017262 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017263LIBS=$ac_check_lib_save_LIBS
17264fi
Reid Spencera773bd52006-08-04 18:18:08 +000017265{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17266echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017267if test $ac_cv_lib_dld_dld_link = yes; then
17268 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17269fi
17270
17271
17272fi
17273
17274
17275fi
17276
17277
17278fi
17279
17280
17281fi
17282
17283
17284fi
17285
17286 ;;
17287 esac
17288
17289 if test "x$lt_cv_dlopen" != xno; then
17290 enable_dlopen=yes
17291 else
17292 enable_dlopen=no
17293 fi
17294
17295 case $lt_cv_dlopen in
17296 dlopen)
17297 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017298 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017299
17300 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017301 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017302
17303 save_LIBS="$LIBS"
17304 LIBS="$lt_cv_dlopen_libs $LIBS"
17305
Reid Spencera773bd52006-08-04 18:18:08 +000017306 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17307echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017308if test "${lt_cv_dlopen_self+set}" = set; then
17309 echo $ECHO_N "(cached) $ECHO_C" >&6
17310else
17311 if test "$cross_compiling" = yes; then :
17312 lt_cv_dlopen_self=cross
17313else
John Criswell47fdd832003-07-14 16:52:07 +000017314 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017315 lt_status=$lt_dlunknown
17316 cat > conftest.$ac_ext <<EOF
Douglas Gregor0711c302009-06-17 00:43:20 +000017317#line 17317 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017318#include "confdefs.h"
17319
17320#if HAVE_DLFCN_H
17321#include <dlfcn.h>
17322#endif
17323
17324#include <stdio.h>
17325
17326#ifdef RTLD_GLOBAL
17327# define LT_DLGLOBAL RTLD_GLOBAL
17328#else
17329# ifdef DL_GLOBAL
17330# define LT_DLGLOBAL DL_GLOBAL
17331# else
17332# define LT_DLGLOBAL 0
17333# endif
17334#endif
17335
17336/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17337 find out it does not work in some platform. */
17338#ifndef LT_DLLAZY_OR_NOW
17339# ifdef RTLD_LAZY
17340# define LT_DLLAZY_OR_NOW RTLD_LAZY
17341# else
17342# ifdef DL_LAZY
17343# define LT_DLLAZY_OR_NOW DL_LAZY
17344# else
17345# ifdef RTLD_NOW
17346# define LT_DLLAZY_OR_NOW RTLD_NOW
17347# else
17348# ifdef DL_NOW
17349# define LT_DLLAZY_OR_NOW DL_NOW
17350# else
17351# define LT_DLLAZY_OR_NOW 0
17352# endif
17353# endif
17354# endif
17355# endif
17356#endif
17357
17358#ifdef __cplusplus
17359extern "C" void exit (int);
17360#endif
17361
17362void fnord() { int i=42;}
17363int main ()
17364{
17365 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17366 int status = $lt_dlunknown;
17367
17368 if (self)
17369 {
17370 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17371 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17372 /* dlclose (self); */
17373 }
Reid Spencera773bd52006-08-04 18:18:08 +000017374 else
17375 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017376
17377 exit (status);
17378}
17379EOF
17380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17381 (eval $ac_link) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017385 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017386 lt_status=$?
17387 case x$lt_status in
17388 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17389 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017390 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017391 esac
17392 else :
17393 # compilation failed
17394 lt_cv_dlopen_self=no
17395 fi
17396fi
17397rm -fr conftest*
17398
17399
17400fi
Reid Spencera773bd52006-08-04 18:18:08 +000017401{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17402echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017403
17404 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017405 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17406 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17407echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017408if test "${lt_cv_dlopen_self_static+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17410else
17411 if test "$cross_compiling" = yes; then :
17412 lt_cv_dlopen_self_static=cross
17413else
John Criswell47fdd832003-07-14 16:52:07 +000017414 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017415 lt_status=$lt_dlunknown
17416 cat > conftest.$ac_ext <<EOF
Douglas Gregor0711c302009-06-17 00:43:20 +000017417#line 17417 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017418#include "confdefs.h"
17419
17420#if HAVE_DLFCN_H
17421#include <dlfcn.h>
17422#endif
17423
17424#include <stdio.h>
17425
17426#ifdef RTLD_GLOBAL
17427# define LT_DLGLOBAL RTLD_GLOBAL
17428#else
17429# ifdef DL_GLOBAL
17430# define LT_DLGLOBAL DL_GLOBAL
17431# else
17432# define LT_DLGLOBAL 0
17433# endif
17434#endif
17435
17436/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17437 find out it does not work in some platform. */
17438#ifndef LT_DLLAZY_OR_NOW
17439# ifdef RTLD_LAZY
17440# define LT_DLLAZY_OR_NOW RTLD_LAZY
17441# else
17442# ifdef DL_LAZY
17443# define LT_DLLAZY_OR_NOW DL_LAZY
17444# else
17445# ifdef RTLD_NOW
17446# define LT_DLLAZY_OR_NOW RTLD_NOW
17447# else
17448# ifdef DL_NOW
17449# define LT_DLLAZY_OR_NOW DL_NOW
17450# else
17451# define LT_DLLAZY_OR_NOW 0
17452# endif
17453# endif
17454# endif
17455# endif
17456#endif
17457
17458#ifdef __cplusplus
17459extern "C" void exit (int);
17460#endif
17461
17462void fnord() { int i=42;}
17463int main ()
17464{
17465 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17466 int status = $lt_dlunknown;
17467
17468 if (self)
17469 {
17470 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17471 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17472 /* dlclose (self); */
17473 }
Reid Spencera773bd52006-08-04 18:18:08 +000017474 else
17475 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017476
17477 exit (status);
17478}
17479EOF
17480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481 (eval $ac_link) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017485 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017486 lt_status=$?
17487 case x$lt_status in
17488 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17489 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017490 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017491 esac
17492 else :
17493 # compilation failed
17494 lt_cv_dlopen_self_static=no
17495 fi
17496fi
17497rm -fr conftest*
17498
17499
17500fi
Reid Spencera773bd52006-08-04 18:18:08 +000017501{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17502echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017503 fi
17504
17505 CPPFLAGS="$save_CPPFLAGS"
17506 LDFLAGS="$save_LDFLAGS"
17507 LIBS="$save_LIBS"
17508 ;;
17509 esac
17510
17511 case $lt_cv_dlopen_self in
17512 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17513 *) enable_dlopen_self=unknown ;;
17514 esac
17515
17516 case $lt_cv_dlopen_self_static in
17517 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17518 *) enable_dlopen_self_static=unknown ;;
17519 esac
17520fi
17521
17522
Reid Spencera773bd52006-08-04 18:18:08 +000017523# Report which library types will actually be built
17524{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17525echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17526{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17527echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017528
Reid Spencera773bd52006-08-04 18:18:08 +000017529{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17530echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017531test "$can_build_shared" = "no" && enable_shared=no
17532
17533# On AIX, shared libraries and static libraries use the same namespace, and
17534# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017535case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017536aix3*)
17537 test "$enable_shared" = yes && enable_static=no
17538 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017539 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017540 postinstall_cmds='$RANLIB $lib'
17541 fi
17542 ;;
17543
Reid Spencer2706f8c2004-09-19 23:53:36 +000017544aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017545 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17546 test "$enable_shared" = yes && enable_static=no
17547 fi
John Criswell7a73b802003-06-30 21:59:07 +000017548 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017549esac
Reid Spencera773bd52006-08-04 18:18:08 +000017550{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17551echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017552
Reid Spencera773bd52006-08-04 18:18:08 +000017553{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17554echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017555# Make sure either enable_shared or enable_static is yes.
17556test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017557{ echo "$as_me:$LINENO: result: $enable_static" >&5
17558echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017559
17560# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017561# libtool distribution, otherwise you forgot to ship ltmain.sh
17562# with your package, and you will get complaints that there are
17563# no rules to generate ltmain.sh.
17564if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017565 # See if we are running on zsh, and set the options which allow our commands through
17566 # without removal of \ escapes.
17567 if test -n "${ZSH_VERSION+set}" ; then
17568 setopt NO_GLOB_SUBST
17569 fi
John Criswell7a73b802003-06-30 21:59:07 +000017570 # Now quote all the things that may contain metacharacters while being
17571 # careful not to overquote the AC_SUBSTed values. We take copies of the
17572 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017573 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 +000017574 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17577 deplibs_check_method reload_flag reload_cmds need_locks \
17578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17579 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017581 old_postinstall_cmds old_postuninstall_cmds \
17582 compiler \
17583 CC \
17584 LD \
17585 lt_prog_compiler_wl \
17586 lt_prog_compiler_pic \
17587 lt_prog_compiler_static \
17588 lt_prog_compiler_no_builtin_flag \
17589 export_dynamic_flag_spec \
17590 thread_safe_flag_spec \
17591 whole_archive_flag_spec \
17592 enable_shared_with_static_runtimes \
17593 old_archive_cmds \
17594 old_archive_from_new_cmds \
17595 predep_objects \
17596 postdep_objects \
17597 predeps \
17598 postdeps \
17599 compiler_lib_search_path \
17600 archive_cmds \
17601 archive_expsym_cmds \
17602 postinstall_cmds \
17603 postuninstall_cmds \
17604 old_archive_from_expsyms_cmds \
17605 allow_undefined_flag \
17606 no_undefined_flag \
17607 export_symbols_cmds \
17608 hardcode_libdir_flag_spec \
17609 hardcode_libdir_flag_spec_ld \
17610 hardcode_libdir_separator \
17611 hardcode_automatic \
17612 module_cmds \
17613 module_expsym_cmds \
17614 lt_cv_prog_compiler_c_o \
17615 exclude_expsyms \
17616 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017617
17618 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017619 old_archive_cmds | \
17620 old_archive_from_new_cmds | \
17621 archive_cmds | \
17622 archive_expsym_cmds | \
17623 module_cmds | \
17624 module_expsym_cmds | \
17625 old_archive_from_expsyms_cmds | \
17626 export_symbols_cmds | \
17627 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017628 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017629 old_postinstall_cmds | old_postuninstall_cmds | \
17630 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017631 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017632 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 +000017633 ;;
17634 *)
17635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17636 ;;
17637 esac
17638 done
17639
John Criswell47fdd832003-07-14 16:52:07 +000017640 case $lt_echo in
17641 *'\$0 --fallback-echo"')
17642 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17643 ;;
17644 esac
17645
17646cfgfile="${ofile}T"
17647 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17648 $rm -f "$cfgfile"
17649 { echo "$as_me:$LINENO: creating $ofile" >&5
17650echo "$as_me: creating $ofile" >&6;}
17651
17652 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017653#! $SHELL
17654
John Criswell47fdd832003-07-14 16:52:07 +000017655# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017656# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17657# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17658#
John Criswell47fdd832003-07-14 16:52:07 +000017659# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17660# Free Software Foundation, Inc.
17661#
17662# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017663# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17664#
17665# This program is free software; you can redistribute it and/or modify
17666# it under the terms of the GNU General Public License as published by
17667# the Free Software Foundation; either version 2 of the License, or
17668# (at your option) any later version.
17669#
17670# This program is distributed in the hope that it will be useful, but
17671# WITHOUT ANY WARRANTY; without even the implied warranty of
17672# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17673# General Public License for more details.
17674#
17675# You should have received a copy of the GNU General Public License
17676# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017677# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017678#
17679# As a special exception to the GNU General Public License, if you
17680# distribute this file as part of a program that contains a
17681# configuration script generated by Autoconf, you may include it under
17682# the same distribution terms that you use for the rest of that program.
17683
John Criswell47fdd832003-07-14 16:52:07 +000017684# A sed program that does not truncate output.
17685SED=$lt_SED
17686
John Criswell7a73b802003-06-30 21:59:07 +000017687# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017688Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017689
17690# The HP-UX ksh and POSIX shell print the target directory to stdout
17691# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017692(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017693
John Criswell47fdd832003-07-14 16:52:07 +000017694# The names of the tagged configurations supported by this script.
17695available_tags=
17696
John Criswell7a73b802003-06-30 21:59:07 +000017697# ### BEGIN LIBTOOL CONFIG
17698
17699# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17700
17701# Shell to use when invoking shell scripts.
17702SHELL=$lt_SHELL
17703
17704# Whether or not to build shared libraries.
17705build_libtool_libs=$enable_shared
17706
17707# Whether or not to build static libraries.
17708build_old_libs=$enable_static
17709
17710# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017711build_libtool_need_lc=$archive_cmds_need_lc
17712
17713# Whether or not to disallow shared libs when runtime libs are static
17714allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017715
17716# Whether or not to optimize for fast installation.
17717fast_install=$enable_fast_install
17718
17719# The host system.
17720host_alias=$host_alias
17721host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017722host_os=$host_os
17723
17724# The build system.
17725build_alias=$build_alias
17726build=$build
17727build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017728
17729# An echo program that does not interpret backslashes.
17730echo=$lt_echo
17731
17732# The archiver.
17733AR=$lt_AR
17734AR_FLAGS=$lt_AR_FLAGS
17735
John Criswell47fdd832003-07-14 16:52:07 +000017736# A C compiler.
17737LTCC=$lt_LTCC
17738
Reid Spencera773bd52006-08-04 18:18:08 +000017739# LTCC compiler flags.
17740LTCFLAGS=$lt_LTCFLAGS
17741
John Criswell47fdd832003-07-14 16:52:07 +000017742# A language-specific compiler.
17743CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017744
17745# Is the compiler the GNU C compiler?
17746with_gcc=$GCC
17747
John Criswell47fdd832003-07-14 16:52:07 +000017748# An ERE matcher.
17749EGREP=$lt_EGREP
17750
John Criswell7a73b802003-06-30 21:59:07 +000017751# The linker used to build libraries.
17752LD=$lt_LD
17753
17754# Whether we need hard or soft links.
17755LN_S=$lt_LN_S
17756
17757# A BSD-compatible nm program.
17758NM=$lt_NM
17759
17760# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017761STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017762
17763# Used to examine libraries when file_magic_cmd begins "file"
17764MAGIC_CMD=$MAGIC_CMD
17765
17766# Used on cygwin: DLL creation program.
17767DLLTOOL="$DLLTOOL"
17768
17769# Used on cygwin: object dumper.
17770OBJDUMP="$OBJDUMP"
17771
17772# Used on cygwin: assembler.
17773AS="$AS"
17774
17775# The name of the directory that contains temporary libtool files.
17776objdir=$objdir
17777
17778# How to create reloadable object files.
17779reload_flag=$lt_reload_flag
17780reload_cmds=$lt_reload_cmds
17781
17782# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017783wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017784
17785# Object file suffix (normally "o").
17786objext="$ac_objext"
17787
17788# Old archive suffix (normally "a").
17789libext="$libext"
17790
John Criswell47fdd832003-07-14 16:52:07 +000017791# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017792shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017793
John Criswell7a73b802003-06-30 21:59:07 +000017794# Executable file suffix (normally "").
17795exeext="$exeext"
17796
17797# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017798pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017799pic_mode=$pic_mode
17800
John Criswell47fdd832003-07-14 16:52:07 +000017801# What is the maximum length of a command?
17802max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017803
John Criswell47fdd832003-07-14 16:52:07 +000017804# Does compiler simultaneously support -c and -o options?
17805compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017806
Reid Spencera773bd52006-08-04 18:18:08 +000017807# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017808need_locks=$lt_need_locks
17809
17810# Do we need the lib prefix for modules?
17811need_lib_prefix=$need_lib_prefix
17812
17813# Do we need a version for libraries?
17814need_version=$need_version
17815
17816# Whether dlopen is supported.
17817dlopen_support=$enable_dlopen
17818
17819# Whether dlopen of programs is supported.
17820dlopen_self=$enable_dlopen_self
17821
17822# Whether dlopen of statically linked programs is supported.
17823dlopen_self_static=$enable_dlopen_self_static
17824
17825# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017826link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017827
17828# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017829no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017830
17831# Compiler flag to allow reflexive dlopens.
17832export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17833
17834# Compiler flag to generate shared objects directly from archives.
17835whole_archive_flag_spec=$lt_whole_archive_flag_spec
17836
17837# Compiler flag to generate thread-safe objects.
17838thread_safe_flag_spec=$lt_thread_safe_flag_spec
17839
17840# Library versioning type.
17841version_type=$version_type
17842
17843# Format of library name prefix.
17844libname_spec=$lt_libname_spec
17845
17846# List of archive names. First name is the real one, the rest are links.
17847# The last name is the one that the linker finds with -lNAME.
17848library_names_spec=$lt_library_names_spec
17849
17850# The coded name of the library, if different from the real name.
17851soname_spec=$lt_soname_spec
17852
17853# Commands used to build and install an old-style archive.
17854RANLIB=$lt_RANLIB
17855old_archive_cmds=$lt_old_archive_cmds
17856old_postinstall_cmds=$lt_old_postinstall_cmds
17857old_postuninstall_cmds=$lt_old_postuninstall_cmds
17858
17859# Create an old-style archive from a shared archive.
17860old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17861
17862# Create a temporary old-style archive to link instead of a shared archive.
17863old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17864
17865# Commands used to build and install a shared archive.
17866archive_cmds=$lt_archive_cmds
17867archive_expsym_cmds=$lt_archive_expsym_cmds
17868postinstall_cmds=$lt_postinstall_cmds
17869postuninstall_cmds=$lt_postuninstall_cmds
17870
John Criswell47fdd832003-07-14 16:52:07 +000017871# Commands used to build a loadable module (assumed same as above if empty)
17872module_cmds=$lt_module_cmds
17873module_expsym_cmds=$lt_module_expsym_cmds
17874
John Criswell7a73b802003-06-30 21:59:07 +000017875# Commands to strip libraries.
17876old_striplib=$lt_old_striplib
17877striplib=$lt_striplib
17878
John Criswell47fdd832003-07-14 16:52:07 +000017879# Dependencies to place before the objects being linked to create a
17880# shared library.
17881predep_objects=$lt_predep_objects
17882
17883# Dependencies to place after the objects being linked to create a
17884# shared library.
17885postdep_objects=$lt_postdep_objects
17886
17887# Dependencies to place before the objects being linked to create a
17888# shared library.
17889predeps=$lt_predeps
17890
17891# Dependencies to place after the objects being linked to create a
17892# shared library.
17893postdeps=$lt_postdeps
17894
17895# The library search path used internally by the compiler when linking
17896# a shared library.
17897compiler_lib_search_path=$lt_compiler_lib_search_path
17898
John Criswell7a73b802003-06-30 21:59:07 +000017899# Method to check whether dependent libraries are shared objects.
17900deplibs_check_method=$lt_deplibs_check_method
17901
17902# Command to use when deplibs_check_method == file_magic.
17903file_magic_cmd=$lt_file_magic_cmd
17904
17905# Flag that allows shared libraries with undefined symbols to be built.
17906allow_undefined_flag=$lt_allow_undefined_flag
17907
17908# Flag that forces no undefined symbols.
17909no_undefined_flag=$lt_no_undefined_flag
17910
17911# Commands used to finish a libtool library installation in a directory.
17912finish_cmds=$lt_finish_cmds
17913
17914# Same as above, but a single script fragment to be evaled but not shown.
17915finish_eval=$lt_finish_eval
17916
17917# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017918global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017919
17920# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017921global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017922
17923# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017924global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017925
17926# This is the shared library runtime path variable.
17927runpath_var=$runpath_var
17928
17929# This is the shared library path variable.
17930shlibpath_var=$shlibpath_var
17931
17932# Is shlibpath searched before the hard-coded library search path?
17933shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17934
17935# How to hardcode a shared library path into an executable.
17936hardcode_action=$hardcode_action
17937
17938# Whether we should hardcode library paths into libraries.
17939hardcode_into_libs=$hardcode_into_libs
17940
17941# Flag to hardcode \$libdir into a binary during linking.
17942# This must work even if \$libdir does not exist.
17943hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17944
John Criswell47fdd832003-07-14 16:52:07 +000017945# If ld is used when linking, flag to hardcode \$libdir into
17946# a binary during linking. This must work even if \$libdir does
17947# not exist.
17948hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17949
John Criswell7a73b802003-06-30 21:59:07 +000017950# Whether we need a single -rpath flag with a separated argument.
17951hardcode_libdir_separator=$lt_hardcode_libdir_separator
17952
John Criswell47fdd832003-07-14 16:52:07 +000017953# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017954# resulting binary.
17955hardcode_direct=$hardcode_direct
17956
17957# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17958# resulting binary.
17959hardcode_minus_L=$hardcode_minus_L
17960
17961# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17962# the resulting binary.
17963hardcode_shlibpath_var=$hardcode_shlibpath_var
17964
John Criswell47fdd832003-07-14 16:52:07 +000017965# Set to yes if building a shared library automatically hardcodes DIR into the library
17966# and all subsequent libraries and executables linked against it.
17967hardcode_automatic=$hardcode_automatic
17968
John Criswell7a73b802003-06-30 21:59:07 +000017969# Variables whose values should be saved in libtool wrapper scripts and
17970# restored at relink time.
17971variables_saved_for_relink="$variables_saved_for_relink"
17972
17973# Whether libtool must link a program against all its dependency libraries.
17974link_all_deplibs=$link_all_deplibs
17975
17976# Compile-time system search path for libraries
17977sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17978
17979# Run-time system search path for libraries
17980sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17981
17982# Fix the shell variable \$srcfile for the compiler.
17983fix_srcfile_path="$fix_srcfile_path"
17984
17985# Set to yes if exported symbols are required.
17986always_export_symbols=$always_export_symbols
17987
17988# The commands to list exported symbols.
17989export_symbols_cmds=$lt_export_symbols_cmds
17990
17991# The commands to extract the exported symbol list from a shared archive.
17992extract_expsyms_cmds=$lt_extract_expsyms_cmds
17993
17994# Symbols that should not be listed in the preloaded symbols.
17995exclude_expsyms=$lt_exclude_expsyms
17996
17997# Symbols that must always be exported.
17998include_expsyms=$lt_include_expsyms
17999
18000# ### END LIBTOOL CONFIG
18001
18002__EOF__
18003
John Criswell47fdd832003-07-14 16:52:07 +000018004
John Criswell7a73b802003-06-30 21:59:07 +000018005 case $host_os in
18006 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018007 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018008
18009# AIX sometimes has problems with the GCC collect2 program. For some
18010# reason, if we set the COLLECT_NAMES environment variable, the problems
18011# vanish in a puff of smoke.
18012if test "X${COLLECT_NAMES+set}" != Xset; then
18013 COLLECT_NAMES=
18014 export COLLECT_NAMES
18015fi
18016EOF
18017 ;;
18018 esac
18019
John Criswell7a73b802003-06-30 21:59:07 +000018020 # We use sed instead of cat because bash on DJGPP gets confused if
18021 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18022 # text mode, it properly converts lines to CR/LF. This bash problem
18023 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018024 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018025
John Criswell47fdd832003-07-14 16:52:07 +000018026 mv -f "$cfgfile" "$ofile" || \
18027 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018028 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018029
18030else
18031 # If there is no Makefile yet, we rely on a make rule to execute
18032 # `config.status --recheck' to rerun these tests and create the
18033 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018034 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18035 if test -f "$ltmain_in"; then
18036 test -f Makefile && make "$ltmain"
18037 fi
John Criswell7a73b802003-06-30 21:59:07 +000018038fi
John Criswell7a73b802003-06-30 21:59:07 +000018039
18040
John Criswell47fdd832003-07-14 16:52:07 +000018041ac_ext=c
18042ac_cpp='$CPP $CPPFLAGS'
18043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18045ac_compiler_gnu=$ac_cv_c_compiler_gnu
18046
18047CC="$lt_save_CC"
18048
18049
Reid Spencera773bd52006-08-04 18:18:08 +000018050# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018051if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018052 withval=$with_tags; tagnames="$withval"
18053fi
18054
John Criswell47fdd832003-07-14 16:52:07 +000018055
18056if test -f "$ltmain" && test -n "$tagnames"; then
18057 if test ! -f "${ofile}"; then
18058 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18059echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18060 fi
18061
18062 if test -z "$LTCC"; then
18063 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18064 if test -z "$LTCC"; then
18065 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18066echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18067 else
18068 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18069echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18070 fi
18071 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018072 if test -z "$LTCFLAGS"; then
18073 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18074 fi
John Criswell47fdd832003-07-14 16:52:07 +000018075
18076 # Extract list of available tagged configurations in $ofile.
18077 # Note that this assumes the entire list is on one line.
18078 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18079
18080 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18081 for tagname in $tagnames; do
18082 IFS="$lt_save_ifs"
18083 # Check whether tagname contains only valid characters
18084 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18085 "") ;;
18086 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18087echo "$as_me: error: invalid tag name: $tagname" >&2;}
18088 { (exit 1); exit 1; }; }
18089 ;;
18090 esac
18091
18092 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18093 then
18094 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18095echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18096 { (exit 1); exit 1; }; }
18097 fi
18098
18099 # Update the list of available tags.
18100 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018101 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018102
18103 case $tagname in
18104 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018105 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18106 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18107 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018108 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018109ac_cpp='$CXXCPP $CPPFLAGS'
18110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18113
18114
18115
18116
18117archive_cmds_need_lc_CXX=no
18118allow_undefined_flag_CXX=
18119always_export_symbols_CXX=no
18120archive_expsym_cmds_CXX=
18121export_dynamic_flag_spec_CXX=
18122hardcode_direct_CXX=no
18123hardcode_libdir_flag_spec_CXX=
18124hardcode_libdir_flag_spec_ld_CXX=
18125hardcode_libdir_separator_CXX=
18126hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018127hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018128hardcode_automatic_CXX=no
18129module_cmds_CXX=
18130module_expsym_cmds_CXX=
18131link_all_deplibs_CXX=unknown
18132old_archive_cmds_CXX=$old_archive_cmds
18133no_undefined_flag_CXX=
18134whole_archive_flag_spec_CXX=
18135enable_shared_with_static_runtimes_CXX=no
18136
18137# Dependencies to place before and after the object being linked:
18138predep_objects_CXX=
18139postdep_objects_CXX=
18140predeps_CXX=
18141postdeps_CXX=
18142compiler_lib_search_path_CXX=
18143
18144# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018145ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018146
18147# Object file extension for compiled C++ test sources.
18148objext=o
18149objext_CXX=$objext
18150
18151# Code to be used in simple compile tests
18152lt_simple_compile_test_code="int some_variable = 0;\n"
18153
18154# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018155lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018156
18157# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18158
18159# If no C compiler was specified, use CC.
18160LTCC=${LTCC-"$CC"}
18161
Reid Spencera773bd52006-08-04 18:18:08 +000018162# If no C compiler flags were specified, use CFLAGS.
18163LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18164
John Criswell47fdd832003-07-14 16:52:07 +000018165# Allow CC to be a program name with arguments.
18166compiler=$CC
18167
18168
Reid Spencera773bd52006-08-04 18:18:08 +000018169# save warnings/boilerplate of simple test code
18170ac_outfile=conftest.$ac_objext
18171printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18172eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18173_lt_compiler_boilerplate=`cat conftest.err`
18174$rm conftest*
18175
18176ac_outfile=conftest.$ac_objext
18177printf "$lt_simple_link_test_code" >conftest.$ac_ext
18178eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18179_lt_linker_boilerplate=`cat conftest.err`
18180$rm conftest*
18181
18182
John Criswell47fdd832003-07-14 16:52:07 +000018183# Allow CC to be a program name with arguments.
18184lt_save_CC=$CC
18185lt_save_LD=$LD
18186lt_save_GCC=$GCC
18187GCC=$GXX
18188lt_save_with_gnu_ld=$with_gnu_ld
18189lt_save_path_LD=$lt_cv_path_LD
18190if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18191 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18192else
Reid Spencera773bd52006-08-04 18:18:08 +000018193 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018194fi
18195if test -n "${lt_cv_path_LDCXX+set}"; then
18196 lt_cv_path_LD=$lt_cv_path_LDCXX
18197else
Reid Spencera773bd52006-08-04 18:18:08 +000018198 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018199fi
18200test -z "${LDCXX+set}" || LD=$LDCXX
18201CC=${CXX-"c++"}
18202compiler=$CC
18203compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018204for cc_temp in $compiler""; do
18205 case $cc_temp in
18206 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18207 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18208 \-*) ;;
18209 *) break;;
18210 esac
18211done
18212cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18213
John Criswell47fdd832003-07-14 16:52:07 +000018214
18215# We don't want -fno-exception wen compiling C++ code, so set the
18216# no_builtin_flag separately
18217if test "$GXX" = yes; then
18218 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18219else
18220 lt_prog_compiler_no_builtin_flag_CXX=
18221fi
18222
18223if test "$GXX" = yes; then
18224 # Set up default GNU C++ configuration
18225
18226
Reid Spencera773bd52006-08-04 18:18:08 +000018227# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018228if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018229 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018230else
18231 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018232fi
18233
John Criswell47fdd832003-07-14 16:52:07 +000018234ac_prog=ld
18235if test "$GCC" = yes; then
18236 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018237 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18238echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018239 case $host in
18240 *-*-mingw*)
18241 # gcc leaves a trailing carriage return which upsets mingw
18242 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18243 *)
18244 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18245 esac
18246 case $ac_prog in
18247 # Accept absolute paths.
18248 [\\/]* | ?:[\\/]*)
18249 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018250 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018251 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18252 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18253 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18254 done
18255 test -z "$LD" && LD="$ac_prog"
18256 ;;
18257 "")
18258 # If it fails, then pretend we aren't using GCC.
18259 ac_prog=ld
18260 ;;
18261 *)
18262 # If it is relative, then search for the first ld in PATH.
18263 with_gnu_ld=unknown
18264 ;;
18265 esac
18266elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018267 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18268echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018269else
Reid Spencera773bd52006-08-04 18:18:08 +000018270 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18271echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018272fi
18273if test "${lt_cv_path_LD+set}" = set; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18275else
18276 if test -z "$LD"; then
18277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18278 for ac_dir in $PATH; do
18279 IFS="$lt_save_ifs"
18280 test -z "$ac_dir" && ac_dir=.
18281 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18282 lt_cv_path_LD="$ac_dir/$ac_prog"
18283 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018284 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018285 # Break only if it was the GNU/non-GNU ld that we prefer.
18286 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18287 *GNU* | *'with BFD'*)
18288 test "$with_gnu_ld" != no && break
18289 ;;
18290 *)
18291 test "$with_gnu_ld" != yes && break
18292 ;;
18293 esac
18294 fi
18295 done
18296 IFS="$lt_save_ifs"
18297else
18298 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18299fi
18300fi
18301
18302LD="$lt_cv_path_LD"
18303if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018304 { echo "$as_me:$LINENO: result: $LD" >&5
18305echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018306else
Reid Spencera773bd52006-08-04 18:18:08 +000018307 { echo "$as_me:$LINENO: result: no" >&5
18308echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018309fi
18310test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18311echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18312 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018313{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18314echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018315if test "${lt_cv_prog_gnu_ld+set}" = set; then
18316 echo $ECHO_N "(cached) $ECHO_C" >&6
18317else
Reid Spencera773bd52006-08-04 18:18:08 +000018318 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018319case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018320*GNU* | *'with BFD'*)
18321 lt_cv_prog_gnu_ld=yes
18322 ;;
18323*)
18324 lt_cv_prog_gnu_ld=no
18325 ;;
18326esac
18327fi
Reid Spencera773bd52006-08-04 18:18:08 +000018328{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18329echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018330with_gnu_ld=$lt_cv_prog_gnu_ld
18331
18332
18333
18334 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18335 # archiving commands below assume that GNU ld is being used.
18336 if test "$with_gnu_ld" = yes; then
18337 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18338 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'
18339
18340 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18341 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18342
18343 # If archive_cmds runs LD, not CC, wlarc should be empty
18344 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18345 # investigate it a little bit more. (MM)
18346 wlarc='${wl}'
18347
18348 # ancient GNU ld didn't support --whole-archive et. al.
18349 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18350 grep 'no-whole-archive' > /dev/null; then
18351 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18352 else
18353 whole_archive_flag_spec_CXX=
18354 fi
18355 else
18356 with_gnu_ld=no
18357 wlarc=
18358
18359 # A generic and very simple default shared library creation
18360 # command for GNU C++ for the case where it uses the native
18361 # linker, instead of GNU ld. If possible, this setting should
18362 # overridden to take advantage of the native linker features on
18363 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018364 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018365 fi
18366
18367 # Commands to make compiler produce verbose output that lists
18368 # what "hidden" libraries, object files and flags are used when
18369 # linking a shared library.
18370 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18371
18372else
18373 GXX=no
18374 with_gnu_ld=no
18375 wlarc=
18376fi
18377
18378# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018379{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18380echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018381ld_shlibs_CXX=yes
18382case $host_os in
18383 aix3*)
18384 # FIXME: insert proper C++ library support
18385 ld_shlibs_CXX=no
18386 ;;
18387 aix4* | aix5*)
18388 if test "$host_cpu" = ia64; then
18389 # On IA64, the linker does run time linking by default, so we don't
18390 # have to do anything special.
18391 aix_use_runtimelinking=no
18392 exp_sym_flag='-Bexport'
18393 no_entry_flag=""
18394 else
18395 aix_use_runtimelinking=no
18396
18397 # Test if we are trying to use run time linking or normal
18398 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18399 # need to do runtime linking.
18400 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18401 for ld_flag in $LDFLAGS; do
18402 case $ld_flag in
18403 *-brtl*)
18404 aix_use_runtimelinking=yes
18405 break
18406 ;;
18407 esac
18408 done
Reid Spencera773bd52006-08-04 18:18:08 +000018409 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018410 esac
18411
18412 exp_sym_flag='-bexport'
18413 no_entry_flag='-bnoentry'
18414 fi
18415
18416 # When large executables or shared objects are built, AIX ld can
18417 # have problems creating the table of contents. If linking a library
18418 # or program results in "error TOC overflow" add -mminimal-toc to
18419 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18420 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18421
18422 archive_cmds_CXX=''
18423 hardcode_direct_CXX=yes
18424 hardcode_libdir_separator_CXX=':'
18425 link_all_deplibs_CXX=yes
18426
18427 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018428 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018429 # We only want to do this on AIX 4.2 and lower, the check
18430 # below for broken collect2 doesn't work under 4.3+
18431 collect2name=`${CC} -print-prog-name=collect2`
18432 if test -f "$collect2name" && \
18433 strings "$collect2name" | grep resolve_lib_name >/dev/null
18434 then
18435 # We have reworked collect2
18436 hardcode_direct_CXX=yes
18437 else
18438 # We have old collect2
18439 hardcode_direct_CXX=unsupported
18440 # It fails to find uninstalled libraries when the uninstalled
18441 # path is not listed in the libpath. Setting hardcode_minus_L
18442 # to unsupported forces relinking
18443 hardcode_minus_L_CXX=yes
18444 hardcode_libdir_flag_spec_CXX='-L$libdir'
18445 hardcode_libdir_separator_CXX=
18446 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018447 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018448 esac
18449 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018450 if test "$aix_use_runtimelinking" = yes; then
18451 shared_flag="$shared_flag "'${wl}-G'
18452 fi
John Criswell47fdd832003-07-14 16:52:07 +000018453 else
18454 # not using gcc
18455 if test "$host_cpu" = ia64; then
18456 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18457 # chokes on -Wl,-G. The following line is correct:
18458 shared_flag='-G'
18459 else
18460 if test "$aix_use_runtimelinking" = yes; then
18461 shared_flag='${wl}-G'
18462 else
18463 shared_flag='${wl}-bM:SRE'
18464 fi
18465 fi
18466 fi
18467
18468 # It seems that -bexpall does not export symbols beginning with
18469 # underscore (_), so it is better to generate a list of symbols to export.
18470 always_export_symbols_CXX=yes
18471 if test "$aix_use_runtimelinking" = yes; then
18472 # Warning - without using the other runtime loading flags (-brtl),
18473 # -berok will link without error, but may produce a broken library.
18474 allow_undefined_flag_CXX='-berok'
18475 # Determine the default libpath from the value encoded in an empty executable.
18476 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018477/* confdefs.h. */
18478_ACEOF
18479cat confdefs.h >>conftest.$ac_ext
18480cat >>conftest.$ac_ext <<_ACEOF
18481/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018482
John Criswell47fdd832003-07-14 16:52:07 +000018483int
18484main ()
18485{
18486
18487 ;
18488 return 0;
18489}
18490_ACEOF
18491rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018492if { (ac_try="$ac_link"
18493case "(($ac_try" in
18494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18495 *) ac_try_echo=$ac_try;;
18496esac
18497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18498 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018499 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018500 grep -v '^ *+' conftest.er1 >conftest.err
18501 rm -f conftest.er1
18502 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018504 (exit $ac_status); } &&
18505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18506 { (case "(($ac_try" in
18507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508 *) ac_try_echo=$ac_try;;
18509esac
18510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511 (eval "$ac_try") 2>&5
18512 ac_status=$?
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; } &&
18515 { ac_try='test -s conftest$ac_exeext'
18516 { (case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18519esac
18520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18521 (eval "$ac_try") 2>&5
18522 ac_status=$?
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018525
18526aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18527}'`
18528# Check for a 64-bit object if we didn't find anything.
18529if 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; }
18530}'`; fi
18531else
18532 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018533sed 's/^/| /' conftest.$ac_ext >&5
18534
Reid Spencera773bd52006-08-04 18:18:08 +000018535
John Criswell47fdd832003-07-14 16:52:07 +000018536fi
Reid Spencera773bd52006-08-04 18:18:08 +000018537
Bill Wendlingebcceee2009-04-18 11:20:33 +000018538rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018539 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018540if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18541
18542 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18543
Reid Spencera773bd52006-08-04 18:18:08 +000018544 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 +000018545 else
18546 if test "$host_cpu" = ia64; then
18547 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18548 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018549 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 +000018550 else
18551 # Determine the default libpath from the value encoded in an empty executable.
18552 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018553/* confdefs.h. */
18554_ACEOF
18555cat confdefs.h >>conftest.$ac_ext
18556cat >>conftest.$ac_ext <<_ACEOF
18557/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018558
John Criswell47fdd832003-07-14 16:52:07 +000018559int
18560main ()
18561{
18562
18563 ;
18564 return 0;
18565}
18566_ACEOF
18567rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018568if { (ac_try="$ac_link"
18569case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18572esac
18573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018575 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018576 grep -v '^ *+' conftest.er1 >conftest.err
18577 rm -f conftest.er1
18578 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018580 (exit $ac_status); } &&
18581 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18582 { (case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18585esac
18586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_try") 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); }; } &&
18591 { ac_try='test -s conftest$ac_exeext'
18592 { (case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18595esac
18596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597 (eval "$ac_try") 2>&5
18598 ac_status=$?
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018601
18602aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18603}'`
18604# Check for a 64-bit object if we didn't find anything.
18605if 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; }
18606}'`; fi
18607else
18608 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018609sed 's/^/| /' conftest.$ac_ext >&5
18610
Reid Spencera773bd52006-08-04 18:18:08 +000018611
John Criswell47fdd832003-07-14 16:52:07 +000018612fi
Reid Spencera773bd52006-08-04 18:18:08 +000018613
Bill Wendlingebcceee2009-04-18 11:20:33 +000018614rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018615 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018616if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18617
18618 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18619 # Warning - without using the other run time loading flags,
18620 # -berok will link without error, but may produce a broken library.
18621 no_undefined_flag_CXX=' ${wl}-bernotok'
18622 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018623 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018624 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018625 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018626 # This is similar to how AIX traditionally builds its shared libraries.
18627 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 +000018628 fi
18629 fi
18630 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018631
18632 beos*)
18633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18634 allow_undefined_flag_CXX=unsupported
18635 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18636 # support --undefined. This deserves some investigation. FIXME
18637 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18638 else
18639 ld_shlibs_CXX=no
18640 fi
18641 ;;
18642
John Criswell47fdd832003-07-14 16:52:07 +000018643 chorus*)
18644 case $cc_basename in
18645 *)
18646 # FIXME: insert proper C++ library support
18647 ld_shlibs_CXX=no
18648 ;;
18649 esac
18650 ;;
18651
18652 cygwin* | mingw* | pw32*)
18653 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18654 # as there is no search path for DLLs.
18655 hardcode_libdir_flag_spec_CXX='-L$libdir'
18656 allow_undefined_flag_CXX=unsupported
18657 always_export_symbols_CXX=no
18658 enable_shared_with_static_runtimes_CXX=yes
18659
18660 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018661 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 +000018662 # If the export-symbols file already is a .def file (1st line
18663 # is EXPORTS), use it as is; otherwise, prepend...
18664 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18665 cp $export_symbols $output_objdir/$soname.def;
18666 else
18667 echo EXPORTS > $output_objdir/$soname.def;
18668 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018669 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018670 $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 +000018671 else
18672 ld_shlibs_CXX=no
18673 fi
18674 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018675 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018676 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018677 rhapsody* | darwin1.[012])
18678 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18679 ;;
18680 *) # Darwin 1.3 on
18681 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18682 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18683 else
18684 case ${MACOSX_DEPLOYMENT_TARGET} in
18685 10.[012])
18686 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18687 ;;
18688 10.*)
18689 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18690 ;;
18691 esac
18692 fi
18693 ;;
18694 esac
18695 archive_cmds_need_lc_CXX=no
18696 hardcode_direct_CXX=no
18697 hardcode_automatic_CXX=yes
18698 hardcode_shlibpath_var_CXX=unsupported
18699 whole_archive_flag_spec_CXX=''
18700 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018701
Reid Spencer2706f8c2004-09-19 23:53:36 +000018702 if test "$GXX" = yes ; then
18703 lt_int_apple_cc_single_mod=no
18704 output_verbose_link_cmd='echo'
18705 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18706 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018707 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018708 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018709 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 +000018710 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018711 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 +000018712 fi
18713 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018714 # 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 +000018715 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018716 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 +000018717 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018718 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -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 +000018719 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018720 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 +000018721 else
Reid Spencera773bd52006-08-04 18:18:08 +000018722 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018723 xlc*)
18724 output_verbose_link_cmd='echo'
18725 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'
18726 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018727 # 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 +000018728 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}'
18729 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 +000018730 ;;
18731 *)
18732 ld_shlibs_CXX=no
18733 ;;
18734 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018735 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018736 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018737
18738 dgux*)
18739 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018740 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018741 # FIXME: insert proper C++ library support
18742 ld_shlibs_CXX=no
18743 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018744 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018745 # Green Hills C++ Compiler
18746 # FIXME: insert proper C++ library support
18747 ld_shlibs_CXX=no
18748 ;;
18749 *)
18750 # FIXME: insert proper C++ library support
18751 ld_shlibs_CXX=no
18752 ;;
18753 esac
18754 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018755 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018756 # C++ shared libraries reported to be fairly broken before switch to ELF
18757 ld_shlibs_CXX=no
18758 ;;
18759 freebsd-elf*)
18760 archive_cmds_need_lc_CXX=no
18761 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018762 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018763 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18764 # conventions
18765 ld_shlibs_CXX=yes
18766 ;;
18767 gnu*)
18768 ;;
18769 hpux9*)
18770 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18771 hardcode_libdir_separator_CXX=:
18772 export_dynamic_flag_spec_CXX='${wl}-E'
18773 hardcode_direct_CXX=yes
18774 hardcode_minus_L_CXX=yes # Not in the search PATH,
18775 # but as the default
18776 # location of the library.
18777
18778 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018779 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018780 # FIXME: insert proper C++ library support
18781 ld_shlibs_CXX=no
18782 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018783 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018784 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 +000018785 # Commands to make compiler produce verbose output that lists
18786 # what "hidden" libraries, object files and flags are used when
18787 # linking a shared library.
18788 #
18789 # There doesn't appear to be a way to prevent this compiler from
18790 # explicitly linking system object files so we need to strip them
18791 # from the output so that they don't get included in the library
18792 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018793 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 +000018794 ;;
18795 *)
18796 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018797 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 +000018798 else
18799 # FIXME: insert proper C++ library support
18800 ld_shlibs_CXX=no
18801 fi
18802 ;;
18803 esac
18804 ;;
18805 hpux10*|hpux11*)
18806 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018807 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18808 hardcode_libdir_separator_CXX=:
18809
18810 case $host_cpu in
18811 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018812 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018813 ;;
18814 *)
John Criswell47fdd832003-07-14 16:52:07 +000018815 export_dynamic_flag_spec_CXX='${wl}-E'
18816 ;;
18817 esac
18818 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018819 case $host_cpu in
18820 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018821 hardcode_direct_CXX=no
18822 hardcode_shlibpath_var_CXX=no
18823 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018824 *)
18825 hardcode_direct_CXX=yes
18826 hardcode_minus_L_CXX=yes # Not in the search PATH,
18827 # but as the default
18828 # location of the library.
18829 ;;
18830 esac
18831
18832 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018833 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018834 # FIXME: insert proper C++ library support
18835 ld_shlibs_CXX=no
18836 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018837 aCC*)
18838 case $host_cpu in
18839 hppa*64*)
18840 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18841 ;;
18842 ia64*)
18843 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 +000018844 ;;
18845 *)
18846 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18847 ;;
18848 esac
18849 # Commands to make compiler produce verbose output that lists
18850 # what "hidden" libraries, object files and flags are used when
18851 # linking a shared library.
18852 #
18853 # There doesn't appear to be a way to prevent this compiler from
18854 # explicitly linking system object files so we need to strip them
18855 # from the output so that they don't get included in the library
18856 # dependencies.
18857 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'
18858 ;;
18859 *)
18860 if test "$GXX" = yes; then
18861 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018862 case $host_cpu in
18863 hppa*64*)
18864 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18865 ;;
18866 ia64*)
18867 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 +000018868 ;;
18869 *)
18870 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'
18871 ;;
18872 esac
18873 fi
18874 else
18875 # FIXME: insert proper C++ library support
18876 ld_shlibs_CXX=no
18877 fi
18878 ;;
18879 esac
18880 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018881 interix3*)
18882 hardcode_direct_CXX=no
18883 hardcode_shlibpath_var_CXX=no
18884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18885 export_dynamic_flag_spec_CXX='${wl}-E'
18886 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18887 # Instead, shared libraries are loaded at an image base (0x10000000 by
18888 # default) and relocated if they conflict, which is a slow very memory
18889 # consuming and fragmenting process. To avoid this, we pick a random,
18890 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18891 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18892 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'
18893 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'
18894 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018895 irix5* | irix6*)
18896 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018897 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018898 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018899 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 +000018900
18901 # Archives containing C++ object files must be created using
18902 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18903 # necessary to make sure instantiated templates are included
18904 # in the archive.
18905 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18906 ;;
18907 *)
18908 if test "$GXX" = yes; then
18909 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018910 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 +000018911 else
18912 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'
18913 fi
18914 fi
18915 link_all_deplibs_CXX=yes
18916 ;;
18917 esac
18918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18919 hardcode_libdir_separator_CXX=:
18920 ;;
18921 linux*)
18922 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018923 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018924 # Kuck and Associates, Inc. (KAI) C++ Compiler
18925
18926 # KCC will only create a shared library if the output file
18927 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18928 # to its proper name (with version) after linking.
18929 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'
18930 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'
18931 # Commands to make compiler produce verbose output that lists
18932 # what "hidden" libraries, object files and flags are used when
18933 # linking a shared library.
18934 #
18935 # There doesn't appear to be a way to prevent this compiler from
18936 # explicitly linking system object files so we need to strip them
18937 # from the output so that they don't get included in the library
18938 # dependencies.
18939 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'
18940
18941 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18942 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18943
18944 # Archives containing C++ object files must be created using
18945 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18946 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18947 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018948 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018949 # Intel C++
18950 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018951 # version 8.0 and above of icpc choke on multiply defined symbols
18952 # if we add $predep_objects and $postdep_objects, however 7.1 and
18953 # earlier do not add the objects themselves.
18954 case `$CC -V 2>&1` in
18955 *"Version 7."*)
18956 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18957 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'
18958 ;;
18959 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018960 tmp_idyn=
18961 case $host_cpu in
18962 ia64*) tmp_idyn=' -i_dynamic';;
18963 esac
18964 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18965 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 +000018966 ;;
18967 esac
John Criswell47fdd832003-07-14 16:52:07 +000018968 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018969 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18970 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18971 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18972 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018973 pgCC*)
18974 # Portland Group C++ compiler
18975 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18976 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'
18977
18978 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18979 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18980 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'
18981 ;;
18982 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018983 # Compaq C++
18984 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18985 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'
18986
18987 runpath_var=LD_RUN_PATH
18988 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18989 hardcode_libdir_separator_CXX=:
18990
18991 # Commands to make compiler produce verbose output that lists
18992 # what "hidden" libraries, object files and flags are used when
18993 # linking a shared library.
18994 #
18995 # There doesn't appear to be a way to prevent this compiler from
18996 # explicitly linking system object files so we need to strip them
18997 # from the output so that they don't get included in the library
18998 # dependencies.
18999 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'
19000 ;;
19001 esac
19002 ;;
19003 lynxos*)
19004 # FIXME: insert proper C++ library support
19005 ld_shlibs_CXX=no
19006 ;;
19007 m88k*)
19008 # FIXME: insert proper C++ library support
19009 ld_shlibs_CXX=no
19010 ;;
19011 mvs*)
19012 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019013 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019014 # FIXME: insert proper C++ library support
19015 ld_shlibs_CXX=no
19016 ;;
19017 *)
19018 # FIXME: insert proper C++ library support
19019 ld_shlibs_CXX=no
19020 ;;
19021 esac
19022 ;;
19023 netbsd*)
19024 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19025 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19026 wlarc=
19027 hardcode_libdir_flag_spec_CXX='-R$libdir'
19028 hardcode_direct_CXX=yes
19029 hardcode_shlibpath_var_CXX=no
19030 fi
19031 # Workaround some broken pre-1.5 toolchains
19032 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19033 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019034 openbsd2*)
19035 # C++ shared libraries are fairly broken
19036 ld_shlibs_CXX=no
19037 ;;
19038 openbsd*)
19039 hardcode_direct_CXX=yes
19040 hardcode_shlibpath_var_CXX=no
19041 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19042 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19043 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19044 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19045 export_dynamic_flag_spec_CXX='${wl}-E'
19046 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19047 fi
19048 output_verbose_link_cmd='echo'
19049 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019050 osf3*)
19051 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019052 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019053 # Kuck and Associates, Inc. (KAI) C++ Compiler
19054
19055 # KCC will only create a shared library if the output file
19056 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19057 # to its proper name (with version) after linking.
19058 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'
19059
19060 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19061 hardcode_libdir_separator_CXX=:
19062
19063 # Archives containing C++ object files must be created using
19064 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19065 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19066
19067 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019068 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019069 # Rational C++ 2.4.1
19070 # FIXME: insert proper C++ library support
19071 ld_shlibs_CXX=no
19072 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019073 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019074 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019075 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 +000019076
19077 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19078 hardcode_libdir_separator_CXX=:
19079
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 #
19084 # There doesn't appear to be a way to prevent this compiler from
19085 # explicitly linking system object files so we need to strip them
19086 # from the output so that they don't get included in the library
19087 # dependencies.
19088 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'
19089 ;;
19090 *)
19091 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19092 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019093 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 +000019094
19095 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19096 hardcode_libdir_separator_CXX=:
19097
19098 # Commands to make compiler produce verbose output that lists
19099 # what "hidden" libraries, object files and flags are used when
19100 # linking a shared library.
19101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19102
19103 else
19104 # FIXME: insert proper C++ library support
19105 ld_shlibs_CXX=no
19106 fi
19107 ;;
19108 esac
19109 ;;
19110 osf4* | osf5*)
19111 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019112 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019113 # Kuck and Associates, Inc. (KAI) C++ Compiler
19114
19115 # KCC will only create a shared library if the output file
19116 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19117 # to its proper name (with version) after linking.
19118 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'
19119
19120 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19121 hardcode_libdir_separator_CXX=:
19122
19123 # Archives containing C++ object files must be created using
19124 # the KAI C++ compiler.
19125 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19126 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019127 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019128 # Rational C++ 2.4.1
19129 # FIXME: insert proper C++ library support
19130 ld_shlibs_CXX=no
19131 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019132 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019133 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019134 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 +000019135 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19136 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019137 $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 +000019138 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019139
19140 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19141 hardcode_libdir_separator_CXX=:
19142
19143 # Commands to make compiler produce verbose output that lists
19144 # what "hidden" libraries, object files and flags are used when
19145 # linking a shared library.
19146 #
19147 # There doesn't appear to be a way to prevent this compiler from
19148 # explicitly linking system object files so we need to strip them
19149 # from the output so that they don't get included in the library
19150 # dependencies.
19151 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'
19152 ;;
19153 *)
19154 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19155 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019156 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 +000019157
19158 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19159 hardcode_libdir_separator_CXX=:
19160
19161 # Commands to make compiler produce verbose output that lists
19162 # what "hidden" libraries, object files and flags are used when
19163 # linking a shared library.
19164 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19165
19166 else
19167 # FIXME: insert proper C++ library support
19168 ld_shlibs_CXX=no
19169 fi
19170 ;;
19171 esac
19172 ;;
19173 psos*)
19174 # FIXME: insert proper C++ library support
19175 ld_shlibs_CXX=no
19176 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019177 sunos4*)
19178 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019179 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019180 # Sun C++ 4.x
19181 # FIXME: insert proper C++ library support
19182 ld_shlibs_CXX=no
19183 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019184 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019185 # Lucid
19186 # FIXME: insert proper C++ library support
19187 ld_shlibs_CXX=no
19188 ;;
19189 *)
19190 # FIXME: insert proper C++ library support
19191 ld_shlibs_CXX=no
19192 ;;
19193 esac
19194 ;;
19195 solaris*)
19196 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019197 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019198 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019199 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019200 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019201 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 +000019202 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 +000019203 $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 +000019204
19205 hardcode_libdir_flag_spec_CXX='-R$libdir'
19206 hardcode_shlibpath_var_CXX=no
19207 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019208 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019209 *)
19210 # The C++ compiler is used as linker so we must use $wl
19211 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019212 # linker. We must also pass each convience library through
19213 # to the system linker between allextract/defaultextract.
19214 # The C++ compiler will combine linker options so we
19215 # cannot just pass the convience library names through
19216 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019217 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019218 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 +000019219 ;;
19220 esac
19221 link_all_deplibs_CXX=yes
19222
Reid Spencera773bd52006-08-04 18:18:08 +000019223 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019224
19225 # Archives containing C++ object files must be created using
19226 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19227 # necessary to make sure instantiated templates are included
19228 # in the archive.
19229 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19230 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019231 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019232 # Green Hills C++ Compiler
19233 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19234
19235 # The C++ compiler must be used to create the archive.
19236 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19237 ;;
19238 *)
19239 # GNU C++ compiler with Solaris linker
19240 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19241 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19242 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019243 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 +000019244 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19245 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19246
John Criswell47fdd832003-07-14 16:52:07 +000019247 # Commands to make compiler produce verbose output that lists
19248 # what "hidden" libraries, object files and flags are used when
19249 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019250 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019251 else
19252 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19253 # platform.
19254 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 +000019255 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19256 $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 +000019257
19258 # Commands to make compiler produce verbose output that lists
19259 # what "hidden" libraries, object files and flags are used when
19260 # linking a shared library.
19261 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19262 fi
19263
19264 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19265 fi
19266 ;;
19267 esac
19268 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019269 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19270 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019271 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019272 hardcode_shlibpath_var_CXX=no
19273 runpath_var='LD_RUN_PATH'
19274
19275 case $cc_basename in
19276 CC*)
19277 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19278 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19279 ;;
19280 *)
19281 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19282 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19283 ;;
19284 esac
19285 ;;
19286 sysv5* | sco3.2v5* | sco5v6*)
19287 # Note: We can NOT use -z defs as we might desire, because we do not
19288 # link with -lc, and that would cause any symbols used from libc to
19289 # always be unresolved, which means just about no library would
19290 # ever link correctly. If we're not using GNU ld we use -z text
19291 # though, which does catch some bad symbols but isn't as heavy-handed
19292 # as -z defs.
19293 # For security reasons, it is highly recommended that you always
19294 # use absolute paths for naming shared libraries, and exclude the
19295 # DT_RUNPATH tag from executables and libraries. But doing so
19296 # requires that you compile everything twice, which is a pain.
19297 # So that behaviour is only enabled if SCOABSPATH is set to a
19298 # non-empty value in the environment. Most likely only useful for
19299 # creating official distributions of packages.
19300 # This is a hack until libtool officially supports absolute path
19301 # names for shared libraries.
19302 no_undefined_flag_CXX='${wl}-z,text'
19303 allow_undefined_flag_CXX='${wl}-z,nodefs'
19304 archive_cmds_need_lc_CXX=no
19305 hardcode_shlibpath_var_CXX=no
19306 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19307 hardcode_libdir_separator_CXX=':'
19308 link_all_deplibs_CXX=yes
19309 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19310 runpath_var='LD_RUN_PATH'
19311
19312 case $cc_basename in
19313 CC*)
19314 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19315 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19316 ;;
19317 *)
19318 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19319 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19320 ;;
19321 esac
John Criswell47fdd832003-07-14 16:52:07 +000019322 ;;
19323 tandem*)
19324 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019325 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019326 # NonStop-UX NCC 3.20
19327 # FIXME: insert proper C++ library support
19328 ld_shlibs_CXX=no
19329 ;;
19330 *)
19331 # FIXME: insert proper C++ library support
19332 ld_shlibs_CXX=no
19333 ;;
19334 esac
19335 ;;
19336 vxworks*)
19337 # FIXME: insert proper C++ library support
19338 ld_shlibs_CXX=no
19339 ;;
19340 *)
19341 # FIXME: insert proper C++ library support
19342 ld_shlibs_CXX=no
19343 ;;
19344esac
Reid Spencera773bd52006-08-04 18:18:08 +000019345{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19346echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019347test "$ld_shlibs_CXX" = no && can_build_shared=no
19348
19349GCC_CXX="$GXX"
19350LD_CXX="$LD"
19351
John Criswell47fdd832003-07-14 16:52:07 +000019352
19353cat > conftest.$ac_ext <<EOF
19354class Foo
19355{
19356public:
19357 Foo (void) { a = 0; }
19358private:
19359 int a;
19360};
19361EOF
19362
19363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19364 (eval $ac_compile) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; then
19368 # Parse the compiler output and extract the necessary
19369 # objects, libraries and library flags.
19370
19371 # Sentinel used to keep track of whether or not we are before
19372 # the conftest object file.
19373 pre_test_object_deps_done=no
19374
19375 # The `*' in the case matches for architectures that use `case' in
19376 # $output_verbose_cmd can trigger glob expansion during the loop
19377 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019378 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019379
19380 for p in `eval $output_verbose_link_cmd`; do
19381 case $p in
19382
19383 -L* | -R* | -l*)
19384 # Some compilers place space between "-{L,R}" and the path.
19385 # Remove the space.
19386 if test $p = "-L" \
19387 || test $p = "-R"; then
19388 prev=$p
19389 continue
19390 else
19391 prev=
19392 fi
19393
19394 if test "$pre_test_object_deps_done" = no; then
19395 case $p in
19396 -L* | -R*)
19397 # Internal compiler library paths should come after those
19398 # provided the user. The postdeps already come after the
19399 # user supplied libs so there is no need to process them.
19400 if test -z "$compiler_lib_search_path_CXX"; then
19401 compiler_lib_search_path_CXX="${prev}${p}"
19402 else
19403 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19404 fi
19405 ;;
19406 # The "-l" case would never come before the object being
19407 # linked, so don't bother handling this case.
19408 esac
19409 else
19410 if test -z "$postdeps_CXX"; then
19411 postdeps_CXX="${prev}${p}"
19412 else
19413 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19414 fi
19415 fi
19416 ;;
19417
19418 *.$objext)
19419 # This assumes that the test object file only shows up
19420 # once in the compiler output.
19421 if test "$p" = "conftest.$objext"; then
19422 pre_test_object_deps_done=yes
19423 continue
19424 fi
19425
19426 if test "$pre_test_object_deps_done" = no; then
19427 if test -z "$predep_objects_CXX"; then
19428 predep_objects_CXX="$p"
19429 else
19430 predep_objects_CXX="$predep_objects_CXX $p"
19431 fi
19432 else
19433 if test -z "$postdep_objects_CXX"; then
19434 postdep_objects_CXX="$p"
19435 else
19436 postdep_objects_CXX="$postdep_objects_CXX $p"
19437 fi
19438 fi
19439 ;;
19440
19441 *) ;; # Ignore the rest.
19442
19443 esac
19444 done
19445
19446 # Clean up.
19447 rm -f a.out a.exe
19448else
19449 echo "libtool.m4: error: problem compiling CXX test program"
19450fi
19451
19452$rm -f confest.$objext
19453
Reid Spencera773bd52006-08-04 18:18:08 +000019454# PORTME: override above test on systems where it is broken
19455case $host_os in
19456interix3*)
19457 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19458 # hack all around it, let's just trust "g++" to DTRT.
19459 predep_objects_CXX=
19460 postdep_objects_CXX=
19461 postdeps_CXX=
19462 ;;
19463
19464solaris*)
19465 case $cc_basename in
19466 CC*)
19467 # Adding this requires a known-good setup of shared libraries for
19468 # Sun compiler versions before 5.6, else PIC objects from an old
19469 # archive will be linked into the output, leading to subtle bugs.
19470 postdeps_CXX='-lCstd -lCrun'
19471 ;;
19472 esac
19473 ;;
19474esac
19475
19476
John Criswell47fdd832003-07-14 16:52:07 +000019477case " $postdeps_CXX " in
19478*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19479esac
19480
19481lt_prog_compiler_wl_CXX=
19482lt_prog_compiler_pic_CXX=
19483lt_prog_compiler_static_CXX=
19484
Reid Spencera773bd52006-08-04 18:18:08 +000019485{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19486echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019487
19488 # C++ specific cases for pic, static, wl, etc.
19489 if test "$GXX" = yes; then
19490 lt_prog_compiler_wl_CXX='-Wl,'
19491 lt_prog_compiler_static_CXX='-static'
19492
19493 case $host_os in
19494 aix*)
19495 # All AIX code is PIC.
19496 if test "$host_cpu" = ia64; then
19497 # AIX 5 now supports IA64 processor
19498 lt_prog_compiler_static_CXX='-Bstatic'
19499 fi
19500 ;;
19501 amigaos*)
19502 # FIXME: we need at least 68020 code to build shared libraries, but
19503 # adding the `-m68020' flag to GCC prevents building anything better,
19504 # like `-m68040'.
19505 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19506 ;;
19507 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19508 # PIC is the default for these OSes.
19509 ;;
19510 mingw* | os2* | pw32*)
19511 # This hack is so that the source file can tell whether it is being
19512 # built for inclusion in a dll (and should export symbols for example).
19513 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19514 ;;
19515 darwin* | rhapsody*)
19516 # PIC is the default on this platform
19517 # Common symbols not allowed in MH_DYLIB files
19518 lt_prog_compiler_pic_CXX='-fno-common'
19519 ;;
19520 *djgpp*)
19521 # DJGPP does not support shared libraries at all
19522 lt_prog_compiler_pic_CXX=
19523 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019524 interix3*)
19525 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19526 # Instead, we relocate shared libraries at runtime.
19527 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019528 sysv4*MP*)
19529 if test -d /usr/nec; then
19530 lt_prog_compiler_pic_CXX=-Kconform_pic
19531 fi
19532 ;;
19533 hpux*)
19534 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19535 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019536 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019537 hppa*64*|ia64*)
19538 ;;
19539 *)
19540 lt_prog_compiler_pic_CXX='-fPIC'
19541 ;;
19542 esac
19543 ;;
19544 *)
19545 lt_prog_compiler_pic_CXX='-fPIC'
19546 ;;
19547 esac
19548 else
19549 case $host_os in
19550 aix4* | aix5*)
19551 # All AIX code is PIC.
19552 if test "$host_cpu" = ia64; then
19553 # AIX 5 now supports IA64 processor
19554 lt_prog_compiler_static_CXX='-Bstatic'
19555 else
19556 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19557 fi
19558 ;;
19559 chorus*)
19560 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019561 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019562 # Green Hills C++ Compiler
19563 # _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"
19564 ;;
19565 esac
19566 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019567 darwin*)
19568 # PIC is the default on this platform
19569 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019570 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019571 xlc*)
19572 lt_prog_compiler_pic_CXX='-qnocommon'
19573 lt_prog_compiler_wl_CXX='-Wl,'
19574 ;;
19575 esac
19576 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019577 dgux*)
19578 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019579 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019580 lt_prog_compiler_pic_CXX='-KPIC'
19581 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019582 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019583 # Green Hills C++ Compiler
19584 lt_prog_compiler_pic_CXX='-pic'
19585 ;;
19586 *)
19587 ;;
19588 esac
19589 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019590 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019591 # FreeBSD uses GNU C++
19592 ;;
19593 hpux9* | hpux10* | hpux11*)
19594 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019595 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019596 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019597 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019598 if test "$host_cpu" != ia64; then
19599 lt_prog_compiler_pic_CXX='+Z'
19600 fi
19601 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019602 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019603 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019604 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19605 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019606 hppa*64*|ia64*)
19607 # +Z the default
19608 ;;
19609 *)
19610 lt_prog_compiler_pic_CXX='+Z'
19611 ;;
19612 esac
19613 ;;
19614 *)
19615 ;;
19616 esac
19617 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019618 interix*)
19619 # This is c89, which is MS Visual C++ (no shared libs)
19620 # Anyone wants to do a port?
19621 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019622 irix5* | irix6* | nonstopux*)
19623 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019624 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019625 lt_prog_compiler_wl_CXX='-Wl,'
19626 lt_prog_compiler_static_CXX='-non_shared'
19627 # CC pic flag -KPIC is the default.
19628 ;;
19629 *)
19630 ;;
19631 esac
19632 ;;
19633 linux*)
19634 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019635 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019636 # KAI C++ Compiler
19637 lt_prog_compiler_wl_CXX='--backend -Wl,'
19638 lt_prog_compiler_pic_CXX='-fPIC'
19639 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019640 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019641 # Intel C++
19642 lt_prog_compiler_wl_CXX='-Wl,'
19643 lt_prog_compiler_pic_CXX='-KPIC'
19644 lt_prog_compiler_static_CXX='-static'
19645 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019646 pgCC*)
19647 # Portland Group C++ compiler.
19648 lt_prog_compiler_wl_CXX='-Wl,'
19649 lt_prog_compiler_pic_CXX='-fpic'
19650 lt_prog_compiler_static_CXX='-Bstatic'
19651 ;;
19652 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019653 # Compaq C++
19654 # Make sure the PIC flag is empty. It appears that all Alpha
19655 # Linux and Compaq Tru64 Unix objects are PIC.
19656 lt_prog_compiler_pic_CXX=
19657 lt_prog_compiler_static_CXX='-non_shared'
19658 ;;
19659 *)
19660 ;;
19661 esac
19662 ;;
19663 lynxos*)
19664 ;;
19665 m88k*)
19666 ;;
19667 mvs*)
19668 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019669 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019670 lt_prog_compiler_pic_CXX='-W c,exportall'
19671 ;;
19672 *)
19673 ;;
19674 esac
19675 ;;
19676 netbsd*)
19677 ;;
19678 osf3* | osf4* | osf5*)
19679 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019680 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019681 lt_prog_compiler_wl_CXX='--backend -Wl,'
19682 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019683 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019684 # Rational C++ 2.4.1
19685 lt_prog_compiler_pic_CXX='-pic'
19686 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019687 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019688 # Digital/Compaq C++
19689 lt_prog_compiler_wl_CXX='-Wl,'
19690 # Make sure the PIC flag is empty. It appears that all Alpha
19691 # Linux and Compaq Tru64 Unix objects are PIC.
19692 lt_prog_compiler_pic_CXX=
19693 lt_prog_compiler_static_CXX='-non_shared'
19694 ;;
19695 *)
19696 ;;
19697 esac
19698 ;;
19699 psos*)
19700 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019701 solaris*)
19702 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019703 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019704 # Sun C++ 4.2, 5.x and Centerline C++
19705 lt_prog_compiler_pic_CXX='-KPIC'
19706 lt_prog_compiler_static_CXX='-Bstatic'
19707 lt_prog_compiler_wl_CXX='-Qoption ld '
19708 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019709 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019710 # Green Hills C++ Compiler
19711 lt_prog_compiler_pic_CXX='-PIC'
19712 ;;
19713 *)
19714 ;;
19715 esac
19716 ;;
19717 sunos4*)
19718 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019719 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019720 # Sun C++ 4.x
19721 lt_prog_compiler_pic_CXX='-pic'
19722 lt_prog_compiler_static_CXX='-Bstatic'
19723 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019724 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019725 # Lucid
19726 lt_prog_compiler_pic_CXX='-pic'
19727 ;;
19728 *)
19729 ;;
19730 esac
19731 ;;
19732 tandem*)
19733 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019734 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019735 # NonStop-UX NCC 3.20
19736 lt_prog_compiler_pic_CXX='-KPIC'
19737 ;;
19738 *)
19739 ;;
19740 esac
19741 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019742 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19743 case $cc_basename in
19744 CC*)
19745 lt_prog_compiler_wl_CXX='-Wl,'
19746 lt_prog_compiler_pic_CXX='-KPIC'
19747 lt_prog_compiler_static_CXX='-Bstatic'
19748 ;;
19749 esac
John Criswell47fdd832003-07-14 16:52:07 +000019750 ;;
19751 vxworks*)
19752 ;;
19753 *)
19754 lt_prog_compiler_can_build_shared_CXX=no
19755 ;;
19756 esac
19757 fi
19758
Reid Spencera773bd52006-08-04 18:18:08 +000019759{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19760echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019761
19762#
19763# Check to make sure the PIC flag actually works.
19764#
19765if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019766
Reid Spencera773bd52006-08-04 18:18:08 +000019767{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19768echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019769if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19770 echo $ECHO_N "(cached) $ECHO_C" >&6
19771else
19772 lt_prog_compiler_pic_works_CXX=no
19773 ac_outfile=conftest.$ac_objext
19774 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19775 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19776 # Insert the option either (1) after the last *FLAGS variable, or
19777 # (2) before a word containing "conftest.", or (3) at the end.
19778 # Note that $ac_compile itself does not contain backslashes and begins
19779 # with a dollar sign (not a hyphen), so the echo should work correctly.
19780 # The option is referenced via a variable to avoid confusing sed.
19781 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19784 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor0711c302009-06-17 00:43:20 +000019785 (eval echo "\"\$as_me:19785: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019786 (eval "$lt_compile" 2>conftest.err)
19787 ac_status=$?
19788 cat conftest.err >&5
Douglas Gregor0711c302009-06-17 00:43:20 +000019789 echo "$as_me:19789: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019790 if (exit $ac_status) && test -s "$ac_outfile"; then
19791 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019792 # So say no if there are warnings other than the usual output.
19793 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19795 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019796 lt_prog_compiler_pic_works_CXX=yes
19797 fi
19798 fi
19799 $rm conftest*
19800
19801fi
Reid Spencera773bd52006-08-04 18:18:08 +000019802{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19803echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019804
19805if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19806 case $lt_prog_compiler_pic_CXX in
19807 "" | " "*) ;;
19808 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19809 esac
19810else
19811 lt_prog_compiler_pic_CXX=
19812 lt_prog_compiler_can_build_shared_CXX=no
19813fi
19814
19815fi
Reid Spencera773bd52006-08-04 18:18:08 +000019816case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019817 # For platforms which do not support PIC, -DPIC is meaningless:
19818 *djgpp*)
19819 lt_prog_compiler_pic_CXX=
19820 ;;
19821 *)
19822 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19823 ;;
19824esac
19825
Reid Spencera773bd52006-08-04 18:18:08 +000019826#
19827# Check to make sure the static flag actually works.
19828#
19829wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19830{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19831echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19832if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19833 echo $ECHO_N "(cached) $ECHO_C" >&6
19834else
19835 lt_prog_compiler_static_works_CXX=no
19836 save_LDFLAGS="$LDFLAGS"
19837 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19838 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19839 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19840 # The linker can only warn and ignore the option if not recognized
19841 # So say no if there are warnings
19842 if test -s conftest.err; then
19843 # Append any errors to the config.log.
19844 cat conftest.err 1>&5
19845 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19846 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19847 if diff conftest.exp conftest.er2 >/dev/null; then
19848 lt_prog_compiler_static_works_CXX=yes
19849 fi
19850 else
19851 lt_prog_compiler_static_works_CXX=yes
19852 fi
19853 fi
19854 $rm conftest*
19855 LDFLAGS="$save_LDFLAGS"
19856
19857fi
19858{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19859echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19860
19861if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19862 :
19863else
19864 lt_prog_compiler_static_CXX=
19865fi
19866
19867
19868{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19869echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019870if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19872else
19873 lt_cv_prog_compiler_c_o_CXX=no
19874 $rm -r conftest 2>/dev/null
19875 mkdir conftest
19876 cd conftest
19877 mkdir out
19878 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19879
John Criswell47fdd832003-07-14 16:52:07 +000019880 lt_compiler_flag="-o out/conftest2.$ac_objext"
19881 # Insert the option either (1) after the last *FLAGS variable, or
19882 # (2) before a word containing "conftest.", or (3) at the end.
19883 # Note that $ac_compile itself does not contain backslashes and begins
19884 # with a dollar sign (not a hyphen), so the echo should work correctly.
19885 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19888 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor0711c302009-06-17 00:43:20 +000019889 (eval echo "\"\$as_me:19889: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019890 (eval "$lt_compile" 2>out/conftest.err)
19891 ac_status=$?
19892 cat out/conftest.err >&5
Douglas Gregor0711c302009-06-17 00:43:20 +000019893 echo "$as_me:19893: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019894 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19895 then
19896 # The compiler can only warn and ignore the option if not recognized
19897 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019898 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19899 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19900 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019901 lt_cv_prog_compiler_c_o_CXX=yes
19902 fi
19903 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019904 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019905 $rm conftest*
19906 # SGI C++ compiler will create directory out/ii_files/ for
19907 # template instantiation
19908 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19909 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019910 cd ..
19911 rmdir conftest
19912 $rm conftest*
19913
19914fi
Reid Spencera773bd52006-08-04 18:18:08 +000019915{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19916echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019917
19918
19919hard_links="nottested"
19920if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19921 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019922 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19923echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019924 hard_links=yes
19925 $rm conftest*
19926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19927 touch conftest.a
19928 ln conftest.a conftest.b 2>&5 || hard_links=no
19929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019930 { echo "$as_me:$LINENO: result: $hard_links" >&5
19931echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019932 if test "$hard_links" = no; then
19933 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19934echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19935 need_locks=warn
19936 fi
19937else
19938 need_locks=no
19939fi
19940
Reid Spencera773bd52006-08-04 18:18:08 +000019941{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19942echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019943
19944 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19945 case $host_os in
19946 aix4* | aix5*)
19947 # If we're using GNU nm, then we don't want the "-C" option.
19948 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19949 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19950 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'
19951 else
19952 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'
19953 fi
19954 ;;
19955 pw32*)
19956 export_symbols_cmds_CXX="$ltdll_cmds"
19957 ;;
19958 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019959 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 +000019960 ;;
19961 *)
19962 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19963 ;;
19964 esac
19965
Reid Spencera773bd52006-08-04 18:18:08 +000019966{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19967echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019968test "$ld_shlibs_CXX" = no && can_build_shared=no
19969
John Criswell47fdd832003-07-14 16:52:07 +000019970#
19971# Do we need to explicitly link libc?
19972#
19973case "x$archive_cmds_need_lc_CXX" in
19974x|xyes)
19975 # Assume -lc should be added
19976 archive_cmds_need_lc_CXX=yes
19977
19978 if test "$enable_shared" = yes && test "$GCC" = yes; then
19979 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019980 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019981 # FIXME: we may have to deal with multi-command sequences.
19982 ;;
19983 '$CC '*)
19984 # Test whether the compiler implicitly links with -lc since on some
19985 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19986 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019987 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19988echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019989 $rm conftest*
19990 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19991
19992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19993 (eval $ac_compile) 2>&5
19994 ac_status=$?
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); } 2>conftest.err; then
19997 soname=conftest
19998 lib=conftest
19999 libobjs=conftest.$ac_objext
20000 deplibs=
20001 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020002 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020003 compiler_flags=-v
20004 linker_flags=-v
20005 verstring=
20006 output_objdir=.
20007 libname=conftest
20008 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20009 allow_undefined_flag_CXX=
20010 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20011 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20012 ac_status=$?
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }
20015 then
20016 archive_cmds_need_lc_CXX=no
20017 else
20018 archive_cmds_need_lc_CXX=yes
20019 fi
20020 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20021 else
20022 cat conftest.err 1>&5
20023 fi
20024 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020025 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20026echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020027 ;;
20028 esac
20029 fi
20030 ;;
20031esac
20032
Reid Spencera773bd52006-08-04 18:18:08 +000020033{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20034echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020035library_names_spec=
20036libname_spec='lib$name'
20037soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020038shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020039postinstall_cmds=
20040postuninstall_cmds=
20041finish_cmds=
20042finish_eval=
20043shlibpath_var=
20044shlibpath_overrides_runpath=unknown
20045version_type=none
20046dynamic_linker="$host_os ld.so"
20047sys_lib_dlsearch_path_spec="/lib /usr/lib"
20048if test "$GCC" = yes; then
20049 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20050 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20051 # if the path contains ";" then we assume it to be the separator
20052 # otherwise default to the standard path separator (i.e. ":") - it is
20053 # assumed that no part of a normal pathname contains ";" but that should
20054 # okay in the real world where ";" in dirpaths is itself problematic.
20055 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20056 else
20057 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20058 fi
20059else
20060 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20061fi
20062need_lib_prefix=unknown
20063hardcode_into_libs=no
20064
20065# when you set need_version to no, make sure it does not cause -set_version
20066# flags to be left without arguments
20067need_version=unknown
20068
20069case $host_os in
20070aix3*)
20071 version_type=linux
20072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20073 shlibpath_var=LIBPATH
20074
20075 # AIX 3 has no versioning support, so we append a major version to the name.
20076 soname_spec='${libname}${release}${shared_ext}$major'
20077 ;;
20078
20079aix4* | aix5*)
20080 version_type=linux
20081 need_lib_prefix=no
20082 need_version=no
20083 hardcode_into_libs=yes
20084 if test "$host_cpu" = ia64; then
20085 # AIX 5 supports IA64
20086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20087 shlibpath_var=LD_LIBRARY_PATH
20088 else
20089 # With GCC up to 2.95.x, collect2 would create an import file
20090 # for dependence libraries. The import file would start with
20091 # the line `#! .'. This would cause the generated library to
20092 # depend on `.', always an invalid library. This was fixed in
20093 # development snapshots of GCC prior to 3.0.
20094 case $host_os in
20095 aix4 | aix4.[01] | aix4.[01].*)
20096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20097 echo ' yes '
20098 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20099 :
20100 else
20101 can_build_shared=no
20102 fi
20103 ;;
20104 esac
20105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20106 # soname into executable. Probably we can add versioning support to
20107 # collect2, so additional links can be useful in future.
20108 if test "$aix_use_runtimelinking" = yes; then
20109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20110 # instead of lib<name>.a to let people know that these are not
20111 # typical AIX shared libraries.
20112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20113 else
20114 # We preserve .a as extension for shared libraries through AIX4.2
20115 # and later when we are not doing run time linking.
20116 library_names_spec='${libname}${release}.a $libname.a'
20117 soname_spec='${libname}${release}${shared_ext}$major'
20118 fi
20119 shlibpath_var=LIBPATH
20120 fi
20121 ;;
20122
20123amigaos*)
20124 library_names_spec='$libname.ixlibrary $libname.a'
20125 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020126 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 +000020127 ;;
20128
20129beos*)
20130 library_names_spec='${libname}${shared_ext}'
20131 dynamic_linker="$host_os ld.so"
20132 shlibpath_var=LIBRARY_PATH
20133 ;;
20134
Reid Spencer2706f8c2004-09-19 23:53:36 +000020135bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020136 version_type=linux
20137 need_version=no
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20139 soname_spec='${libname}${release}${shared_ext}$major'
20140 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20141 shlibpath_var=LD_LIBRARY_PATH
20142 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20143 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20144 # the default ld.so.conf also contains /usr/contrib/lib and
20145 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20146 # libtool to hard-code these into programs
20147 ;;
20148
20149cygwin* | mingw* | pw32*)
20150 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020151 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020152 need_version=no
20153 need_lib_prefix=no
20154
20155 case $GCC,$host_os in
20156 yes,cygwin* | yes,mingw* | yes,pw32*)
20157 library_names_spec='$libname.dll.a'
20158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020159 postinstall_cmds='base_file=`basename \${file}`~
20160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20161 dldir=$destdir/`dirname \$dlpath`~
20162 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020163 $install_prog $dir/$dlname \$dldir/$dlname~
20164 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20166 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020167 $rm \$dlpath'
20168 shlibpath_overrides_runpath=yes
20169
20170 case $host_os in
20171 cygwin*)
20172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20173 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 +000020174 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020175 ;;
20176 mingw*)
20177 # MinGW DLLs use traditional 'lib' prefix
20178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20180 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20181 # It is most probably a Windows format PATH printed by
20182 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20183 # path with ; separators, and with drive letters. We can handle the
20184 # drive letters (cygwin fileutils understands them), so leave them,
20185 # especially as we might pass files found there to a mingw objdump,
20186 # which wouldn't understand a cygwinified path. Ahh.
20187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20188 else
20189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20190 fi
20191 ;;
20192 pw32*)
20193 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020194 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 +000020195 ;;
20196 esac
20197 ;;
20198
20199 *)
20200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20201 ;;
20202 esac
20203 dynamic_linker='Win32 ld.exe'
20204 # FIXME: first we should search . and the directory the executable is in
20205 shlibpath_var=PATH
20206 ;;
20207
20208darwin* | rhapsody*)
20209 dynamic_linker="$host_os dyld"
20210 version_type=darwin
20211 need_lib_prefix=no
20212 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020213 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020214 soname_spec='${libname}${release}${major}$shared_ext'
20215 shlibpath_overrides_runpath=yes
20216 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020217 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020218 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020219 if test "$GCC" = yes; then
20220 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"`
20221 else
20222 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020223 fi
20224 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20225 ;;
20226
20227dgux*)
20228 version_type=linux
20229 need_lib_prefix=no
20230 need_version=no
20231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20232 soname_spec='${libname}${release}${shared_ext}$major'
20233 shlibpath_var=LD_LIBRARY_PATH
20234 ;;
20235
20236freebsd1*)
20237 dynamic_linker=no
20238 ;;
20239
Reid Spencer2706f8c2004-09-19 23:53:36 +000020240kfreebsd*-gnu)
20241 version_type=linux
20242 need_lib_prefix=no
20243 need_version=no
20244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20245 soname_spec='${libname}${release}${shared_ext}$major'
20246 shlibpath_var=LD_LIBRARY_PATH
20247 shlibpath_overrides_runpath=no
20248 hardcode_into_libs=yes
20249 dynamic_linker='GNU ld.so'
20250 ;;
20251
Reid Spencera773bd52006-08-04 18:18:08 +000020252freebsd* | dragonfly*)
20253 # DragonFly does not have aout. When/if they implement a new
20254 # versioning mechanism, adjust this.
20255 if test -x /usr/bin/objformat; then
20256 objformat=`/usr/bin/objformat`
20257 else
20258 case $host_os in
20259 freebsd[123]*) objformat=aout ;;
20260 *) objformat=elf ;;
20261 esac
20262 fi
John Criswell47fdd832003-07-14 16:52:07 +000020263 version_type=freebsd-$objformat
20264 case $version_type in
20265 freebsd-elf*)
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20267 need_version=no
20268 need_lib_prefix=no
20269 ;;
20270 freebsd-*)
20271 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20272 need_version=yes
20273 ;;
20274 esac
20275 shlibpath_var=LD_LIBRARY_PATH
20276 case $host_os in
20277 freebsd2*)
20278 shlibpath_overrides_runpath=yes
20279 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020280 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020281 shlibpath_overrides_runpath=yes
20282 hardcode_into_libs=yes
20283 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020284 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20285 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020286 shlibpath_overrides_runpath=no
20287 hardcode_into_libs=yes
20288 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020289 freebsd*) # from 4.6 on
20290 shlibpath_overrides_runpath=yes
20291 hardcode_into_libs=yes
20292 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020293 esac
20294 ;;
20295
20296gnu*)
20297 version_type=linux
20298 need_lib_prefix=no
20299 need_version=no
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20301 soname_spec='${libname}${release}${shared_ext}$major'
20302 shlibpath_var=LD_LIBRARY_PATH
20303 hardcode_into_libs=yes
20304 ;;
20305
20306hpux9* | hpux10* | hpux11*)
20307 # Give a soname corresponding to the major version so that dld.sl refuses to
20308 # link against other versions.
20309 version_type=sunos
20310 need_lib_prefix=no
20311 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020312 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020313 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020314 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020315 hardcode_into_libs=yes
20316 dynamic_linker="$host_os dld.so"
20317 shlibpath_var=LD_LIBRARY_PATH
20318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20320 soname_spec='${libname}${release}${shared_ext}$major'
20321 if test "X$HPUX_IA64_MODE" = X32; then
20322 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20323 else
20324 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20325 fi
20326 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20327 ;;
20328 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020329 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020330 hardcode_into_libs=yes
20331 dynamic_linker="$host_os dld.sl"
20332 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20333 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20335 soname_spec='${libname}${release}${shared_ext}$major'
20336 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20338 ;;
20339 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020340 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020341 dynamic_linker="$host_os dld.sl"
20342 shlibpath_var=SHLIB_PATH
20343 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345 soname_spec='${libname}${release}${shared_ext}$major'
20346 ;;
20347 esac
20348 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20349 postinstall_cmds='chmod 555 $lib'
20350 ;;
20351
Reid Spencera773bd52006-08-04 18:18:08 +000020352interix3*)
20353 version_type=linux
20354 need_lib_prefix=no
20355 need_version=no
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20357 soname_spec='${libname}${release}${shared_ext}$major'
20358 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20359 shlibpath_var=LD_LIBRARY_PATH
20360 shlibpath_overrides_runpath=no
20361 hardcode_into_libs=yes
20362 ;;
20363
John Criswell47fdd832003-07-14 16:52:07 +000020364irix5* | irix6* | nonstopux*)
20365 case $host_os in
20366 nonstopux*) version_type=nonstopux ;;
20367 *)
20368 if test "$lt_cv_prog_gnu_ld" = yes; then
20369 version_type=linux
20370 else
20371 version_type=irix
20372 fi ;;
20373 esac
20374 need_lib_prefix=no
20375 need_version=no
20376 soname_spec='${libname}${release}${shared_ext}$major'
20377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20378 case $host_os in
20379 irix5* | nonstopux*)
20380 libsuff= shlibsuff=
20381 ;;
20382 *)
20383 case $LD in # libtool.m4 will add one of these switches to LD
20384 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20385 libsuff= shlibsuff= libmagic=32-bit;;
20386 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20387 libsuff=32 shlibsuff=N32 libmagic=N32;;
20388 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20389 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20390 *) libsuff= shlibsuff= libmagic=never-match;;
20391 esac
20392 ;;
20393 esac
20394 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20395 shlibpath_overrides_runpath=no
20396 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20397 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20398 hardcode_into_libs=yes
20399 ;;
20400
20401# No shared lib support for Linux oldld, aout, or coff.
20402linux*oldld* | linux*aout* | linux*coff*)
20403 dynamic_linker=no
20404 ;;
20405
20406# This must be Linux ELF.
20407linux*)
20408 version_type=linux
20409 need_lib_prefix=no
20410 need_version=no
20411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20412 soname_spec='${libname}${release}${shared_ext}$major'
20413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20414 shlibpath_var=LD_LIBRARY_PATH
20415 shlibpath_overrides_runpath=no
20416 # This implies no fast_install, which is unacceptable.
20417 # Some rework will be needed to allow for fast_install
20418 # before this can be enabled.
20419 hardcode_into_libs=yes
20420
Reid Spencer2706f8c2004-09-19 23:53:36 +000020421 # Append ld.so.conf contents to the search path
20422 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020423 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 +000020424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20425 fi
20426
John Criswell47fdd832003-07-14 16:52:07 +000020427 # We used to test for /lib/ld.so.1 and disable shared libraries on
20428 # powerpc, because MkLinux only supported shared libraries with the
20429 # GNU dynamic linker. Since this was broken with cross compilers,
20430 # most powerpc-linux boxes support dynamic linking these days and
20431 # people can always --disable-shared, the test was removed, and we
20432 # assume the GNU/Linux dynamic linker is in use.
20433 dynamic_linker='GNU/Linux ld.so'
20434 ;;
20435
Reid Spencer2706f8c2004-09-19 23:53:36 +000020436knetbsd*-gnu)
20437 version_type=linux
20438 need_lib_prefix=no
20439 need_version=no
20440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20441 soname_spec='${libname}${release}${shared_ext}$major'
20442 shlibpath_var=LD_LIBRARY_PATH
20443 shlibpath_overrides_runpath=no
20444 hardcode_into_libs=yes
20445 dynamic_linker='GNU ld.so'
20446 ;;
20447
John Criswell47fdd832003-07-14 16:52:07 +000020448netbsd*)
20449 version_type=sunos
20450 need_lib_prefix=no
20451 need_version=no
20452 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20455 dynamic_linker='NetBSD (a.out) ld.so'
20456 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020458 soname_spec='${libname}${release}${shared_ext}$major'
20459 dynamic_linker='NetBSD ld.elf_so'
20460 fi
20461 shlibpath_var=LD_LIBRARY_PATH
20462 shlibpath_overrides_runpath=yes
20463 hardcode_into_libs=yes
20464 ;;
20465
20466newsos6)
20467 version_type=linux
20468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20469 shlibpath_var=LD_LIBRARY_PATH
20470 shlibpath_overrides_runpath=yes
20471 ;;
20472
Reid Spencer2706f8c2004-09-19 23:53:36 +000020473nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020474 version_type=linux
20475 need_lib_prefix=no
20476 need_version=no
20477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20478 soname_spec='${libname}${release}${shared_ext}$major'
20479 shlibpath_var=LD_LIBRARY_PATH
20480 shlibpath_overrides_runpath=yes
20481 ;;
20482
20483openbsd*)
20484 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020485 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020486 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20488 case $host_os in
20489 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20490 *) need_version=no ;;
20491 esac
John Criswell47fdd832003-07-14 16:52:07 +000020492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20494 shlibpath_var=LD_LIBRARY_PATH
20495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20496 case $host_os in
20497 openbsd2.[89] | openbsd2.[89].*)
20498 shlibpath_overrides_runpath=no
20499 ;;
20500 *)
20501 shlibpath_overrides_runpath=yes
20502 ;;
20503 esac
20504 else
20505 shlibpath_overrides_runpath=yes
20506 fi
20507 ;;
20508
20509os2*)
20510 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020511 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020512 need_lib_prefix=no
20513 library_names_spec='$libname${shared_ext} $libname.a'
20514 dynamic_linker='OS/2 ld.exe'
20515 shlibpath_var=LIBPATH
20516 ;;
20517
20518osf3* | osf4* | osf5*)
20519 version_type=osf
20520 need_lib_prefix=no
20521 need_version=no
20522 soname_spec='${libname}${release}${shared_ext}$major'
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524 shlibpath_var=LD_LIBRARY_PATH
20525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20527 ;;
20528
John Criswell47fdd832003-07-14 16:52:07 +000020529solaris*)
20530 version_type=linux
20531 need_lib_prefix=no
20532 need_version=no
20533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20534 soname_spec='${libname}${release}${shared_ext}$major'
20535 shlibpath_var=LD_LIBRARY_PATH
20536 shlibpath_overrides_runpath=yes
20537 hardcode_into_libs=yes
20538 # ldd complains unless libraries are executable
20539 postinstall_cmds='chmod +x $lib'
20540 ;;
20541
20542sunos4*)
20543 version_type=sunos
20544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20545 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20546 shlibpath_var=LD_LIBRARY_PATH
20547 shlibpath_overrides_runpath=yes
20548 if test "$with_gnu_ld" = yes; then
20549 need_lib_prefix=no
20550 fi
20551 need_version=yes
20552 ;;
20553
Reid Spencera773bd52006-08-04 18:18:08 +000020554sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020555 version_type=linux
20556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20557 soname_spec='${libname}${release}${shared_ext}$major'
20558 shlibpath_var=LD_LIBRARY_PATH
20559 case $host_vendor in
20560 sni)
20561 shlibpath_overrides_runpath=no
20562 need_lib_prefix=no
20563 export_dynamic_flag_spec='${wl}-Blargedynsym'
20564 runpath_var=LD_RUN_PATH
20565 ;;
20566 siemens)
20567 need_lib_prefix=no
20568 ;;
20569 motorola)
20570 need_lib_prefix=no
20571 need_version=no
20572 shlibpath_overrides_runpath=no
20573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20574 ;;
20575 esac
20576 ;;
20577
20578sysv4*MP*)
20579 if test -d /usr/nec ;then
20580 version_type=linux
20581 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20582 soname_spec='$libname${shared_ext}.$major'
20583 shlibpath_var=LD_LIBRARY_PATH
20584 fi
20585 ;;
20586
Reid Spencera773bd52006-08-04 18:18:08 +000020587sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20588 version_type=freebsd-elf
20589 need_lib_prefix=no
20590 need_version=no
20591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20592 soname_spec='${libname}${release}${shared_ext}$major'
20593 shlibpath_var=LD_LIBRARY_PATH
20594 hardcode_into_libs=yes
20595 if test "$with_gnu_ld" = yes; then
20596 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20597 shlibpath_overrides_runpath=no
20598 else
20599 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20600 shlibpath_overrides_runpath=yes
20601 case $host_os in
20602 sco3.2v5*)
20603 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20604 ;;
20605 esac
20606 fi
20607 sys_lib_dlsearch_path_spec='/usr/lib'
20608 ;;
20609
John Criswell47fdd832003-07-14 16:52:07 +000020610uts4*)
20611 version_type=linux
20612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20613 soname_spec='${libname}${release}${shared_ext}$major'
20614 shlibpath_var=LD_LIBRARY_PATH
20615 ;;
20616
20617*)
20618 dynamic_linker=no
20619 ;;
20620esac
Reid Spencera773bd52006-08-04 18:18:08 +000020621{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20622echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020623test "$dynamic_linker" = no && can_build_shared=no
20624
Reid Spencera773bd52006-08-04 18:18:08 +000020625variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20626if test "$GCC" = yes; then
20627 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20628fi
20629
20630{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20631echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020632hardcode_action_CXX=
20633if test -n "$hardcode_libdir_flag_spec_CXX" || \
20634 test -n "$runpath_var_CXX" || \
20635 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20636
20637 # We can hardcode non-existant directories.
20638 if test "$hardcode_direct_CXX" != no &&
20639 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20640 # have to relink, otherwise we might link with an installed library
20641 # when we should be linking with a yet-to-be-installed one
20642 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20643 test "$hardcode_minus_L_CXX" != no; then
20644 # Linking always hardcodes the temporary library directory.
20645 hardcode_action_CXX=relink
20646 else
20647 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20648 hardcode_action_CXX=immediate
20649 fi
20650else
20651 # We cannot hardcode anything, or else we can only hardcode existing
20652 # directories.
20653 hardcode_action_CXX=unsupported
20654fi
Reid Spencera773bd52006-08-04 18:18:08 +000020655{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20656echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020657
20658if test "$hardcode_action_CXX" = relink; then
20659 # Fast installation is not supported
20660 enable_fast_install=no
20661elif test "$shlibpath_overrides_runpath" = yes ||
20662 test "$enable_shared" = no; then
20663 # Fast installation is not necessary
20664 enable_fast_install=needless
20665fi
20666
John Criswell47fdd832003-07-14 16:52:07 +000020667
20668# The else clause should only fire when bootstrapping the
20669# libtool distribution, otherwise you forgot to ship ltmain.sh
20670# with your package, and you will get complaints that there are
20671# no rules to generate ltmain.sh.
20672if test -f "$ltmain"; then
20673 # See if we are running on zsh, and set the options which allow our commands through
20674 # without removal of \ escapes.
20675 if test -n "${ZSH_VERSION+set}" ; then
20676 setopt NO_GLOB_SUBST
20677 fi
20678 # Now quote all the things that may contain metacharacters while being
20679 # careful not to overquote the AC_SUBSTed values. We take copies of the
20680 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020681 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 +000020682 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020683 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20684 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20685 deplibs_check_method reload_flag reload_cmds need_locks \
20686 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20687 lt_cv_sys_global_symbol_to_c_name_address \
20688 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20689 old_postinstall_cmds old_postuninstall_cmds \
20690 compiler_CXX \
20691 CC_CXX \
20692 LD_CXX \
20693 lt_prog_compiler_wl_CXX \
20694 lt_prog_compiler_pic_CXX \
20695 lt_prog_compiler_static_CXX \
20696 lt_prog_compiler_no_builtin_flag_CXX \
20697 export_dynamic_flag_spec_CXX \
20698 thread_safe_flag_spec_CXX \
20699 whole_archive_flag_spec_CXX \
20700 enable_shared_with_static_runtimes_CXX \
20701 old_archive_cmds_CXX \
20702 old_archive_from_new_cmds_CXX \
20703 predep_objects_CXX \
20704 postdep_objects_CXX \
20705 predeps_CXX \
20706 postdeps_CXX \
20707 compiler_lib_search_path_CXX \
20708 archive_cmds_CXX \
20709 archive_expsym_cmds_CXX \
20710 postinstall_cmds_CXX \
20711 postuninstall_cmds_CXX \
20712 old_archive_from_expsyms_cmds_CXX \
20713 allow_undefined_flag_CXX \
20714 no_undefined_flag_CXX \
20715 export_symbols_cmds_CXX \
20716 hardcode_libdir_flag_spec_CXX \
20717 hardcode_libdir_flag_spec_ld_CXX \
20718 hardcode_libdir_separator_CXX \
20719 hardcode_automatic_CXX \
20720 module_cmds_CXX \
20721 module_expsym_cmds_CXX \
20722 lt_cv_prog_compiler_c_o_CXX \
20723 exclude_expsyms_CXX \
20724 include_expsyms_CXX; do
20725
20726 case $var in
20727 old_archive_cmds_CXX | \
20728 old_archive_from_new_cmds_CXX | \
20729 archive_cmds_CXX | \
20730 archive_expsym_cmds_CXX | \
20731 module_cmds_CXX | \
20732 module_expsym_cmds_CXX | \
20733 old_archive_from_expsyms_cmds_CXX | \
20734 export_symbols_cmds_CXX | \
20735 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20736 postinstall_cmds | postuninstall_cmds | \
20737 old_postinstall_cmds | old_postuninstall_cmds | \
20738 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20739 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020740 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 +000020741 ;;
20742 *)
20743 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20744 ;;
20745 esac
20746 done
20747
20748 case $lt_echo in
20749 *'\$0 --fallback-echo"')
20750 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20751 ;;
20752 esac
20753
20754cfgfile="$ofile"
20755
20756 cat <<__EOF__ >> "$cfgfile"
20757# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20758
20759# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20760
20761# Shell to use when invoking shell scripts.
20762SHELL=$lt_SHELL
20763
20764# Whether or not to build shared libraries.
20765build_libtool_libs=$enable_shared
20766
20767# Whether or not to build static libraries.
20768build_old_libs=$enable_static
20769
20770# Whether or not to add -lc for building shared libraries.
20771build_libtool_need_lc=$archive_cmds_need_lc_CXX
20772
20773# Whether or not to disallow shared libs when runtime libs are static
20774allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20775
20776# Whether or not to optimize for fast installation.
20777fast_install=$enable_fast_install
20778
20779# The host system.
20780host_alias=$host_alias
20781host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020782host_os=$host_os
20783
20784# The build system.
20785build_alias=$build_alias
20786build=$build
20787build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020788
20789# An echo program that does not interpret backslashes.
20790echo=$lt_echo
20791
20792# The archiver.
20793AR=$lt_AR
20794AR_FLAGS=$lt_AR_FLAGS
20795
20796# A C compiler.
20797LTCC=$lt_LTCC
20798
Reid Spencera773bd52006-08-04 18:18:08 +000020799# LTCC compiler flags.
20800LTCFLAGS=$lt_LTCFLAGS
20801
John Criswell47fdd832003-07-14 16:52:07 +000020802# A language-specific compiler.
20803CC=$lt_compiler_CXX
20804
20805# Is the compiler the GNU C compiler?
20806with_gcc=$GCC_CXX
20807
20808# An ERE matcher.
20809EGREP=$lt_EGREP
20810
20811# The linker used to build libraries.
20812LD=$lt_LD_CXX
20813
20814# Whether we need hard or soft links.
20815LN_S=$lt_LN_S
20816
20817# A BSD-compatible nm program.
20818NM=$lt_NM
20819
20820# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020821STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020822
20823# Used to examine libraries when file_magic_cmd begins "file"
20824MAGIC_CMD=$MAGIC_CMD
20825
20826# Used on cygwin: DLL creation program.
20827DLLTOOL="$DLLTOOL"
20828
20829# Used on cygwin: object dumper.
20830OBJDUMP="$OBJDUMP"
20831
20832# Used on cygwin: assembler.
20833AS="$AS"
20834
20835# The name of the directory that contains temporary libtool files.
20836objdir=$objdir
20837
20838# How to create reloadable object files.
20839reload_flag=$lt_reload_flag
20840reload_cmds=$lt_reload_cmds
20841
20842# How to pass a linker flag through the compiler.
20843wl=$lt_lt_prog_compiler_wl_CXX
20844
20845# Object file suffix (normally "o").
20846objext="$ac_objext"
20847
20848# Old archive suffix (normally "a").
20849libext="$libext"
20850
20851# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020852shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020853
20854# Executable file suffix (normally "").
20855exeext="$exeext"
20856
20857# Additional compiler flags for building library objects.
20858pic_flag=$lt_lt_prog_compiler_pic_CXX
20859pic_mode=$pic_mode
20860
20861# What is the maximum length of a command?
20862max_cmd_len=$lt_cv_sys_max_cmd_len
20863
20864# Does compiler simultaneously support -c and -o options?
20865compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20866
Reid Spencera773bd52006-08-04 18:18:08 +000020867# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020868need_locks=$lt_need_locks
20869
20870# Do we need the lib prefix for modules?
20871need_lib_prefix=$need_lib_prefix
20872
20873# Do we need a version for libraries?
20874need_version=$need_version
20875
20876# Whether dlopen is supported.
20877dlopen_support=$enable_dlopen
20878
20879# Whether dlopen of programs is supported.
20880dlopen_self=$enable_dlopen_self
20881
20882# Whether dlopen of statically linked programs is supported.
20883dlopen_self_static=$enable_dlopen_self_static
20884
20885# Compiler flag to prevent dynamic linking.
20886link_static_flag=$lt_lt_prog_compiler_static_CXX
20887
20888# Compiler flag to turn off builtin functions.
20889no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20890
20891# Compiler flag to allow reflexive dlopens.
20892export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20893
20894# Compiler flag to generate shared objects directly from archives.
20895whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20896
20897# Compiler flag to generate thread-safe objects.
20898thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20899
20900# Library versioning type.
20901version_type=$version_type
20902
20903# Format of library name prefix.
20904libname_spec=$lt_libname_spec
20905
20906# List of archive names. First name is the real one, the rest are links.
20907# The last name is the one that the linker finds with -lNAME.
20908library_names_spec=$lt_library_names_spec
20909
20910# The coded name of the library, if different from the real name.
20911soname_spec=$lt_soname_spec
20912
20913# Commands used to build and install an old-style archive.
20914RANLIB=$lt_RANLIB
20915old_archive_cmds=$lt_old_archive_cmds_CXX
20916old_postinstall_cmds=$lt_old_postinstall_cmds
20917old_postuninstall_cmds=$lt_old_postuninstall_cmds
20918
20919# Create an old-style archive from a shared archive.
20920old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20921
20922# Create a temporary old-style archive to link instead of a shared archive.
20923old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20924
20925# Commands used to build and install a shared archive.
20926archive_cmds=$lt_archive_cmds_CXX
20927archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20928postinstall_cmds=$lt_postinstall_cmds
20929postuninstall_cmds=$lt_postuninstall_cmds
20930
20931# Commands used to build a loadable module (assumed same as above if empty)
20932module_cmds=$lt_module_cmds_CXX
20933module_expsym_cmds=$lt_module_expsym_cmds_CXX
20934
20935# Commands to strip libraries.
20936old_striplib=$lt_old_striplib
20937striplib=$lt_striplib
20938
20939# Dependencies to place before the objects being linked to create a
20940# shared library.
20941predep_objects=$lt_predep_objects_CXX
20942
20943# Dependencies to place after the objects being linked to create a
20944# shared library.
20945postdep_objects=$lt_postdep_objects_CXX
20946
20947# Dependencies to place before the objects being linked to create a
20948# shared library.
20949predeps=$lt_predeps_CXX
20950
20951# Dependencies to place after the objects being linked to create a
20952# shared library.
20953postdeps=$lt_postdeps_CXX
20954
20955# The library search path used internally by the compiler when linking
20956# a shared library.
20957compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20958
20959# Method to check whether dependent libraries are shared objects.
20960deplibs_check_method=$lt_deplibs_check_method
20961
20962# Command to use when deplibs_check_method == file_magic.
20963file_magic_cmd=$lt_file_magic_cmd
20964
20965# Flag that allows shared libraries with undefined symbols to be built.
20966allow_undefined_flag=$lt_allow_undefined_flag_CXX
20967
20968# Flag that forces no undefined symbols.
20969no_undefined_flag=$lt_no_undefined_flag_CXX
20970
20971# Commands used to finish a libtool library installation in a directory.
20972finish_cmds=$lt_finish_cmds
20973
20974# Same as above, but a single script fragment to be evaled but not shown.
20975finish_eval=$lt_finish_eval
20976
20977# Take the output of nm and produce a listing of raw symbols and C names.
20978global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20979
20980# Transform the output of nm in a proper C declaration
20981global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20982
20983# Transform the output of nm in a C name address pair
20984global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20985
20986# This is the shared library runtime path variable.
20987runpath_var=$runpath_var
20988
20989# This is the shared library path variable.
20990shlibpath_var=$shlibpath_var
20991
20992# Is shlibpath searched before the hard-coded library search path?
20993shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20994
20995# How to hardcode a shared library path into an executable.
20996hardcode_action=$hardcode_action_CXX
20997
20998# Whether we should hardcode library paths into libraries.
20999hardcode_into_libs=$hardcode_into_libs
21000
21001# Flag to hardcode \$libdir into a binary during linking.
21002# This must work even if \$libdir does not exist.
21003hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21004
21005# If ld is used when linking, flag to hardcode \$libdir into
21006# a binary during linking. This must work even if \$libdir does
21007# not exist.
21008hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21009
21010# Whether we need a single -rpath flag with a separated argument.
21011hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21012
21013# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21014# resulting binary.
21015hardcode_direct=$hardcode_direct_CXX
21016
21017# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21018# resulting binary.
21019hardcode_minus_L=$hardcode_minus_L_CXX
21020
21021# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21022# the resulting binary.
21023hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21024
21025# Set to yes if building a shared library automatically hardcodes DIR into the library
21026# and all subsequent libraries and executables linked against it.
21027hardcode_automatic=$hardcode_automatic_CXX
21028
21029# Variables whose values should be saved in libtool wrapper scripts and
21030# restored at relink time.
21031variables_saved_for_relink="$variables_saved_for_relink"
21032
21033# Whether libtool must link a program against all its dependency libraries.
21034link_all_deplibs=$link_all_deplibs_CXX
21035
21036# Compile-time system search path for libraries
21037sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21038
21039# Run-time system search path for libraries
21040sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21041
21042# Fix the shell variable \$srcfile for the compiler.
21043fix_srcfile_path="$fix_srcfile_path_CXX"
21044
21045# Set to yes if exported symbols are required.
21046always_export_symbols=$always_export_symbols_CXX
21047
21048# The commands to list exported symbols.
21049export_symbols_cmds=$lt_export_symbols_cmds_CXX
21050
21051# The commands to extract the exported symbol list from a shared archive.
21052extract_expsyms_cmds=$lt_extract_expsyms_cmds
21053
21054# Symbols that should not be listed in the preloaded symbols.
21055exclude_expsyms=$lt_exclude_expsyms_CXX
21056
21057# Symbols that must always be exported.
21058include_expsyms=$lt_include_expsyms_CXX
21059
21060# ### END LIBTOOL TAG CONFIG: $tagname
21061
21062__EOF__
21063
21064
21065else
21066 # If there is no Makefile yet, we rely on a make rule to execute
21067 # `config.status --recheck' to rerun these tests and create the
21068 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021069 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21070 if test -f "$ltmain_in"; then
21071 test -f Makefile && make "$ltmain"
21072 fi
John Criswell47fdd832003-07-14 16:52:07 +000021073fi
21074
21075
21076ac_ext=c
21077ac_cpp='$CPP $CPPFLAGS'
21078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21080ac_compiler_gnu=$ac_cv_c_compiler_gnu
21081
21082CC=$lt_save_CC
21083LDCXX=$LD
21084LD=$lt_save_LD
21085GCC=$lt_save_GCC
21086with_gnu_ldcxx=$with_gnu_ld
21087with_gnu_ld=$lt_save_with_gnu_ld
21088lt_cv_path_LDCXX=$lt_cv_path_LD
21089lt_cv_path_LD=$lt_save_path_LD
21090lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21091lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21092
21093 else
21094 tagname=""
21095 fi
21096 ;;
21097
21098 F77)
21099 if test -n "$F77" && test "X$F77" != "Xno"; then
21100
21101ac_ext=f
21102ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21103ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21104ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21105
21106
21107archive_cmds_need_lc_F77=no
21108allow_undefined_flag_F77=
21109always_export_symbols_F77=no
21110archive_expsym_cmds_F77=
21111export_dynamic_flag_spec_F77=
21112hardcode_direct_F77=no
21113hardcode_libdir_flag_spec_F77=
21114hardcode_libdir_flag_spec_ld_F77=
21115hardcode_libdir_separator_F77=
21116hardcode_minus_L_F77=no
21117hardcode_automatic_F77=no
21118module_cmds_F77=
21119module_expsym_cmds_F77=
21120link_all_deplibs_F77=unknown
21121old_archive_cmds_F77=$old_archive_cmds
21122no_undefined_flag_F77=
21123whole_archive_flag_spec_F77=
21124enable_shared_with_static_runtimes_F77=no
21125
21126# Source file extension for f77 test sources.
21127ac_ext=f
21128
21129# Object file extension for compiled f77 test sources.
21130objext=o
21131objext_F77=$objext
21132
21133# Code to be used in simple compile tests
21134lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21135
21136# Code to be used in simple link tests
21137lt_simple_link_test_code=" program t\n end\n"
21138
21139# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21140
21141# If no C compiler was specified, use CC.
21142LTCC=${LTCC-"$CC"}
21143
Reid Spencera773bd52006-08-04 18:18:08 +000021144# If no C compiler flags were specified, use CFLAGS.
21145LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21146
John Criswell47fdd832003-07-14 16:52:07 +000021147# Allow CC to be a program name with arguments.
21148compiler=$CC
21149
21150
Reid Spencera773bd52006-08-04 18:18:08 +000021151# save warnings/boilerplate of simple test code
21152ac_outfile=conftest.$ac_objext
21153printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21154eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21155_lt_compiler_boilerplate=`cat conftest.err`
21156$rm conftest*
21157
21158ac_outfile=conftest.$ac_objext
21159printf "$lt_simple_link_test_code" >conftest.$ac_ext
21160eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21161_lt_linker_boilerplate=`cat conftest.err`
21162$rm conftest*
21163
21164
John Criswell47fdd832003-07-14 16:52:07 +000021165# Allow CC to be a program name with arguments.
21166lt_save_CC="$CC"
21167CC=${F77-"f77"}
21168compiler=$CC
21169compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021170for cc_temp in $compiler""; do
21171 case $cc_temp in
21172 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21173 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21174 \-*) ;;
21175 *) break;;
21176 esac
21177done
21178cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021179
John Criswell47fdd832003-07-14 16:52:07 +000021180
Reid Spencera773bd52006-08-04 18:18:08 +000021181{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21182echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21183{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21184echo "${ECHO_T}$can_build_shared" >&6; }
21185
21186{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21187echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021188test "$can_build_shared" = "no" && enable_shared=no
21189
21190# On AIX, shared libraries and static libraries use the same namespace, and
21191# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021192case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021193aix3*)
21194 test "$enable_shared" = yes && enable_static=no
21195 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021196 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021197 postinstall_cmds='$RANLIB $lib'
21198 fi
21199 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021200aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021201 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21202 test "$enable_shared" = yes && enable_static=no
21203 fi
John Criswell47fdd832003-07-14 16:52:07 +000021204 ;;
21205esac
Reid Spencera773bd52006-08-04 18:18:08 +000021206{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21207echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021208
Reid Spencera773bd52006-08-04 18:18:08 +000021209{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21210echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021211# Make sure either enable_shared or enable_static is yes.
21212test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021213{ echo "$as_me:$LINENO: result: $enable_static" >&5
21214echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021215
21216GCC_F77="$G77"
21217LD_F77="$LD"
21218
21219lt_prog_compiler_wl_F77=
21220lt_prog_compiler_pic_F77=
21221lt_prog_compiler_static_F77=
21222
Reid Spencera773bd52006-08-04 18:18:08 +000021223{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21224echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021225
21226 if test "$GCC" = yes; then
21227 lt_prog_compiler_wl_F77='-Wl,'
21228 lt_prog_compiler_static_F77='-static'
21229
21230 case $host_os in
21231 aix*)
21232 # All AIX code is PIC.
21233 if test "$host_cpu" = ia64; then
21234 # AIX 5 now supports IA64 processor
21235 lt_prog_compiler_static_F77='-Bstatic'
21236 fi
21237 ;;
21238
21239 amigaos*)
21240 # FIXME: we need at least 68020 code to build shared libraries, but
21241 # adding the `-m68020' flag to GCC prevents building anything better,
21242 # like `-m68040'.
21243 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21244 ;;
21245
21246 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21247 # PIC is the default for these OSes.
21248 ;;
21249
21250 mingw* | pw32* | os2*)
21251 # This hack is so that the source file can tell whether it is being
21252 # built for inclusion in a dll (and should export symbols for example).
21253 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21254 ;;
21255
21256 darwin* | rhapsody*)
21257 # PIC is the default on this platform
21258 # Common symbols not allowed in MH_DYLIB files
21259 lt_prog_compiler_pic_F77='-fno-common'
21260 ;;
21261
Reid Spencera773bd52006-08-04 18:18:08 +000021262 interix3*)
21263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21264 # Instead, we relocate shared libraries at runtime.
21265 ;;
21266
John Criswell47fdd832003-07-14 16:52:07 +000021267 msdosdjgpp*)
21268 # Just because we use GCC doesn't mean we suddenly get shared libraries
21269 # on systems that don't support them.
21270 lt_prog_compiler_can_build_shared_F77=no
21271 enable_shared=no
21272 ;;
21273
21274 sysv4*MP*)
21275 if test -d /usr/nec; then
21276 lt_prog_compiler_pic_F77=-Kconform_pic
21277 fi
21278 ;;
21279
21280 hpux*)
21281 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21282 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021283 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021284 hppa*64*|ia64*)
21285 # +Z the default
21286 ;;
21287 *)
21288 lt_prog_compiler_pic_F77='-fPIC'
21289 ;;
21290 esac
21291 ;;
21292
21293 *)
21294 lt_prog_compiler_pic_F77='-fPIC'
21295 ;;
21296 esac
21297 else
21298 # PORTME Check for flag to pass linker flags through the system compiler.
21299 case $host_os in
21300 aix*)
21301 lt_prog_compiler_wl_F77='-Wl,'
21302 if test "$host_cpu" = ia64; then
21303 # AIX 5 now supports IA64 processor
21304 lt_prog_compiler_static_F77='-Bstatic'
21305 else
21306 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21307 fi
21308 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021309 darwin*)
21310 # PIC is the default on this platform
21311 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021312 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021313 xlc*)
21314 lt_prog_compiler_pic_F77='-qnocommon'
21315 lt_prog_compiler_wl_F77='-Wl,'
21316 ;;
21317 esac
21318 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021319
21320 mingw* | pw32* | os2*)
21321 # This hack is so that the source file can tell whether it is being
21322 # built for inclusion in a dll (and should export symbols for example).
21323 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21324 ;;
21325
21326 hpux9* | hpux10* | hpux11*)
21327 lt_prog_compiler_wl_F77='-Wl,'
21328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21329 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021330 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021331 hppa*64*|ia64*)
21332 # +Z the default
21333 ;;
21334 *)
21335 lt_prog_compiler_pic_F77='+Z'
21336 ;;
21337 esac
21338 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21339 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21340 ;;
21341
21342 irix5* | irix6* | nonstopux*)
21343 lt_prog_compiler_wl_F77='-Wl,'
21344 # PIC (with -KPIC) is the default.
21345 lt_prog_compiler_static_F77='-non_shared'
21346 ;;
21347
21348 newsos6)
21349 lt_prog_compiler_pic_F77='-KPIC'
21350 lt_prog_compiler_static_F77='-Bstatic'
21351 ;;
21352
21353 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021354 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021355 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021356 lt_prog_compiler_wl_F77='-Wl,'
21357 lt_prog_compiler_pic_F77='-KPIC'
21358 lt_prog_compiler_static_F77='-static'
21359 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021360 pgcc* | pgf77* | pgf90* | pgf95*)
21361 # Portland Group compilers (*not* the Pentium gcc compiler,
21362 # which looks to be a dead project)
21363 lt_prog_compiler_wl_F77='-Wl,'
21364 lt_prog_compiler_pic_F77='-fpic'
21365 lt_prog_compiler_static_F77='-Bstatic'
21366 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021367 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021368 lt_prog_compiler_wl_F77='-Wl,'
21369 # All Alpha code is PIC.
21370 lt_prog_compiler_static_F77='-non_shared'
21371 ;;
21372 esac
21373 ;;
21374
21375 osf3* | osf4* | osf5*)
21376 lt_prog_compiler_wl_F77='-Wl,'
21377 # All OSF/1 code is PIC.
21378 lt_prog_compiler_static_F77='-non_shared'
21379 ;;
21380
John Criswell47fdd832003-07-14 16:52:07 +000021381 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021382 lt_prog_compiler_pic_F77='-KPIC'
21383 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021384 case $cc_basename in
21385 f77* | f90* | f95*)
21386 lt_prog_compiler_wl_F77='-Qoption ld ';;
21387 *)
21388 lt_prog_compiler_wl_F77='-Wl,';;
21389 esac
John Criswell47fdd832003-07-14 16:52:07 +000021390 ;;
21391
21392 sunos4*)
21393 lt_prog_compiler_wl_F77='-Qoption ld '
21394 lt_prog_compiler_pic_F77='-PIC'
21395 lt_prog_compiler_static_F77='-Bstatic'
21396 ;;
21397
Reid Spencera773bd52006-08-04 18:18:08 +000021398 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021399 lt_prog_compiler_wl_F77='-Wl,'
21400 lt_prog_compiler_pic_F77='-KPIC'
21401 lt_prog_compiler_static_F77='-Bstatic'
21402 ;;
21403
21404 sysv4*MP*)
21405 if test -d /usr/nec ;then
21406 lt_prog_compiler_pic_F77='-Kconform_pic'
21407 lt_prog_compiler_static_F77='-Bstatic'
21408 fi
21409 ;;
21410
Reid Spencera773bd52006-08-04 18:18:08 +000021411 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21412 lt_prog_compiler_wl_F77='-Wl,'
21413 lt_prog_compiler_pic_F77='-KPIC'
21414 lt_prog_compiler_static_F77='-Bstatic'
21415 ;;
21416
21417 unicos*)
21418 lt_prog_compiler_wl_F77='-Wl,'
21419 lt_prog_compiler_can_build_shared_F77=no
21420 ;;
21421
John Criswell47fdd832003-07-14 16:52:07 +000021422 uts4*)
21423 lt_prog_compiler_pic_F77='-pic'
21424 lt_prog_compiler_static_F77='-Bstatic'
21425 ;;
21426
21427 *)
21428 lt_prog_compiler_can_build_shared_F77=no
21429 ;;
21430 esac
21431 fi
21432
Reid Spencera773bd52006-08-04 18:18:08 +000021433{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21434echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021435
21436#
21437# Check to make sure the PIC flag actually works.
21438#
21439if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021440
Reid Spencera773bd52006-08-04 18:18:08 +000021441{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21442echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021443if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21445else
21446 lt_prog_compiler_pic_works_F77=no
21447 ac_outfile=conftest.$ac_objext
21448 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21449 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21450 # Insert the option either (1) after the last *FLAGS variable, or
21451 # (2) before a word containing "conftest.", or (3) at the end.
21452 # Note that $ac_compile itself does not contain backslashes and begins
21453 # with a dollar sign (not a hyphen), so the echo should work correctly.
21454 # The option is referenced via a variable to avoid confusing sed.
21455 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21458 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor0711c302009-06-17 00:43:20 +000021459 (eval echo "\"\$as_me:21459: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021460 (eval "$lt_compile" 2>conftest.err)
21461 ac_status=$?
21462 cat conftest.err >&5
Douglas Gregor0711c302009-06-17 00:43:20 +000021463 echo "$as_me:21463: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021464 if (exit $ac_status) && test -s "$ac_outfile"; then
21465 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021466 # So say no if there are warnings other than the usual output.
21467 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021470 lt_prog_compiler_pic_works_F77=yes
21471 fi
21472 fi
21473 $rm conftest*
21474
21475fi
Reid Spencera773bd52006-08-04 18:18:08 +000021476{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21477echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021478
21479if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21480 case $lt_prog_compiler_pic_F77 in
21481 "" | " "*) ;;
21482 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21483 esac
21484else
21485 lt_prog_compiler_pic_F77=
21486 lt_prog_compiler_can_build_shared_F77=no
21487fi
21488
21489fi
Reid Spencera773bd52006-08-04 18:18:08 +000021490case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021491 # For platforms which do not support PIC, -DPIC is meaningless:
21492 *djgpp*)
21493 lt_prog_compiler_pic_F77=
21494 ;;
21495 *)
21496 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21497 ;;
21498esac
21499
Reid Spencera773bd52006-08-04 18:18:08 +000021500#
21501# Check to make sure the static flag actually works.
21502#
21503wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21504{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21505echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21506if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21507 echo $ECHO_N "(cached) $ECHO_C" >&6
21508else
21509 lt_prog_compiler_static_works_F77=no
21510 save_LDFLAGS="$LDFLAGS"
21511 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21512 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21514 # The linker can only warn and ignore the option if not recognized
21515 # So say no if there are warnings
21516 if test -s conftest.err; then
21517 # Append any errors to the config.log.
21518 cat conftest.err 1>&5
21519 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21521 if diff conftest.exp conftest.er2 >/dev/null; then
21522 lt_prog_compiler_static_works_F77=yes
21523 fi
21524 else
21525 lt_prog_compiler_static_works_F77=yes
21526 fi
21527 fi
21528 $rm conftest*
21529 LDFLAGS="$save_LDFLAGS"
21530
21531fi
21532{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21533echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21534
21535if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21536 :
21537else
21538 lt_prog_compiler_static_F77=
21539fi
21540
21541
21542{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21543echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021544if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21545 echo $ECHO_N "(cached) $ECHO_C" >&6
21546else
21547 lt_cv_prog_compiler_c_o_F77=no
21548 $rm -r conftest 2>/dev/null
21549 mkdir conftest
21550 cd conftest
21551 mkdir out
21552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21553
John Criswell47fdd832003-07-14 16:52:07 +000021554 lt_compiler_flag="-o out/conftest2.$ac_objext"
21555 # Insert the option either (1) after the last *FLAGS variable, or
21556 # (2) before a word containing "conftest.", or (3) at the end.
21557 # Note that $ac_compile itself does not contain backslashes and begins
21558 # with a dollar sign (not a hyphen), so the echo should work correctly.
21559 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21562 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor0711c302009-06-17 00:43:20 +000021563 (eval echo "\"\$as_me:21563: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021564 (eval "$lt_compile" 2>out/conftest.err)
21565 ac_status=$?
21566 cat out/conftest.err >&5
Douglas Gregor0711c302009-06-17 00:43:20 +000021567 echo "$as_me:21567: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21569 then
21570 # The compiler can only warn and ignore the option if not recognized
21571 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021572 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021575 lt_cv_prog_compiler_c_o_F77=yes
21576 fi
21577 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021578 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021579 $rm conftest*
21580 # SGI C++ compiler will create directory out/ii_files/ for
21581 # template instantiation
21582 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21583 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021584 cd ..
21585 rmdir conftest
21586 $rm conftest*
21587
21588fi
Reid Spencera773bd52006-08-04 18:18:08 +000021589{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21590echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021591
21592
21593hard_links="nottested"
21594if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21595 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021596 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21597echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021598 hard_links=yes
21599 $rm conftest*
21600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21601 touch conftest.a
21602 ln conftest.a conftest.b 2>&5 || hard_links=no
21603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021604 { echo "$as_me:$LINENO: result: $hard_links" >&5
21605echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021606 if test "$hard_links" = no; then
21607 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21608echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21609 need_locks=warn
21610 fi
21611else
21612 need_locks=no
21613fi
21614
Reid Spencera773bd52006-08-04 18:18:08 +000021615{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21616echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021617
21618 runpath_var=
21619 allow_undefined_flag_F77=
21620 enable_shared_with_static_runtimes_F77=no
21621 archive_cmds_F77=
21622 archive_expsym_cmds_F77=
21623 old_archive_From_new_cmds_F77=
21624 old_archive_from_expsyms_cmds_F77=
21625 export_dynamic_flag_spec_F77=
21626 whole_archive_flag_spec_F77=
21627 thread_safe_flag_spec_F77=
21628 hardcode_libdir_flag_spec_F77=
21629 hardcode_libdir_flag_spec_ld_F77=
21630 hardcode_libdir_separator_F77=
21631 hardcode_direct_F77=no
21632 hardcode_minus_L_F77=no
21633 hardcode_shlibpath_var_F77=unsupported
21634 link_all_deplibs_F77=unknown
21635 hardcode_automatic_F77=no
21636 module_cmds_F77=
21637 module_expsym_cmds_F77=
21638 always_export_symbols_F77=no
21639 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21640 # include_expsyms should be a list of space-separated symbols to be *always*
21641 # included in the symbol list
21642 include_expsyms_F77=
21643 # exclude_expsyms can be an extended regexp of symbols to exclude
21644 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21645 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21646 # as well as any symbol that contains `d'.
21647 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21648 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21649 # platforms (ab)use it in PIC code, but their linkers get confused if
21650 # the symbol is explicitly referenced. Since portable code cannot
21651 # rely on this symbol name, it's probably fine to never include it in
21652 # preloaded symbol tables.
21653 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021654 # Just being paranoid about ensuring that cc_basename is set.
21655 for cc_temp in $compiler""; do
21656 case $cc_temp in
21657 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21658 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21659 \-*) ;;
21660 *) break;;
21661 esac
21662done
21663cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021664
21665 case $host_os in
21666 cygwin* | mingw* | pw32*)
21667 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21668 # When not using gcc, we currently assume that we are using
21669 # Microsoft Visual C++.
21670 if test "$GCC" != yes; then
21671 with_gnu_ld=no
21672 fi
21673 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021674 interix*)
21675 # we just hope/assume this is gcc and not c89 (= MSVC++)
21676 with_gnu_ld=yes
21677 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021678 openbsd*)
21679 with_gnu_ld=no
21680 ;;
21681 esac
21682
21683 ld_shlibs_F77=yes
21684 if test "$with_gnu_ld" = yes; then
21685 # If archive_cmds runs LD, not CC, wlarc should be empty
21686 wlarc='${wl}'
21687
Reid Spencera773bd52006-08-04 18:18:08 +000021688 # Set some defaults for GNU ld with shared library support. These
21689 # are reset later if shared libraries are not supported. Putting them
21690 # here allows them to be overridden if necessary.
21691 runpath_var=LD_RUN_PATH
21692 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21693 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21694 # ancient GNU ld didn't support --whole-archive et. al.
21695 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21696 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21697 else
21698 whole_archive_flag_spec_F77=
21699 fi
21700 supports_anon_versioning=no
21701 case `$LD -v 2>/dev/null` in
21702 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21703 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21704 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21705 *\ 2.11.*) ;; # other 2.11 versions
21706 *) supports_anon_versioning=yes ;;
21707 esac
21708
John Criswell47fdd832003-07-14 16:52:07 +000021709 # See if GNU ld supports shared libraries.
21710 case $host_os in
21711 aix3* | aix4* | aix5*)
21712 # On AIX/PPC, the GNU linker is very broken
21713 if test "$host_cpu" != ia64; then
21714 ld_shlibs_F77=no
21715 cat <<EOF 1>&2
21716
21717*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21718*** to be unable to reliably create shared libraries on AIX.
21719*** Therefore, libtool is disabling shared libraries support. If you
21720*** really care for shared libraries, you may want to modify your PATH
21721*** so that a non-GNU linker is found, and then restart.
21722
21723EOF
21724 fi
21725 ;;
21726
21727 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021728 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 +000021729 hardcode_libdir_flag_spec_F77='-L$libdir'
21730 hardcode_minus_L_F77=yes
21731
21732 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21733 # that the semantics of dynamic libraries on AmigaOS, at least up
21734 # to version 4, is to share data among multiple programs linked
21735 # with the same dynamic library. Since this doesn't match the
21736 # behavior of shared libraries on other platforms, we can't use
21737 # them.
21738 ld_shlibs_F77=no
21739 ;;
21740
21741 beos*)
21742 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21743 allow_undefined_flag_F77=unsupported
21744 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21745 # support --undefined. This deserves some investigation. FIXME
21746 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21747 else
21748 ld_shlibs_F77=no
21749 fi
21750 ;;
21751
21752 cygwin* | mingw* | pw32*)
21753 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21754 # as there is no search path for DLLs.
21755 hardcode_libdir_flag_spec_F77='-L$libdir'
21756 allow_undefined_flag_F77=unsupported
21757 always_export_symbols_F77=no
21758 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021759 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 +000021760
21761 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021762 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 +000021763 # If the export-symbols file already is a .def file (1st line
21764 # is EXPORTS), use it as is; otherwise, prepend...
21765 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21766 cp $export_symbols $output_objdir/$soname.def;
21767 else
21768 echo EXPORTS > $output_objdir/$soname.def;
21769 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021770 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021771 $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 +000021772 else
Reid Spencera773bd52006-08-04 18:18:08 +000021773 ld_shlibs_F77=no
21774 fi
21775 ;;
21776
21777 interix3*)
21778 hardcode_direct_F77=no
21779 hardcode_shlibpath_var_F77=no
21780 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21781 export_dynamic_flag_spec_F77='${wl}-E'
21782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21783 # Instead, shared libraries are loaded at an image base (0x10000000 by
21784 # default) and relocated if they conflict, which is a slow very memory
21785 # consuming and fragmenting process. To avoid this, we pick a random,
21786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21788 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'
21789 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'
21790 ;;
21791
21792 linux*)
21793 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21794 tmp_addflag=
21795 case $cc_basename,$host_cpu in
21796 pgcc*) # Portland Group C compiler
21797 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'
21798 tmp_addflag=' $pic_flag'
21799 ;;
21800 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21801 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'
21802 tmp_addflag=' $pic_flag -Mnomain' ;;
21803 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21804 tmp_addflag=' -i_dynamic' ;;
21805 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21806 tmp_addflag=' -i_dynamic -nofor_main' ;;
21807 ifc* | ifort*) # Intel Fortran compiler
21808 tmp_addflag=' -nofor_main' ;;
21809 esac
21810 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21811
21812 if test $supports_anon_versioning = yes; then
21813 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21814 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21815 $echo "local: *; };" >> $output_objdir/$libname.ver~
21816 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21817 fi
21818 else
21819 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021820 fi
21821 ;;
21822
21823 netbsd*)
21824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21825 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21826 wlarc=
21827 else
21828 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21829 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21830 fi
21831 ;;
21832
Reid Spencera773bd52006-08-04 18:18:08 +000021833 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021834 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21835 ld_shlibs_F77=no
21836 cat <<EOF 1>&2
21837
21838*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21839*** create shared libraries on Solaris systems. Therefore, libtool
21840*** is disabling shared libraries support. We urge you to upgrade GNU
21841*** binutils to release 2.9.1 or newer. Another option is to modify
21842*** your PATH or compiler configuration so that the native linker is
21843*** used, and then restart.
21844
21845EOF
21846 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21847 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21848 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21849 else
21850 ld_shlibs_F77=no
21851 fi
21852 ;;
21853
Reid Spencera773bd52006-08-04 18:18:08 +000021854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21855 case `$LD -v 2>&1` in
21856 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21857 ld_shlibs_F77=no
21858 cat <<_LT_EOF 1>&2
21859
21860*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21861*** reliably create shared libraries on SCO systems. Therefore, libtool
21862*** is disabling shared libraries support. We urge you to upgrade GNU
21863*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21864*** your PATH or compiler configuration so that the native linker is
21865*** used, and then restart.
21866
21867_LT_EOF
21868 ;;
21869 *)
21870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21871 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21872 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21873 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21874 else
21875 ld_shlibs_F77=no
21876 fi
21877 ;;
21878 esac
21879 ;;
21880
John Criswell47fdd832003-07-14 16:52:07 +000021881 sunos4*)
21882 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21883 wlarc=
21884 hardcode_direct_F77=yes
21885 hardcode_shlibpath_var_F77=no
21886 ;;
21887
21888 *)
21889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21890 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21891 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21892 else
21893 ld_shlibs_F77=no
21894 fi
21895 ;;
21896 esac
21897
Reid Spencera773bd52006-08-04 18:18:08 +000021898 if test "$ld_shlibs_F77" = no; then
21899 runpath_var=
21900 hardcode_libdir_flag_spec_F77=
21901 export_dynamic_flag_spec_F77=
21902 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021903 fi
21904 else
21905 # PORTME fill in a description of your system's linker (not GNU ld)
21906 case $host_os in
21907 aix3*)
21908 allow_undefined_flag_F77=unsupported
21909 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021910 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 +000021911 # Note: this linker hardcodes the directories in LIBPATH if there
21912 # are no directories specified by -L.
21913 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021914 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021915 # Neither direct hardcoding nor static linking is supported with a
21916 # broken collect2.
21917 hardcode_direct_F77=unsupported
21918 fi
21919 ;;
21920
21921 aix4* | aix5*)
21922 if test "$host_cpu" = ia64; then
21923 # On IA64, the linker does run time linking by default, so we don't
21924 # have to do anything special.
21925 aix_use_runtimelinking=no
21926 exp_sym_flag='-Bexport'
21927 no_entry_flag=""
21928 else
21929 # If we're using GNU nm, then we don't want the "-C" option.
21930 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21931 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21932 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'
21933 else
21934 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'
21935 fi
21936 aix_use_runtimelinking=no
21937
21938 # Test if we are trying to use run time linking or normal
21939 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21940 # need to do runtime linking.
21941 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21942 for ld_flag in $LDFLAGS; do
21943 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21944 aix_use_runtimelinking=yes
21945 break
21946 fi
21947 done
Reid Spencera773bd52006-08-04 18:18:08 +000021948 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021949 esac
21950
21951 exp_sym_flag='-bexport'
21952 no_entry_flag='-bnoentry'
21953 fi
21954
21955 # When large executables or shared objects are built, AIX ld can
21956 # have problems creating the table of contents. If linking a library
21957 # or program results in "error TOC overflow" add -mminimal-toc to
21958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21960
21961 archive_cmds_F77=''
21962 hardcode_direct_F77=yes
21963 hardcode_libdir_separator_F77=':'
21964 link_all_deplibs_F77=yes
21965
21966 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021967 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021968 # We only want to do this on AIX 4.2 and lower, the check
21969 # below for broken collect2 doesn't work under 4.3+
21970 collect2name=`${CC} -print-prog-name=collect2`
21971 if test -f "$collect2name" && \
21972 strings "$collect2name" | grep resolve_lib_name >/dev/null
21973 then
21974 # We have reworked collect2
21975 hardcode_direct_F77=yes
21976 else
21977 # We have old collect2
21978 hardcode_direct_F77=unsupported
21979 # It fails to find uninstalled libraries when the uninstalled
21980 # path is not listed in the libpath. Setting hardcode_minus_L
21981 # to unsupported forces relinking
21982 hardcode_minus_L_F77=yes
21983 hardcode_libdir_flag_spec_F77='-L$libdir'
21984 hardcode_libdir_separator_F77=
21985 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021986 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021987 esac
21988 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021989 if test "$aix_use_runtimelinking" = yes; then
21990 shared_flag="$shared_flag "'${wl}-G'
21991 fi
John Criswell47fdd832003-07-14 16:52:07 +000021992 else
21993 # not using gcc
21994 if test "$host_cpu" = ia64; then
21995 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21996 # chokes on -Wl,-G. The following line is correct:
21997 shared_flag='-G'
21998 else
Reid Spencera773bd52006-08-04 18:18:08 +000021999 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022000 shared_flag='${wl}-G'
22001 else
22002 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022003 fi
John Criswell47fdd832003-07-14 16:52:07 +000022004 fi
22005 fi
22006
22007 # It seems that -bexpall does not export symbols beginning with
22008 # underscore (_), so it is better to generate a list of symbols to export.
22009 always_export_symbols_F77=yes
22010 if test "$aix_use_runtimelinking" = yes; then
22011 # Warning - without using the other runtime loading flags (-brtl),
22012 # -berok will link without error, but may produce a broken library.
22013 allow_undefined_flag_F77='-berok'
22014 # Determine the default libpath from the value encoded in an empty executable.
22015 cat >conftest.$ac_ext <<_ACEOF
22016 program main
22017
22018 end
22019_ACEOF
22020rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022021if { (ac_try="$ac_link"
22022case "(($ac_try" in
22023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024 *) ac_try_echo=$ac_try;;
22025esac
22026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022028 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022029 grep -v '^ *+' conftest.er1 >conftest.err
22030 rm -f conftest.er1
22031 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022033 (exit $ac_status); } &&
22034 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22035 { (case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22038esac
22039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_try") 2>&5
22041 ac_status=$?
22042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043 (exit $ac_status); }; } &&
22044 { ac_try='test -s conftest$ac_exeext'
22045 { (case "(($ac_try" in
22046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22047 *) ac_try_echo=$ac_try;;
22048esac
22049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22050 (eval "$ac_try") 2>&5
22051 ac_status=$?
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022054
22055aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22056}'`
22057# Check for a 64-bit object if we didn't find anything.
22058if 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; }
22059}'`; fi
22060else
22061 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022062sed 's/^/| /' conftest.$ac_ext >&5
22063
Reid Spencera773bd52006-08-04 18:18:08 +000022064
John Criswell47fdd832003-07-14 16:52:07 +000022065fi
Reid Spencera773bd52006-08-04 18:18:08 +000022066
Bill Wendlingebcceee2009-04-18 11:20:33 +000022067rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022068 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022069if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22070
22071 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022072 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 +000022073 else
22074 if test "$host_cpu" = ia64; then
22075 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22076 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022077 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 +000022078 else
22079 # Determine the default libpath from the value encoded in an empty executable.
22080 cat >conftest.$ac_ext <<_ACEOF
22081 program main
22082
22083 end
22084_ACEOF
22085rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022086if { (ac_try="$ac_link"
22087case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22090esac
22091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022093 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022094 grep -v '^ *+' conftest.er1 >conftest.err
22095 rm -f conftest.er1
22096 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022098 (exit $ac_status); } &&
22099 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22100 { (case "(($ac_try" in
22101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22102 *) ac_try_echo=$ac_try;;
22103esac
22104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22105 (eval "$ac_try") 2>&5
22106 ac_status=$?
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); }; } &&
22109 { ac_try='test -s conftest$ac_exeext'
22110 { (case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22113esac
22114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_try") 2>&5
22116 ac_status=$?
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022119
22120aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22121}'`
22122# Check for a 64-bit object if we didn't find anything.
22123if 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; }
22124}'`; fi
22125else
22126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022127sed 's/^/| /' conftest.$ac_ext >&5
22128
Reid Spencera773bd52006-08-04 18:18:08 +000022129
John Criswell47fdd832003-07-14 16:52:07 +000022130fi
Reid Spencera773bd52006-08-04 18:18:08 +000022131
Bill Wendlingebcceee2009-04-18 11:20:33 +000022132rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022133 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022134if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22135
22136 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22137 # Warning - without using the other run time loading flags,
22138 # -berok will link without error, but may produce a broken library.
22139 no_undefined_flag_F77=' ${wl}-bernotok'
22140 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022141 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022142 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022143 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022144 # This is similar to how AIX traditionally builds its shared libraries.
22145 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 +000022146 fi
22147 fi
22148 ;;
22149
22150 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022151 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 +000022152 hardcode_libdir_flag_spec_F77='-L$libdir'
22153 hardcode_minus_L_F77=yes
22154 # see comment about different semantics on the GNU ld section
22155 ld_shlibs_F77=no
22156 ;;
22157
Reid Spencer2706f8c2004-09-19 23:53:36 +000022158 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022159 export_dynamic_flag_spec_F77=-rdynamic
22160 ;;
22161
22162 cygwin* | mingw* | pw32*)
22163 # When not using gcc, we currently assume that we are using
22164 # Microsoft Visual C++.
22165 # hardcode_libdir_flag_spec is actually meaningless, as there is
22166 # no search path for DLLs.
22167 hardcode_libdir_flag_spec_F77=' '
22168 allow_undefined_flag_F77=unsupported
22169 # Tell ltmain to make .lib files, not .a files.
22170 libext=lib
22171 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022172 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022173 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022174 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 +000022175 # The linker will automatically build a .lib file if we build a DLL.
22176 old_archive_From_new_cmds_F77='true'
22177 # FIXME: Should let the user specify the lib program.
22178 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022179 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022180 enable_shared_with_static_runtimes_F77=yes
22181 ;;
22182
22183 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022184 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022185 rhapsody* | darwin1.[012])
22186 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22187 ;;
22188 *) # Darwin 1.3 on
22189 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22190 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22191 else
22192 case ${MACOSX_DEPLOYMENT_TARGET} in
22193 10.[012])
22194 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22195 ;;
22196 10.*)
22197 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22198 ;;
22199 esac
22200 fi
22201 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022202 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022203 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022204 hardcode_direct_F77=no
22205 hardcode_automatic_F77=yes
22206 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022207 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022208 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022209 if test "$GCC" = yes ; then
22210 output_verbose_link_cmd='echo'
22211 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22212 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022213 # 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 +000022214 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}'
22215 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 +000022216 else
Reid Spencera773bd52006-08-04 18:18:08 +000022217 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022218 xlc*)
22219 output_verbose_link_cmd='echo'
22220 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22221 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022222 # 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 +000022223 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}'
22224 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 +000022225 ;;
22226 *)
22227 ld_shlibs_F77=no
22228 ;;
22229 esac
John Criswell47fdd832003-07-14 16:52:07 +000022230 fi
22231 ;;
22232
22233 dgux*)
22234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22235 hardcode_libdir_flag_spec_F77='-L$libdir'
22236 hardcode_shlibpath_var_F77=no
22237 ;;
22238
22239 freebsd1*)
22240 ld_shlibs_F77=no
22241 ;;
22242
22243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22244 # support. Future versions do this automatically, but an explicit c++rt0.o
22245 # does not break anything, and helps significantly (at the cost of a little
22246 # extra space).
22247 freebsd2.2*)
22248 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22249 hardcode_libdir_flag_spec_F77='-R$libdir'
22250 hardcode_direct_F77=yes
22251 hardcode_shlibpath_var_F77=no
22252 ;;
22253
22254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22255 freebsd2*)
22256 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22257 hardcode_direct_F77=yes
22258 hardcode_minus_L_F77=yes
22259 hardcode_shlibpath_var_F77=no
22260 ;;
22261
22262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022263 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022264 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22265 hardcode_libdir_flag_spec_F77='-R$libdir'
22266 hardcode_direct_F77=yes
22267 hardcode_shlibpath_var_F77=no
22268 ;;
22269
22270 hpux9*)
22271 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022272 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 +000022273 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022274 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 +000022275 fi
22276 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22277 hardcode_libdir_separator_F77=:
22278 hardcode_direct_F77=yes
22279
22280 # hardcode_minus_L: Not really in the search PATH,
22281 # but as the default location of the library.
22282 hardcode_minus_L_F77=yes
22283 export_dynamic_flag_spec_F77='${wl}-E'
22284 ;;
22285
Reid Spencera773bd52006-08-04 18:18:08 +000022286 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022288 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22289 else
22290 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22291 fi
22292 if test "$with_gnu_ld" = no; then
22293 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22294 hardcode_libdir_separator_F77=:
22295
22296 hardcode_direct_F77=yes
22297 export_dynamic_flag_spec_F77='${wl}-E'
22298
22299 # hardcode_minus_L: Not really in the search PATH,
22300 # but as the default location of the library.
22301 hardcode_minus_L_F77=yes
22302 fi
22303 ;;
22304
22305 hpux11*)
22306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22307 case $host_cpu in
22308 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022309 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22310 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022311 ia64*)
22312 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22313 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022314 *)
22315 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22316 ;;
22317 esac
22318 else
Reid Spencera773bd52006-08-04 18:18:08 +000022319 case $host_cpu in
22320 hppa*64*)
22321 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22322 ;;
22323 ia64*)
22324 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022325 ;;
22326 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022327 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 +000022328 ;;
22329 esac
22330 fi
22331 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022332 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22333 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022334
Reid Spencera773bd52006-08-04 18:18:08 +000022335 case $host_cpu in
22336 hppa*64*|ia64*)
22337 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22338 hardcode_direct_F77=no
22339 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022340 ;;
22341 *)
John Criswell47fdd832003-07-14 16:52:07 +000022342 hardcode_direct_F77=yes
22343 export_dynamic_flag_spec_F77='${wl}-E'
22344
22345 # hardcode_minus_L: Not really in the search PATH,
22346 # but as the default location of the library.
22347 hardcode_minus_L_F77=yes
22348 ;;
22349 esac
22350 fi
22351 ;;
22352
22353 irix5* | irix6* | nonstopux*)
22354 if test "$GCC" = yes; then
22355 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'
22356 else
22357 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'
22358 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22359 fi
22360 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22361 hardcode_libdir_separator_F77=:
22362 link_all_deplibs_F77=yes
22363 ;;
22364
22365 netbsd*)
22366 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22367 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22368 else
22369 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22370 fi
22371 hardcode_libdir_flag_spec_F77='-R$libdir'
22372 hardcode_direct_F77=yes
22373 hardcode_shlibpath_var_F77=no
22374 ;;
22375
22376 newsos6)
22377 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22378 hardcode_direct_F77=yes
22379 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22380 hardcode_libdir_separator_F77=:
22381 hardcode_shlibpath_var_F77=no
22382 ;;
22383
22384 openbsd*)
22385 hardcode_direct_F77=yes
22386 hardcode_shlibpath_var_F77=no
22387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22388 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022389 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 +000022390 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22391 export_dynamic_flag_spec_F77='${wl}-E'
22392 else
22393 case $host_os in
22394 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22395 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22396 hardcode_libdir_flag_spec_F77='-R$libdir'
22397 ;;
22398 *)
22399 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22400 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22401 ;;
22402 esac
22403 fi
22404 ;;
22405
22406 os2*)
22407 hardcode_libdir_flag_spec_F77='-L$libdir'
22408 hardcode_minus_L_F77=yes
22409 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022410 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 +000022411 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22412 ;;
22413
22414 osf3*)
22415 if test "$GCC" = yes; then
22416 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22417 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'
22418 else
22419 allow_undefined_flag_F77=' -expect_unresolved \*'
22420 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'
22421 fi
22422 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22423 hardcode_libdir_separator_F77=:
22424 ;;
22425
22426 osf4* | osf5*) # as osf3* with the addition of -msym flag
22427 if test "$GCC" = yes; then
22428 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22429 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'
22430 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22431 else
22432 allow_undefined_flag_F77=' -expect_unresolved \*'
22433 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 +000022434 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 +000022435 $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 +000022436
John Criswell47fdd832003-07-14 16:52:07 +000022437 # Both c and cxx compiler support -rpath directly
22438 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22439 fi
22440 hardcode_libdir_separator_F77=:
22441 ;;
22442
John Criswell47fdd832003-07-14 16:52:07 +000022443 solaris*)
22444 no_undefined_flag_F77=' -z text'
22445 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022446 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022447 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022448 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22449 $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 +000022450 else
Reid Spencera773bd52006-08-04 18:18:08 +000022451 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022452 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022453 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22454 $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 +000022455 fi
22456 hardcode_libdir_flag_spec_F77='-R$libdir'
22457 hardcode_shlibpath_var_F77=no
22458 case $host_os in
22459 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022460 *)
22461 # The compiler driver will combine linker options so we
22462 # cannot just pass the convience library names through
22463 # without $wl, iff we do not link with $LD.
22464 # Luckily, gcc supports the same syntax we need for Sun Studio.
22465 # Supported since Solaris 2.6 (maybe 2.5.1?)
22466 case $wlarc in
22467 '')
22468 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22469 *)
22470 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' ;;
22471 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022472 esac
22473 link_all_deplibs_F77=yes
22474 ;;
22475
22476 sunos4*)
22477 if test "x$host_vendor" = xsequent; then
22478 # Use $CC to link under sequent, because it throws in some extra .o
22479 # files that make .init and .fini sections work.
22480 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22481 else
22482 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22483 fi
22484 hardcode_libdir_flag_spec_F77='-L$libdir'
22485 hardcode_direct_F77=yes
22486 hardcode_minus_L_F77=yes
22487 hardcode_shlibpath_var_F77=no
22488 ;;
22489
22490 sysv4)
22491 case $host_vendor in
22492 sni)
22493 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22494 hardcode_direct_F77=yes # is this really true???
22495 ;;
22496 siemens)
22497 ## LD is ld it makes a PLAMLIB
22498 ## CC just makes a GrossModule.
22499 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22500 reload_cmds_F77='$CC -r -o $output$reload_objs'
22501 hardcode_direct_F77=no
22502 ;;
22503 motorola)
22504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22505 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22506 ;;
22507 esac
22508 runpath_var='LD_RUN_PATH'
22509 hardcode_shlibpath_var_F77=no
22510 ;;
22511
22512 sysv4.3*)
22513 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22514 hardcode_shlibpath_var_F77=no
22515 export_dynamic_flag_spec_F77='-Bexport'
22516 ;;
22517
22518 sysv4*MP*)
22519 if test -d /usr/nec; then
22520 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22521 hardcode_shlibpath_var_F77=no
22522 runpath_var=LD_RUN_PATH
22523 hardcode_runpath_var=yes
22524 ld_shlibs_F77=yes
22525 fi
22526 ;;
22527
Reid Spencera773bd52006-08-04 18:18:08 +000022528 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22529 no_undefined_flag_F77='${wl}-z,text'
22530 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022531 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022532 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022533
John Criswell47fdd832003-07-14 16:52:07 +000022534 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022535 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22536 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 +000022537 else
Reid Spencera773bd52006-08-04 18:18:08 +000022538 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22539 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 +000022540 fi
John Criswell47fdd832003-07-14 16:52:07 +000022541 ;;
22542
Reid Spencera773bd52006-08-04 18:18:08 +000022543 sysv5* | sco3.2v5* | sco5v6*)
22544 # Note: We can NOT use -z defs as we might desire, because we do not
22545 # link with -lc, and that would cause any symbols used from libc to
22546 # always be unresolved, which means just about no library would
22547 # ever link correctly. If we're not using GNU ld we use -z text
22548 # though, which does catch some bad symbols but isn't as heavy-handed
22549 # as -z defs.
22550 no_undefined_flag_F77='${wl}-z,text'
22551 allow_undefined_flag_F77='${wl}-z,nodefs'
22552 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022553 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022554 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22555 hardcode_libdir_separator_F77=':'
22556 link_all_deplibs_F77=yes
22557 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022558 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022559
22560 if test "$GCC" = yes; then
22561 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22562 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22563 else
22564 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22565 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22566 fi
John Criswell47fdd832003-07-14 16:52:07 +000022567 ;;
22568
22569 uts4*)
22570 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22571 hardcode_libdir_flag_spec_F77='-L$libdir'
22572 hardcode_shlibpath_var_F77=no
22573 ;;
22574
22575 *)
22576 ld_shlibs_F77=no
22577 ;;
22578 esac
22579 fi
22580
Reid Spencera773bd52006-08-04 18:18:08 +000022581{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22582echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022583test "$ld_shlibs_F77" = no && can_build_shared=no
22584
John Criswell47fdd832003-07-14 16:52:07 +000022585#
22586# Do we need to explicitly link libc?
22587#
22588case "x$archive_cmds_need_lc_F77" in
22589x|xyes)
22590 # Assume -lc should be added
22591 archive_cmds_need_lc_F77=yes
22592
22593 if test "$enable_shared" = yes && test "$GCC" = yes; then
22594 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022595 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022596 # FIXME: we may have to deal with multi-command sequences.
22597 ;;
22598 '$CC '*)
22599 # Test whether the compiler implicitly links with -lc since on some
22600 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22601 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022602 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22603echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022604 $rm conftest*
22605 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22606
22607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22608 (eval $ac_compile) 2>&5
22609 ac_status=$?
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } 2>conftest.err; then
22612 soname=conftest
22613 lib=conftest
22614 libobjs=conftest.$ac_objext
22615 deplibs=
22616 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022617 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022618 compiler_flags=-v
22619 linker_flags=-v
22620 verstring=
22621 output_objdir=.
22622 libname=conftest
22623 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22624 allow_undefined_flag_F77=
22625 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22626 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22627 ac_status=$?
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); }
22630 then
22631 archive_cmds_need_lc_F77=no
22632 else
22633 archive_cmds_need_lc_F77=yes
22634 fi
22635 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22636 else
22637 cat conftest.err 1>&5
22638 fi
22639 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022640 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22641echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022642 ;;
22643 esac
22644 fi
22645 ;;
22646esac
22647
Reid Spencera773bd52006-08-04 18:18:08 +000022648{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22649echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022650library_names_spec=
22651libname_spec='lib$name'
22652soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022653shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022654postinstall_cmds=
22655postuninstall_cmds=
22656finish_cmds=
22657finish_eval=
22658shlibpath_var=
22659shlibpath_overrides_runpath=unknown
22660version_type=none
22661dynamic_linker="$host_os ld.so"
22662sys_lib_dlsearch_path_spec="/lib /usr/lib"
22663if test "$GCC" = yes; then
22664 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22665 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22666 # if the path contains ";" then we assume it to be the separator
22667 # otherwise default to the standard path separator (i.e. ":") - it is
22668 # assumed that no part of a normal pathname contains ";" but that should
22669 # okay in the real world where ";" in dirpaths is itself problematic.
22670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22671 else
22672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22673 fi
22674else
22675 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22676fi
22677need_lib_prefix=unknown
22678hardcode_into_libs=no
22679
22680# when you set need_version to no, make sure it does not cause -set_version
22681# flags to be left without arguments
22682need_version=unknown
22683
22684case $host_os in
22685aix3*)
22686 version_type=linux
22687 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22688 shlibpath_var=LIBPATH
22689
22690 # AIX 3 has no versioning support, so we append a major version to the name.
22691 soname_spec='${libname}${release}${shared_ext}$major'
22692 ;;
22693
22694aix4* | aix5*)
22695 version_type=linux
22696 need_lib_prefix=no
22697 need_version=no
22698 hardcode_into_libs=yes
22699 if test "$host_cpu" = ia64; then
22700 # AIX 5 supports IA64
22701 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22702 shlibpath_var=LD_LIBRARY_PATH
22703 else
22704 # With GCC up to 2.95.x, collect2 would create an import file
22705 # for dependence libraries. The import file would start with
22706 # the line `#! .'. This would cause the generated library to
22707 # depend on `.', always an invalid library. This was fixed in
22708 # development snapshots of GCC prior to 3.0.
22709 case $host_os in
22710 aix4 | aix4.[01] | aix4.[01].*)
22711 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22712 echo ' yes '
22713 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22714 :
22715 else
22716 can_build_shared=no
22717 fi
22718 ;;
22719 esac
22720 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22721 # soname into executable. Probably we can add versioning support to
22722 # collect2, so additional links can be useful in future.
22723 if test "$aix_use_runtimelinking" = yes; then
22724 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22725 # instead of lib<name>.a to let people know that these are not
22726 # typical AIX shared libraries.
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728 else
22729 # We preserve .a as extension for shared libraries through AIX4.2
22730 # and later when we are not doing run time linking.
22731 library_names_spec='${libname}${release}.a $libname.a'
22732 soname_spec='${libname}${release}${shared_ext}$major'
22733 fi
22734 shlibpath_var=LIBPATH
22735 fi
22736 ;;
22737
22738amigaos*)
22739 library_names_spec='$libname.ixlibrary $libname.a'
22740 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022741 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 +000022742 ;;
22743
22744beos*)
22745 library_names_spec='${libname}${shared_ext}'
22746 dynamic_linker="$host_os ld.so"
22747 shlibpath_var=LIBRARY_PATH
22748 ;;
22749
Reid Spencer2706f8c2004-09-19 23:53:36 +000022750bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022751 version_type=linux
22752 need_version=no
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22754 soname_spec='${libname}${release}${shared_ext}$major'
22755 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22756 shlibpath_var=LD_LIBRARY_PATH
22757 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22758 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22759 # the default ld.so.conf also contains /usr/contrib/lib and
22760 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22761 # libtool to hard-code these into programs
22762 ;;
22763
22764cygwin* | mingw* | pw32*)
22765 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022766 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022767 need_version=no
22768 need_lib_prefix=no
22769
22770 case $GCC,$host_os in
22771 yes,cygwin* | yes,mingw* | yes,pw32*)
22772 library_names_spec='$libname.dll.a'
22773 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022774 postinstall_cmds='base_file=`basename \${file}`~
22775 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22776 dldir=$destdir/`dirname \$dlpath`~
22777 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022778 $install_prog $dir/$dlname \$dldir/$dlname~
22779 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022780 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22781 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022782 $rm \$dlpath'
22783 shlibpath_overrides_runpath=yes
22784
22785 case $host_os in
22786 cygwin*)
22787 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22788 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 +000022789 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022790 ;;
22791 mingw*)
22792 # MinGW DLLs use traditional 'lib' prefix
22793 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22795 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22796 # It is most probably a Windows format PATH printed by
22797 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22798 # path with ; separators, and with drive letters. We can handle the
22799 # drive letters (cygwin fileutils understands them), so leave them,
22800 # especially as we might pass files found there to a mingw objdump,
22801 # which wouldn't understand a cygwinified path. Ahh.
22802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22803 else
22804 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22805 fi
22806 ;;
22807 pw32*)
22808 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022809 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 +000022810 ;;
22811 esac
22812 ;;
22813
22814 *)
22815 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22816 ;;
22817 esac
22818 dynamic_linker='Win32 ld.exe'
22819 # FIXME: first we should search . and the directory the executable is in
22820 shlibpath_var=PATH
22821 ;;
22822
22823darwin* | rhapsody*)
22824 dynamic_linker="$host_os dyld"
22825 version_type=darwin
22826 need_lib_prefix=no
22827 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022828 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022829 soname_spec='${libname}${release}${major}$shared_ext'
22830 shlibpath_overrides_runpath=yes
22831 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022832 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022833 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022834 if test "$GCC" = yes; then
22835 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"`
22836 else
22837 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022838 fi
22839 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22840 ;;
22841
22842dgux*)
22843 version_type=linux
22844 need_lib_prefix=no
22845 need_version=no
22846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22847 soname_spec='${libname}${release}${shared_ext}$major'
22848 shlibpath_var=LD_LIBRARY_PATH
22849 ;;
22850
22851freebsd1*)
22852 dynamic_linker=no
22853 ;;
22854
Reid Spencer2706f8c2004-09-19 23:53:36 +000022855kfreebsd*-gnu)
22856 version_type=linux
22857 need_lib_prefix=no
22858 need_version=no
22859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22860 soname_spec='${libname}${release}${shared_ext}$major'
22861 shlibpath_var=LD_LIBRARY_PATH
22862 shlibpath_overrides_runpath=no
22863 hardcode_into_libs=yes
22864 dynamic_linker='GNU ld.so'
22865 ;;
22866
Reid Spencera773bd52006-08-04 18:18:08 +000022867freebsd* | dragonfly*)
22868 # DragonFly does not have aout. When/if they implement a new
22869 # versioning mechanism, adjust this.
22870 if test -x /usr/bin/objformat; then
22871 objformat=`/usr/bin/objformat`
22872 else
22873 case $host_os in
22874 freebsd[123]*) objformat=aout ;;
22875 *) objformat=elf ;;
22876 esac
22877 fi
John Criswell47fdd832003-07-14 16:52:07 +000022878 version_type=freebsd-$objformat
22879 case $version_type in
22880 freebsd-elf*)
22881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22882 need_version=no
22883 need_lib_prefix=no
22884 ;;
22885 freebsd-*)
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22887 need_version=yes
22888 ;;
22889 esac
22890 shlibpath_var=LD_LIBRARY_PATH
22891 case $host_os in
22892 freebsd2*)
22893 shlibpath_overrides_runpath=yes
22894 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022895 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022896 shlibpath_overrides_runpath=yes
22897 hardcode_into_libs=yes
22898 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022901 shlibpath_overrides_runpath=no
22902 hardcode_into_libs=yes
22903 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022904 freebsd*) # from 4.6 on
22905 shlibpath_overrides_runpath=yes
22906 hardcode_into_libs=yes
22907 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022908 esac
22909 ;;
22910
22911gnu*)
22912 version_type=linux
22913 need_lib_prefix=no
22914 need_version=no
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22916 soname_spec='${libname}${release}${shared_ext}$major'
22917 shlibpath_var=LD_LIBRARY_PATH
22918 hardcode_into_libs=yes
22919 ;;
22920
22921hpux9* | hpux10* | hpux11*)
22922 # Give a soname corresponding to the major version so that dld.sl refuses to
22923 # link against other versions.
22924 version_type=sunos
22925 need_lib_prefix=no
22926 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022927 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022928 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022929 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022930 hardcode_into_libs=yes
22931 dynamic_linker="$host_os dld.so"
22932 shlibpath_var=LD_LIBRARY_PATH
22933 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22935 soname_spec='${libname}${release}${shared_ext}$major'
22936 if test "X$HPUX_IA64_MODE" = X32; then
22937 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22938 else
22939 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22940 fi
22941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22942 ;;
22943 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022944 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022945 hardcode_into_libs=yes
22946 dynamic_linker="$host_os dld.sl"
22947 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22948 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22950 soname_spec='${libname}${release}${shared_ext}$major'
22951 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22952 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22953 ;;
22954 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022955 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022956 dynamic_linker="$host_os dld.sl"
22957 shlibpath_var=SHLIB_PATH
22958 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22960 soname_spec='${libname}${release}${shared_ext}$major'
22961 ;;
22962 esac
22963 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22964 postinstall_cmds='chmod 555 $lib'
22965 ;;
22966
Reid Spencera773bd52006-08-04 18:18:08 +000022967interix3*)
22968 version_type=linux
22969 need_lib_prefix=no
22970 need_version=no
22971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22972 soname_spec='${libname}${release}${shared_ext}$major'
22973 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22974 shlibpath_var=LD_LIBRARY_PATH
22975 shlibpath_overrides_runpath=no
22976 hardcode_into_libs=yes
22977 ;;
22978
John Criswell47fdd832003-07-14 16:52:07 +000022979irix5* | irix6* | nonstopux*)
22980 case $host_os in
22981 nonstopux*) version_type=nonstopux ;;
22982 *)
22983 if test "$lt_cv_prog_gnu_ld" = yes; then
22984 version_type=linux
22985 else
22986 version_type=irix
22987 fi ;;
22988 esac
22989 need_lib_prefix=no
22990 need_version=no
22991 soname_spec='${libname}${release}${shared_ext}$major'
22992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22993 case $host_os in
22994 irix5* | nonstopux*)
22995 libsuff= shlibsuff=
22996 ;;
22997 *)
22998 case $LD in # libtool.m4 will add one of these switches to LD
22999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23000 libsuff= shlibsuff= libmagic=32-bit;;
23001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23002 libsuff=32 shlibsuff=N32 libmagic=N32;;
23003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23005 *) libsuff= shlibsuff= libmagic=never-match;;
23006 esac
23007 ;;
23008 esac
23009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23010 shlibpath_overrides_runpath=no
23011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23013 hardcode_into_libs=yes
23014 ;;
23015
23016# No shared lib support for Linux oldld, aout, or coff.
23017linux*oldld* | linux*aout* | linux*coff*)
23018 dynamic_linker=no
23019 ;;
23020
23021# This must be Linux ELF.
23022linux*)
23023 version_type=linux
23024 need_lib_prefix=no
23025 need_version=no
23026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23027 soname_spec='${libname}${release}${shared_ext}$major'
23028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23029 shlibpath_var=LD_LIBRARY_PATH
23030 shlibpath_overrides_runpath=no
23031 # This implies no fast_install, which is unacceptable.
23032 # Some rework will be needed to allow for fast_install
23033 # before this can be enabled.
23034 hardcode_into_libs=yes
23035
Reid Spencer2706f8c2004-09-19 23:53:36 +000023036 # Append ld.so.conf contents to the search path
23037 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023038 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 +000023039 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23040 fi
23041
John Criswell47fdd832003-07-14 16:52:07 +000023042 # We used to test for /lib/ld.so.1 and disable shared libraries on
23043 # powerpc, because MkLinux only supported shared libraries with the
23044 # GNU dynamic linker. Since this was broken with cross compilers,
23045 # most powerpc-linux boxes support dynamic linking these days and
23046 # people can always --disable-shared, the test was removed, and we
23047 # assume the GNU/Linux dynamic linker is in use.
23048 dynamic_linker='GNU/Linux ld.so'
23049 ;;
23050
Reid Spencer2706f8c2004-09-19 23:53:36 +000023051knetbsd*-gnu)
23052 version_type=linux
23053 need_lib_prefix=no
23054 need_version=no
23055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23056 soname_spec='${libname}${release}${shared_ext}$major'
23057 shlibpath_var=LD_LIBRARY_PATH
23058 shlibpath_overrides_runpath=no
23059 hardcode_into_libs=yes
23060 dynamic_linker='GNU ld.so'
23061 ;;
23062
John Criswell47fdd832003-07-14 16:52:07 +000023063netbsd*)
23064 version_type=sunos
23065 need_lib_prefix=no
23066 need_version=no
23067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23070 dynamic_linker='NetBSD (a.out) ld.so'
23071 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023073 soname_spec='${libname}${release}${shared_ext}$major'
23074 dynamic_linker='NetBSD ld.elf_so'
23075 fi
23076 shlibpath_var=LD_LIBRARY_PATH
23077 shlibpath_overrides_runpath=yes
23078 hardcode_into_libs=yes
23079 ;;
23080
23081newsos6)
23082 version_type=linux
23083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23084 shlibpath_var=LD_LIBRARY_PATH
23085 shlibpath_overrides_runpath=yes
23086 ;;
23087
Reid Spencer2706f8c2004-09-19 23:53:36 +000023088nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023089 version_type=linux
23090 need_lib_prefix=no
23091 need_version=no
23092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23093 soname_spec='${libname}${release}${shared_ext}$major'
23094 shlibpath_var=LD_LIBRARY_PATH
23095 shlibpath_overrides_runpath=yes
23096 ;;
23097
23098openbsd*)
23099 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023100 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023101 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023102 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23103 case $host_os in
23104 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23105 *) need_version=no ;;
23106 esac
John Criswell47fdd832003-07-14 16:52:07 +000023107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23108 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23109 shlibpath_var=LD_LIBRARY_PATH
23110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23111 case $host_os in
23112 openbsd2.[89] | openbsd2.[89].*)
23113 shlibpath_overrides_runpath=no
23114 ;;
23115 *)
23116 shlibpath_overrides_runpath=yes
23117 ;;
23118 esac
23119 else
23120 shlibpath_overrides_runpath=yes
23121 fi
23122 ;;
23123
23124os2*)
23125 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023126 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023127 need_lib_prefix=no
23128 library_names_spec='$libname${shared_ext} $libname.a'
23129 dynamic_linker='OS/2 ld.exe'
23130 shlibpath_var=LIBPATH
23131 ;;
23132
23133osf3* | osf4* | osf5*)
23134 version_type=osf
23135 need_lib_prefix=no
23136 need_version=no
23137 soname_spec='${libname}${release}${shared_ext}$major'
23138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23139 shlibpath_var=LD_LIBRARY_PATH
23140 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23141 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23142 ;;
23143
John Criswell47fdd832003-07-14 16:52:07 +000023144solaris*)
23145 version_type=linux
23146 need_lib_prefix=no
23147 need_version=no
23148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23149 soname_spec='${libname}${release}${shared_ext}$major'
23150 shlibpath_var=LD_LIBRARY_PATH
23151 shlibpath_overrides_runpath=yes
23152 hardcode_into_libs=yes
23153 # ldd complains unless libraries are executable
23154 postinstall_cmds='chmod +x $lib'
23155 ;;
23156
23157sunos4*)
23158 version_type=sunos
23159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23160 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23161 shlibpath_var=LD_LIBRARY_PATH
23162 shlibpath_overrides_runpath=yes
23163 if test "$with_gnu_ld" = yes; then
23164 need_lib_prefix=no
23165 fi
23166 need_version=yes
23167 ;;
23168
Reid Spencera773bd52006-08-04 18:18:08 +000023169sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023170 version_type=linux
23171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23172 soname_spec='${libname}${release}${shared_ext}$major'
23173 shlibpath_var=LD_LIBRARY_PATH
23174 case $host_vendor in
23175 sni)
23176 shlibpath_overrides_runpath=no
23177 need_lib_prefix=no
23178 export_dynamic_flag_spec='${wl}-Blargedynsym'
23179 runpath_var=LD_RUN_PATH
23180 ;;
23181 siemens)
23182 need_lib_prefix=no
23183 ;;
23184 motorola)
23185 need_lib_prefix=no
23186 need_version=no
23187 shlibpath_overrides_runpath=no
23188 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23189 ;;
23190 esac
23191 ;;
23192
23193sysv4*MP*)
23194 if test -d /usr/nec ;then
23195 version_type=linux
23196 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23197 soname_spec='$libname${shared_ext}.$major'
23198 shlibpath_var=LD_LIBRARY_PATH
23199 fi
23200 ;;
23201
Reid Spencera773bd52006-08-04 18:18:08 +000023202sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23203 version_type=freebsd-elf
23204 need_lib_prefix=no
23205 need_version=no
23206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23207 soname_spec='${libname}${release}${shared_ext}$major'
23208 shlibpath_var=LD_LIBRARY_PATH
23209 hardcode_into_libs=yes
23210 if test "$with_gnu_ld" = yes; then
23211 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23212 shlibpath_overrides_runpath=no
23213 else
23214 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23215 shlibpath_overrides_runpath=yes
23216 case $host_os in
23217 sco3.2v5*)
23218 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23219 ;;
23220 esac
23221 fi
23222 sys_lib_dlsearch_path_spec='/usr/lib'
23223 ;;
23224
John Criswell47fdd832003-07-14 16:52:07 +000023225uts4*)
23226 version_type=linux
23227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23228 soname_spec='${libname}${release}${shared_ext}$major'
23229 shlibpath_var=LD_LIBRARY_PATH
23230 ;;
23231
23232*)
23233 dynamic_linker=no
23234 ;;
23235esac
Reid Spencera773bd52006-08-04 18:18:08 +000023236{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23237echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023238test "$dynamic_linker" = no && can_build_shared=no
23239
Reid Spencera773bd52006-08-04 18:18:08 +000023240variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23241if test "$GCC" = yes; then
23242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23243fi
23244
23245{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23246echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023247hardcode_action_F77=
23248if test -n "$hardcode_libdir_flag_spec_F77" || \
23249 test -n "$runpath_var_F77" || \
23250 test "X$hardcode_automatic_F77" = "Xyes" ; then
23251
23252 # We can hardcode non-existant directories.
23253 if test "$hardcode_direct_F77" != no &&
23254 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23255 # have to relink, otherwise we might link with an installed library
23256 # when we should be linking with a yet-to-be-installed one
23257 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23258 test "$hardcode_minus_L_F77" != no; then
23259 # Linking always hardcodes the temporary library directory.
23260 hardcode_action_F77=relink
23261 else
23262 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23263 hardcode_action_F77=immediate
23264 fi
23265else
23266 # We cannot hardcode anything, or else we can only hardcode existing
23267 # directories.
23268 hardcode_action_F77=unsupported
23269fi
Reid Spencera773bd52006-08-04 18:18:08 +000023270{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23271echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023272
23273if test "$hardcode_action_F77" = relink; then
23274 # Fast installation is not supported
23275 enable_fast_install=no
23276elif test "$shlibpath_overrides_runpath" = yes ||
23277 test "$enable_shared" = no; then
23278 # Fast installation is not necessary
23279 enable_fast_install=needless
23280fi
23281
John Criswell47fdd832003-07-14 16:52:07 +000023282
23283# The else clause should only fire when bootstrapping the
23284# libtool distribution, otherwise you forgot to ship ltmain.sh
23285# with your package, and you will get complaints that there are
23286# no rules to generate ltmain.sh.
23287if test -f "$ltmain"; then
23288 # See if we are running on zsh, and set the options which allow our commands through
23289 # without removal of \ escapes.
23290 if test -n "${ZSH_VERSION+set}" ; then
23291 setopt NO_GLOB_SUBST
23292 fi
23293 # Now quote all the things that may contain metacharacters while being
23294 # careful not to overquote the AC_SUBSTed values. We take copies of the
23295 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023296 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 +000023297 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023298 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23299 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23300 deplibs_check_method reload_flag reload_cmds need_locks \
23301 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23302 lt_cv_sys_global_symbol_to_c_name_address \
23303 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23304 old_postinstall_cmds old_postuninstall_cmds \
23305 compiler_F77 \
23306 CC_F77 \
23307 LD_F77 \
23308 lt_prog_compiler_wl_F77 \
23309 lt_prog_compiler_pic_F77 \
23310 lt_prog_compiler_static_F77 \
23311 lt_prog_compiler_no_builtin_flag_F77 \
23312 export_dynamic_flag_spec_F77 \
23313 thread_safe_flag_spec_F77 \
23314 whole_archive_flag_spec_F77 \
23315 enable_shared_with_static_runtimes_F77 \
23316 old_archive_cmds_F77 \
23317 old_archive_from_new_cmds_F77 \
23318 predep_objects_F77 \
23319 postdep_objects_F77 \
23320 predeps_F77 \
23321 postdeps_F77 \
23322 compiler_lib_search_path_F77 \
23323 archive_cmds_F77 \
23324 archive_expsym_cmds_F77 \
23325 postinstall_cmds_F77 \
23326 postuninstall_cmds_F77 \
23327 old_archive_from_expsyms_cmds_F77 \
23328 allow_undefined_flag_F77 \
23329 no_undefined_flag_F77 \
23330 export_symbols_cmds_F77 \
23331 hardcode_libdir_flag_spec_F77 \
23332 hardcode_libdir_flag_spec_ld_F77 \
23333 hardcode_libdir_separator_F77 \
23334 hardcode_automatic_F77 \
23335 module_cmds_F77 \
23336 module_expsym_cmds_F77 \
23337 lt_cv_prog_compiler_c_o_F77 \
23338 exclude_expsyms_F77 \
23339 include_expsyms_F77; do
23340
23341 case $var in
23342 old_archive_cmds_F77 | \
23343 old_archive_from_new_cmds_F77 | \
23344 archive_cmds_F77 | \
23345 archive_expsym_cmds_F77 | \
23346 module_cmds_F77 | \
23347 module_expsym_cmds_F77 | \
23348 old_archive_from_expsyms_cmds_F77 | \
23349 export_symbols_cmds_F77 | \
23350 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23351 postinstall_cmds | postuninstall_cmds | \
23352 old_postinstall_cmds | old_postuninstall_cmds | \
23353 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23354 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023355 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 +000023356 ;;
23357 *)
23358 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23359 ;;
23360 esac
23361 done
23362
23363 case $lt_echo in
23364 *'\$0 --fallback-echo"')
23365 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23366 ;;
23367 esac
23368
23369cfgfile="$ofile"
23370
23371 cat <<__EOF__ >> "$cfgfile"
23372# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23373
23374# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23375
23376# Shell to use when invoking shell scripts.
23377SHELL=$lt_SHELL
23378
23379# Whether or not to build shared libraries.
23380build_libtool_libs=$enable_shared
23381
23382# Whether or not to build static libraries.
23383build_old_libs=$enable_static
23384
23385# Whether or not to add -lc for building shared libraries.
23386build_libtool_need_lc=$archive_cmds_need_lc_F77
23387
23388# Whether or not to disallow shared libs when runtime libs are static
23389allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23390
23391# Whether or not to optimize for fast installation.
23392fast_install=$enable_fast_install
23393
23394# The host system.
23395host_alias=$host_alias
23396host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023397host_os=$host_os
23398
23399# The build system.
23400build_alias=$build_alias
23401build=$build
23402build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023403
23404# An echo program that does not interpret backslashes.
23405echo=$lt_echo
23406
23407# The archiver.
23408AR=$lt_AR
23409AR_FLAGS=$lt_AR_FLAGS
23410
23411# A C compiler.
23412LTCC=$lt_LTCC
23413
Reid Spencera773bd52006-08-04 18:18:08 +000023414# LTCC compiler flags.
23415LTCFLAGS=$lt_LTCFLAGS
23416
John Criswell47fdd832003-07-14 16:52:07 +000023417# A language-specific compiler.
23418CC=$lt_compiler_F77
23419
23420# Is the compiler the GNU C compiler?
23421with_gcc=$GCC_F77
23422
23423# An ERE matcher.
23424EGREP=$lt_EGREP
23425
23426# The linker used to build libraries.
23427LD=$lt_LD_F77
23428
23429# Whether we need hard or soft links.
23430LN_S=$lt_LN_S
23431
23432# A BSD-compatible nm program.
23433NM=$lt_NM
23434
23435# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023436STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023437
23438# Used to examine libraries when file_magic_cmd begins "file"
23439MAGIC_CMD=$MAGIC_CMD
23440
23441# Used on cygwin: DLL creation program.
23442DLLTOOL="$DLLTOOL"
23443
23444# Used on cygwin: object dumper.
23445OBJDUMP="$OBJDUMP"
23446
23447# Used on cygwin: assembler.
23448AS="$AS"
23449
23450# The name of the directory that contains temporary libtool files.
23451objdir=$objdir
23452
23453# How to create reloadable object files.
23454reload_flag=$lt_reload_flag
23455reload_cmds=$lt_reload_cmds
23456
23457# How to pass a linker flag through the compiler.
23458wl=$lt_lt_prog_compiler_wl_F77
23459
23460# Object file suffix (normally "o").
23461objext="$ac_objext"
23462
23463# Old archive suffix (normally "a").
23464libext="$libext"
23465
23466# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023467shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023468
23469# Executable file suffix (normally "").
23470exeext="$exeext"
23471
23472# Additional compiler flags for building library objects.
23473pic_flag=$lt_lt_prog_compiler_pic_F77
23474pic_mode=$pic_mode
23475
23476# What is the maximum length of a command?
23477max_cmd_len=$lt_cv_sys_max_cmd_len
23478
23479# Does compiler simultaneously support -c and -o options?
23480compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23481
Reid Spencera773bd52006-08-04 18:18:08 +000023482# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023483need_locks=$lt_need_locks
23484
23485# Do we need the lib prefix for modules?
23486need_lib_prefix=$need_lib_prefix
23487
23488# Do we need a version for libraries?
23489need_version=$need_version
23490
23491# Whether dlopen is supported.
23492dlopen_support=$enable_dlopen
23493
23494# Whether dlopen of programs is supported.
23495dlopen_self=$enable_dlopen_self
23496
23497# Whether dlopen of statically linked programs is supported.
23498dlopen_self_static=$enable_dlopen_self_static
23499
23500# Compiler flag to prevent dynamic linking.
23501link_static_flag=$lt_lt_prog_compiler_static_F77
23502
23503# Compiler flag to turn off builtin functions.
23504no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23505
23506# Compiler flag to allow reflexive dlopens.
23507export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23508
23509# Compiler flag to generate shared objects directly from archives.
23510whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23511
23512# Compiler flag to generate thread-safe objects.
23513thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23514
23515# Library versioning type.
23516version_type=$version_type
23517
23518# Format of library name prefix.
23519libname_spec=$lt_libname_spec
23520
23521# List of archive names. First name is the real one, the rest are links.
23522# The last name is the one that the linker finds with -lNAME.
23523library_names_spec=$lt_library_names_spec
23524
23525# The coded name of the library, if different from the real name.
23526soname_spec=$lt_soname_spec
23527
23528# Commands used to build and install an old-style archive.
23529RANLIB=$lt_RANLIB
23530old_archive_cmds=$lt_old_archive_cmds_F77
23531old_postinstall_cmds=$lt_old_postinstall_cmds
23532old_postuninstall_cmds=$lt_old_postuninstall_cmds
23533
23534# Create an old-style archive from a shared archive.
23535old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23536
23537# Create a temporary old-style archive to link instead of a shared archive.
23538old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23539
23540# Commands used to build and install a shared archive.
23541archive_cmds=$lt_archive_cmds_F77
23542archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23543postinstall_cmds=$lt_postinstall_cmds
23544postuninstall_cmds=$lt_postuninstall_cmds
23545
23546# Commands used to build a loadable module (assumed same as above if empty)
23547module_cmds=$lt_module_cmds_F77
23548module_expsym_cmds=$lt_module_expsym_cmds_F77
23549
23550# Commands to strip libraries.
23551old_striplib=$lt_old_striplib
23552striplib=$lt_striplib
23553
23554# Dependencies to place before the objects being linked to create a
23555# shared library.
23556predep_objects=$lt_predep_objects_F77
23557
23558# Dependencies to place after the objects being linked to create a
23559# shared library.
23560postdep_objects=$lt_postdep_objects_F77
23561
23562# Dependencies to place before the objects being linked to create a
23563# shared library.
23564predeps=$lt_predeps_F77
23565
23566# Dependencies to place after the objects being linked to create a
23567# shared library.
23568postdeps=$lt_postdeps_F77
23569
23570# The library search path used internally by the compiler when linking
23571# a shared library.
23572compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23573
23574# Method to check whether dependent libraries are shared objects.
23575deplibs_check_method=$lt_deplibs_check_method
23576
23577# Command to use when deplibs_check_method == file_magic.
23578file_magic_cmd=$lt_file_magic_cmd
23579
23580# Flag that allows shared libraries with undefined symbols to be built.
23581allow_undefined_flag=$lt_allow_undefined_flag_F77
23582
23583# Flag that forces no undefined symbols.
23584no_undefined_flag=$lt_no_undefined_flag_F77
23585
23586# Commands used to finish a libtool library installation in a directory.
23587finish_cmds=$lt_finish_cmds
23588
23589# Same as above, but a single script fragment to be evaled but not shown.
23590finish_eval=$lt_finish_eval
23591
23592# Take the output of nm and produce a listing of raw symbols and C names.
23593global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23594
23595# Transform the output of nm in a proper C declaration
23596global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23597
23598# Transform the output of nm in a C name address pair
23599global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23600
23601# This is the shared library runtime path variable.
23602runpath_var=$runpath_var
23603
23604# This is the shared library path variable.
23605shlibpath_var=$shlibpath_var
23606
23607# Is shlibpath searched before the hard-coded library search path?
23608shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23609
23610# How to hardcode a shared library path into an executable.
23611hardcode_action=$hardcode_action_F77
23612
23613# Whether we should hardcode library paths into libraries.
23614hardcode_into_libs=$hardcode_into_libs
23615
23616# Flag to hardcode \$libdir into a binary during linking.
23617# This must work even if \$libdir does not exist.
23618hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23619
23620# If ld is used when linking, flag to hardcode \$libdir into
23621# a binary during linking. This must work even if \$libdir does
23622# not exist.
23623hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23624
23625# Whether we need a single -rpath flag with a separated argument.
23626hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23627
23628# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23629# resulting binary.
23630hardcode_direct=$hardcode_direct_F77
23631
23632# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23633# resulting binary.
23634hardcode_minus_L=$hardcode_minus_L_F77
23635
23636# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23637# the resulting binary.
23638hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23639
23640# Set to yes if building a shared library automatically hardcodes DIR into the library
23641# and all subsequent libraries and executables linked against it.
23642hardcode_automatic=$hardcode_automatic_F77
23643
23644# Variables whose values should be saved in libtool wrapper scripts and
23645# restored at relink time.
23646variables_saved_for_relink="$variables_saved_for_relink"
23647
23648# Whether libtool must link a program against all its dependency libraries.
23649link_all_deplibs=$link_all_deplibs_F77
23650
23651# Compile-time system search path for libraries
23652sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23653
23654# Run-time system search path for libraries
23655sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23656
23657# Fix the shell variable \$srcfile for the compiler.
23658fix_srcfile_path="$fix_srcfile_path_F77"
23659
23660# Set to yes if exported symbols are required.
23661always_export_symbols=$always_export_symbols_F77
23662
23663# The commands to list exported symbols.
23664export_symbols_cmds=$lt_export_symbols_cmds_F77
23665
23666# The commands to extract the exported symbol list from a shared archive.
23667extract_expsyms_cmds=$lt_extract_expsyms_cmds
23668
23669# Symbols that should not be listed in the preloaded symbols.
23670exclude_expsyms=$lt_exclude_expsyms_F77
23671
23672# Symbols that must always be exported.
23673include_expsyms=$lt_include_expsyms_F77
23674
23675# ### END LIBTOOL TAG CONFIG: $tagname
23676
23677__EOF__
23678
23679
23680else
23681 # If there is no Makefile yet, we rely on a make rule to execute
23682 # `config.status --recheck' to rerun these tests and create the
23683 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023684 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23685 if test -f "$ltmain_in"; then
23686 test -f Makefile && make "$ltmain"
23687 fi
John Criswell47fdd832003-07-14 16:52:07 +000023688fi
23689
23690
23691ac_ext=c
23692ac_cpp='$CPP $CPPFLAGS'
23693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23695ac_compiler_gnu=$ac_cv_c_compiler_gnu
23696
23697CC="$lt_save_CC"
23698
23699 else
23700 tagname=""
23701 fi
23702 ;;
23703
23704 GCJ)
23705 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023706 ac_ext=c
23707ac_cpp='$CPP $CPPFLAGS'
23708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23710ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023711
23712
23713# Source file extension for Java test sources.
23714ac_ext=java
23715
23716# Object file extension for compiled Java test sources.
23717objext=o
23718objext_GCJ=$objext
23719
23720# Code to be used in simple compile tests
23721lt_simple_compile_test_code="class foo {}\n"
23722
23723# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023724lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023725
23726# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23727
23728# If no C compiler was specified, use CC.
23729LTCC=${LTCC-"$CC"}
23730
Reid Spencera773bd52006-08-04 18:18:08 +000023731# If no C compiler flags were specified, use CFLAGS.
23732LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23733
John Criswell47fdd832003-07-14 16:52:07 +000023734# Allow CC to be a program name with arguments.
23735compiler=$CC
23736
23737
Reid Spencera773bd52006-08-04 18:18:08 +000023738# save warnings/boilerplate of simple test code
23739ac_outfile=conftest.$ac_objext
23740printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23741eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23742_lt_compiler_boilerplate=`cat conftest.err`
23743$rm conftest*
23744
23745ac_outfile=conftest.$ac_objext
23746printf "$lt_simple_link_test_code" >conftest.$ac_ext
23747eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23748_lt_linker_boilerplate=`cat conftest.err`
23749$rm conftest*
23750
23751
John Criswell47fdd832003-07-14 16:52:07 +000023752# Allow CC to be a program name with arguments.
23753lt_save_CC="$CC"
23754CC=${GCJ-"gcj"}
23755compiler=$CC
23756compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023757for cc_temp in $compiler""; do
23758 case $cc_temp in
23759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23761 \-*) ;;
23762 *) break;;
23763 esac
23764done
23765cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23766
John Criswell47fdd832003-07-14 16:52:07 +000023767
23768# GCJ did not exist at the time GCC didn't implicitly link libc in.
23769archive_cmds_need_lc_GCJ=no
23770
Reid Spencera773bd52006-08-04 18:18:08 +000023771old_archive_cmds_GCJ=$old_archive_cmds
23772
John Criswell47fdd832003-07-14 16:52:07 +000023773
23774lt_prog_compiler_no_builtin_flag_GCJ=
23775
23776if test "$GCC" = yes; then
23777 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23778
Reid Spencer2706f8c2004-09-19 23:53:36 +000023779
Reid Spencera773bd52006-08-04 18:18:08 +000023780{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23781echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023782if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23783 echo $ECHO_N "(cached) $ECHO_C" >&6
23784else
23785 lt_cv_prog_compiler_rtti_exceptions=no
23786 ac_outfile=conftest.$ac_objext
23787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23788 lt_compiler_flag="-fno-rtti -fno-exceptions"
23789 # Insert the option either (1) after the last *FLAGS variable, or
23790 # (2) before a word containing "conftest.", or (3) at the end.
23791 # Note that $ac_compile itself does not contain backslashes and begins
23792 # with a dollar sign (not a hyphen), so the echo should work correctly.
23793 # The option is referenced via a variable to avoid confusing sed.
23794 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23797 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor0711c302009-06-17 00:43:20 +000023798 (eval echo "\"\$as_me:23798: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023799 (eval "$lt_compile" 2>conftest.err)
23800 ac_status=$?
23801 cat conftest.err >&5
Douglas Gregor0711c302009-06-17 00:43:20 +000023802 echo "$as_me:23802: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023803 if (exit $ac_status) && test -s "$ac_outfile"; then
23804 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023805 # So say no if there are warnings other than the usual output.
23806 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023809 lt_cv_prog_compiler_rtti_exceptions=yes
23810 fi
23811 fi
23812 $rm conftest*
23813
23814fi
Reid Spencera773bd52006-08-04 18:18:08 +000023815{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23816echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023817
23818if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23819 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23820else
23821 :
23822fi
23823
23824fi
23825
23826lt_prog_compiler_wl_GCJ=
23827lt_prog_compiler_pic_GCJ=
23828lt_prog_compiler_static_GCJ=
23829
Reid Spencera773bd52006-08-04 18:18:08 +000023830{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23831echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023832
23833 if test "$GCC" = yes; then
23834 lt_prog_compiler_wl_GCJ='-Wl,'
23835 lt_prog_compiler_static_GCJ='-static'
23836
23837 case $host_os in
23838 aix*)
23839 # All AIX code is PIC.
23840 if test "$host_cpu" = ia64; then
23841 # AIX 5 now supports IA64 processor
23842 lt_prog_compiler_static_GCJ='-Bstatic'
23843 fi
23844 ;;
23845
23846 amigaos*)
23847 # FIXME: we need at least 68020 code to build shared libraries, but
23848 # adding the `-m68020' flag to GCC prevents building anything better,
23849 # like `-m68040'.
23850 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23851 ;;
23852
23853 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23854 # PIC is the default for these OSes.
23855 ;;
23856
23857 mingw* | pw32* | os2*)
23858 # This hack is so that the source file can tell whether it is being
23859 # built for inclusion in a dll (and should export symbols for example).
23860 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23861 ;;
23862
23863 darwin* | rhapsody*)
23864 # PIC is the default on this platform
23865 # Common symbols not allowed in MH_DYLIB files
23866 lt_prog_compiler_pic_GCJ='-fno-common'
23867 ;;
23868
Reid Spencera773bd52006-08-04 18:18:08 +000023869 interix3*)
23870 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23871 # Instead, we relocate shared libraries at runtime.
23872 ;;
23873
John Criswell47fdd832003-07-14 16:52:07 +000023874 msdosdjgpp*)
23875 # Just because we use GCC doesn't mean we suddenly get shared libraries
23876 # on systems that don't support them.
23877 lt_prog_compiler_can_build_shared_GCJ=no
23878 enable_shared=no
23879 ;;
23880
23881 sysv4*MP*)
23882 if test -d /usr/nec; then
23883 lt_prog_compiler_pic_GCJ=-Kconform_pic
23884 fi
23885 ;;
23886
23887 hpux*)
23888 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23889 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023890 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023891 hppa*64*|ia64*)
23892 # +Z the default
23893 ;;
23894 *)
23895 lt_prog_compiler_pic_GCJ='-fPIC'
23896 ;;
23897 esac
23898 ;;
23899
23900 *)
23901 lt_prog_compiler_pic_GCJ='-fPIC'
23902 ;;
23903 esac
23904 else
23905 # PORTME Check for flag to pass linker flags through the system compiler.
23906 case $host_os in
23907 aix*)
23908 lt_prog_compiler_wl_GCJ='-Wl,'
23909 if test "$host_cpu" = ia64; then
23910 # AIX 5 now supports IA64 processor
23911 lt_prog_compiler_static_GCJ='-Bstatic'
23912 else
23913 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23914 fi
23915 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023916 darwin*)
23917 # PIC is the default on this platform
23918 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023919 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023920 xlc*)
23921 lt_prog_compiler_pic_GCJ='-qnocommon'
23922 lt_prog_compiler_wl_GCJ='-Wl,'
23923 ;;
23924 esac
23925 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023926
23927 mingw* | pw32* | os2*)
23928 # This hack is so that the source file can tell whether it is being
23929 # built for inclusion in a dll (and should export symbols for example).
23930 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23931 ;;
23932
23933 hpux9* | hpux10* | hpux11*)
23934 lt_prog_compiler_wl_GCJ='-Wl,'
23935 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23936 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023937 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023938 hppa*64*|ia64*)
23939 # +Z the default
23940 ;;
23941 *)
23942 lt_prog_compiler_pic_GCJ='+Z'
23943 ;;
23944 esac
23945 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23946 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23947 ;;
23948
23949 irix5* | irix6* | nonstopux*)
23950 lt_prog_compiler_wl_GCJ='-Wl,'
23951 # PIC (with -KPIC) is the default.
23952 lt_prog_compiler_static_GCJ='-non_shared'
23953 ;;
23954
23955 newsos6)
23956 lt_prog_compiler_pic_GCJ='-KPIC'
23957 lt_prog_compiler_static_GCJ='-Bstatic'
23958 ;;
23959
23960 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023961 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023962 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023963 lt_prog_compiler_wl_GCJ='-Wl,'
23964 lt_prog_compiler_pic_GCJ='-KPIC'
23965 lt_prog_compiler_static_GCJ='-static'
23966 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023967 pgcc* | pgf77* | pgf90* | pgf95*)
23968 # Portland Group compilers (*not* the Pentium gcc compiler,
23969 # which looks to be a dead project)
23970 lt_prog_compiler_wl_GCJ='-Wl,'
23971 lt_prog_compiler_pic_GCJ='-fpic'
23972 lt_prog_compiler_static_GCJ='-Bstatic'
23973 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023974 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023975 lt_prog_compiler_wl_GCJ='-Wl,'
23976 # All Alpha code is PIC.
23977 lt_prog_compiler_static_GCJ='-non_shared'
23978 ;;
23979 esac
23980 ;;
23981
23982 osf3* | osf4* | osf5*)
23983 lt_prog_compiler_wl_GCJ='-Wl,'
23984 # All OSF/1 code is PIC.
23985 lt_prog_compiler_static_GCJ='-non_shared'
23986 ;;
23987
John Criswell47fdd832003-07-14 16:52:07 +000023988 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023989 lt_prog_compiler_pic_GCJ='-KPIC'
23990 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023991 case $cc_basename in
23992 f77* | f90* | f95*)
23993 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23994 *)
23995 lt_prog_compiler_wl_GCJ='-Wl,';;
23996 esac
John Criswell47fdd832003-07-14 16:52:07 +000023997 ;;
23998
23999 sunos4*)
24000 lt_prog_compiler_wl_GCJ='-Qoption ld '
24001 lt_prog_compiler_pic_GCJ='-PIC'
24002 lt_prog_compiler_static_GCJ='-Bstatic'
24003 ;;
24004
Reid Spencera773bd52006-08-04 18:18:08 +000024005 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024006 lt_prog_compiler_wl_GCJ='-Wl,'
24007 lt_prog_compiler_pic_GCJ='-KPIC'
24008 lt_prog_compiler_static_GCJ='-Bstatic'
24009 ;;
24010
24011 sysv4*MP*)
24012 if test -d /usr/nec ;then
24013 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24014 lt_prog_compiler_static_GCJ='-Bstatic'
24015 fi
24016 ;;
24017
Reid Spencera773bd52006-08-04 18:18:08 +000024018 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24019 lt_prog_compiler_wl_GCJ='-Wl,'
24020 lt_prog_compiler_pic_GCJ='-KPIC'
24021 lt_prog_compiler_static_GCJ='-Bstatic'
24022 ;;
24023
24024 unicos*)
24025 lt_prog_compiler_wl_GCJ='-Wl,'
24026 lt_prog_compiler_can_build_shared_GCJ=no
24027 ;;
24028
John Criswell47fdd832003-07-14 16:52:07 +000024029 uts4*)
24030 lt_prog_compiler_pic_GCJ='-pic'
24031 lt_prog_compiler_static_GCJ='-Bstatic'
24032 ;;
24033
24034 *)
24035 lt_prog_compiler_can_build_shared_GCJ=no
24036 ;;
24037 esac
24038 fi
24039
Reid Spencera773bd52006-08-04 18:18:08 +000024040{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24041echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024042
24043#
24044# Check to make sure the PIC flag actually works.
24045#
24046if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024047
Reid Spencera773bd52006-08-04 18:18:08 +000024048{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24049echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024050if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24051 echo $ECHO_N "(cached) $ECHO_C" >&6
24052else
24053 lt_prog_compiler_pic_works_GCJ=no
24054 ac_outfile=conftest.$ac_objext
24055 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24056 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24057 # Insert the option either (1) after the last *FLAGS variable, or
24058 # (2) before a word containing "conftest.", or (3) at the end.
24059 # Note that $ac_compile itself does not contain backslashes and begins
24060 # with a dollar sign (not a hyphen), so the echo should work correctly.
24061 # The option is referenced via a variable to avoid confusing sed.
24062 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024063 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24065 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor0711c302009-06-17 00:43:20 +000024066 (eval echo "\"\$as_me:24066: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024067 (eval "$lt_compile" 2>conftest.err)
24068 ac_status=$?
24069 cat conftest.err >&5
Douglas Gregor0711c302009-06-17 00:43:20 +000024070 echo "$as_me:24070: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024071 if (exit $ac_status) && test -s "$ac_outfile"; then
24072 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024073 # So say no if there are warnings other than the usual output.
24074 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24075 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24076 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024077 lt_prog_compiler_pic_works_GCJ=yes
24078 fi
24079 fi
24080 $rm conftest*
24081
24082fi
Reid Spencera773bd52006-08-04 18:18:08 +000024083{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24084echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024085
24086if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24087 case $lt_prog_compiler_pic_GCJ in
24088 "" | " "*) ;;
24089 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24090 esac
24091else
24092 lt_prog_compiler_pic_GCJ=
24093 lt_prog_compiler_can_build_shared_GCJ=no
24094fi
24095
24096fi
Reid Spencera773bd52006-08-04 18:18:08 +000024097case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024098 # For platforms which do not support PIC, -DPIC is meaningless:
24099 *djgpp*)
24100 lt_prog_compiler_pic_GCJ=
24101 ;;
24102 *)
24103 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24104 ;;
24105esac
24106
Reid Spencera773bd52006-08-04 18:18:08 +000024107#
24108# Check to make sure the static flag actually works.
24109#
24110wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24111{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24112echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24113if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24114 echo $ECHO_N "(cached) $ECHO_C" >&6
24115else
24116 lt_prog_compiler_static_works_GCJ=no
24117 save_LDFLAGS="$LDFLAGS"
24118 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24119 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24120 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24121 # The linker can only warn and ignore the option if not recognized
24122 # So say no if there are warnings
24123 if test -s conftest.err; then
24124 # Append any errors to the config.log.
24125 cat conftest.err 1>&5
24126 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24128 if diff conftest.exp conftest.er2 >/dev/null; then
24129 lt_prog_compiler_static_works_GCJ=yes
24130 fi
24131 else
24132 lt_prog_compiler_static_works_GCJ=yes
24133 fi
24134 fi
24135 $rm conftest*
24136 LDFLAGS="$save_LDFLAGS"
24137
24138fi
24139{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24140echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24141
24142if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24143 :
24144else
24145 lt_prog_compiler_static_GCJ=
24146fi
24147
24148
24149{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24150echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024151if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24152 echo $ECHO_N "(cached) $ECHO_C" >&6
24153else
24154 lt_cv_prog_compiler_c_o_GCJ=no
24155 $rm -r conftest 2>/dev/null
24156 mkdir conftest
24157 cd conftest
24158 mkdir out
24159 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24160
John Criswell47fdd832003-07-14 16:52:07 +000024161 lt_compiler_flag="-o out/conftest2.$ac_objext"
24162 # Insert the option either (1) after the last *FLAGS variable, or
24163 # (2) before a word containing "conftest.", or (3) at the end.
24164 # Note that $ac_compile itself does not contain backslashes and begins
24165 # with a dollar sign (not a hyphen), so the echo should work correctly.
24166 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24169 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor0711c302009-06-17 00:43:20 +000024170 (eval echo "\"\$as_me:24170: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024171 (eval "$lt_compile" 2>out/conftest.err)
24172 ac_status=$?
24173 cat out/conftest.err >&5
Douglas Gregor0711c302009-06-17 00:43:20 +000024174 echo "$as_me:24174: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24176 then
24177 # The compiler can only warn and ignore the option if not recognized
24178 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024179 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024182 lt_cv_prog_compiler_c_o_GCJ=yes
24183 fi
24184 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024185 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024186 $rm conftest*
24187 # SGI C++ compiler will create directory out/ii_files/ for
24188 # template instantiation
24189 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24190 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024191 cd ..
24192 rmdir conftest
24193 $rm conftest*
24194
24195fi
Reid Spencera773bd52006-08-04 18:18:08 +000024196{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24197echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024198
24199
24200hard_links="nottested"
24201if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24202 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024203 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24204echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024205 hard_links=yes
24206 $rm conftest*
24207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24208 touch conftest.a
24209 ln conftest.a conftest.b 2>&5 || hard_links=no
24210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024211 { echo "$as_me:$LINENO: result: $hard_links" >&5
24212echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024213 if test "$hard_links" = no; then
24214 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24215echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24216 need_locks=warn
24217 fi
24218else
24219 need_locks=no
24220fi
24221
Reid Spencera773bd52006-08-04 18:18:08 +000024222{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24223echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024224
24225 runpath_var=
24226 allow_undefined_flag_GCJ=
24227 enable_shared_with_static_runtimes_GCJ=no
24228 archive_cmds_GCJ=
24229 archive_expsym_cmds_GCJ=
24230 old_archive_From_new_cmds_GCJ=
24231 old_archive_from_expsyms_cmds_GCJ=
24232 export_dynamic_flag_spec_GCJ=
24233 whole_archive_flag_spec_GCJ=
24234 thread_safe_flag_spec_GCJ=
24235 hardcode_libdir_flag_spec_GCJ=
24236 hardcode_libdir_flag_spec_ld_GCJ=
24237 hardcode_libdir_separator_GCJ=
24238 hardcode_direct_GCJ=no
24239 hardcode_minus_L_GCJ=no
24240 hardcode_shlibpath_var_GCJ=unsupported
24241 link_all_deplibs_GCJ=unknown
24242 hardcode_automatic_GCJ=no
24243 module_cmds_GCJ=
24244 module_expsym_cmds_GCJ=
24245 always_export_symbols_GCJ=no
24246 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24247 # include_expsyms should be a list of space-separated symbols to be *always*
24248 # included in the symbol list
24249 include_expsyms_GCJ=
24250 # exclude_expsyms can be an extended regexp of symbols to exclude
24251 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24252 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24253 # as well as any symbol that contains `d'.
24254 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24255 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24256 # platforms (ab)use it in PIC code, but their linkers get confused if
24257 # the symbol is explicitly referenced. Since portable code cannot
24258 # rely on this symbol name, it's probably fine to never include it in
24259 # preloaded symbol tables.
24260 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024261 # Just being paranoid about ensuring that cc_basename is set.
24262 for cc_temp in $compiler""; do
24263 case $cc_temp in
24264 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24265 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24266 \-*) ;;
24267 *) break;;
24268 esac
24269done
24270cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024271
24272 case $host_os in
24273 cygwin* | mingw* | pw32*)
24274 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24275 # When not using gcc, we currently assume that we are using
24276 # Microsoft Visual C++.
24277 if test "$GCC" != yes; then
24278 with_gnu_ld=no
24279 fi
24280 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024281 interix*)
24282 # we just hope/assume this is gcc and not c89 (= MSVC++)
24283 with_gnu_ld=yes
24284 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024285 openbsd*)
24286 with_gnu_ld=no
24287 ;;
24288 esac
24289
24290 ld_shlibs_GCJ=yes
24291 if test "$with_gnu_ld" = yes; then
24292 # If archive_cmds runs LD, not CC, wlarc should be empty
24293 wlarc='${wl}'
24294
Reid Spencera773bd52006-08-04 18:18:08 +000024295 # Set some defaults for GNU ld with shared library support. These
24296 # are reset later if shared libraries are not supported. Putting them
24297 # here allows them to be overridden if necessary.
24298 runpath_var=LD_RUN_PATH
24299 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24300 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24301 # ancient GNU ld didn't support --whole-archive et. al.
24302 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24303 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24304 else
24305 whole_archive_flag_spec_GCJ=
24306 fi
24307 supports_anon_versioning=no
24308 case `$LD -v 2>/dev/null` in
24309 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24310 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24311 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24312 *\ 2.11.*) ;; # other 2.11 versions
24313 *) supports_anon_versioning=yes ;;
24314 esac
24315
John Criswell47fdd832003-07-14 16:52:07 +000024316 # See if GNU ld supports shared libraries.
24317 case $host_os in
24318 aix3* | aix4* | aix5*)
24319 # On AIX/PPC, the GNU linker is very broken
24320 if test "$host_cpu" != ia64; then
24321 ld_shlibs_GCJ=no
24322 cat <<EOF 1>&2
24323
24324*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24325*** to be unable to reliably create shared libraries on AIX.
24326*** Therefore, libtool is disabling shared libraries support. If you
24327*** really care for shared libraries, you may want to modify your PATH
24328*** so that a non-GNU linker is found, and then restart.
24329
24330EOF
24331 fi
24332 ;;
24333
24334 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024335 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 +000024336 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24337 hardcode_minus_L_GCJ=yes
24338
24339 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24340 # that the semantics of dynamic libraries on AmigaOS, at least up
24341 # to version 4, is to share data among multiple programs linked
24342 # with the same dynamic library. Since this doesn't match the
24343 # behavior of shared libraries on other platforms, we can't use
24344 # them.
24345 ld_shlibs_GCJ=no
24346 ;;
24347
24348 beos*)
24349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24350 allow_undefined_flag_GCJ=unsupported
24351 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24352 # support --undefined. This deserves some investigation. FIXME
24353 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24354 else
24355 ld_shlibs_GCJ=no
24356 fi
24357 ;;
24358
24359 cygwin* | mingw* | pw32*)
24360 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24361 # as there is no search path for DLLs.
24362 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24363 allow_undefined_flag_GCJ=unsupported
24364 always_export_symbols_GCJ=no
24365 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024366 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 +000024367
24368 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024369 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 +000024370 # If the export-symbols file already is a .def file (1st line
24371 # is EXPORTS), use it as is; otherwise, prepend...
24372 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24373 cp $export_symbols $output_objdir/$soname.def;
24374 else
24375 echo EXPORTS > $output_objdir/$soname.def;
24376 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024377 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024378 $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 +000024379 else
Reid Spencera773bd52006-08-04 18:18:08 +000024380 ld_shlibs_GCJ=no
24381 fi
24382 ;;
24383
24384 interix3*)
24385 hardcode_direct_GCJ=no
24386 hardcode_shlibpath_var_GCJ=no
24387 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24388 export_dynamic_flag_spec_GCJ='${wl}-E'
24389 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24390 # Instead, shared libraries are loaded at an image base (0x10000000 by
24391 # default) and relocated if they conflict, which is a slow very memory
24392 # consuming and fragmenting process. To avoid this, we pick a random,
24393 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24394 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24395 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'
24396 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'
24397 ;;
24398
24399 linux*)
24400 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24401 tmp_addflag=
24402 case $cc_basename,$host_cpu in
24403 pgcc*) # Portland Group C compiler
24404 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'
24405 tmp_addflag=' $pic_flag'
24406 ;;
24407 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24408 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'
24409 tmp_addflag=' $pic_flag -Mnomain' ;;
24410 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24411 tmp_addflag=' -i_dynamic' ;;
24412 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24413 tmp_addflag=' -i_dynamic -nofor_main' ;;
24414 ifc* | ifort*) # Intel Fortran compiler
24415 tmp_addflag=' -nofor_main' ;;
24416 esac
24417 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24418
24419 if test $supports_anon_versioning = yes; then
24420 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24421 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24422 $echo "local: *; };" >> $output_objdir/$libname.ver~
24423 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24424 fi
24425 else
24426 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024427 fi
24428 ;;
24429
24430 netbsd*)
24431 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24432 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24433 wlarc=
24434 else
24435 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24436 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24437 fi
24438 ;;
24439
Reid Spencera773bd52006-08-04 18:18:08 +000024440 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024441 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24442 ld_shlibs_GCJ=no
24443 cat <<EOF 1>&2
24444
24445*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24446*** create shared libraries on Solaris systems. Therefore, libtool
24447*** is disabling shared libraries support. We urge you to upgrade GNU
24448*** binutils to release 2.9.1 or newer. Another option is to modify
24449*** your PATH or compiler configuration so that the native linker is
24450*** used, and then restart.
24451
24452EOF
24453 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24454 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24455 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24456 else
24457 ld_shlibs_GCJ=no
24458 fi
24459 ;;
24460
Reid Spencera773bd52006-08-04 18:18:08 +000024461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24462 case `$LD -v 2>&1` in
24463 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24464 ld_shlibs_GCJ=no
24465 cat <<_LT_EOF 1>&2
24466
24467*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24468*** reliably create shared libraries on SCO systems. Therefore, libtool
24469*** is disabling shared libraries support. We urge you to upgrade GNU
24470*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24471*** your PATH or compiler configuration so that the native linker is
24472*** used, and then restart.
24473
24474_LT_EOF
24475 ;;
24476 *)
24477 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24478 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24479 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24480 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24481 else
24482 ld_shlibs_GCJ=no
24483 fi
24484 ;;
24485 esac
24486 ;;
24487
John Criswell47fdd832003-07-14 16:52:07 +000024488 sunos4*)
24489 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24490 wlarc=
24491 hardcode_direct_GCJ=yes
24492 hardcode_shlibpath_var_GCJ=no
24493 ;;
24494
24495 *)
24496 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24498 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24499 else
24500 ld_shlibs_GCJ=no
24501 fi
24502 ;;
24503 esac
24504
Reid Spencera773bd52006-08-04 18:18:08 +000024505 if test "$ld_shlibs_GCJ" = no; then
24506 runpath_var=
24507 hardcode_libdir_flag_spec_GCJ=
24508 export_dynamic_flag_spec_GCJ=
24509 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024510 fi
24511 else
24512 # PORTME fill in a description of your system's linker (not GNU ld)
24513 case $host_os in
24514 aix3*)
24515 allow_undefined_flag_GCJ=unsupported
24516 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024517 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 +000024518 # Note: this linker hardcodes the directories in LIBPATH if there
24519 # are no directories specified by -L.
24520 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024521 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024522 # Neither direct hardcoding nor static linking is supported with a
24523 # broken collect2.
24524 hardcode_direct_GCJ=unsupported
24525 fi
24526 ;;
24527
24528 aix4* | aix5*)
24529 if test "$host_cpu" = ia64; then
24530 # On IA64, the linker does run time linking by default, so we don't
24531 # have to do anything special.
24532 aix_use_runtimelinking=no
24533 exp_sym_flag='-Bexport'
24534 no_entry_flag=""
24535 else
24536 # If we're using GNU nm, then we don't want the "-C" option.
24537 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24538 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24539 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'
24540 else
24541 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'
24542 fi
24543 aix_use_runtimelinking=no
24544
24545 # Test if we are trying to use run time linking or normal
24546 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24547 # need to do runtime linking.
24548 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24549 for ld_flag in $LDFLAGS; do
24550 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24551 aix_use_runtimelinking=yes
24552 break
24553 fi
24554 done
Reid Spencera773bd52006-08-04 18:18:08 +000024555 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024556 esac
24557
24558 exp_sym_flag='-bexport'
24559 no_entry_flag='-bnoentry'
24560 fi
24561
24562 # When large executables or shared objects are built, AIX ld can
24563 # have problems creating the table of contents. If linking a library
24564 # or program results in "error TOC overflow" add -mminimal-toc to
24565 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24566 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24567
24568 archive_cmds_GCJ=''
24569 hardcode_direct_GCJ=yes
24570 hardcode_libdir_separator_GCJ=':'
24571 link_all_deplibs_GCJ=yes
24572
24573 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024574 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024575 # We only want to do this on AIX 4.2 and lower, the check
24576 # below for broken collect2 doesn't work under 4.3+
24577 collect2name=`${CC} -print-prog-name=collect2`
24578 if test -f "$collect2name" && \
24579 strings "$collect2name" | grep resolve_lib_name >/dev/null
24580 then
24581 # We have reworked collect2
24582 hardcode_direct_GCJ=yes
24583 else
24584 # We have old collect2
24585 hardcode_direct_GCJ=unsupported
24586 # It fails to find uninstalled libraries when the uninstalled
24587 # path is not listed in the libpath. Setting hardcode_minus_L
24588 # to unsupported forces relinking
24589 hardcode_minus_L_GCJ=yes
24590 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24591 hardcode_libdir_separator_GCJ=
24592 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024593 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024594 esac
24595 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024596 if test "$aix_use_runtimelinking" = yes; then
24597 shared_flag="$shared_flag "'${wl}-G'
24598 fi
John Criswell47fdd832003-07-14 16:52:07 +000024599 else
24600 # not using gcc
24601 if test "$host_cpu" = ia64; then
24602 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24603 # chokes on -Wl,-G. The following line is correct:
24604 shared_flag='-G'
24605 else
Reid Spencera773bd52006-08-04 18:18:08 +000024606 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024607 shared_flag='${wl}-G'
24608 else
24609 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024610 fi
John Criswell47fdd832003-07-14 16:52:07 +000024611 fi
24612 fi
24613
24614 # It seems that -bexpall does not export symbols beginning with
24615 # underscore (_), so it is better to generate a list of symbols to export.
24616 always_export_symbols_GCJ=yes
24617 if test "$aix_use_runtimelinking" = yes; then
24618 # Warning - without using the other runtime loading flags (-brtl),
24619 # -berok will link without error, but may produce a broken library.
24620 allow_undefined_flag_GCJ='-berok'
24621 # Determine the default libpath from the value encoded in an empty executable.
24622 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024623/* confdefs.h. */
24624_ACEOF
24625cat confdefs.h >>conftest.$ac_ext
24626cat >>conftest.$ac_ext <<_ACEOF
24627/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024628
John Criswell47fdd832003-07-14 16:52:07 +000024629int
24630main ()
24631{
24632
24633 ;
24634 return 0;
24635}
24636_ACEOF
24637rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024638if { (ac_try="$ac_link"
24639case "(($ac_try" in
24640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24641 *) ac_try_echo=$ac_try;;
24642esac
24643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24644 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024645 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024646 grep -v '^ *+' conftest.er1 >conftest.err
24647 rm -f conftest.er1
24648 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024650 (exit $ac_status); } &&
24651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24652 { (case "(($ac_try" in
24653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24654 *) ac_try_echo=$ac_try;;
24655esac
24656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24657 (eval "$ac_try") 2>&5
24658 ac_status=$?
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); }; } &&
24661 { ac_try='test -s conftest$ac_exeext'
24662 { (case "(($ac_try" in
24663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24664 *) ac_try_echo=$ac_try;;
24665esac
24666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24667 (eval "$ac_try") 2>&5
24668 ac_status=$?
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024671
24672aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24673}'`
24674# Check for a 64-bit object if we didn't find anything.
24675if 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; }
24676}'`; fi
24677else
24678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024679sed 's/^/| /' conftest.$ac_ext >&5
24680
Reid Spencera773bd52006-08-04 18:18:08 +000024681
John Criswell47fdd832003-07-14 16:52:07 +000024682fi
Reid Spencera773bd52006-08-04 18:18:08 +000024683
Bill Wendlingebcceee2009-04-18 11:20:33 +000024684rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024685 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024686if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24687
24688 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024689 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 +000024690 else
24691 if test "$host_cpu" = ia64; then
24692 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24693 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024694 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 +000024695 else
24696 # Determine the default libpath from the value encoded in an empty executable.
24697 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024698/* confdefs.h. */
24699_ACEOF
24700cat confdefs.h >>conftest.$ac_ext
24701cat >>conftest.$ac_ext <<_ACEOF
24702/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024703
John Criswell47fdd832003-07-14 16:52:07 +000024704int
24705main ()
24706{
24707
24708 ;
24709 return 0;
24710}
24711_ACEOF
24712rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024713if { (ac_try="$ac_link"
24714case "(($ac_try" in
24715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24716 *) ac_try_echo=$ac_try;;
24717esac
24718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24719 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024720 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024721 grep -v '^ *+' conftest.er1 >conftest.err
24722 rm -f conftest.er1
24723 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024725 (exit $ac_status); } &&
24726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24727 { (case "(($ac_try" in
24728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24729 *) ac_try_echo=$ac_try;;
24730esac
24731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24732 (eval "$ac_try") 2>&5
24733 ac_status=$?
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; } &&
24736 { ac_try='test -s conftest$ac_exeext'
24737 { (case "(($ac_try" in
24738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739 *) ac_try_echo=$ac_try;;
24740esac
24741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24742 (eval "$ac_try") 2>&5
24743 ac_status=$?
24744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024746
24747aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24748}'`
24749# Check for a 64-bit object if we didn't find anything.
24750if 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; }
24751}'`; fi
24752else
24753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024754sed 's/^/| /' conftest.$ac_ext >&5
24755
Reid Spencera773bd52006-08-04 18:18:08 +000024756
John Criswell47fdd832003-07-14 16:52:07 +000024757fi
Reid Spencera773bd52006-08-04 18:18:08 +000024758
Bill Wendlingebcceee2009-04-18 11:20:33 +000024759rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024760 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024761if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24762
24763 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24764 # Warning - without using the other run time loading flags,
24765 # -berok will link without error, but may produce a broken library.
24766 no_undefined_flag_GCJ=' ${wl}-bernotok'
24767 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024768 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024769 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024770 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024771 # This is similar to how AIX traditionally builds its shared libraries.
24772 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 +000024773 fi
24774 fi
24775 ;;
24776
24777 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024778 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 +000024779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24780 hardcode_minus_L_GCJ=yes
24781 # see comment about different semantics on the GNU ld section
24782 ld_shlibs_GCJ=no
24783 ;;
24784
Reid Spencer2706f8c2004-09-19 23:53:36 +000024785 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024786 export_dynamic_flag_spec_GCJ=-rdynamic
24787 ;;
24788
24789 cygwin* | mingw* | pw32*)
24790 # When not using gcc, we currently assume that we are using
24791 # Microsoft Visual C++.
24792 # hardcode_libdir_flag_spec is actually meaningless, as there is
24793 # no search path for DLLs.
24794 hardcode_libdir_flag_spec_GCJ=' '
24795 allow_undefined_flag_GCJ=unsupported
24796 # Tell ltmain to make .lib files, not .a files.
24797 libext=lib
24798 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024799 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024800 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024801 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 +000024802 # The linker will automatically build a .lib file if we build a DLL.
24803 old_archive_From_new_cmds_GCJ='true'
24804 # FIXME: Should let the user specify the lib program.
24805 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024806 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024807 enable_shared_with_static_runtimes_GCJ=yes
24808 ;;
24809
24810 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024811 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024812 rhapsody* | darwin1.[012])
24813 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24814 ;;
24815 *) # Darwin 1.3 on
24816 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24817 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24818 else
24819 case ${MACOSX_DEPLOYMENT_TARGET} in
24820 10.[012])
24821 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24822 ;;
24823 10.*)
24824 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24825 ;;
24826 esac
24827 fi
24828 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024829 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024830 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024831 hardcode_direct_GCJ=no
24832 hardcode_automatic_GCJ=yes
24833 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024834 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024835 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024836 if test "$GCC" = yes ; then
24837 output_verbose_link_cmd='echo'
24838 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24839 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024840 # 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 +000024841 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}'
24842 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 +000024843 else
Reid Spencera773bd52006-08-04 18:18:08 +000024844 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024845 xlc*)
24846 output_verbose_link_cmd='echo'
24847 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24848 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024849 # 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 +000024850 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}'
24851 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 +000024852 ;;
24853 *)
24854 ld_shlibs_GCJ=no
24855 ;;
24856 esac
John Criswell47fdd832003-07-14 16:52:07 +000024857 fi
24858 ;;
24859
24860 dgux*)
24861 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24862 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24863 hardcode_shlibpath_var_GCJ=no
24864 ;;
24865
24866 freebsd1*)
24867 ld_shlibs_GCJ=no
24868 ;;
24869
24870 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24871 # support. Future versions do this automatically, but an explicit c++rt0.o
24872 # does not break anything, and helps significantly (at the cost of a little
24873 # extra space).
24874 freebsd2.2*)
24875 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24876 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24877 hardcode_direct_GCJ=yes
24878 hardcode_shlibpath_var_GCJ=no
24879 ;;
24880
24881 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24882 freebsd2*)
24883 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24884 hardcode_direct_GCJ=yes
24885 hardcode_minus_L_GCJ=yes
24886 hardcode_shlibpath_var_GCJ=no
24887 ;;
24888
24889 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024890 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024891 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24892 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24893 hardcode_direct_GCJ=yes
24894 hardcode_shlibpath_var_GCJ=no
24895 ;;
24896
24897 hpux9*)
24898 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024899 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 +000024900 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024901 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 +000024902 fi
24903 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24904 hardcode_libdir_separator_GCJ=:
24905 hardcode_direct_GCJ=yes
24906
24907 # hardcode_minus_L: Not really in the search PATH,
24908 # but as the default location of the library.
24909 hardcode_minus_L_GCJ=yes
24910 export_dynamic_flag_spec_GCJ='${wl}-E'
24911 ;;
24912
Reid Spencera773bd52006-08-04 18:18:08 +000024913 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024914 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024915 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24916 else
24917 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24918 fi
24919 if test "$with_gnu_ld" = no; then
24920 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24921 hardcode_libdir_separator_GCJ=:
24922
24923 hardcode_direct_GCJ=yes
24924 export_dynamic_flag_spec_GCJ='${wl}-E'
24925
24926 # hardcode_minus_L: Not really in the search PATH,
24927 # but as the default location of the library.
24928 hardcode_minus_L_GCJ=yes
24929 fi
24930 ;;
24931
24932 hpux11*)
24933 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24934 case $host_cpu in
24935 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024936 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24937 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024938 ia64*)
24939 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24940 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024941 *)
24942 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24943 ;;
24944 esac
24945 else
Reid Spencera773bd52006-08-04 18:18:08 +000024946 case $host_cpu in
24947 hppa*64*)
24948 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24949 ;;
24950 ia64*)
24951 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024952 ;;
24953 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024954 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 +000024955 ;;
24956 esac
24957 fi
24958 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024959 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24960 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024961
Reid Spencera773bd52006-08-04 18:18:08 +000024962 case $host_cpu in
24963 hppa*64*|ia64*)
24964 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24965 hardcode_direct_GCJ=no
24966 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024967 ;;
24968 *)
John Criswell47fdd832003-07-14 16:52:07 +000024969 hardcode_direct_GCJ=yes
24970 export_dynamic_flag_spec_GCJ='${wl}-E'
24971
24972 # hardcode_minus_L: Not really in the search PATH,
24973 # but as the default location of the library.
24974 hardcode_minus_L_GCJ=yes
24975 ;;
24976 esac
24977 fi
24978 ;;
24979
24980 irix5* | irix6* | nonstopux*)
24981 if test "$GCC" = yes; then
24982 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'
24983 else
24984 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'
24985 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24986 fi
24987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24988 hardcode_libdir_separator_GCJ=:
24989 link_all_deplibs_GCJ=yes
24990 ;;
24991
24992 netbsd*)
24993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24994 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24995 else
24996 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24997 fi
24998 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24999 hardcode_direct_GCJ=yes
25000 hardcode_shlibpath_var_GCJ=no
25001 ;;
25002
25003 newsos6)
25004 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25005 hardcode_direct_GCJ=yes
25006 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25007 hardcode_libdir_separator_GCJ=:
25008 hardcode_shlibpath_var_GCJ=no
25009 ;;
25010
25011 openbsd*)
25012 hardcode_direct_GCJ=yes
25013 hardcode_shlibpath_var_GCJ=no
25014 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25015 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025016 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 +000025017 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25018 export_dynamic_flag_spec_GCJ='${wl}-E'
25019 else
25020 case $host_os in
25021 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25022 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25023 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25024 ;;
25025 *)
25026 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25027 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25028 ;;
25029 esac
25030 fi
25031 ;;
25032
25033 os2*)
25034 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25035 hardcode_minus_L_GCJ=yes
25036 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025037 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 +000025038 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25039 ;;
25040
25041 osf3*)
25042 if test "$GCC" = yes; then
25043 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25044 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'
25045 else
25046 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25047 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'
25048 fi
25049 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25050 hardcode_libdir_separator_GCJ=:
25051 ;;
25052
25053 osf4* | osf5*) # as osf3* with the addition of -msym flag
25054 if test "$GCC" = yes; then
25055 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25056 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'
25057 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25058 else
25059 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25060 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 +000025061 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 +000025062 $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 +000025063
John Criswell47fdd832003-07-14 16:52:07 +000025064 # Both c and cxx compiler support -rpath directly
25065 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25066 fi
25067 hardcode_libdir_separator_GCJ=:
25068 ;;
25069
John Criswell47fdd832003-07-14 16:52:07 +000025070 solaris*)
25071 no_undefined_flag_GCJ=' -z text'
25072 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025073 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025074 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025075 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25076 $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 +000025077 else
Reid Spencera773bd52006-08-04 18:18:08 +000025078 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025079 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025080 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25081 $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 +000025082 fi
25083 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25084 hardcode_shlibpath_var_GCJ=no
25085 case $host_os in
25086 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025087 *)
25088 # The compiler driver will combine linker options so we
25089 # cannot just pass the convience library names through
25090 # without $wl, iff we do not link with $LD.
25091 # Luckily, gcc supports the same syntax we need for Sun Studio.
25092 # Supported since Solaris 2.6 (maybe 2.5.1?)
25093 case $wlarc in
25094 '')
25095 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25096 *)
25097 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' ;;
25098 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025099 esac
25100 link_all_deplibs_GCJ=yes
25101 ;;
25102
25103 sunos4*)
25104 if test "x$host_vendor" = xsequent; then
25105 # Use $CC to link under sequent, because it throws in some extra .o
25106 # files that make .init and .fini sections work.
25107 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25108 else
25109 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25110 fi
25111 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25112 hardcode_direct_GCJ=yes
25113 hardcode_minus_L_GCJ=yes
25114 hardcode_shlibpath_var_GCJ=no
25115 ;;
25116
25117 sysv4)
25118 case $host_vendor in
25119 sni)
25120 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25121 hardcode_direct_GCJ=yes # is this really true???
25122 ;;
25123 siemens)
25124 ## LD is ld it makes a PLAMLIB
25125 ## CC just makes a GrossModule.
25126 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25127 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25128 hardcode_direct_GCJ=no
25129 ;;
25130 motorola)
25131 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25132 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25133 ;;
25134 esac
25135 runpath_var='LD_RUN_PATH'
25136 hardcode_shlibpath_var_GCJ=no
25137 ;;
25138
25139 sysv4.3*)
25140 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25141 hardcode_shlibpath_var_GCJ=no
25142 export_dynamic_flag_spec_GCJ='-Bexport'
25143 ;;
25144
25145 sysv4*MP*)
25146 if test -d /usr/nec; then
25147 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25148 hardcode_shlibpath_var_GCJ=no
25149 runpath_var=LD_RUN_PATH
25150 hardcode_runpath_var=yes
25151 ld_shlibs_GCJ=yes
25152 fi
25153 ;;
25154
Reid Spencera773bd52006-08-04 18:18:08 +000025155 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25156 no_undefined_flag_GCJ='${wl}-z,text'
25157 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025158 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025159 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025160
John Criswell47fdd832003-07-14 16:52:07 +000025161 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025162 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25163 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 +000025164 else
Reid Spencera773bd52006-08-04 18:18:08 +000025165 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25166 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 +000025167 fi
John Criswell47fdd832003-07-14 16:52:07 +000025168 ;;
25169
Reid Spencera773bd52006-08-04 18:18:08 +000025170 sysv5* | sco3.2v5* | sco5v6*)
25171 # Note: We can NOT use -z defs as we might desire, because we do not
25172 # link with -lc, and that would cause any symbols used from libc to
25173 # always be unresolved, which means just about no library would
25174 # ever link correctly. If we're not using GNU ld we use -z text
25175 # though, which does catch some bad symbols but isn't as heavy-handed
25176 # as -z defs.
25177 no_undefined_flag_GCJ='${wl}-z,text'
25178 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25179 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025180 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025181 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25182 hardcode_libdir_separator_GCJ=':'
25183 link_all_deplibs_GCJ=yes
25184 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025185 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025186
25187 if test "$GCC" = yes; then
25188 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25189 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25190 else
25191 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25192 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25193 fi
John Criswell47fdd832003-07-14 16:52:07 +000025194 ;;
25195
25196 uts4*)
25197 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25198 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25199 hardcode_shlibpath_var_GCJ=no
25200 ;;
25201
25202 *)
25203 ld_shlibs_GCJ=no
25204 ;;
25205 esac
25206 fi
25207
Reid Spencera773bd52006-08-04 18:18:08 +000025208{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25209echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025210test "$ld_shlibs_GCJ" = no && can_build_shared=no
25211
John Criswell47fdd832003-07-14 16:52:07 +000025212#
25213# Do we need to explicitly link libc?
25214#
25215case "x$archive_cmds_need_lc_GCJ" in
25216x|xyes)
25217 # Assume -lc should be added
25218 archive_cmds_need_lc_GCJ=yes
25219
25220 if test "$enable_shared" = yes && test "$GCC" = yes; then
25221 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025222 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025223 # FIXME: we may have to deal with multi-command sequences.
25224 ;;
25225 '$CC '*)
25226 # Test whether the compiler implicitly links with -lc since on some
25227 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25228 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025229 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25230echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025231 $rm conftest*
25232 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25233
25234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25235 (eval $ac_compile) 2>&5
25236 ac_status=$?
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); } 2>conftest.err; then
25239 soname=conftest
25240 lib=conftest
25241 libobjs=conftest.$ac_objext
25242 deplibs=
25243 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025244 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025245 compiler_flags=-v
25246 linker_flags=-v
25247 verstring=
25248 output_objdir=.
25249 libname=conftest
25250 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25251 allow_undefined_flag_GCJ=
25252 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25253 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25254 ac_status=$?
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); }
25257 then
25258 archive_cmds_need_lc_GCJ=no
25259 else
25260 archive_cmds_need_lc_GCJ=yes
25261 fi
25262 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25263 else
25264 cat conftest.err 1>&5
25265 fi
25266 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025267 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25268echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025269 ;;
25270 esac
25271 fi
25272 ;;
25273esac
25274
Reid Spencera773bd52006-08-04 18:18:08 +000025275{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25276echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025277library_names_spec=
25278libname_spec='lib$name'
25279soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025280shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025281postinstall_cmds=
25282postuninstall_cmds=
25283finish_cmds=
25284finish_eval=
25285shlibpath_var=
25286shlibpath_overrides_runpath=unknown
25287version_type=none
25288dynamic_linker="$host_os ld.so"
25289sys_lib_dlsearch_path_spec="/lib /usr/lib"
25290if test "$GCC" = yes; then
25291 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25292 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25293 # if the path contains ";" then we assume it to be the separator
25294 # otherwise default to the standard path separator (i.e. ":") - it is
25295 # assumed that no part of a normal pathname contains ";" but that should
25296 # okay in the real world where ";" in dirpaths is itself problematic.
25297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25298 else
25299 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25300 fi
25301else
25302 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25303fi
25304need_lib_prefix=unknown
25305hardcode_into_libs=no
25306
25307# when you set need_version to no, make sure it does not cause -set_version
25308# flags to be left without arguments
25309need_version=unknown
25310
25311case $host_os in
25312aix3*)
25313 version_type=linux
25314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25315 shlibpath_var=LIBPATH
25316
25317 # AIX 3 has no versioning support, so we append a major version to the name.
25318 soname_spec='${libname}${release}${shared_ext}$major'
25319 ;;
25320
25321aix4* | aix5*)
25322 version_type=linux
25323 need_lib_prefix=no
25324 need_version=no
25325 hardcode_into_libs=yes
25326 if test "$host_cpu" = ia64; then
25327 # AIX 5 supports IA64
25328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25329 shlibpath_var=LD_LIBRARY_PATH
25330 else
25331 # With GCC up to 2.95.x, collect2 would create an import file
25332 # for dependence libraries. The import file would start with
25333 # the line `#! .'. This would cause the generated library to
25334 # depend on `.', always an invalid library. This was fixed in
25335 # development snapshots of GCC prior to 3.0.
25336 case $host_os in
25337 aix4 | aix4.[01] | aix4.[01].*)
25338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25339 echo ' yes '
25340 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25341 :
25342 else
25343 can_build_shared=no
25344 fi
25345 ;;
25346 esac
25347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25348 # soname into executable. Probably we can add versioning support to
25349 # collect2, so additional links can be useful in future.
25350 if test "$aix_use_runtimelinking" = yes; then
25351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25352 # instead of lib<name>.a to let people know that these are not
25353 # typical AIX shared libraries.
25354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25355 else
25356 # We preserve .a as extension for shared libraries through AIX4.2
25357 # and later when we are not doing run time linking.
25358 library_names_spec='${libname}${release}.a $libname.a'
25359 soname_spec='${libname}${release}${shared_ext}$major'
25360 fi
25361 shlibpath_var=LIBPATH
25362 fi
25363 ;;
25364
25365amigaos*)
25366 library_names_spec='$libname.ixlibrary $libname.a'
25367 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025368 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 +000025369 ;;
25370
25371beos*)
25372 library_names_spec='${libname}${shared_ext}'
25373 dynamic_linker="$host_os ld.so"
25374 shlibpath_var=LIBRARY_PATH
25375 ;;
25376
Reid Spencer2706f8c2004-09-19 23:53:36 +000025377bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025378 version_type=linux
25379 need_version=no
25380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25381 soname_spec='${libname}${release}${shared_ext}$major'
25382 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25383 shlibpath_var=LD_LIBRARY_PATH
25384 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25385 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25386 # the default ld.so.conf also contains /usr/contrib/lib and
25387 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25388 # libtool to hard-code these into programs
25389 ;;
25390
25391cygwin* | mingw* | pw32*)
25392 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025393 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025394 need_version=no
25395 need_lib_prefix=no
25396
25397 case $GCC,$host_os in
25398 yes,cygwin* | yes,mingw* | yes,pw32*)
25399 library_names_spec='$libname.dll.a'
25400 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025401 postinstall_cmds='base_file=`basename \${file}`~
25402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25403 dldir=$destdir/`dirname \$dlpath`~
25404 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025405 $install_prog $dir/$dlname \$dldir/$dlname~
25406 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025407 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25408 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025409 $rm \$dlpath'
25410 shlibpath_overrides_runpath=yes
25411
25412 case $host_os in
25413 cygwin*)
25414 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25415 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 +000025416 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025417 ;;
25418 mingw*)
25419 # MinGW DLLs use traditional 'lib' prefix
25420 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25421 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25422 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25423 # It is most probably a Windows format PATH printed by
25424 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25425 # path with ; separators, and with drive letters. We can handle the
25426 # drive letters (cygwin fileutils understands them), so leave them,
25427 # especially as we might pass files found there to a mingw objdump,
25428 # which wouldn't understand a cygwinified path. Ahh.
25429 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25430 else
25431 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25432 fi
25433 ;;
25434 pw32*)
25435 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025436 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 +000025437 ;;
25438 esac
25439 ;;
25440
25441 *)
25442 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25443 ;;
25444 esac
25445 dynamic_linker='Win32 ld.exe'
25446 # FIXME: first we should search . and the directory the executable is in
25447 shlibpath_var=PATH
25448 ;;
25449
25450darwin* | rhapsody*)
25451 dynamic_linker="$host_os dyld"
25452 version_type=darwin
25453 need_lib_prefix=no
25454 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025455 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025456 soname_spec='${libname}${release}${major}$shared_ext'
25457 shlibpath_overrides_runpath=yes
25458 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025459 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025460 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025461 if test "$GCC" = yes; then
25462 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"`
25463 else
25464 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025465 fi
25466 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25467 ;;
25468
25469dgux*)
25470 version_type=linux
25471 need_lib_prefix=no
25472 need_version=no
25473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25474 soname_spec='${libname}${release}${shared_ext}$major'
25475 shlibpath_var=LD_LIBRARY_PATH
25476 ;;
25477
25478freebsd1*)
25479 dynamic_linker=no
25480 ;;
25481
Reid Spencer2706f8c2004-09-19 23:53:36 +000025482kfreebsd*-gnu)
25483 version_type=linux
25484 need_lib_prefix=no
25485 need_version=no
25486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25487 soname_spec='${libname}${release}${shared_ext}$major'
25488 shlibpath_var=LD_LIBRARY_PATH
25489 shlibpath_overrides_runpath=no
25490 hardcode_into_libs=yes
25491 dynamic_linker='GNU ld.so'
25492 ;;
25493
Reid Spencera773bd52006-08-04 18:18:08 +000025494freebsd* | dragonfly*)
25495 # DragonFly does not have aout. When/if they implement a new
25496 # versioning mechanism, adjust this.
25497 if test -x /usr/bin/objformat; then
25498 objformat=`/usr/bin/objformat`
25499 else
25500 case $host_os in
25501 freebsd[123]*) objformat=aout ;;
25502 *) objformat=elf ;;
25503 esac
25504 fi
John Criswell47fdd832003-07-14 16:52:07 +000025505 version_type=freebsd-$objformat
25506 case $version_type in
25507 freebsd-elf*)
25508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25509 need_version=no
25510 need_lib_prefix=no
25511 ;;
25512 freebsd-*)
25513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25514 need_version=yes
25515 ;;
25516 esac
25517 shlibpath_var=LD_LIBRARY_PATH
25518 case $host_os in
25519 freebsd2*)
25520 shlibpath_overrides_runpath=yes
25521 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025522 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025523 shlibpath_overrides_runpath=yes
25524 hardcode_into_libs=yes
25525 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025526 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25527 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025528 shlibpath_overrides_runpath=no
25529 hardcode_into_libs=yes
25530 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025531 freebsd*) # from 4.6 on
25532 shlibpath_overrides_runpath=yes
25533 hardcode_into_libs=yes
25534 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025535 esac
25536 ;;
25537
25538gnu*)
25539 version_type=linux
25540 need_lib_prefix=no
25541 need_version=no
25542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25543 soname_spec='${libname}${release}${shared_ext}$major'
25544 shlibpath_var=LD_LIBRARY_PATH
25545 hardcode_into_libs=yes
25546 ;;
25547
25548hpux9* | hpux10* | hpux11*)
25549 # Give a soname corresponding to the major version so that dld.sl refuses to
25550 # link against other versions.
25551 version_type=sunos
25552 need_lib_prefix=no
25553 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025554 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025555 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025556 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025557 hardcode_into_libs=yes
25558 dynamic_linker="$host_os dld.so"
25559 shlibpath_var=LD_LIBRARY_PATH
25560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25562 soname_spec='${libname}${release}${shared_ext}$major'
25563 if test "X$HPUX_IA64_MODE" = X32; then
25564 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25565 else
25566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25567 fi
25568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25569 ;;
25570 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025571 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025572 hardcode_into_libs=yes
25573 dynamic_linker="$host_os dld.sl"
25574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25577 soname_spec='${libname}${release}${shared_ext}$major'
25578 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25580 ;;
25581 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025582 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025583 dynamic_linker="$host_os dld.sl"
25584 shlibpath_var=SHLIB_PATH
25585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25587 soname_spec='${libname}${release}${shared_ext}$major'
25588 ;;
25589 esac
25590 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25591 postinstall_cmds='chmod 555 $lib'
25592 ;;
25593
Reid Spencera773bd52006-08-04 18:18:08 +000025594interix3*)
25595 version_type=linux
25596 need_lib_prefix=no
25597 need_version=no
25598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25599 soname_spec='${libname}${release}${shared_ext}$major'
25600 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25601 shlibpath_var=LD_LIBRARY_PATH
25602 shlibpath_overrides_runpath=no
25603 hardcode_into_libs=yes
25604 ;;
25605
John Criswell47fdd832003-07-14 16:52:07 +000025606irix5* | irix6* | nonstopux*)
25607 case $host_os in
25608 nonstopux*) version_type=nonstopux ;;
25609 *)
25610 if test "$lt_cv_prog_gnu_ld" = yes; then
25611 version_type=linux
25612 else
25613 version_type=irix
25614 fi ;;
25615 esac
25616 need_lib_prefix=no
25617 need_version=no
25618 soname_spec='${libname}${release}${shared_ext}$major'
25619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25620 case $host_os in
25621 irix5* | nonstopux*)
25622 libsuff= shlibsuff=
25623 ;;
25624 *)
25625 case $LD in # libtool.m4 will add one of these switches to LD
25626 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25627 libsuff= shlibsuff= libmagic=32-bit;;
25628 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25629 libsuff=32 shlibsuff=N32 libmagic=N32;;
25630 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25631 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25632 *) libsuff= shlibsuff= libmagic=never-match;;
25633 esac
25634 ;;
25635 esac
25636 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25637 shlibpath_overrides_runpath=no
25638 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25639 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25640 hardcode_into_libs=yes
25641 ;;
25642
25643# No shared lib support for Linux oldld, aout, or coff.
25644linux*oldld* | linux*aout* | linux*coff*)
25645 dynamic_linker=no
25646 ;;
25647
25648# This must be Linux ELF.
25649linux*)
25650 version_type=linux
25651 need_lib_prefix=no
25652 need_version=no
25653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25654 soname_spec='${libname}${release}${shared_ext}$major'
25655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25656 shlibpath_var=LD_LIBRARY_PATH
25657 shlibpath_overrides_runpath=no
25658 # This implies no fast_install, which is unacceptable.
25659 # Some rework will be needed to allow for fast_install
25660 # before this can be enabled.
25661 hardcode_into_libs=yes
25662
Reid Spencer2706f8c2004-09-19 23:53:36 +000025663 # Append ld.so.conf contents to the search path
25664 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025665 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 +000025666 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25667 fi
25668
John Criswell47fdd832003-07-14 16:52:07 +000025669 # We used to test for /lib/ld.so.1 and disable shared libraries on
25670 # powerpc, because MkLinux only supported shared libraries with the
25671 # GNU dynamic linker. Since this was broken with cross compilers,
25672 # most powerpc-linux boxes support dynamic linking these days and
25673 # people can always --disable-shared, the test was removed, and we
25674 # assume the GNU/Linux dynamic linker is in use.
25675 dynamic_linker='GNU/Linux ld.so'
25676 ;;
25677
Reid Spencer2706f8c2004-09-19 23:53:36 +000025678knetbsd*-gnu)
25679 version_type=linux
25680 need_lib_prefix=no
25681 need_version=no
25682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25683 soname_spec='${libname}${release}${shared_ext}$major'
25684 shlibpath_var=LD_LIBRARY_PATH
25685 shlibpath_overrides_runpath=no
25686 hardcode_into_libs=yes
25687 dynamic_linker='GNU ld.so'
25688 ;;
25689
John Criswell47fdd832003-07-14 16:52:07 +000025690netbsd*)
25691 version_type=sunos
25692 need_lib_prefix=no
25693 need_version=no
25694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25696 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25697 dynamic_linker='NetBSD (a.out) ld.so'
25698 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025700 soname_spec='${libname}${release}${shared_ext}$major'
25701 dynamic_linker='NetBSD ld.elf_so'
25702 fi
25703 shlibpath_var=LD_LIBRARY_PATH
25704 shlibpath_overrides_runpath=yes
25705 hardcode_into_libs=yes
25706 ;;
25707
25708newsos6)
25709 version_type=linux
25710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25711 shlibpath_var=LD_LIBRARY_PATH
25712 shlibpath_overrides_runpath=yes
25713 ;;
25714
Reid Spencer2706f8c2004-09-19 23:53:36 +000025715nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025716 version_type=linux
25717 need_lib_prefix=no
25718 need_version=no
25719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25720 soname_spec='${libname}${release}${shared_ext}$major'
25721 shlibpath_var=LD_LIBRARY_PATH
25722 shlibpath_overrides_runpath=yes
25723 ;;
25724
25725openbsd*)
25726 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025727 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025728 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025729 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25730 case $host_os in
25731 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25732 *) need_version=no ;;
25733 esac
John Criswell47fdd832003-07-14 16:52:07 +000025734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25736 shlibpath_var=LD_LIBRARY_PATH
25737 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25738 case $host_os in
25739 openbsd2.[89] | openbsd2.[89].*)
25740 shlibpath_overrides_runpath=no
25741 ;;
25742 *)
25743 shlibpath_overrides_runpath=yes
25744 ;;
25745 esac
25746 else
25747 shlibpath_overrides_runpath=yes
25748 fi
25749 ;;
25750
25751os2*)
25752 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025753 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025754 need_lib_prefix=no
25755 library_names_spec='$libname${shared_ext} $libname.a'
25756 dynamic_linker='OS/2 ld.exe'
25757 shlibpath_var=LIBPATH
25758 ;;
25759
25760osf3* | osf4* | osf5*)
25761 version_type=osf
25762 need_lib_prefix=no
25763 need_version=no
25764 soname_spec='${libname}${release}${shared_ext}$major'
25765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25766 shlibpath_var=LD_LIBRARY_PATH
25767 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25768 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25769 ;;
25770
John Criswell47fdd832003-07-14 16:52:07 +000025771solaris*)
25772 version_type=linux
25773 need_lib_prefix=no
25774 need_version=no
25775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25776 soname_spec='${libname}${release}${shared_ext}$major'
25777 shlibpath_var=LD_LIBRARY_PATH
25778 shlibpath_overrides_runpath=yes
25779 hardcode_into_libs=yes
25780 # ldd complains unless libraries are executable
25781 postinstall_cmds='chmod +x $lib'
25782 ;;
25783
25784sunos4*)
25785 version_type=sunos
25786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25787 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25788 shlibpath_var=LD_LIBRARY_PATH
25789 shlibpath_overrides_runpath=yes
25790 if test "$with_gnu_ld" = yes; then
25791 need_lib_prefix=no
25792 fi
25793 need_version=yes
25794 ;;
25795
Reid Spencera773bd52006-08-04 18:18:08 +000025796sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025797 version_type=linux
25798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25799 soname_spec='${libname}${release}${shared_ext}$major'
25800 shlibpath_var=LD_LIBRARY_PATH
25801 case $host_vendor in
25802 sni)
25803 shlibpath_overrides_runpath=no
25804 need_lib_prefix=no
25805 export_dynamic_flag_spec='${wl}-Blargedynsym'
25806 runpath_var=LD_RUN_PATH
25807 ;;
25808 siemens)
25809 need_lib_prefix=no
25810 ;;
25811 motorola)
25812 need_lib_prefix=no
25813 need_version=no
25814 shlibpath_overrides_runpath=no
25815 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25816 ;;
25817 esac
25818 ;;
25819
25820sysv4*MP*)
25821 if test -d /usr/nec ;then
25822 version_type=linux
25823 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25824 soname_spec='$libname${shared_ext}.$major'
25825 shlibpath_var=LD_LIBRARY_PATH
25826 fi
25827 ;;
25828
Reid Spencera773bd52006-08-04 18:18:08 +000025829sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25830 version_type=freebsd-elf
25831 need_lib_prefix=no
25832 need_version=no
25833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25834 soname_spec='${libname}${release}${shared_ext}$major'
25835 shlibpath_var=LD_LIBRARY_PATH
25836 hardcode_into_libs=yes
25837 if test "$with_gnu_ld" = yes; then
25838 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25839 shlibpath_overrides_runpath=no
25840 else
25841 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25842 shlibpath_overrides_runpath=yes
25843 case $host_os in
25844 sco3.2v5*)
25845 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25846 ;;
25847 esac
25848 fi
25849 sys_lib_dlsearch_path_spec='/usr/lib'
25850 ;;
25851
John Criswell47fdd832003-07-14 16:52:07 +000025852uts4*)
25853 version_type=linux
25854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25855 soname_spec='${libname}${release}${shared_ext}$major'
25856 shlibpath_var=LD_LIBRARY_PATH
25857 ;;
25858
25859*)
25860 dynamic_linker=no
25861 ;;
25862esac
Reid Spencera773bd52006-08-04 18:18:08 +000025863{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25864echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025865test "$dynamic_linker" = no && can_build_shared=no
25866
Reid Spencera773bd52006-08-04 18:18:08 +000025867variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25868if test "$GCC" = yes; then
25869 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25870fi
25871
25872{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25873echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025874hardcode_action_GCJ=
25875if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25876 test -n "$runpath_var_GCJ" || \
25877 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25878
25879 # We can hardcode non-existant directories.
25880 if test "$hardcode_direct_GCJ" != no &&
25881 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25882 # have to relink, otherwise we might link with an installed library
25883 # when we should be linking with a yet-to-be-installed one
25884 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25885 test "$hardcode_minus_L_GCJ" != no; then
25886 # Linking always hardcodes the temporary library directory.
25887 hardcode_action_GCJ=relink
25888 else
25889 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25890 hardcode_action_GCJ=immediate
25891 fi
25892else
25893 # We cannot hardcode anything, or else we can only hardcode existing
25894 # directories.
25895 hardcode_action_GCJ=unsupported
25896fi
Reid Spencera773bd52006-08-04 18:18:08 +000025897{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25898echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025899
25900if test "$hardcode_action_GCJ" = relink; then
25901 # Fast installation is not supported
25902 enable_fast_install=no
25903elif test "$shlibpath_overrides_runpath" = yes ||
25904 test "$enable_shared" = no; then
25905 # Fast installation is not necessary
25906 enable_fast_install=needless
25907fi
25908
John Criswell47fdd832003-07-14 16:52:07 +000025909
25910# The else clause should only fire when bootstrapping the
25911# libtool distribution, otherwise you forgot to ship ltmain.sh
25912# with your package, and you will get complaints that there are
25913# no rules to generate ltmain.sh.
25914if test -f "$ltmain"; then
25915 # See if we are running on zsh, and set the options which allow our commands through
25916 # without removal of \ escapes.
25917 if test -n "${ZSH_VERSION+set}" ; then
25918 setopt NO_GLOB_SUBST
25919 fi
25920 # Now quote all the things that may contain metacharacters while being
25921 # careful not to overquote the AC_SUBSTed values. We take copies of the
25922 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025923 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 +000025924 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025925 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25926 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25927 deplibs_check_method reload_flag reload_cmds need_locks \
25928 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25929 lt_cv_sys_global_symbol_to_c_name_address \
25930 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25931 old_postinstall_cmds old_postuninstall_cmds \
25932 compiler_GCJ \
25933 CC_GCJ \
25934 LD_GCJ \
25935 lt_prog_compiler_wl_GCJ \
25936 lt_prog_compiler_pic_GCJ \
25937 lt_prog_compiler_static_GCJ \
25938 lt_prog_compiler_no_builtin_flag_GCJ \
25939 export_dynamic_flag_spec_GCJ \
25940 thread_safe_flag_spec_GCJ \
25941 whole_archive_flag_spec_GCJ \
25942 enable_shared_with_static_runtimes_GCJ \
25943 old_archive_cmds_GCJ \
25944 old_archive_from_new_cmds_GCJ \
25945 predep_objects_GCJ \
25946 postdep_objects_GCJ \
25947 predeps_GCJ \
25948 postdeps_GCJ \
25949 compiler_lib_search_path_GCJ \
25950 archive_cmds_GCJ \
25951 archive_expsym_cmds_GCJ \
25952 postinstall_cmds_GCJ \
25953 postuninstall_cmds_GCJ \
25954 old_archive_from_expsyms_cmds_GCJ \
25955 allow_undefined_flag_GCJ \
25956 no_undefined_flag_GCJ \
25957 export_symbols_cmds_GCJ \
25958 hardcode_libdir_flag_spec_GCJ \
25959 hardcode_libdir_flag_spec_ld_GCJ \
25960 hardcode_libdir_separator_GCJ \
25961 hardcode_automatic_GCJ \
25962 module_cmds_GCJ \
25963 module_expsym_cmds_GCJ \
25964 lt_cv_prog_compiler_c_o_GCJ \
25965 exclude_expsyms_GCJ \
25966 include_expsyms_GCJ; do
25967
25968 case $var in
25969 old_archive_cmds_GCJ | \
25970 old_archive_from_new_cmds_GCJ | \
25971 archive_cmds_GCJ | \
25972 archive_expsym_cmds_GCJ | \
25973 module_cmds_GCJ | \
25974 module_expsym_cmds_GCJ | \
25975 old_archive_from_expsyms_cmds_GCJ | \
25976 export_symbols_cmds_GCJ | \
25977 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25978 postinstall_cmds | postuninstall_cmds | \
25979 old_postinstall_cmds | old_postuninstall_cmds | \
25980 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25981 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025982 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 +000025983 ;;
25984 *)
25985 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25986 ;;
25987 esac
25988 done
25989
25990 case $lt_echo in
25991 *'\$0 --fallback-echo"')
25992 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25993 ;;
25994 esac
25995
25996cfgfile="$ofile"
25997
25998 cat <<__EOF__ >> "$cfgfile"
25999# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26000
26001# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26002
26003# Shell to use when invoking shell scripts.
26004SHELL=$lt_SHELL
26005
26006# Whether or not to build shared libraries.
26007build_libtool_libs=$enable_shared
26008
26009# Whether or not to build static libraries.
26010build_old_libs=$enable_static
26011
26012# Whether or not to add -lc for building shared libraries.
26013build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26014
26015# Whether or not to disallow shared libs when runtime libs are static
26016allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26017
26018# Whether or not to optimize for fast installation.
26019fast_install=$enable_fast_install
26020
26021# The host system.
26022host_alias=$host_alias
26023host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026024host_os=$host_os
26025
26026# The build system.
26027build_alias=$build_alias
26028build=$build
26029build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026030
26031# An echo program that does not interpret backslashes.
26032echo=$lt_echo
26033
26034# The archiver.
26035AR=$lt_AR
26036AR_FLAGS=$lt_AR_FLAGS
26037
26038# A C compiler.
26039LTCC=$lt_LTCC
26040
Reid Spencera773bd52006-08-04 18:18:08 +000026041# LTCC compiler flags.
26042LTCFLAGS=$lt_LTCFLAGS
26043
John Criswell47fdd832003-07-14 16:52:07 +000026044# A language-specific compiler.
26045CC=$lt_compiler_GCJ
26046
26047# Is the compiler the GNU C compiler?
26048with_gcc=$GCC_GCJ
26049
26050# An ERE matcher.
26051EGREP=$lt_EGREP
26052
26053# The linker used to build libraries.
26054LD=$lt_LD_GCJ
26055
26056# Whether we need hard or soft links.
26057LN_S=$lt_LN_S
26058
26059# A BSD-compatible nm program.
26060NM=$lt_NM
26061
26062# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026063STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026064
26065# Used to examine libraries when file_magic_cmd begins "file"
26066MAGIC_CMD=$MAGIC_CMD
26067
26068# Used on cygwin: DLL creation program.
26069DLLTOOL="$DLLTOOL"
26070
26071# Used on cygwin: object dumper.
26072OBJDUMP="$OBJDUMP"
26073
26074# Used on cygwin: assembler.
26075AS="$AS"
26076
26077# The name of the directory that contains temporary libtool files.
26078objdir=$objdir
26079
26080# How to create reloadable object files.
26081reload_flag=$lt_reload_flag
26082reload_cmds=$lt_reload_cmds
26083
26084# How to pass a linker flag through the compiler.
26085wl=$lt_lt_prog_compiler_wl_GCJ
26086
26087# Object file suffix (normally "o").
26088objext="$ac_objext"
26089
26090# Old archive suffix (normally "a").
26091libext="$libext"
26092
26093# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026094shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026095
26096# Executable file suffix (normally "").
26097exeext="$exeext"
26098
26099# Additional compiler flags for building library objects.
26100pic_flag=$lt_lt_prog_compiler_pic_GCJ
26101pic_mode=$pic_mode
26102
26103# What is the maximum length of a command?
26104max_cmd_len=$lt_cv_sys_max_cmd_len
26105
26106# Does compiler simultaneously support -c and -o options?
26107compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26108
Reid Spencera773bd52006-08-04 18:18:08 +000026109# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026110need_locks=$lt_need_locks
26111
26112# Do we need the lib prefix for modules?
26113need_lib_prefix=$need_lib_prefix
26114
26115# Do we need a version for libraries?
26116need_version=$need_version
26117
26118# Whether dlopen is supported.
26119dlopen_support=$enable_dlopen
26120
26121# Whether dlopen of programs is supported.
26122dlopen_self=$enable_dlopen_self
26123
26124# Whether dlopen of statically linked programs is supported.
26125dlopen_self_static=$enable_dlopen_self_static
26126
26127# Compiler flag to prevent dynamic linking.
26128link_static_flag=$lt_lt_prog_compiler_static_GCJ
26129
26130# Compiler flag to turn off builtin functions.
26131no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26132
26133# Compiler flag to allow reflexive dlopens.
26134export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26135
26136# Compiler flag to generate shared objects directly from archives.
26137whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26138
26139# Compiler flag to generate thread-safe objects.
26140thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26141
26142# Library versioning type.
26143version_type=$version_type
26144
26145# Format of library name prefix.
26146libname_spec=$lt_libname_spec
26147
26148# List of archive names. First name is the real one, the rest are links.
26149# The last name is the one that the linker finds with -lNAME.
26150library_names_spec=$lt_library_names_spec
26151
26152# The coded name of the library, if different from the real name.
26153soname_spec=$lt_soname_spec
26154
26155# Commands used to build and install an old-style archive.
26156RANLIB=$lt_RANLIB
26157old_archive_cmds=$lt_old_archive_cmds_GCJ
26158old_postinstall_cmds=$lt_old_postinstall_cmds
26159old_postuninstall_cmds=$lt_old_postuninstall_cmds
26160
26161# Create an old-style archive from a shared archive.
26162old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26163
26164# Create a temporary old-style archive to link instead of a shared archive.
26165old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26166
26167# Commands used to build and install a shared archive.
26168archive_cmds=$lt_archive_cmds_GCJ
26169archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26170postinstall_cmds=$lt_postinstall_cmds
26171postuninstall_cmds=$lt_postuninstall_cmds
26172
26173# Commands used to build a loadable module (assumed same as above if empty)
26174module_cmds=$lt_module_cmds_GCJ
26175module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26176
26177# Commands to strip libraries.
26178old_striplib=$lt_old_striplib
26179striplib=$lt_striplib
26180
26181# Dependencies to place before the objects being linked to create a
26182# shared library.
26183predep_objects=$lt_predep_objects_GCJ
26184
26185# Dependencies to place after the objects being linked to create a
26186# shared library.
26187postdep_objects=$lt_postdep_objects_GCJ
26188
26189# Dependencies to place before the objects being linked to create a
26190# shared library.
26191predeps=$lt_predeps_GCJ
26192
26193# Dependencies to place after the objects being linked to create a
26194# shared library.
26195postdeps=$lt_postdeps_GCJ
26196
26197# The library search path used internally by the compiler when linking
26198# a shared library.
26199compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26200
26201# Method to check whether dependent libraries are shared objects.
26202deplibs_check_method=$lt_deplibs_check_method
26203
26204# Command to use when deplibs_check_method == file_magic.
26205file_magic_cmd=$lt_file_magic_cmd
26206
26207# Flag that allows shared libraries with undefined symbols to be built.
26208allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26209
26210# Flag that forces no undefined symbols.
26211no_undefined_flag=$lt_no_undefined_flag_GCJ
26212
26213# Commands used to finish a libtool library installation in a directory.
26214finish_cmds=$lt_finish_cmds
26215
26216# Same as above, but a single script fragment to be evaled but not shown.
26217finish_eval=$lt_finish_eval
26218
26219# Take the output of nm and produce a listing of raw symbols and C names.
26220global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26221
26222# Transform the output of nm in a proper C declaration
26223global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26224
26225# Transform the output of nm in a C name address pair
26226global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26227
26228# This is the shared library runtime path variable.
26229runpath_var=$runpath_var
26230
26231# This is the shared library path variable.
26232shlibpath_var=$shlibpath_var
26233
26234# Is shlibpath searched before the hard-coded library search path?
26235shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26236
26237# How to hardcode a shared library path into an executable.
26238hardcode_action=$hardcode_action_GCJ
26239
26240# Whether we should hardcode library paths into libraries.
26241hardcode_into_libs=$hardcode_into_libs
26242
26243# Flag to hardcode \$libdir into a binary during linking.
26244# This must work even if \$libdir does not exist.
26245hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26246
26247# If ld is used when linking, flag to hardcode \$libdir into
26248# a binary during linking. This must work even if \$libdir does
26249# not exist.
26250hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26251
26252# Whether we need a single -rpath flag with a separated argument.
26253hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26254
26255# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26256# resulting binary.
26257hardcode_direct=$hardcode_direct_GCJ
26258
26259# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26260# resulting binary.
26261hardcode_minus_L=$hardcode_minus_L_GCJ
26262
26263# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26264# the resulting binary.
26265hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26266
26267# Set to yes if building a shared library automatically hardcodes DIR into the library
26268# and all subsequent libraries and executables linked against it.
26269hardcode_automatic=$hardcode_automatic_GCJ
26270
26271# Variables whose values should be saved in libtool wrapper scripts and
26272# restored at relink time.
26273variables_saved_for_relink="$variables_saved_for_relink"
26274
26275# Whether libtool must link a program against all its dependency libraries.
26276link_all_deplibs=$link_all_deplibs_GCJ
26277
26278# Compile-time system search path for libraries
26279sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26280
26281# Run-time system search path for libraries
26282sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26283
26284# Fix the shell variable \$srcfile for the compiler.
26285fix_srcfile_path="$fix_srcfile_path_GCJ"
26286
26287# Set to yes if exported symbols are required.
26288always_export_symbols=$always_export_symbols_GCJ
26289
26290# The commands to list exported symbols.
26291export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26292
26293# The commands to extract the exported symbol list from a shared archive.
26294extract_expsyms_cmds=$lt_extract_expsyms_cmds
26295
26296# Symbols that should not be listed in the preloaded symbols.
26297exclude_expsyms=$lt_exclude_expsyms_GCJ
26298
26299# Symbols that must always be exported.
26300include_expsyms=$lt_include_expsyms_GCJ
26301
26302# ### END LIBTOOL TAG CONFIG: $tagname
26303
26304__EOF__
26305
26306
26307else
26308 # If there is no Makefile yet, we rely on a make rule to execute
26309 # `config.status --recheck' to rerun these tests and create the
26310 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026311 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26312 if test -f "$ltmain_in"; then
26313 test -f Makefile && make "$ltmain"
26314 fi
John Criswell47fdd832003-07-14 16:52:07 +000026315fi
26316
26317
26318ac_ext=c
26319ac_cpp='$CPP $CPPFLAGS'
26320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26322ac_compiler_gnu=$ac_cv_c_compiler_gnu
26323
26324CC="$lt_save_CC"
26325
26326 else
26327 tagname=""
26328 fi
26329 ;;
26330
26331 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026332 ac_ext=c
26333ac_cpp='$CPP $CPPFLAGS'
26334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26336ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026337
26338
26339# Source file extension for RC test sources.
26340ac_ext=rc
26341
26342# Object file extension for compiled RC test sources.
26343objext=o
26344objext_RC=$objext
26345
26346# Code to be used in simple compile tests
26347lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26348
26349# Code to be used in simple link tests
26350lt_simple_link_test_code="$lt_simple_compile_test_code"
26351
26352# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26353
26354# If no C compiler was specified, use CC.
26355LTCC=${LTCC-"$CC"}
26356
Reid Spencera773bd52006-08-04 18:18:08 +000026357# If no C compiler flags were specified, use CFLAGS.
26358LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26359
John Criswell47fdd832003-07-14 16:52:07 +000026360# Allow CC to be a program name with arguments.
26361compiler=$CC
26362
26363
Reid Spencera773bd52006-08-04 18:18:08 +000026364# save warnings/boilerplate of simple test code
26365ac_outfile=conftest.$ac_objext
26366printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26367eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26368_lt_compiler_boilerplate=`cat conftest.err`
26369$rm conftest*
26370
26371ac_outfile=conftest.$ac_objext
26372printf "$lt_simple_link_test_code" >conftest.$ac_ext
26373eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26374_lt_linker_boilerplate=`cat conftest.err`
26375$rm conftest*
26376
26377
John Criswell47fdd832003-07-14 16:52:07 +000026378# Allow CC to be a program name with arguments.
26379lt_save_CC="$CC"
26380CC=${RC-"windres"}
26381compiler=$CC
26382compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026383for cc_temp in $compiler""; do
26384 case $cc_temp in
26385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26387 \-*) ;;
26388 *) break;;
26389 esac
26390done
26391cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26392
John Criswell47fdd832003-07-14 16:52:07 +000026393lt_cv_prog_compiler_c_o_RC=yes
26394
26395# The else clause should only fire when bootstrapping the
26396# libtool distribution, otherwise you forgot to ship ltmain.sh
26397# with your package, and you will get complaints that there are
26398# no rules to generate ltmain.sh.
26399if test -f "$ltmain"; then
26400 # See if we are running on zsh, and set the options which allow our commands through
26401 # without removal of \ escapes.
26402 if test -n "${ZSH_VERSION+set}" ; then
26403 setopt NO_GLOB_SUBST
26404 fi
26405 # Now quote all the things that may contain metacharacters while being
26406 # careful not to overquote the AC_SUBSTed values. We take copies of the
26407 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026408 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 +000026409 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026410 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26411 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26412 deplibs_check_method reload_flag reload_cmds need_locks \
26413 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26414 lt_cv_sys_global_symbol_to_c_name_address \
26415 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26416 old_postinstall_cmds old_postuninstall_cmds \
26417 compiler_RC \
26418 CC_RC \
26419 LD_RC \
26420 lt_prog_compiler_wl_RC \
26421 lt_prog_compiler_pic_RC \
26422 lt_prog_compiler_static_RC \
26423 lt_prog_compiler_no_builtin_flag_RC \
26424 export_dynamic_flag_spec_RC \
26425 thread_safe_flag_spec_RC \
26426 whole_archive_flag_spec_RC \
26427 enable_shared_with_static_runtimes_RC \
26428 old_archive_cmds_RC \
26429 old_archive_from_new_cmds_RC \
26430 predep_objects_RC \
26431 postdep_objects_RC \
26432 predeps_RC \
26433 postdeps_RC \
26434 compiler_lib_search_path_RC \
26435 archive_cmds_RC \
26436 archive_expsym_cmds_RC \
26437 postinstall_cmds_RC \
26438 postuninstall_cmds_RC \
26439 old_archive_from_expsyms_cmds_RC \
26440 allow_undefined_flag_RC \
26441 no_undefined_flag_RC \
26442 export_symbols_cmds_RC \
26443 hardcode_libdir_flag_spec_RC \
26444 hardcode_libdir_flag_spec_ld_RC \
26445 hardcode_libdir_separator_RC \
26446 hardcode_automatic_RC \
26447 module_cmds_RC \
26448 module_expsym_cmds_RC \
26449 lt_cv_prog_compiler_c_o_RC \
26450 exclude_expsyms_RC \
26451 include_expsyms_RC; do
26452
26453 case $var in
26454 old_archive_cmds_RC | \
26455 old_archive_from_new_cmds_RC | \
26456 archive_cmds_RC | \
26457 archive_expsym_cmds_RC | \
26458 module_cmds_RC | \
26459 module_expsym_cmds_RC | \
26460 old_archive_from_expsyms_cmds_RC | \
26461 export_symbols_cmds_RC | \
26462 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26463 postinstall_cmds | postuninstall_cmds | \
26464 old_postinstall_cmds | old_postuninstall_cmds | \
26465 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26466 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026467 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 +000026468 ;;
26469 *)
26470 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26471 ;;
26472 esac
26473 done
26474
26475 case $lt_echo in
26476 *'\$0 --fallback-echo"')
26477 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26478 ;;
26479 esac
26480
26481cfgfile="$ofile"
26482
26483 cat <<__EOF__ >> "$cfgfile"
26484# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26485
26486# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26487
26488# Shell to use when invoking shell scripts.
26489SHELL=$lt_SHELL
26490
26491# Whether or not to build shared libraries.
26492build_libtool_libs=$enable_shared
26493
26494# Whether or not to build static libraries.
26495build_old_libs=$enable_static
26496
26497# Whether or not to add -lc for building shared libraries.
26498build_libtool_need_lc=$archive_cmds_need_lc_RC
26499
26500# Whether or not to disallow shared libs when runtime libs are static
26501allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26502
26503# Whether or not to optimize for fast installation.
26504fast_install=$enable_fast_install
26505
26506# The host system.
26507host_alias=$host_alias
26508host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026509host_os=$host_os
26510
26511# The build system.
26512build_alias=$build_alias
26513build=$build
26514build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026515
26516# An echo program that does not interpret backslashes.
26517echo=$lt_echo
26518
26519# The archiver.
26520AR=$lt_AR
26521AR_FLAGS=$lt_AR_FLAGS
26522
26523# A C compiler.
26524LTCC=$lt_LTCC
26525
Reid Spencera773bd52006-08-04 18:18:08 +000026526# LTCC compiler flags.
26527LTCFLAGS=$lt_LTCFLAGS
26528
John Criswell47fdd832003-07-14 16:52:07 +000026529# A language-specific compiler.
26530CC=$lt_compiler_RC
26531
26532# Is the compiler the GNU C compiler?
26533with_gcc=$GCC_RC
26534
26535# An ERE matcher.
26536EGREP=$lt_EGREP
26537
26538# The linker used to build libraries.
26539LD=$lt_LD_RC
26540
26541# Whether we need hard or soft links.
26542LN_S=$lt_LN_S
26543
26544# A BSD-compatible nm program.
26545NM=$lt_NM
26546
26547# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026548STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026549
26550# Used to examine libraries when file_magic_cmd begins "file"
26551MAGIC_CMD=$MAGIC_CMD
26552
26553# Used on cygwin: DLL creation program.
26554DLLTOOL="$DLLTOOL"
26555
26556# Used on cygwin: object dumper.
26557OBJDUMP="$OBJDUMP"
26558
26559# Used on cygwin: assembler.
26560AS="$AS"
26561
26562# The name of the directory that contains temporary libtool files.
26563objdir=$objdir
26564
26565# How to create reloadable object files.
26566reload_flag=$lt_reload_flag
26567reload_cmds=$lt_reload_cmds
26568
26569# How to pass a linker flag through the compiler.
26570wl=$lt_lt_prog_compiler_wl_RC
26571
26572# Object file suffix (normally "o").
26573objext="$ac_objext"
26574
26575# Old archive suffix (normally "a").
26576libext="$libext"
26577
26578# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026579shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026580
26581# Executable file suffix (normally "").
26582exeext="$exeext"
26583
26584# Additional compiler flags for building library objects.
26585pic_flag=$lt_lt_prog_compiler_pic_RC
26586pic_mode=$pic_mode
26587
26588# What is the maximum length of a command?
26589max_cmd_len=$lt_cv_sys_max_cmd_len
26590
26591# Does compiler simultaneously support -c and -o options?
26592compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26593
Reid Spencera773bd52006-08-04 18:18:08 +000026594# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026595need_locks=$lt_need_locks
26596
26597# Do we need the lib prefix for modules?
26598need_lib_prefix=$need_lib_prefix
26599
26600# Do we need a version for libraries?
26601need_version=$need_version
26602
26603# Whether dlopen is supported.
26604dlopen_support=$enable_dlopen
26605
26606# Whether dlopen of programs is supported.
26607dlopen_self=$enable_dlopen_self
26608
26609# Whether dlopen of statically linked programs is supported.
26610dlopen_self_static=$enable_dlopen_self_static
26611
26612# Compiler flag to prevent dynamic linking.
26613link_static_flag=$lt_lt_prog_compiler_static_RC
26614
26615# Compiler flag to turn off builtin functions.
26616no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26617
26618# Compiler flag to allow reflexive dlopens.
26619export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26620
26621# Compiler flag to generate shared objects directly from archives.
26622whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26623
26624# Compiler flag to generate thread-safe objects.
26625thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26626
26627# Library versioning type.
26628version_type=$version_type
26629
26630# Format of library name prefix.
26631libname_spec=$lt_libname_spec
26632
26633# List of archive names. First name is the real one, the rest are links.
26634# The last name is the one that the linker finds with -lNAME.
26635library_names_spec=$lt_library_names_spec
26636
26637# The coded name of the library, if different from the real name.
26638soname_spec=$lt_soname_spec
26639
26640# Commands used to build and install an old-style archive.
26641RANLIB=$lt_RANLIB
26642old_archive_cmds=$lt_old_archive_cmds_RC
26643old_postinstall_cmds=$lt_old_postinstall_cmds
26644old_postuninstall_cmds=$lt_old_postuninstall_cmds
26645
26646# Create an old-style archive from a shared archive.
26647old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26648
26649# Create a temporary old-style archive to link instead of a shared archive.
26650old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26651
26652# Commands used to build and install a shared archive.
26653archive_cmds=$lt_archive_cmds_RC
26654archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26655postinstall_cmds=$lt_postinstall_cmds
26656postuninstall_cmds=$lt_postuninstall_cmds
26657
26658# Commands used to build a loadable module (assumed same as above if empty)
26659module_cmds=$lt_module_cmds_RC
26660module_expsym_cmds=$lt_module_expsym_cmds_RC
26661
26662# Commands to strip libraries.
26663old_striplib=$lt_old_striplib
26664striplib=$lt_striplib
26665
26666# Dependencies to place before the objects being linked to create a
26667# shared library.
26668predep_objects=$lt_predep_objects_RC
26669
26670# Dependencies to place after the objects being linked to create a
26671# shared library.
26672postdep_objects=$lt_postdep_objects_RC
26673
26674# Dependencies to place before the objects being linked to create a
26675# shared library.
26676predeps=$lt_predeps_RC
26677
26678# Dependencies to place after the objects being linked to create a
26679# shared library.
26680postdeps=$lt_postdeps_RC
26681
26682# The library search path used internally by the compiler when linking
26683# a shared library.
26684compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26685
26686# Method to check whether dependent libraries are shared objects.
26687deplibs_check_method=$lt_deplibs_check_method
26688
26689# Command to use when deplibs_check_method == file_magic.
26690file_magic_cmd=$lt_file_magic_cmd
26691
26692# Flag that allows shared libraries with undefined symbols to be built.
26693allow_undefined_flag=$lt_allow_undefined_flag_RC
26694
26695# Flag that forces no undefined symbols.
26696no_undefined_flag=$lt_no_undefined_flag_RC
26697
26698# Commands used to finish a libtool library installation in a directory.
26699finish_cmds=$lt_finish_cmds
26700
26701# Same as above, but a single script fragment to be evaled but not shown.
26702finish_eval=$lt_finish_eval
26703
26704# Take the output of nm and produce a listing of raw symbols and C names.
26705global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26706
26707# Transform the output of nm in a proper C declaration
26708global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26709
26710# Transform the output of nm in a C name address pair
26711global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26712
26713# This is the shared library runtime path variable.
26714runpath_var=$runpath_var
26715
26716# This is the shared library path variable.
26717shlibpath_var=$shlibpath_var
26718
26719# Is shlibpath searched before the hard-coded library search path?
26720shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26721
26722# How to hardcode a shared library path into an executable.
26723hardcode_action=$hardcode_action_RC
26724
26725# Whether we should hardcode library paths into libraries.
26726hardcode_into_libs=$hardcode_into_libs
26727
26728# Flag to hardcode \$libdir into a binary during linking.
26729# This must work even if \$libdir does not exist.
26730hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26731
26732# If ld is used when linking, flag to hardcode \$libdir into
26733# a binary during linking. This must work even if \$libdir does
26734# not exist.
26735hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26736
26737# Whether we need a single -rpath flag with a separated argument.
26738hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26739
26740# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26741# resulting binary.
26742hardcode_direct=$hardcode_direct_RC
26743
26744# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26745# resulting binary.
26746hardcode_minus_L=$hardcode_minus_L_RC
26747
26748# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26749# the resulting binary.
26750hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26751
26752# Set to yes if building a shared library automatically hardcodes DIR into the library
26753# and all subsequent libraries and executables linked against it.
26754hardcode_automatic=$hardcode_automatic_RC
26755
26756# Variables whose values should be saved in libtool wrapper scripts and
26757# restored at relink time.
26758variables_saved_for_relink="$variables_saved_for_relink"
26759
26760# Whether libtool must link a program against all its dependency libraries.
26761link_all_deplibs=$link_all_deplibs_RC
26762
26763# Compile-time system search path for libraries
26764sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26765
26766# Run-time system search path for libraries
26767sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26768
26769# Fix the shell variable \$srcfile for the compiler.
26770fix_srcfile_path="$fix_srcfile_path_RC"
26771
26772# Set to yes if exported symbols are required.
26773always_export_symbols=$always_export_symbols_RC
26774
26775# The commands to list exported symbols.
26776export_symbols_cmds=$lt_export_symbols_cmds_RC
26777
26778# The commands to extract the exported symbol list from a shared archive.
26779extract_expsyms_cmds=$lt_extract_expsyms_cmds
26780
26781# Symbols that should not be listed in the preloaded symbols.
26782exclude_expsyms=$lt_exclude_expsyms_RC
26783
26784# Symbols that must always be exported.
26785include_expsyms=$lt_include_expsyms_RC
26786
26787# ### END LIBTOOL TAG CONFIG: $tagname
26788
26789__EOF__
26790
26791
26792else
26793 # If there is no Makefile yet, we rely on a make rule to execute
26794 # `config.status --recheck' to rerun these tests and create the
26795 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026796 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26797 if test -f "$ltmain_in"; then
26798 test -f Makefile && make "$ltmain"
26799 fi
John Criswell47fdd832003-07-14 16:52:07 +000026800fi
26801
26802
26803ac_ext=c
26804ac_cpp='$CPP $CPPFLAGS'
26805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26807ac_compiler_gnu=$ac_cv_c_compiler_gnu
26808
26809CC="$lt_save_CC"
26810
26811 ;;
26812
26813 *)
26814 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26815echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26816 { (exit 1); exit 1; }; }
26817 ;;
26818 esac
26819
26820 # Append the new tag name to the list of available tags.
26821 if test -n "$tagname" ; then
26822 available_tags="$available_tags $tagname"
26823 fi
26824 fi
26825 done
26826 IFS="$lt_save_ifs"
26827
26828 # Now substitute the updated list of available tags.
26829 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26830 mv "${ofile}T" "$ofile"
26831 chmod +x "$ofile"
26832 else
26833 rm -f "${ofile}T"
26834 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26835echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26836 { (exit 1); exit 1; }; }
26837 fi
26838fi
John Criswell7a73b802003-06-30 21:59:07 +000026839
26840
26841
26842# This can be used to rebuild libtool when needed
26843LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26844
26845# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026846LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026847
26848# Prevent multiple expansion
26849
26850
26851
John Criswell47fdd832003-07-14 16:52:07 +000026852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026869
Reid Spencer582a23c2004-12-29 07:07:57 +000026870if test "$lt_cv_dlopen_self" = "yes" ; then
26871
26872cat >>confdefs.h <<\_ACEOF
26873#define CAN_DLOPEN_SELF 1
26874_ACEOF
26875
26876fi
26877
Douglas Gregor01746742009-05-11 18:05:52 +000026878
Reid Spencer7931a782004-12-27 06:15:02 +000026879if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026880 LLVMGCC="llvm-gcc${EXEEXT}"
26881 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026882 LLVMGCCCOMMAND="$LLVMGCC"
26883 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026884 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26885
26886 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26887
Reid Spencerc84492c2005-06-02 22:34:49 +000026888 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26889set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026890{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026892if test "${ac_cv_path_LLVMGCC+set}" = set; then
26893 echo $ECHO_N "(cached) $ECHO_C" >&6
26894else
26895 case $LLVMGCC in
26896 [\\/]* | ?:[\\/]*)
26897 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26898 ;;
26899 *)
26900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26901for as_dir in $PATH
26902do
26903 IFS=$as_save_IFS
26904 test -z "$as_dir" && as_dir=.
26905 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026906 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 +000026907 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26909 break 2
26910 fi
26911done
26912done
Reid Spencera773bd52006-08-04 18:18:08 +000026913IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026914
Reid Spencer59473af2004-12-25 07:31:29 +000026915 ;;
26916esac
26917fi
26918LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026919if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026920 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26921echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026922else
Reid Spencera773bd52006-08-04 18:18:08 +000026923 { echo "$as_me:$LINENO: result: no" >&5
26924echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026925fi
26926
Reid Spencera773bd52006-08-04 18:18:08 +000026927
Reid Spencerc84492c2005-06-02 22:34:49 +000026928 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26929set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026932if test "${ac_cv_path_LLVMGXX+set}" = set; then
26933 echo $ECHO_N "(cached) $ECHO_C" >&6
26934else
26935 case $LLVMGXX in
26936 [\\/]* | ?:[\\/]*)
26937 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26938 ;;
26939 *)
26940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26941for as_dir in $PATH
26942do
26943 IFS=$as_save_IFS
26944 test -z "$as_dir" && as_dir=.
26945 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026946 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 +000026947 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26949 break 2
26950 fi
26951done
26952done
Reid Spencera773bd52006-08-04 18:18:08 +000026953IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026954
Reid Spencer59473af2004-12-25 07:31:29 +000026955 ;;
26956esac
26957fi
26958LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026959if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026960 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26961echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026962else
Reid Spencera773bd52006-08-04 18:18:08 +000026963 { echo "$as_me:$LINENO: result: no" >&5
26964echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026965fi
26966
Reid Spencera773bd52006-08-04 18:18:08 +000026967
Reid Spencer59473af2004-12-25 07:31:29 +000026968else
Devang Patel5d28b882007-12-04 22:54:47 +000026969 if test -z "$LLVMGCC"; then
26970 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026971 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000026972 fi
26973 if test -z "$LLVMGXX"; then
26974 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026975 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000026976 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026977
Reid Spencer59473af2004-12-25 07:31:29 +000026978 LLVMGCC=$LLVMGCC
26979
26980 LLVMGXX=$LLVMGXX
26981
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026982 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26983
26984 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26985
Reid Spencer59473af2004-12-25 07:31:29 +000026986fi
26987
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026988
Reid Spencera773bd52006-08-04 18:18:08 +000026989{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26990echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026991
Reid Spencer86901802004-12-08 23:07:27 +000026992ICC=no
26993IXX=no
26994case $CC in
26995 icc*|icpc*)
26996 ICC=yes
26997 IXX=yes
26998 ;;
26999 *)
27000 ;;
27001esac
27002
Duraid Madina937c60a2006-02-15 07:57:42 +000027003if test "$GCC" != "yes" && test "$ICC" != "yes"
27004then
27005 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27006echo "$as_me: error: gcc|icc required but not found" >&2;}
27007 { (exit 1); exit 1; }; }
27008fi
27009
27010if test "$GXX" != "yes" && test "$IXX" != "yes"
27011then
27012 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27013echo "$as_me: error: g++|icc required but not found" >&2;}
27014 { (exit 1); exit 1; }; }
27015fi
27016
Reid Spencer86901802004-12-08 23:07:27 +000027017if test "$GCC" = "yes"
27018then
Chris Lattner399c7c72008-02-05 19:43:53 +000027019 cat >conftest.$ac_ext <<_ACEOF
27020#if !defined(__GNUC__) || __GNUC__ < 3
27021#error Unsupported GCC version
27022#endif
27023
27024_ACEOF
27025rm -f conftest.$ac_objext
27026if { (ac_try="$ac_compile"
27027case "(($ac_try" in
27028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27029 *) ac_try_echo=$ac_try;;
27030esac
27031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27032 (eval "$ac_compile") 2>conftest.er1
27033 ac_status=$?
27034 grep -v '^ *+' conftest.er1 >conftest.err
27035 rm -f conftest.er1
27036 cat conftest.err >&5
27037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027038 (exit $ac_status); } &&
27039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27040 { (case "(($ac_try" in
27041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042 *) ac_try_echo=$ac_try;;
27043esac
27044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27045 (eval "$ac_try") 2>&5
27046 ac_status=$?
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); }; } &&
27049 { ac_try='test -s conftest.$ac_objext'
27050 { (case "(($ac_try" in
27051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27052 *) ac_try_echo=$ac_try;;
27053esac
27054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27055 (eval "$ac_try") 2>&5
27056 ac_status=$?
27057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27058 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027059 :
27060else
27061 echo "$as_me: failed program was:" >&5
27062sed 's/^/| /' conftest.$ac_ext >&5
27063
27064 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027065echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27066 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027067fi
27068
27069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027070fi
27071
27072if test -z "$llvm_cv_gnu_make_command"
27073then
27074 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27075echo "$as_me: error: GNU Make required but not found" >&2;}
27076 { (exit 1); exit 1; }; }
27077fi
27078
Reid Spencera773bd52006-08-04 18:18:08 +000027079{ echo "$as_me:$LINENO: result: ok" >&5
27080echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027081
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027082
John Criswell7a73b802003-06-30 21:59:07 +000027083
Reid Spencera773bd52006-08-04 18:18:08 +000027084{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27085echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027086if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27087 echo $ECHO_N "(cached) $ECHO_C" >&6
27088else
27089 ac_check_lib_save_LIBS=$LIBS
27090LIBS="-lelf $LIBS"
27091cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027092/* confdefs.h. */
27093_ACEOF
27094cat confdefs.h >>conftest.$ac_ext
27095cat >>conftest.$ac_ext <<_ACEOF
27096/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027097
Reid Spencera773bd52006-08-04 18:18:08 +000027098/* Override any GCC internal prototype to avoid an error.
27099 Use char because int might match the return type of a GCC
27100 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027101#ifdef __cplusplus
27102extern "C"
27103#endif
John Criswell7a73b802003-06-30 21:59:07 +000027104char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027105int
27106main ()
27107{
Reid Spencera773bd52006-08-04 18:18:08 +000027108return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027109 ;
27110 return 0;
27111}
27112_ACEOF
27113rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027114if { (ac_try="$ac_link"
27115case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27118esac
27119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027121 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027122 grep -v '^ *+' conftest.er1 >conftest.err
27123 rm -f conftest.er1
27124 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027126 (exit $ac_status); } &&
27127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27128 { (case "(($ac_try" in
27129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130 *) ac_try_echo=$ac_try;;
27131esac
27132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133 (eval "$ac_try") 2>&5
27134 ac_status=$?
27135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27136 (exit $ac_status); }; } &&
27137 { ac_try='test -s conftest$ac_exeext'
27138 { (case "(($ac_try" in
27139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140 *) ac_try_echo=$ac_try;;
27141esac
27142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27143 (eval "$ac_try") 2>&5
27144 ac_status=$?
27145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027147 ac_cv_lib_elf_elf_begin=yes
27148else
27149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027150sed 's/^/| /' conftest.$ac_ext >&5
27151
Reid Spencera773bd52006-08-04 18:18:08 +000027152 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027153fi
Reid Spencera773bd52006-08-04 18:18:08 +000027154
Bill Wendlingebcceee2009-04-18 11:20:33 +000027155rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027156 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027157LIBS=$ac_check_lib_save_LIBS
27158fi
Reid Spencera773bd52006-08-04 18:18:08 +000027159{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27160echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027161if test $ac_cv_lib_elf_elf_begin = yes; then
27162 cat >>confdefs.h <<_ACEOF
27163#define HAVE_LIBELF 1
27164_ACEOF
27165
27166 LIBS="-lelf $LIBS"
27167
27168fi
27169
27170
Reid Spencera773bd52006-08-04 18:18:08 +000027171{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27172echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027173if test "${ac_cv_lib_m_sin+set}" = set; then
27174 echo $ECHO_N "(cached) $ECHO_C" >&6
27175else
27176 ac_check_lib_save_LIBS=$LIBS
27177LIBS="-lm $LIBS"
27178cat >conftest.$ac_ext <<_ACEOF
27179/* confdefs.h. */
27180_ACEOF
27181cat confdefs.h >>conftest.$ac_ext
27182cat >>conftest.$ac_ext <<_ACEOF
27183/* end confdefs.h. */
27184
Reid Spencera773bd52006-08-04 18:18:08 +000027185/* Override any GCC internal prototype to avoid an error.
27186 Use char because int might match the return type of a GCC
27187 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027188#ifdef __cplusplus
27189extern "C"
27190#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027191char sin ();
27192int
27193main ()
27194{
Reid Spencera773bd52006-08-04 18:18:08 +000027195return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027196 ;
27197 return 0;
27198}
27199_ACEOF
27200rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027201if { (ac_try="$ac_link"
27202case "(($ac_try" in
27203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204 *) ac_try_echo=$ac_try;;
27205esac
27206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27207 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027208 ac_status=$?
27209 grep -v '^ *+' conftest.er1 >conftest.err
27210 rm -f conftest.er1
27211 cat conftest.err >&5
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027213 (exit $ac_status); } &&
27214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27215 { (case "(($ac_try" in
27216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217 *) ac_try_echo=$ac_try;;
27218esac
27219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27220 (eval "$ac_try") 2>&5
27221 ac_status=$?
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); }; } &&
27224 { ac_try='test -s conftest$ac_exeext'
27225 { (case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27228esac
27229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230 (eval "$ac_try") 2>&5
27231 ac_status=$?
27232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027234 ac_cv_lib_m_sin=yes
27235else
27236 echo "$as_me: failed program was:" >&5
27237sed 's/^/| /' conftest.$ac_ext >&5
27238
Reid Spencera773bd52006-08-04 18:18:08 +000027239 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027240fi
Reid Spencera773bd52006-08-04 18:18:08 +000027241
Bill Wendlingebcceee2009-04-18 11:20:33 +000027242rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027243 conftest$ac_exeext conftest.$ac_ext
27244LIBS=$ac_check_lib_save_LIBS
27245fi
Reid Spencera773bd52006-08-04 18:18:08 +000027246{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27247echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027248if test $ac_cv_lib_m_sin = yes; then
27249 cat >>confdefs.h <<_ACEOF
27250#define HAVE_LIBM 1
27251_ACEOF
27252
27253 LIBS="-lm $LIBS"
27254
27255fi
27256
Jeff Cohen28783c32007-01-12 18:22:38 +000027257if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027258
Reid Spencera773bd52006-08-04 18:18:08 +000027259{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27260echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027261if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027262 echo $ECHO_N "(cached) $ECHO_C" >&6
27263else
27264 ac_check_lib_save_LIBS=$LIBS
27265LIBS="-limagehlp $LIBS"
27266cat >conftest.$ac_ext <<_ACEOF
27267/* confdefs.h. */
27268_ACEOF
27269cat confdefs.h >>conftest.$ac_ext
27270cat >>conftest.$ac_ext <<_ACEOF
27271/* end confdefs.h. */
27272
Reid Spencer48fdf912006-06-01 19:03:21 +000027273
Reid Spencer484fc8e2006-06-01 16:55:59 +000027274int
27275main ()
27276{
Reid Spencera773bd52006-08-04 18:18:08 +000027277return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027278 ;
27279 return 0;
27280}
27281_ACEOF
27282rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027283if { (ac_try="$ac_link"
27284case "(($ac_try" in
27285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27286 *) ac_try_echo=$ac_try;;
27287esac
27288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27289 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027290 ac_status=$?
27291 grep -v '^ *+' conftest.er1 >conftest.err
27292 rm -f conftest.er1
27293 cat conftest.err >&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027295 (exit $ac_status); } &&
27296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27297 { (case "(($ac_try" in
27298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299 *) ac_try_echo=$ac_try;;
27300esac
27301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302 (eval "$ac_try") 2>&5
27303 ac_status=$?
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); }; } &&
27306 { ac_try='test -s conftest$ac_exeext'
27307 { (case "(($ac_try" in
27308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27309 *) ac_try_echo=$ac_try;;
27310esac
27311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27312 (eval "$ac_try") 2>&5
27313 ac_status=$?
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027316 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027317else
27318 echo "$as_me: failed program was:" >&5
27319sed 's/^/| /' conftest.$ac_ext >&5
27320
Reid Spencera773bd52006-08-04 18:18:08 +000027321 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027322fi
Reid Spencera773bd52006-08-04 18:18:08 +000027323
Bill Wendlingebcceee2009-04-18 11:20:33 +000027324rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027325 conftest$ac_exeext conftest.$ac_ext
27326LIBS=$ac_check_lib_save_LIBS
27327fi
Reid Spencera773bd52006-08-04 18:18:08 +000027328{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27329echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027330if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027331 cat >>confdefs.h <<_ACEOF
27332#define HAVE_LIBIMAGEHLP 1
27333_ACEOF
27334
27335 LIBS="-limagehlp $LIBS"
27336
27337fi
27338
27339
Reid Spencera773bd52006-08-04 18:18:08 +000027340{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27341echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027342if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027343 echo $ECHO_N "(cached) $ECHO_C" >&6
27344else
27345 ac_check_lib_save_LIBS=$LIBS
27346LIBS="-lpsapi $LIBS"
27347cat >conftest.$ac_ext <<_ACEOF
27348/* confdefs.h. */
27349_ACEOF
27350cat confdefs.h >>conftest.$ac_ext
27351cat >>conftest.$ac_ext <<_ACEOF
27352/* end confdefs.h. */
27353
Reid Spencer48fdf912006-06-01 19:03:21 +000027354
Reid Spencer484fc8e2006-06-01 16:55:59 +000027355int
27356main ()
27357{
Reid Spencera773bd52006-08-04 18:18:08 +000027358return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027359 ;
27360 return 0;
27361}
27362_ACEOF
27363rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027364if { (ac_try="$ac_link"
27365case "(($ac_try" in
27366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27367 *) ac_try_echo=$ac_try;;
27368esac
27369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27370 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027371 ac_status=$?
27372 grep -v '^ *+' conftest.er1 >conftest.err
27373 rm -f conftest.er1
27374 cat conftest.err >&5
27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027376 (exit $ac_status); } &&
27377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27378 { (case "(($ac_try" in
27379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27380 *) ac_try_echo=$ac_try;;
27381esac
27382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27383 (eval "$ac_try") 2>&5
27384 ac_status=$?
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; } &&
27387 { ac_try='test -s conftest$ac_exeext'
27388 { (case "(($ac_try" in
27389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27390 *) ac_try_echo=$ac_try;;
27391esac
27392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27393 (eval "$ac_try") 2>&5
27394 ac_status=$?
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027397 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027398else
27399 echo "$as_me: failed program was:" >&5
27400sed 's/^/| /' conftest.$ac_ext >&5
27401
Reid Spencera773bd52006-08-04 18:18:08 +000027402 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027403fi
Reid Spencera773bd52006-08-04 18:18:08 +000027404
Bill Wendlingebcceee2009-04-18 11:20:33 +000027405rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027406 conftest$ac_exeext conftest.$ac_ext
27407LIBS=$ac_check_lib_save_LIBS
27408fi
Reid Spencera773bd52006-08-04 18:18:08 +000027409{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27410echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027411if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027412 cat >>confdefs.h <<_ACEOF
27413#define HAVE_LIBPSAPI 1
27414_ACEOF
27415
27416 LIBS="-lpsapi $LIBS"
27417
27418fi
27419
27420fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027421
Reid Spencera773bd52006-08-04 18:18:08 +000027422{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27423echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027424if test "${ac_cv_search_dlopen+set}" = set; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27426else
27427 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027428cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027429/* confdefs.h. */
27430_ACEOF
27431cat confdefs.h >>conftest.$ac_ext
27432cat >>conftest.$ac_ext <<_ACEOF
27433/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027434
Reid Spencera773bd52006-08-04 18:18:08 +000027435/* Override any GCC internal prototype to avoid an error.
27436 Use char because int might match the return type of a GCC
27437 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027438#ifdef __cplusplus
27439extern "C"
27440#endif
John Criswell7a73b802003-06-30 21:59:07 +000027441char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027442int
27443main ()
27444{
Reid Spencera773bd52006-08-04 18:18:08 +000027445return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027446 ;
27447 return 0;
27448}
27449_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027450for ac_lib in '' dl; do
27451 if test -z "$ac_lib"; then
27452 ac_res="none required"
27453 else
27454 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027456 fi
27457 rm -f conftest.$ac_objext conftest$ac_exeext
27458if { (ac_try="$ac_link"
27459case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27462esac
27463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027465 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027466 grep -v '^ *+' conftest.er1 >conftest.err
27467 rm -f conftest.er1
27468 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027470 (exit $ac_status); } &&
27471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27472 { (case "(($ac_try" in
27473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474 *) ac_try_echo=$ac_try;;
27475esac
27476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477 (eval "$ac_try") 2>&5
27478 ac_status=$?
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; } &&
27481 { ac_try='test -s conftest$ac_exeext'
27482 { (case "(($ac_try" in
27483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27485esac
27486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487 (eval "$ac_try") 2>&5
27488 ac_status=$?
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027491 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027492else
27493 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027494sed 's/^/| /' conftest.$ac_ext >&5
27495
Reid Spencera773bd52006-08-04 18:18:08 +000027496
John Criswell7a73b802003-06-30 21:59:07 +000027497fi
Reid Spencera773bd52006-08-04 18:18:08 +000027498
Bill Wendlingebcceee2009-04-18 11:20:33 +000027499rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027500 conftest$ac_exeext
27501 if test "${ac_cv_search_dlopen+set}" = set; then
27502 break
John Criswell7a73b802003-06-30 21:59:07 +000027503fi
Reid Spencera773bd52006-08-04 18:18:08 +000027504done
27505if test "${ac_cv_search_dlopen+set}" = set; then
27506 :
27507else
27508 ac_cv_search_dlopen=no
27509fi
27510rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027511LIBS=$ac_func_search_save_LIBS
27512fi
Reid Spencera773bd52006-08-04 18:18:08 +000027513{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27514echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27515ac_res=$ac_cv_search_dlopen
27516if test "$ac_res" != no; then
27517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027518
27519cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027520#define HAVE_DLOPEN 1
27521_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027522
27523else
Brian Gaekec45be042003-10-07 06:01:34 +000027524 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27525echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027526fi
27527
27528
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027529if test "$llvm_cv_enable_libffi" = "yes" ; then
27530 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027531echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27532if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027533 echo $ECHO_N "(cached) $ECHO_C" >&6
27534else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027535 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027536cat >conftest.$ac_ext <<_ACEOF
27537/* confdefs.h. */
27538_ACEOF
27539cat confdefs.h >>conftest.$ac_ext
27540cat >>conftest.$ac_ext <<_ACEOF
27541/* end confdefs.h. */
27542
27543/* Override any GCC internal prototype to avoid an error.
27544 Use char because int might match the return type of a GCC
27545 builtin and then its argument prototype would still apply. */
27546#ifdef __cplusplus
27547extern "C"
27548#endif
27549char ffi_call ();
27550int
27551main ()
27552{
27553return ffi_call ();
27554 ;
27555 return 0;
27556}
27557_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027558for ac_lib in '' ffi; do
27559 if test -z "$ac_lib"; then
27560 ac_res="none required"
27561 else
27562 ac_res=-l$ac_lib
27563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27564 fi
27565 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027566if { (ac_try="$ac_link"
27567case "(($ac_try" in
27568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569 *) ac_try_echo=$ac_try;;
27570esac
27571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572 (eval "$ac_link") 2>conftest.er1
27573 ac_status=$?
27574 grep -v '^ *+' conftest.er1 >conftest.err
27575 rm -f conftest.er1
27576 cat conftest.err >&5
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027578 (exit $ac_status); } &&
27579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27580 { (case "(($ac_try" in
27581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27582 *) ac_try_echo=$ac_try;;
27583esac
27584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27585 (eval "$ac_try") 2>&5
27586 ac_status=$?
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; } &&
27589 { ac_try='test -s conftest$ac_exeext'
27590 { (case "(($ac_try" in
27591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27592 *) ac_try_echo=$ac_try;;
27593esac
27594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27595 (eval "$ac_try") 2>&5
27596 ac_status=$?
27597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027599 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027600else
27601 echo "$as_me: failed program was:" >&5
27602sed 's/^/| /' conftest.$ac_ext >&5
27603
Nick Lewycky267fddb2009-04-13 04:26:27 +000027604
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027605fi
27606
Bill Wendlingebcceee2009-04-18 11:20:33 +000027607rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027608 conftest$ac_exeext
27609 if test "${ac_cv_search_ffi_call+set}" = set; then
27610 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027611fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027612done
27613if test "${ac_cv_search_ffi_call+set}" = set; then
27614 :
27615else
27616 ac_cv_search_ffi_call=no
27617fi
27618rm conftest.$ac_ext
27619LIBS=$ac_func_search_save_LIBS
27620fi
27621{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27622echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27623ac_res=$ac_cv_search_ffi_call
27624if test "$ac_res" != no; then
27625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27626
27627cat >>confdefs.h <<\_ACEOF
27628#define HAVE_FFI_CALL 1
27629_ACEOF
27630
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027631else
27632 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27633echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27634fi
27635
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027636fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027637
Reid Spencera773bd52006-08-04 18:18:08 +000027638{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27639echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027640if test "${ac_cv_search_mallinfo+set}" = set; then
27641 echo $ECHO_N "(cached) $ECHO_C" >&6
27642else
27643 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027644cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027645/* confdefs.h. */
27646_ACEOF
27647cat confdefs.h >>conftest.$ac_ext
27648cat >>conftest.$ac_ext <<_ACEOF
27649/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027650
Reid Spencera773bd52006-08-04 18:18:08 +000027651/* Override any GCC internal prototype to avoid an error.
27652 Use char because int might match the return type of a GCC
27653 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027654#ifdef __cplusplus
27655extern "C"
27656#endif
John Criswell7a73b802003-06-30 21:59:07 +000027657char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027658int
27659main ()
27660{
Reid Spencera773bd52006-08-04 18:18:08 +000027661return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027662 ;
27663 return 0;
27664}
27665_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027666for ac_lib in '' malloc; do
27667 if test -z "$ac_lib"; then
27668 ac_res="none required"
27669 else
27670 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027672 fi
27673 rm -f conftest.$ac_objext conftest$ac_exeext
27674if { (ac_try="$ac_link"
27675case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27678esac
27679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027681 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027682 grep -v '^ *+' conftest.er1 >conftest.err
27683 rm -f conftest.er1
27684 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027686 (exit $ac_status); } &&
27687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27688 { (case "(($ac_try" in
27689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27690 *) ac_try_echo=$ac_try;;
27691esac
27692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27693 (eval "$ac_try") 2>&5
27694 ac_status=$?
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; } &&
27697 { ac_try='test -s conftest$ac_exeext'
27698 { (case "(($ac_try" in
27699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27700 *) ac_try_echo=$ac_try;;
27701esac
27702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27703 (eval "$ac_try") 2>&5
27704 ac_status=$?
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027707 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027708else
27709 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027710sed 's/^/| /' conftest.$ac_ext >&5
27711
Reid Spencera773bd52006-08-04 18:18:08 +000027712
John Criswell7a73b802003-06-30 21:59:07 +000027713fi
Reid Spencera773bd52006-08-04 18:18:08 +000027714
Bill Wendlingebcceee2009-04-18 11:20:33 +000027715rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027716 conftest$ac_exeext
27717 if test "${ac_cv_search_mallinfo+set}" = set; then
27718 break
John Criswell7a73b802003-06-30 21:59:07 +000027719fi
Reid Spencera773bd52006-08-04 18:18:08 +000027720done
27721if test "${ac_cv_search_mallinfo+set}" = set; then
27722 :
27723else
27724 ac_cv_search_mallinfo=no
27725fi
27726rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027727LIBS=$ac_func_search_save_LIBS
27728fi
Reid Spencera773bd52006-08-04 18:18:08 +000027729{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27730echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27731ac_res=$ac_cv_search_mallinfo
27732if test "$ac_res" != no; then
27733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027734
27735cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027736#define HAVE_MALLINFO 1
27737_ACEOF
27738
27739fi
27740
27741
Reid Spencer0a262ba2005-08-24 10:07:20 +000027742if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027743
Reid Spencera773bd52006-08-04 18:18:08 +000027744{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27745echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027746if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27747 echo $ECHO_N "(cached) $ECHO_C" >&6
27748else
27749 ac_check_lib_save_LIBS=$LIBS
27750LIBS="-lpthread $LIBS"
27751cat >conftest.$ac_ext <<_ACEOF
27752/* confdefs.h. */
27753_ACEOF
27754cat confdefs.h >>conftest.$ac_ext
27755cat >>conftest.$ac_ext <<_ACEOF
27756/* end confdefs.h. */
27757
Reid Spencera773bd52006-08-04 18:18:08 +000027758/* Override any GCC internal prototype to avoid an error.
27759 Use char because int might match the return type of a GCC
27760 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027761#ifdef __cplusplus
27762extern "C"
27763#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027764char pthread_mutex_init ();
27765int
27766main ()
27767{
Reid Spencera773bd52006-08-04 18:18:08 +000027768return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027769 ;
27770 return 0;
27771}
27772_ACEOF
27773rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027774if { (ac_try="$ac_link"
27775case "(($ac_try" in
27776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27777 *) ac_try_echo=$ac_try;;
27778esac
27779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27780 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027781 ac_status=$?
27782 grep -v '^ *+' conftest.er1 >conftest.err
27783 rm -f conftest.er1
27784 cat conftest.err >&5
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027786 (exit $ac_status); } &&
27787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27788 { (case "(($ac_try" in
27789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790 *) ac_try_echo=$ac_try;;
27791esac
27792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793 (eval "$ac_try") 2>&5
27794 ac_status=$?
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; } &&
27797 { ac_try='test -s conftest$ac_exeext'
27798 { (case "(($ac_try" in
27799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800 *) ac_try_echo=$ac_try;;
27801esac
27802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803 (eval "$ac_try") 2>&5
27804 ac_status=$?
27805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027807 ac_cv_lib_pthread_pthread_mutex_init=yes
27808else
27809 echo "$as_me: failed program was:" >&5
27810sed 's/^/| /' conftest.$ac_ext >&5
27811
Reid Spencera773bd52006-08-04 18:18:08 +000027812 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027813fi
Reid Spencera773bd52006-08-04 18:18:08 +000027814
Bill Wendlingebcceee2009-04-18 11:20:33 +000027815rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027816 conftest$ac_exeext conftest.$ac_ext
27817LIBS=$ac_check_lib_save_LIBS
27818fi
Reid Spencera773bd52006-08-04 18:18:08 +000027819{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27820echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027821if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27822 cat >>confdefs.h <<_ACEOF
27823#define HAVE_LIBPTHREAD 1
27824_ACEOF
27825
27826 LIBS="-lpthread $LIBS"
27827
27828fi
27829
Reid Spencera773bd52006-08-04 18:18:08 +000027830 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27831echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027832if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27833 echo $ECHO_N "(cached) $ECHO_C" >&6
27834else
27835 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027836cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027837/* confdefs.h. */
27838_ACEOF
27839cat confdefs.h >>conftest.$ac_ext
27840cat >>conftest.$ac_ext <<_ACEOF
27841/* end confdefs.h. */
27842
Reid Spencera773bd52006-08-04 18:18:08 +000027843/* Override any GCC internal prototype to avoid an error.
27844 Use char because int might match the return type of a GCC
27845 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027846#ifdef __cplusplus
27847extern "C"
27848#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027849char pthread_mutex_lock ();
27850int
27851main ()
27852{
Reid Spencera773bd52006-08-04 18:18:08 +000027853return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027854 ;
27855 return 0;
27856}
27857_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027858for ac_lib in '' pthread; do
27859 if test -z "$ac_lib"; then
27860 ac_res="none required"
27861 else
27862 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027863 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027864 fi
27865 rm -f conftest.$ac_objext conftest$ac_exeext
27866if { (ac_try="$ac_link"
27867case "(($ac_try" in
27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869 *) ac_try_echo=$ac_try;;
27870esac
27871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027873 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027874 grep -v '^ *+' conftest.er1 >conftest.err
27875 rm -f conftest.er1
27876 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027878 (exit $ac_status); } &&
27879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27880 { (case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27883esac
27884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_try") 2>&5
27886 ac_status=$?
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; } &&
27889 { ac_try='test -s conftest$ac_exeext'
27890 { (case "(($ac_try" in
27891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892 *) ac_try_echo=$ac_try;;
27893esac
27894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895 (eval "$ac_try") 2>&5
27896 ac_status=$?
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027899 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027900else
27901 echo "$as_me: failed program was:" >&5
27902sed 's/^/| /' conftest.$ac_ext >&5
27903
Reid Spencera773bd52006-08-04 18:18:08 +000027904
Brian Gaeke5f268f72003-12-05 19:29:01 +000027905fi
Reid Spencera773bd52006-08-04 18:18:08 +000027906
Bill Wendlingebcceee2009-04-18 11:20:33 +000027907rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027908 conftest$ac_exeext
27909 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27910 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027911fi
Reid Spencera773bd52006-08-04 18:18:08 +000027912done
27913if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27914 :
27915else
27916 ac_cv_search_pthread_mutex_lock=no
27917fi
27918rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027919LIBS=$ac_func_search_save_LIBS
27920fi
Reid Spencera773bd52006-08-04 18:18:08 +000027921{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27922echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27923ac_res=$ac_cv_search_pthread_mutex_lock
27924if test "$ac_res" != no; then
27925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027926
John Criswell40468462004-09-24 21:19:06 +000027927cat >>confdefs.h <<\_ACEOF
27928#define HAVE_PTHREAD_MUTEX_LOCK 1
27929_ACEOF
27930
27931fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027932
Owen Andersonde8aed22009-06-16 18:20:20 +000027933 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27934echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27935if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27936 echo $ECHO_N "(cached) $ECHO_C" >&6
27937else
27938 ac_func_search_save_LIBS=$LIBS
27939cat >conftest.$ac_ext <<_ACEOF
27940/* confdefs.h. */
27941_ACEOF
27942cat confdefs.h >>conftest.$ac_ext
27943cat >>conftest.$ac_ext <<_ACEOF
27944/* end confdefs.h. */
27945
27946/* Override any GCC internal prototype to avoid an error.
27947 Use char because int might match the return type of a GCC
27948 builtin and then its argument prototype would still apply. */
27949#ifdef __cplusplus
27950extern "C"
27951#endif
27952char pthread_rwlock_init ();
27953int
27954main ()
27955{
27956return pthread_rwlock_init ();
27957 ;
27958 return 0;
27959}
27960_ACEOF
27961for ac_lib in '' pthread; do
27962 if test -z "$ac_lib"; then
27963 ac_res="none required"
27964 else
27965 ac_res=-l$ac_lib
27966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27967 fi
27968 rm -f conftest.$ac_objext conftest$ac_exeext
27969if { (ac_try="$ac_link"
27970case "(($ac_try" in
27971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27973esac
27974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975 (eval "$ac_link") 2>conftest.er1
27976 ac_status=$?
27977 grep -v '^ *+' conftest.er1 >conftest.err
27978 rm -f conftest.er1
27979 cat conftest.err >&5
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); } &&
27982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27983 { (case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27986esac
27987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
27989 ac_status=$?
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; } &&
27992 { ac_try='test -s conftest$ac_exeext'
27993 { (case "(($ac_try" in
27994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27995 *) ac_try_echo=$ac_try;;
27996esac
27997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27998 (eval "$ac_try") 2>&5
27999 ac_status=$?
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); }; }; then
28002 ac_cv_search_pthread_rwlock_init=$ac_res
28003else
28004 echo "$as_me: failed program was:" >&5
28005sed 's/^/| /' conftest.$ac_ext >&5
28006
28007
28008fi
28009
28010rm -f core conftest.err conftest.$ac_objext \
28011 conftest$ac_exeext
28012 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28013 break
28014fi
28015done
28016if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28017 :
28018else
28019 ac_cv_search_pthread_rwlock_init=no
28020fi
28021rm conftest.$ac_ext
28022LIBS=$ac_func_search_save_LIBS
28023fi
28024{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28025echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28026ac_res=$ac_cv_search_pthread_rwlock_init
28027if test "$ac_res" != no; then
28028 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28029
28030cat >>confdefs.h <<\_ACEOF
28031#define HAVE_PTHREAD_RWLOCK_INIT 1
28032_ACEOF
28033
28034fi
28035
Reid Spencer0a262ba2005-08-24 10:07:20 +000028036fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028037
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028038
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028039# Check whether --with-udis86 was given.
28040if test "${with_udis86+set}" = set; then
28041 withval=$with_udis86;
28042 USE_UDIS86=1
28043
28044 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028045 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028046 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28047 esac
28048
28049{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28050echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28051if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28052 echo $ECHO_N "(cached) $ECHO_C" >&6
28053else
28054 ac_check_lib_save_LIBS=$LIBS
28055LIBS="-ludis86 $LIBS"
28056cat >conftest.$ac_ext <<_ACEOF
28057/* confdefs.h. */
28058_ACEOF
28059cat confdefs.h >>conftest.$ac_ext
28060cat >>conftest.$ac_ext <<_ACEOF
28061/* end confdefs.h. */
28062
28063/* Override any GCC internal prototype to avoid an error.
28064 Use char because int might match the return type of a GCC
28065 builtin and then its argument prototype would still apply. */
28066#ifdef __cplusplus
28067extern "C"
28068#endif
28069char ud_init ();
28070int
28071main ()
28072{
28073return ud_init ();
28074 ;
28075 return 0;
28076}
28077_ACEOF
28078rm -f conftest.$ac_objext conftest$ac_exeext
28079if { (ac_try="$ac_link"
28080case "(($ac_try" in
28081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082 *) ac_try_echo=$ac_try;;
28083esac
28084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085 (eval "$ac_link") 2>conftest.er1
28086 ac_status=$?
28087 grep -v '^ *+' conftest.er1 >conftest.err
28088 rm -f conftest.er1
28089 cat conftest.err >&5
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028091 (exit $ac_status); } &&
28092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28093 { (case "(($ac_try" in
28094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28095 *) ac_try_echo=$ac_try;;
28096esac
28097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28098 (eval "$ac_try") 2>&5
28099 ac_status=$?
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); }; } &&
28102 { ac_try='test -s conftest$ac_exeext'
28103 { (case "(($ac_try" in
28104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105 *) ac_try_echo=$ac_try;;
28106esac
28107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108 (eval "$ac_try") 2>&5
28109 ac_status=$?
28110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028112 ac_cv_lib_udis86_ud_init=yes
28113else
28114 echo "$as_me: failed program was:" >&5
28115sed 's/^/| /' conftest.$ac_ext >&5
28116
28117 ac_cv_lib_udis86_ud_init=no
28118fi
28119
Bill Wendlingebcceee2009-04-18 11:20:33 +000028120rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028121 conftest$ac_exeext conftest.$ac_ext
28122LIBS=$ac_check_lib_save_LIBS
28123fi
28124{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28125echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28126if test $ac_cv_lib_udis86_ud_init = yes; then
28127 cat >>confdefs.h <<_ACEOF
28128#define HAVE_LIBUDIS86 1
28129_ACEOF
28130
28131 LIBS="-ludis86 $LIBS"
28132
28133else
28134
28135 echo "Error! You need to have libudis86 around."
28136 exit -1
28137
28138fi
28139
28140
28141else
28142 USE_UDIS86=0
28143
28144fi
28145
28146
28147cat >>confdefs.h <<_ACEOF
28148#define USE_UDIS86 $USE_UDIS86
28149_ACEOF
28150
28151
28152
Reid Spencer59473af2004-12-25 07:31:29 +000028153
28154
28155
28156
28157
28158ac_header_dirent=no
28159for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28160 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028161{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28162echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28163if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028164 echo $ECHO_N "(cached) $ECHO_C" >&6
28165else
28166 cat >conftest.$ac_ext <<_ACEOF
28167/* confdefs.h. */
28168_ACEOF
28169cat confdefs.h >>conftest.$ac_ext
28170cat >>conftest.$ac_ext <<_ACEOF
28171/* end confdefs.h. */
28172#include <sys/types.h>
28173#include <$ac_hdr>
28174
28175int
28176main ()
28177{
28178if ((DIR *) 0)
28179return 0;
28180 ;
28181 return 0;
28182}
28183_ACEOF
28184rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028185if { (ac_try="$ac_compile"
28186case "(($ac_try" in
28187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188 *) ac_try_echo=$ac_try;;
28189esac
28190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028192 ac_status=$?
28193 grep -v '^ *+' conftest.er1 >conftest.err
28194 rm -f conftest.er1
28195 cat conftest.err >&5
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028197 (exit $ac_status); } &&
28198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28199 { (case "(($ac_try" in
28200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28201 *) ac_try_echo=$ac_try;;
28202esac
28203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28204 (eval "$ac_try") 2>&5
28205 ac_status=$?
28206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207 (exit $ac_status); }; } &&
28208 { ac_try='test -s conftest.$ac_objext'
28209 { (case "(($ac_try" in
28210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28211 *) ac_try_echo=$ac_try;;
28212esac
28213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28214 (eval "$ac_try") 2>&5
28215 ac_status=$?
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028218 eval "$as_ac_Header=yes"
28219else
28220 echo "$as_me: failed program was:" >&5
28221sed 's/^/| /' conftest.$ac_ext >&5
28222
Reid Spencera773bd52006-08-04 18:18:08 +000028223 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028224fi
Reid Spencera773bd52006-08-04 18:18:08 +000028225
28226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028227fi
Reid Spencera773bd52006-08-04 18:18:08 +000028228ac_res=`eval echo '${'$as_ac_Header'}'`
28229 { echo "$as_me:$LINENO: result: $ac_res" >&5
28230echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028231if test `eval echo '${'$as_ac_Header'}'` = yes; then
28232 cat >>confdefs.h <<_ACEOF
28233#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28234_ACEOF
28235
28236ac_header_dirent=$ac_hdr; break
28237fi
28238
28239done
28240# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28241if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028242 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28243echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028244if test "${ac_cv_search_opendir+set}" = set; then
28245 echo $ECHO_N "(cached) $ECHO_C" >&6
28246else
28247 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028248cat >conftest.$ac_ext <<_ACEOF
28249/* confdefs.h. */
28250_ACEOF
28251cat confdefs.h >>conftest.$ac_ext
28252cat >>conftest.$ac_ext <<_ACEOF
28253/* end confdefs.h. */
28254
Reid Spencera773bd52006-08-04 18:18:08 +000028255/* Override any GCC internal prototype to avoid an error.
28256 Use char because int might match the return type of a GCC
28257 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028258#ifdef __cplusplus
28259extern "C"
28260#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028261char opendir ();
28262int
28263main ()
28264{
Reid Spencera773bd52006-08-04 18:18:08 +000028265return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028266 ;
28267 return 0;
28268}
28269_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028270for ac_lib in '' dir; do
28271 if test -z "$ac_lib"; then
28272 ac_res="none required"
28273 else
28274 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028275 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028276 fi
28277 rm -f conftest.$ac_objext conftest$ac_exeext
28278if { (ac_try="$ac_link"
28279case "(($ac_try" in
28280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281 *) ac_try_echo=$ac_try;;
28282esac
28283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028285 ac_status=$?
28286 grep -v '^ *+' conftest.er1 >conftest.err
28287 rm -f conftest.er1
28288 cat conftest.err >&5
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028290 (exit $ac_status); } &&
28291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28292 { (case "(($ac_try" in
28293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28294 *) ac_try_echo=$ac_try;;
28295esac
28296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28297 (eval "$ac_try") 2>&5
28298 ac_status=$?
28299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300 (exit $ac_status); }; } &&
28301 { ac_try='test -s conftest$ac_exeext'
28302 { (case "(($ac_try" in
28303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28304 *) ac_try_echo=$ac_try;;
28305esac
28306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28307 (eval "$ac_try") 2>&5
28308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028311 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028312else
28313 echo "$as_me: failed program was:" >&5
28314sed 's/^/| /' conftest.$ac_ext >&5
28315
Reid Spencera773bd52006-08-04 18:18:08 +000028316
Reid Spencer59473af2004-12-25 07:31:29 +000028317fi
Reid Spencera773bd52006-08-04 18:18:08 +000028318
Bill Wendlingebcceee2009-04-18 11:20:33 +000028319rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028320 conftest$ac_exeext
28321 if test "${ac_cv_search_opendir+set}" = set; then
28322 break
Reid Spencer59473af2004-12-25 07:31:29 +000028323fi
Reid Spencera773bd52006-08-04 18:18:08 +000028324done
28325if test "${ac_cv_search_opendir+set}" = set; then
28326 :
28327else
28328 ac_cv_search_opendir=no
28329fi
28330rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028331LIBS=$ac_func_search_save_LIBS
28332fi
Reid Spencera773bd52006-08-04 18:18:08 +000028333{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28334echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28335ac_res=$ac_cv_search_opendir
28336if test "$ac_res" != no; then
28337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028338
28339fi
28340
28341else
Reid Spencera773bd52006-08-04 18:18:08 +000028342 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28343echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028344if test "${ac_cv_search_opendir+set}" = set; then
28345 echo $ECHO_N "(cached) $ECHO_C" >&6
28346else
28347 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028348cat >conftest.$ac_ext <<_ACEOF
28349/* confdefs.h. */
28350_ACEOF
28351cat confdefs.h >>conftest.$ac_ext
28352cat >>conftest.$ac_ext <<_ACEOF
28353/* end confdefs.h. */
28354
Reid Spencera773bd52006-08-04 18:18:08 +000028355/* Override any GCC internal prototype to avoid an error.
28356 Use char because int might match the return type of a GCC
28357 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028358#ifdef __cplusplus
28359extern "C"
28360#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028361char opendir ();
28362int
28363main ()
28364{
Reid Spencera773bd52006-08-04 18:18:08 +000028365return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028366 ;
28367 return 0;
28368}
28369_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028370for ac_lib in '' x; do
28371 if test -z "$ac_lib"; then
28372 ac_res="none required"
28373 else
28374 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028376 fi
28377 rm -f conftest.$ac_objext conftest$ac_exeext
28378if { (ac_try="$ac_link"
28379case "(($ac_try" in
28380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28381 *) ac_try_echo=$ac_try;;
28382esac
28383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28384 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028385 ac_status=$?
28386 grep -v '^ *+' conftest.er1 >conftest.err
28387 rm -f conftest.er1
28388 cat conftest.err >&5
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028390 (exit $ac_status); } &&
28391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28392 { (case "(($ac_try" in
28393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28394 *) ac_try_echo=$ac_try;;
28395esac
28396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28397 (eval "$ac_try") 2>&5
28398 ac_status=$?
28399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); }; } &&
28401 { ac_try='test -s conftest$ac_exeext'
28402 { (case "(($ac_try" in
28403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28404 *) ac_try_echo=$ac_try;;
28405esac
28406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28407 (eval "$ac_try") 2>&5
28408 ac_status=$?
28409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028411 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028412else
28413 echo "$as_me: failed program was:" >&5
28414sed 's/^/| /' conftest.$ac_ext >&5
28415
Reid Spencera773bd52006-08-04 18:18:08 +000028416
Reid Spencer59473af2004-12-25 07:31:29 +000028417fi
Reid Spencera773bd52006-08-04 18:18:08 +000028418
Bill Wendlingebcceee2009-04-18 11:20:33 +000028419rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028420 conftest$ac_exeext
28421 if test "${ac_cv_search_opendir+set}" = set; then
28422 break
Reid Spencer59473af2004-12-25 07:31:29 +000028423fi
Reid Spencera773bd52006-08-04 18:18:08 +000028424done
28425if test "${ac_cv_search_opendir+set}" = set; then
28426 :
28427else
28428 ac_cv_search_opendir=no
28429fi
28430rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028431LIBS=$ac_func_search_save_LIBS
28432fi
Reid Spencera773bd52006-08-04 18:18:08 +000028433{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28434echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28435ac_res=$ac_cv_search_opendir
28436if test "$ac_res" != no; then
28437 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028438
28439fi
28440
28441fi
28442
Reid Spencera773bd52006-08-04 18:18:08 +000028443{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28444echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028445if test "${ac_cv_header_mmap_anon+set}" = set; then
28446 echo $ECHO_N "(cached) $ECHO_C" >&6
28447else
28448 ac_ext=c
28449ac_cpp='$CPP $CPPFLAGS'
28450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28452ac_compiler_gnu=$ac_cv_c_compiler_gnu
28453
28454 cat >conftest.$ac_ext <<_ACEOF
28455/* confdefs.h. */
28456_ACEOF
28457cat confdefs.h >>conftest.$ac_ext
28458cat >>conftest.$ac_ext <<_ACEOF
28459/* end confdefs.h. */
28460#include <sys/mman.h>
28461#include <unistd.h>
28462#include <fcntl.h>
28463int
28464main ()
28465{
28466mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28467 ;
28468 return 0;
28469}
28470_ACEOF
28471rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028472if { (ac_try="$ac_compile"
28473case "(($ac_try" in
28474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475 *) ac_try_echo=$ac_try;;
28476esac
28477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028479 ac_status=$?
28480 grep -v '^ *+' conftest.er1 >conftest.err
28481 rm -f conftest.er1
28482 cat conftest.err >&5
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028484 (exit $ac_status); } &&
28485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28486 { (case "(($ac_try" in
28487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28488 *) ac_try_echo=$ac_try;;
28489esac
28490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28491 (eval "$ac_try") 2>&5
28492 ac_status=$?
28493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494 (exit $ac_status); }; } &&
28495 { ac_try='test -s conftest.$ac_objext'
28496 { (case "(($ac_try" in
28497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28498 *) ac_try_echo=$ac_try;;
28499esac
28500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28501 (eval "$ac_try") 2>&5
28502 ac_status=$?
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028505 ac_cv_header_mmap_anon=yes
28506else
28507 echo "$as_me: failed program was:" >&5
28508sed 's/^/| /' conftest.$ac_ext >&5
28509
Reid Spencera773bd52006-08-04 18:18:08 +000028510 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028511fi
Reid Spencera773bd52006-08-04 18:18:08 +000028512
28513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028514 ac_ext=c
28515ac_cpp='$CPP $CPPFLAGS'
28516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28518ac_compiler_gnu=$ac_cv_c_compiler_gnu
28519
28520
28521fi
Reid Spencera773bd52006-08-04 18:18:08 +000028522{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28523echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028524if test "$ac_cv_header_mmap_anon" = yes; then
28525
28526cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028527#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028528_ACEOF
28529
28530fi
28531
Reid Spencera773bd52006-08-04 18:18:08 +000028532{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28533echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028534if test "${ac_cv_header_stat_broken+set}" = set; then
28535 echo $ECHO_N "(cached) $ECHO_C" >&6
28536else
28537 cat >conftest.$ac_ext <<_ACEOF
28538/* confdefs.h. */
28539_ACEOF
28540cat confdefs.h >>conftest.$ac_ext
28541cat >>conftest.$ac_ext <<_ACEOF
28542/* end confdefs.h. */
28543#include <sys/types.h>
28544#include <sys/stat.h>
28545
Reid Spencera773bd52006-08-04 18:18:08 +000028546#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028547# if S_ISBLK (S_IFDIR)
28548You lose.
28549# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028550#endif
28551
Reid Spencera773bd52006-08-04 18:18:08 +000028552#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028553# if S_ISBLK (S_IFCHR)
28554You lose.
28555# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028556#endif
28557
Reid Spencera773bd52006-08-04 18:18:08 +000028558#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028559# if S_ISLNK (S_IFREG)
28560You lose.
28561# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028562#endif
28563
Reid Spencera773bd52006-08-04 18:18:08 +000028564#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028565# if S_ISSOCK (S_IFREG)
28566You lose.
28567# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028568#endif
28569
28570_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000028571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28572 $EGREP "You lose" >/dev/null 2>&1; then
28573 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028574else
Bill Wendlingebcceee2009-04-18 11:20:33 +000028575 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028576fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028577rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028578
Reid Spencer59473af2004-12-25 07:31:29 +000028579fi
Reid Spencera773bd52006-08-04 18:18:08 +000028580{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28581echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028582if test $ac_cv_header_stat_broken = yes; then
28583
28584cat >>confdefs.h <<\_ACEOF
28585#define STAT_MACROS_BROKEN 1
28586_ACEOF
28587
28588fi
28589
Reid Spencera773bd52006-08-04 18:18:08 +000028590{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28591echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028592if test "${ac_cv_header_stdc+set}" = set; then
28593 echo $ECHO_N "(cached) $ECHO_C" >&6
28594else
28595 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028596/* confdefs.h. */
28597_ACEOF
28598cat confdefs.h >>conftest.$ac_ext
28599cat >>conftest.$ac_ext <<_ACEOF
28600/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028601#include <stdlib.h>
28602#include <stdarg.h>
28603#include <string.h>
28604#include <float.h>
28605
John Criswell0c38eaf2003-09-10 15:17:25 +000028606int
28607main ()
28608{
28609
28610 ;
28611 return 0;
28612}
John Criswell7a73b802003-06-30 21:59:07 +000028613_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028614rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028615if { (ac_try="$ac_compile"
28616case "(($ac_try" in
28617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28618 *) ac_try_echo=$ac_try;;
28619esac
28620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28621 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028622 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028623 grep -v '^ *+' conftest.er1 >conftest.err
28624 rm -f conftest.er1
28625 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028627 (exit $ac_status); } &&
28628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28629 { (case "(($ac_try" in
28630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28631 *) ac_try_echo=$ac_try;;
28632esac
28633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28634 (eval "$ac_try") 2>&5
28635 ac_status=$?
28636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637 (exit $ac_status); }; } &&
28638 { ac_try='test -s conftest.$ac_objext'
28639 { (case "(($ac_try" in
28640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28641 *) ac_try_echo=$ac_try;;
28642esac
28643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28644 (eval "$ac_try") 2>&5
28645 ac_status=$?
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028648 ac_cv_header_stdc=yes
28649else
28650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028651sed 's/^/| /' conftest.$ac_ext >&5
28652
Reid Spencera773bd52006-08-04 18:18:08 +000028653 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028654fi
Reid Spencera773bd52006-08-04 18:18:08 +000028655
28656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028657
28658if test $ac_cv_header_stdc = yes; then
28659 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28660 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028661/* confdefs.h. */
28662_ACEOF
28663cat confdefs.h >>conftest.$ac_ext
28664cat >>conftest.$ac_ext <<_ACEOF
28665/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028666#include <string.h>
28667
28668_ACEOF
28669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028670 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028671 :
28672else
28673 ac_cv_header_stdc=no
28674fi
28675rm -f conftest*
28676
28677fi
28678
28679if test $ac_cv_header_stdc = yes; then
28680 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28681 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028682/* confdefs.h. */
28683_ACEOF
28684cat confdefs.h >>conftest.$ac_ext
28685cat >>conftest.$ac_ext <<_ACEOF
28686/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028687#include <stdlib.h>
28688
28689_ACEOF
28690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028691 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028692 :
28693else
28694 ac_cv_header_stdc=no
28695fi
28696rm -f conftest*
28697
28698fi
28699
28700if test $ac_cv_header_stdc = yes; then
28701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28702 if test "$cross_compiling" = yes; then
28703 :
28704else
28705 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028706/* confdefs.h. */
28707_ACEOF
28708cat confdefs.h >>conftest.$ac_ext
28709cat >>conftest.$ac_ext <<_ACEOF
28710/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028711#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028712#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028713#if ((' ' & 0x0FF) == 0x020)
28714# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28715# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28716#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028717# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028718 (('a' <= (c) && (c) <= 'i') \
28719 || ('j' <= (c) && (c) <= 'r') \
28720 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028721# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28722#endif
28723
28724#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28725int
28726main ()
28727{
28728 int i;
28729 for (i = 0; i < 256; i++)
28730 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028731 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028732 return 2;
28733 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028734}
28735_ACEOF
28736rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028737if { (ac_try="$ac_link"
28738case "(($ac_try" in
28739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28740 *) ac_try_echo=$ac_try;;
28741esac
28742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28743 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028744 ac_status=$?
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028747 { (case "(($ac_try" in
28748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749 *) ac_try_echo=$ac_try;;
28750esac
28751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028753 ac_status=$?
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); }; }; then
28756 :
28757else
28758 echo "$as_me: program exited with status $ac_status" >&5
28759echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028760sed 's/^/| /' conftest.$ac_ext >&5
28761
John Criswell7a73b802003-06-30 21:59:07 +000028762( exit $ac_status )
28763ac_cv_header_stdc=no
28764fi
Reid Spencera773bd52006-08-04 18:18:08 +000028765rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28766fi
28767
28768
John Criswell7a73b802003-06-30 21:59:07 +000028769fi
28770fi
Reid Spencera773bd52006-08-04 18:18:08 +000028771{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28772echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028773if test $ac_cv_header_stdc = yes; then
28774
28775cat >>confdefs.h <<\_ACEOF
28776#define STDC_HEADERS 1
28777_ACEOF
28778
28779fi
28780
Reid Spencera773bd52006-08-04 18:18:08 +000028781{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28782echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028783if test "${ac_cv_header_sys_wait_h+set}" = set; then
28784 echo $ECHO_N "(cached) $ECHO_C" >&6
28785else
28786 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028787/* confdefs.h. */
28788_ACEOF
28789cat confdefs.h >>conftest.$ac_ext
28790cat >>conftest.$ac_ext <<_ACEOF
28791/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028792#include <sys/types.h>
28793#include <sys/wait.h>
28794#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028795# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028796#endif
28797#ifndef WIFEXITED
28798# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28799#endif
28800
John Criswell7a73b802003-06-30 21:59:07 +000028801int
28802main ()
28803{
28804 int s;
28805 wait (&s);
28806 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28807 ;
28808 return 0;
28809}
28810_ACEOF
28811rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028812if { (ac_try="$ac_compile"
28813case "(($ac_try" in
28814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28815 *) ac_try_echo=$ac_try;;
28816esac
28817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28818 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028819 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028820 grep -v '^ *+' conftest.er1 >conftest.err
28821 rm -f conftest.er1
28822 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028824 (exit $ac_status); } &&
28825 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28826 { (case "(($ac_try" in
28827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28828 *) ac_try_echo=$ac_try;;
28829esac
28830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28831 (eval "$ac_try") 2>&5
28832 ac_status=$?
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; } &&
28835 { ac_try='test -s conftest.$ac_objext'
28836 { (case "(($ac_try" in
28837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28838 *) ac_try_echo=$ac_try;;
28839esac
28840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28841 (eval "$ac_try") 2>&5
28842 ac_status=$?
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028845 ac_cv_header_sys_wait_h=yes
28846else
28847 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028848sed 's/^/| /' conftest.$ac_ext >&5
28849
Reid Spencera773bd52006-08-04 18:18:08 +000028850 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028851fi
Reid Spencera773bd52006-08-04 18:18:08 +000028852
28853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028854fi
Reid Spencera773bd52006-08-04 18:18:08 +000028855{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28856echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028857if test $ac_cv_header_sys_wait_h = yes; then
28858
28859cat >>confdefs.h <<\_ACEOF
28860#define HAVE_SYS_WAIT_H 1
28861_ACEOF
28862
28863fi
28864
Reid Spencera773bd52006-08-04 18:18:08 +000028865{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28866echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028867if test "${ac_cv_header_time+set}" = set; then
28868 echo $ECHO_N "(cached) $ECHO_C" >&6
28869else
28870 cat >conftest.$ac_ext <<_ACEOF
28871/* confdefs.h. */
28872_ACEOF
28873cat confdefs.h >>conftest.$ac_ext
28874cat >>conftest.$ac_ext <<_ACEOF
28875/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028876#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028877#include <sys/time.h>
28878#include <time.h>
28879
28880int
28881main ()
28882{
28883if ((struct tm *) 0)
28884return 0;
28885 ;
28886 return 0;
28887}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028888_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028889rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028890if { (ac_try="$ac_compile"
28891case "(($ac_try" in
28892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893 *) ac_try_echo=$ac_try;;
28894esac
28895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28896 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028897 ac_status=$?
28898 grep -v '^ *+' conftest.er1 >conftest.err
28899 rm -f conftest.er1
28900 cat conftest.err >&5
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028902 (exit $ac_status); } &&
28903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28904 { (case "(($ac_try" in
28905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28906 *) ac_try_echo=$ac_try;;
28907esac
28908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28909 (eval "$ac_try") 2>&5
28910 ac_status=$?
28911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28912 (exit $ac_status); }; } &&
28913 { ac_try='test -s conftest.$ac_objext'
28914 { (case "(($ac_try" in
28915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28916 *) ac_try_echo=$ac_try;;
28917esac
28918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28919 (eval "$ac_try") 2>&5
28920 ac_status=$?
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028923 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028924else
28925 echo "$as_me: failed program was:" >&5
28926sed 's/^/| /' conftest.$ac_ext >&5
28927
Reid Spencera773bd52006-08-04 18:18:08 +000028928 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028929fi
Reid Spencera773bd52006-08-04 18:18:08 +000028930
28931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028932fi
Reid Spencera773bd52006-08-04 18:18:08 +000028933{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28934echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028935if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028936
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028937cat >>confdefs.h <<\_ACEOF
28938#define TIME_WITH_SYS_TIME 1
28939_ACEOF
28940
28941fi
28942
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028943
Reid Spencer59473af2004-12-25 07:31:29 +000028944
28945
28946
28947
28948
28949
28950for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28951do
28952as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028957 echo $ECHO_N "(cached) $ECHO_C" >&6
28958fi
Reid Spencera773bd52006-08-04 18:18:08 +000028959ac_res=`eval echo '${'$as_ac_Header'}'`
28960 { echo "$as_me:$LINENO: result: $ac_res" >&5
28961echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028962else
28963 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028964{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28965echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028966cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028967/* confdefs.h. */
28968_ACEOF
28969cat confdefs.h >>conftest.$ac_ext
28970cat >>conftest.$ac_ext <<_ACEOF
28971/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028972$ac_includes_default
28973#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028974_ACEOF
28975rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028976if { (ac_try="$ac_compile"
28977case "(($ac_try" in
28978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28979 *) ac_try_echo=$ac_try;;
28980esac
28981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28982 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028983 ac_status=$?
28984 grep -v '^ *+' conftest.er1 >conftest.err
28985 rm -f conftest.er1
28986 cat conftest.err >&5
28987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028988 (exit $ac_status); } &&
28989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28990 { (case "(($ac_try" in
28991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992 *) ac_try_echo=$ac_try;;
28993esac
28994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28995 (eval "$ac_try") 2>&5
28996 ac_status=$?
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); }; } &&
28999 { ac_try='test -s conftest.$ac_objext'
29000 { (case "(($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_try") 2>&5
29006 ac_status=$?
29007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029009 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029010else
29011 echo "$as_me: failed program was:" >&5
29012sed 's/^/| /' conftest.$ac_ext >&5
29013
Reid Spencera773bd52006-08-04 18:18:08 +000029014 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029015fi
Reid Spencera773bd52006-08-04 18:18:08 +000029016
29017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29018{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29019echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029020
Reid Spencer59473af2004-12-25 07:31:29 +000029021# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029022{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29023echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029024cat >conftest.$ac_ext <<_ACEOF
29025/* confdefs.h. */
29026_ACEOF
29027cat confdefs.h >>conftest.$ac_ext
29028cat >>conftest.$ac_ext <<_ACEOF
29029/* end confdefs.h. */
29030#include <$ac_header>
29031_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029032if { (ac_try="$ac_cpp conftest.$ac_ext"
29033case "(($ac_try" in
29034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29035 *) ac_try_echo=$ac_try;;
29036esac
29037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029039 ac_status=$?
29040 grep -v '^ *+' conftest.er1 >conftest.err
29041 rm -f conftest.er1
29042 cat conftest.err >&5
29043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029044 (exit $ac_status); } >/dev/null; then
29045 if test -s conftest.err; then
29046 ac_cpp_err=$ac_c_preproc_warn_flag
29047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29048 else
29049 ac_cpp_err=
29050 fi
29051else
29052 ac_cpp_err=yes
29053fi
29054if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029055 ac_header_preproc=yes
29056else
29057 echo "$as_me: failed program was:" >&5
29058sed 's/^/| /' conftest.$ac_ext >&5
29059
29060 ac_header_preproc=no
29061fi
Reid Spencera773bd52006-08-04 18:18:08 +000029062
Reid Spencer59473af2004-12-25 07:31:29 +000029063rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029064{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29065echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029066
29067# So? What about this header?
29068case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29069 yes:no: )
29070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29071echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29073echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29074 ac_header_preproc=yes
29075 ;;
29076 no:yes:* )
29077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29080echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29082echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29084echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29086echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29088echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029089 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029090## ----------------------------------- ##
29091## Report this to llvmbugs@cs.uiuc.edu ##
29092## ----------------------------------- ##
29093_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029094 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029095 ;;
29096esac
Reid Spencera773bd52006-08-04 18:18:08 +000029097{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029100 echo $ECHO_N "(cached) $ECHO_C" >&6
29101else
29102 eval "$as_ac_Header=\$ac_header_preproc"
29103fi
Reid Spencera773bd52006-08-04 18:18:08 +000029104ac_res=`eval echo '${'$as_ac_Header'}'`
29105 { echo "$as_me:$LINENO: result: $ac_res" >&5
29106echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029107
29108fi
Reid Spencer59473af2004-12-25 07:31:29 +000029109if test `eval echo '${'$as_ac_Header'}'` = yes; then
29110 cat >>confdefs.h <<_ACEOF
29111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029112_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029113
29114fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029115
Reid Spencer59473af2004-12-25 07:31:29 +000029116done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029117
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029118
29119
Reid Spencer59473af2004-12-25 07:31:29 +000029120
29121
29122
29123
Douglas Gregor071d73d2009-05-18 17:21:34 +000029124for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029125do
29126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029127if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029131 echo $ECHO_N "(cached) $ECHO_C" >&6
29132fi
Reid Spencera773bd52006-08-04 18:18:08 +000029133ac_res=`eval echo '${'$as_ac_Header'}'`
29134 { echo "$as_me:$LINENO: result: $ac_res" >&5
29135echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029136else
29137 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029138{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029140cat >conftest.$ac_ext <<_ACEOF
29141/* confdefs.h. */
29142_ACEOF
29143cat confdefs.h >>conftest.$ac_ext
29144cat >>conftest.$ac_ext <<_ACEOF
29145/* end confdefs.h. */
29146$ac_includes_default
29147#include <$ac_header>
29148_ACEOF
29149rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029150if { (ac_try="$ac_compile"
29151case "(($ac_try" in
29152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153 *) ac_try_echo=$ac_try;;
29154esac
29155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029157 ac_status=$?
29158 grep -v '^ *+' conftest.er1 >conftest.err
29159 rm -f conftest.er1
29160 cat conftest.err >&5
29161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029162 (exit $ac_status); } &&
29163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29164 { (case "(($ac_try" in
29165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29166 *) ac_try_echo=$ac_try;;
29167esac
29168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29169 (eval "$ac_try") 2>&5
29170 ac_status=$?
29171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172 (exit $ac_status); }; } &&
29173 { ac_try='test -s conftest.$ac_objext'
29174 { (case "(($ac_try" in
29175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29176 *) ac_try_echo=$ac_try;;
29177esac
29178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29179 (eval "$ac_try") 2>&5
29180 ac_status=$?
29181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029183 ac_header_compiler=yes
29184else
29185 echo "$as_me: failed program was:" >&5
29186sed 's/^/| /' conftest.$ac_ext >&5
29187
Reid Spencera773bd52006-08-04 18:18:08 +000029188 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029189fi
Reid Spencera773bd52006-08-04 18:18:08 +000029190
29191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29192{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29193echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029194
29195# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029196{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29197echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029198cat >conftest.$ac_ext <<_ACEOF
29199/* confdefs.h. */
29200_ACEOF
29201cat confdefs.h >>conftest.$ac_ext
29202cat >>conftest.$ac_ext <<_ACEOF
29203/* end confdefs.h. */
29204#include <$ac_header>
29205_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029206if { (ac_try="$ac_cpp conftest.$ac_ext"
29207case "(($ac_try" in
29208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209 *) ac_try_echo=$ac_try;;
29210esac
29211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029213 ac_status=$?
29214 grep -v '^ *+' conftest.er1 >conftest.err
29215 rm -f conftest.er1
29216 cat conftest.err >&5
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029218 (exit $ac_status); } >/dev/null; then
29219 if test -s conftest.err; then
29220 ac_cpp_err=$ac_c_preproc_warn_flag
29221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29222 else
29223 ac_cpp_err=
29224 fi
29225else
29226 ac_cpp_err=yes
29227fi
29228if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029229 ac_header_preproc=yes
29230else
29231 echo "$as_me: failed program was:" >&5
29232sed 's/^/| /' conftest.$ac_ext >&5
29233
29234 ac_header_preproc=no
29235fi
Reid Spencera773bd52006-08-04 18:18:08 +000029236
Reid Spencer59473af2004-12-25 07:31:29 +000029237rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029238{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29239echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029240
29241# So? What about this header?
29242case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29243 yes:no: )
29244 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29245echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29247echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29248 ac_header_preproc=yes
29249 ;;
29250 no:yes:* )
29251 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29252echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29253 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29254echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29255 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29256echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29257 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29258echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29259 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29260echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29261 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29262echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029263 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029264## ----------------------------------- ##
29265## Report this to llvmbugs@cs.uiuc.edu ##
29266## ----------------------------------- ##
29267_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029268 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029269 ;;
29270esac
Reid Spencera773bd52006-08-04 18:18:08 +000029271{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029274 echo $ECHO_N "(cached) $ECHO_C" >&6
29275else
29276 eval "$as_ac_Header=\$ac_header_preproc"
29277fi
Reid Spencera773bd52006-08-04 18:18:08 +000029278ac_res=`eval echo '${'$as_ac_Header'}'`
29279 { echo "$as_me:$LINENO: result: $ac_res" >&5
29280echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029281
29282fi
29283if test `eval echo '${'$as_ac_Header'}'` = yes; then
29284 cat >>confdefs.h <<_ACEOF
29285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29286_ACEOF
29287
29288fi
29289
29290done
29291
29292
Douglas Gregor071d73d2009-05-18 17:21:34 +000029293
29294for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000029295do
29296as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29297if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29300if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29301 echo $ECHO_N "(cached) $ECHO_C" >&6
29302fi
29303ac_res=`eval echo '${'$as_ac_Header'}'`
29304 { echo "$as_me:$LINENO: result: $ac_res" >&5
29305echo "${ECHO_T}$ac_res" >&6; }
29306else
29307 # Is the header compilable?
29308{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29309echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29310cat >conftest.$ac_ext <<_ACEOF
29311/* confdefs.h. */
29312_ACEOF
29313cat confdefs.h >>conftest.$ac_ext
29314cat >>conftest.$ac_ext <<_ACEOF
29315/* end confdefs.h. */
29316$ac_includes_default
29317#include <$ac_header>
29318_ACEOF
29319rm -f conftest.$ac_objext
29320if { (ac_try="$ac_compile"
29321case "(($ac_try" in
29322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29323 *) ac_try_echo=$ac_try;;
29324esac
29325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29326 (eval "$ac_compile") 2>conftest.er1
29327 ac_status=$?
29328 grep -v '^ *+' conftest.er1 >conftest.err
29329 rm -f conftest.er1
29330 cat conftest.err >&5
29331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029332 (exit $ac_status); } &&
29333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29334 { (case "(($ac_try" in
29335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29336 *) ac_try_echo=$ac_try;;
29337esac
29338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29339 (eval "$ac_try") 2>&5
29340 ac_status=$?
29341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342 (exit $ac_status); }; } &&
29343 { ac_try='test -s conftest.$ac_objext'
29344 { (case "(($ac_try" in
29345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29346 *) ac_try_echo=$ac_try;;
29347esac
29348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29349 (eval "$ac_try") 2>&5
29350 ac_status=$?
29351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029353 ac_header_compiler=yes
29354else
29355 echo "$as_me: failed program was:" >&5
29356sed 's/^/| /' conftest.$ac_ext >&5
29357
29358 ac_header_compiler=no
29359fi
29360
29361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29362{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29363echo "${ECHO_T}$ac_header_compiler" >&6; }
29364
29365# Is the header present?
29366{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29367echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29368cat >conftest.$ac_ext <<_ACEOF
29369/* confdefs.h. */
29370_ACEOF
29371cat confdefs.h >>conftest.$ac_ext
29372cat >>conftest.$ac_ext <<_ACEOF
29373/* end confdefs.h. */
29374#include <$ac_header>
29375_ACEOF
29376if { (ac_try="$ac_cpp conftest.$ac_ext"
29377case "(($ac_try" in
29378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379 *) ac_try_echo=$ac_try;;
29380esac
29381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29383 ac_status=$?
29384 grep -v '^ *+' conftest.er1 >conftest.err
29385 rm -f conftest.er1
29386 cat conftest.err >&5
29387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029388 (exit $ac_status); } >/dev/null; then
29389 if test -s conftest.err; then
29390 ac_cpp_err=$ac_c_preproc_warn_flag
29391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29392 else
29393 ac_cpp_err=
29394 fi
29395else
29396 ac_cpp_err=yes
29397fi
29398if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029399 ac_header_preproc=yes
29400else
29401 echo "$as_me: failed program was:" >&5
29402sed 's/^/| /' conftest.$ac_ext >&5
29403
29404 ac_header_preproc=no
29405fi
29406
29407rm -f conftest.err conftest.$ac_ext
29408{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29409echo "${ECHO_T}$ac_header_preproc" >&6; }
29410
29411# So? What about this header?
29412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29413 yes:no: )
29414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29417echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29418 ac_header_preproc=yes
29419 ;;
29420 no:yes:* )
29421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29424echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29426echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29428echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29432echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29433 ( cat <<\_ASBOX
29434## ----------------------------------- ##
29435## Report this to llvmbugs@cs.uiuc.edu ##
29436## ----------------------------------- ##
29437_ASBOX
29438 ) | sed "s/^/$as_me: WARNING: /" >&2
29439 ;;
29440esac
29441{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29444 echo $ECHO_N "(cached) $ECHO_C" >&6
29445else
29446 eval "$as_ac_Header=\$ac_header_preproc"
29447fi
29448ac_res=`eval echo '${'$as_ac_Header'}'`
29449 { echo "$as_me:$LINENO: result: $ac_res" >&5
29450echo "${ECHO_T}$ac_res" >&6; }
29451
29452fi
29453if test `eval echo '${'$as_ac_Header'}'` = yes; then
29454 cat >>confdefs.h <<_ACEOF
29455#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29456_ACEOF
29457
29458fi
29459
29460done
Reid Spencer59473af2004-12-25 07:31:29 +000029461
29462
29463
29464
Reid Spencerbe3e4192007-08-17 05:45:26 +000029465
29466for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029467do
29468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029469if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029473 echo $ECHO_N "(cached) $ECHO_C" >&6
29474fi
Reid Spencera773bd52006-08-04 18:18:08 +000029475ac_res=`eval echo '${'$as_ac_Header'}'`
29476 { echo "$as_me:$LINENO: result: $ac_res" >&5
29477echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029478else
29479 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029480{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29481echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029482cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029483/* confdefs.h. */
29484_ACEOF
29485cat confdefs.h >>conftest.$ac_ext
29486cat >>conftest.$ac_ext <<_ACEOF
29487/* end confdefs.h. */
29488$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029489#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029490_ACEOF
29491rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029492if { (ac_try="$ac_compile"
29493case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29496esac
29497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029499 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029500 grep -v '^ *+' conftest.er1 >conftest.err
29501 rm -f conftest.er1
29502 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029504 (exit $ac_status); } &&
29505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29506 { (case "(($ac_try" in
29507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508 *) ac_try_echo=$ac_try;;
29509esac
29510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511 (eval "$ac_try") 2>&5
29512 ac_status=$?
29513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514 (exit $ac_status); }; } &&
29515 { ac_try='test -s conftest.$ac_objext'
29516 { (case "(($ac_try" in
29517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29518 *) ac_try_echo=$ac_try;;
29519esac
29520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29521 (eval "$ac_try") 2>&5
29522 ac_status=$?
29523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29524 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029525 ac_header_compiler=yes
29526else
29527 echo "$as_me: failed program was:" >&5
29528sed 's/^/| /' conftest.$ac_ext >&5
29529
Reid Spencera773bd52006-08-04 18:18:08 +000029530 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029531fi
Reid Spencera773bd52006-08-04 18:18:08 +000029532
29533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29534{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29535echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029536
29537# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029538{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029540cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029541/* confdefs.h. */
29542_ACEOF
29543cat confdefs.h >>conftest.$ac_ext
29544cat >>conftest.$ac_ext <<_ACEOF
29545/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029546#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029547_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029548if { (ac_try="$ac_cpp conftest.$ac_ext"
29549case "(($ac_try" in
29550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29551 *) ac_try_echo=$ac_try;;
29552esac
29553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029555 ac_status=$?
29556 grep -v '^ *+' conftest.er1 >conftest.err
29557 rm -f conftest.er1
29558 cat conftest.err >&5
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029560 (exit $ac_status); } >/dev/null; then
29561 if test -s conftest.err; then
29562 ac_cpp_err=$ac_c_preproc_warn_flag
29563 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29564 else
29565 ac_cpp_err=
29566 fi
29567else
29568 ac_cpp_err=yes
29569fi
29570if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029571 ac_header_preproc=yes
29572else
29573 echo "$as_me: failed program was:" >&5
29574sed 's/^/| /' conftest.$ac_ext >&5
29575
29576 ac_header_preproc=no
29577fi
Reid Spencera773bd52006-08-04 18:18:08 +000029578
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029579rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029580{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29581echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029582
29583# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29585 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29587echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29589echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029590 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029591 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029592 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29596echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29598echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29600echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29604echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029605 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029606## ----------------------------------- ##
29607## Report this to llvmbugs@cs.uiuc.edu ##
29608## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029609_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029610 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029611 ;;
29612esac
Reid Spencera773bd52006-08-04 18:18:08 +000029613{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029616 echo $ECHO_N "(cached) $ECHO_C" >&6
29617else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029618 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029619fi
Reid Spencera773bd52006-08-04 18:18:08 +000029620ac_res=`eval echo '${'$as_ac_Header'}'`
29621 { echo "$as_me:$LINENO: result: $ac_res" >&5
29622echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029623
29624fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029625if test `eval echo '${'$as_ac_Header'}'` = yes; then
29626 cat >>confdefs.h <<_ACEOF
29627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029628_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029629
29630fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029631
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029632done
29633
John Criswell7ed43ad2004-07-19 16:12:29 +000029634
Reid Spencercdb08a32006-06-05 16:11:07 +000029635
Reid Spencera6d990a2006-09-14 06:17:21 +000029636
Douglas Gregor01746742009-05-11 18:05:52 +000029637
29638for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029639do
29640as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29644if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029645 echo $ECHO_N "(cached) $ECHO_C" >&6
29646fi
Reid Spencera773bd52006-08-04 18:18:08 +000029647ac_res=`eval echo '${'$as_ac_Header'}'`
29648 { echo "$as_me:$LINENO: result: $ac_res" >&5
29649echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029650else
29651 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029652{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29653echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029654cat >conftest.$ac_ext <<_ACEOF
29655/* confdefs.h. */
29656_ACEOF
29657cat confdefs.h >>conftest.$ac_ext
29658cat >>conftest.$ac_ext <<_ACEOF
29659/* end confdefs.h. */
29660$ac_includes_default
29661#include <$ac_header>
29662_ACEOF
29663rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029664if { (ac_try="$ac_compile"
29665case "(($ac_try" in
29666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667 *) ac_try_echo=$ac_try;;
29668esac
29669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029671 ac_status=$?
29672 grep -v '^ *+' conftest.er1 >conftest.err
29673 rm -f conftest.er1
29674 cat conftest.err >&5
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029676 (exit $ac_status); } &&
29677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29678 { (case "(($ac_try" in
29679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29680 *) ac_try_echo=$ac_try;;
29681esac
29682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29683 (eval "$ac_try") 2>&5
29684 ac_status=$?
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); }; } &&
29687 { ac_try='test -s conftest.$ac_objext'
29688 { (case "(($ac_try" in
29689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690 *) ac_try_echo=$ac_try;;
29691esac
29692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29693 (eval "$ac_try") 2>&5
29694 ac_status=$?
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029697 ac_header_compiler=yes
29698else
29699 echo "$as_me: failed program was:" >&5
29700sed 's/^/| /' conftest.$ac_ext >&5
29701
Reid Spencera773bd52006-08-04 18:18:08 +000029702 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029703fi
Reid Spencera773bd52006-08-04 18:18:08 +000029704
29705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29706{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29707echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029708
29709# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029710{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029712cat >conftest.$ac_ext <<_ACEOF
29713/* confdefs.h. */
29714_ACEOF
29715cat confdefs.h >>conftest.$ac_ext
29716cat >>conftest.$ac_ext <<_ACEOF
29717/* end confdefs.h. */
29718#include <$ac_header>
29719_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029720if { (ac_try="$ac_cpp conftest.$ac_ext"
29721case "(($ac_try" in
29722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29723 *) ac_try_echo=$ac_try;;
29724esac
29725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029727 ac_status=$?
29728 grep -v '^ *+' conftest.er1 >conftest.err
29729 rm -f conftest.er1
29730 cat conftest.err >&5
29731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029732 (exit $ac_status); } >/dev/null; then
29733 if test -s conftest.err; then
29734 ac_cpp_err=$ac_c_preproc_warn_flag
29735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29736 else
29737 ac_cpp_err=
29738 fi
29739else
29740 ac_cpp_err=yes
29741fi
29742if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029743 ac_header_preproc=yes
29744else
29745 echo "$as_me: failed program was:" >&5
29746sed 's/^/| /' conftest.$ac_ext >&5
29747
29748 ac_header_preproc=no
29749fi
Reid Spencera773bd52006-08-04 18:18:08 +000029750
Chris Lattner0b142592005-11-14 06:57:34 +000029751rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029752{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29753echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029754
29755# So? What about this header?
29756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29757 yes:no: )
29758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29759echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29761echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29762 ac_header_preproc=yes
29763 ;;
29764 no:yes:* )
29765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29766echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29768echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29770echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29772echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29774echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29776echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029777 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029778## ----------------------------------- ##
29779## Report this to llvmbugs@cs.uiuc.edu ##
29780## ----------------------------------- ##
29781_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029782 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029783 ;;
29784esac
Reid Spencera773bd52006-08-04 18:18:08 +000029785{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29786echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029788 echo $ECHO_N "(cached) $ECHO_C" >&6
29789else
29790 eval "$as_ac_Header=\$ac_header_preproc"
29791fi
Reid Spencera773bd52006-08-04 18:18:08 +000029792ac_res=`eval echo '${'$as_ac_Header'}'`
29793 { echo "$as_me:$LINENO: result: $ac_res" >&5
29794echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029795
29796fi
29797if test `eval echo '${'$as_ac_Header'}'` = yes; then
29798 cat >>confdefs.h <<_ACEOF
29799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29800_ACEOF
29801
29802fi
29803
29804done
29805
Reid Spencer0a262ba2005-08-24 10:07:20 +000029806if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029807
29808for ac_header in pthread.h
29809do
29810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29814if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029815 echo $ECHO_N "(cached) $ECHO_C" >&6
29816fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029817ac_res=`eval echo '${'$as_ac_Header'}'`
29818 { echo "$as_me:$LINENO: result: $ac_res" >&5
29819echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029820else
29821 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029822{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029824cat >conftest.$ac_ext <<_ACEOF
29825/* confdefs.h. */
29826_ACEOF
29827cat confdefs.h >>conftest.$ac_ext
29828cat >>conftest.$ac_ext <<_ACEOF
29829/* end confdefs.h. */
29830$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029831#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029832_ACEOF
29833rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029834if { (ac_try="$ac_compile"
29835case "(($ac_try" in
29836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29837 *) ac_try_echo=$ac_try;;
29838esac
29839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29840 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029841 ac_status=$?
29842 grep -v '^ *+' conftest.er1 >conftest.err
29843 rm -f conftest.er1
29844 cat conftest.err >&5
29845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029846 (exit $ac_status); } &&
29847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29848 { (case "(($ac_try" in
29849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29850 *) ac_try_echo=$ac_try;;
29851esac
29852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29853 (eval "$ac_try") 2>&5
29854 ac_status=$?
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); }; } &&
29857 { ac_try='test -s conftest.$ac_objext'
29858 { (case "(($ac_try" in
29859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29860 *) ac_try_echo=$ac_try;;
29861esac
29862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29863 (eval "$ac_try") 2>&5
29864 ac_status=$?
29865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029867 ac_header_compiler=yes
29868else
29869 echo "$as_me: failed program was:" >&5
29870sed 's/^/| /' conftest.$ac_ext >&5
29871
Reid Spencera773bd52006-08-04 18:18:08 +000029872 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029873fi
Reid Spencera773bd52006-08-04 18:18:08 +000029874
29875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29876{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29877echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029878
29879# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029880{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029882cat >conftest.$ac_ext <<_ACEOF
29883/* confdefs.h. */
29884_ACEOF
29885cat confdefs.h >>conftest.$ac_ext
29886cat >>conftest.$ac_ext <<_ACEOF
29887/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029888#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029889_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029890if { (ac_try="$ac_cpp conftest.$ac_ext"
29891case "(($ac_try" in
29892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29893 *) ac_try_echo=$ac_try;;
29894esac
29895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029897 ac_status=$?
29898 grep -v '^ *+' conftest.er1 >conftest.err
29899 rm -f conftest.er1
29900 cat conftest.err >&5
29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029902 (exit $ac_status); } >/dev/null; then
29903 if test -s conftest.err; then
29904 ac_cpp_err=$ac_c_preproc_warn_flag
29905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29906 else
29907 ac_cpp_err=
29908 fi
29909else
29910 ac_cpp_err=yes
29911fi
29912if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029913 ac_header_preproc=yes
29914else
29915 echo "$as_me: failed program was:" >&5
29916sed 's/^/| /' conftest.$ac_ext >&5
29917
29918 ac_header_preproc=no
29919fi
Reid Spencera773bd52006-08-04 18:18:08 +000029920
Reid Spencer0a262ba2005-08-24 10:07:20 +000029921rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029922{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29923echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029924
29925# So? What about this header?
29926case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29927 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29929echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29931echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029932 ac_header_preproc=yes
29933 ;;
29934 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29936echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29938echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29940echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29942echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29944echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29946echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029947 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029948## ----------------------------------- ##
29949## Report this to llvmbugs@cs.uiuc.edu ##
29950## ----------------------------------- ##
29951_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029952 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029953 ;;
29954esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029955{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29956echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029958 echo $ECHO_N "(cached) $ECHO_C" >&6
29959else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029960 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029961fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029962ac_res=`eval echo '${'$as_ac_Header'}'`
29963 { echo "$as_me:$LINENO: result: $ac_res" >&5
29964echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029965
29966fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029967if test `eval echo '${'$as_ac_Header'}'` = yes; then
29968 cat >>confdefs.h <<_ACEOF
29969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29970_ACEOF
29971 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029972
29973else
29974 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029975
29976fi
29977
Reid Spencerbe3e4192007-08-17 05:45:26 +000029978done
Reid Spencer1000b732006-12-01 00:37:14 +000029979
29980else
29981 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029982
29983fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029984
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000029985if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029986
29987
29988for ac_header in ffi.h ffi/ffi.h
29989do
29990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29995 echo $ECHO_N "(cached) $ECHO_C" >&6
29996fi
29997ac_res=`eval echo '${'$as_ac_Header'}'`
29998 { echo "$as_me:$LINENO: result: $ac_res" >&5
29999echo "${ECHO_T}$ac_res" >&6; }
30000else
30001 # Is the header compilable?
30002{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30004cat >conftest.$ac_ext <<_ACEOF
30005/* confdefs.h. */
30006_ACEOF
30007cat confdefs.h >>conftest.$ac_ext
30008cat >>conftest.$ac_ext <<_ACEOF
30009/* end confdefs.h. */
30010$ac_includes_default
30011#include <$ac_header>
30012_ACEOF
30013rm -f conftest.$ac_objext
30014if { (ac_try="$ac_compile"
30015case "(($ac_try" in
30016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30018esac
30019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020 (eval "$ac_compile") 2>conftest.er1
30021 ac_status=$?
30022 grep -v '^ *+' conftest.er1 >conftest.err
30023 rm -f conftest.er1
30024 cat conftest.err >&5
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030026 (exit $ac_status); } &&
30027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30028 { (case "(($ac_try" in
30029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030 *) ac_try_echo=$ac_try;;
30031esac
30032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033 (eval "$ac_try") 2>&5
30034 ac_status=$?
30035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036 (exit $ac_status); }; } &&
30037 { ac_try='test -s conftest.$ac_objext'
30038 { (case "(($ac_try" in
30039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040 *) ac_try_echo=$ac_try;;
30041esac
30042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_try") 2>&5
30044 ac_status=$?
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030047 ac_header_compiler=yes
30048else
30049 echo "$as_me: failed program was:" >&5
30050sed 's/^/| /' conftest.$ac_ext >&5
30051
30052 ac_header_compiler=no
30053fi
30054
30055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30056{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30057echo "${ECHO_T}$ac_header_compiler" >&6; }
30058
30059# Is the header present?
30060{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30062cat >conftest.$ac_ext <<_ACEOF
30063/* confdefs.h. */
30064_ACEOF
30065cat confdefs.h >>conftest.$ac_ext
30066cat >>conftest.$ac_ext <<_ACEOF
30067/* end confdefs.h. */
30068#include <$ac_header>
30069_ACEOF
30070if { (ac_try="$ac_cpp conftest.$ac_ext"
30071case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30074esac
30075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30077 ac_status=$?
30078 grep -v '^ *+' conftest.er1 >conftest.err
30079 rm -f conftest.er1
30080 cat conftest.err >&5
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030082 (exit $ac_status); } >/dev/null; then
30083 if test -s conftest.err; then
30084 ac_cpp_err=$ac_c_preproc_warn_flag
30085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30086 else
30087 ac_cpp_err=
30088 fi
30089else
30090 ac_cpp_err=yes
30091fi
30092if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030093 ac_header_preproc=yes
30094else
30095 echo "$as_me: failed program was:" >&5
30096sed 's/^/| /' conftest.$ac_ext >&5
30097
30098 ac_header_preproc=no
30099fi
30100
30101rm -f conftest.err conftest.$ac_ext
30102{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30103echo "${ECHO_T}$ac_header_preproc" >&6; }
30104
30105# So? What about this header?
30106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30107 yes:no: )
30108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30112 ac_header_preproc=yes
30113 ;;
30114 no:yes:* )
30115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30127 ( cat <<\_ASBOX
30128## ----------------------------------- ##
30129## Report this to llvmbugs@cs.uiuc.edu ##
30130## ----------------------------------- ##
30131_ASBOX
30132 ) | sed "s/^/$as_me: WARNING: /" >&2
30133 ;;
30134esac
30135{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30138 echo $ECHO_N "(cached) $ECHO_C" >&6
30139else
30140 eval "$as_ac_Header=\$ac_header_preproc"
30141fi
30142ac_res=`eval echo '${'$as_ac_Header'}'`
30143 { echo "$as_me:$LINENO: result: $ac_res" >&5
30144echo "${ECHO_T}$ac_res" >&6; }
30145
30146fi
30147if test `eval echo '${'$as_ac_Header'}'` = yes; then
30148 cat >>confdefs.h <<_ACEOF
30149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30150_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030151
30152fi
30153
30154done
30155
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030156fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030157
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030158
Reid Spencer8085cff2005-01-16 02:58:39 +000030159
Reid Spencerb2ed05262006-11-03 18:04:08 +000030160 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30161echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30162if test "${ac_cv_huge_val_sanity+set}" = set; then
30163 echo $ECHO_N "(cached) $ECHO_C" >&6
30164else
30165
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030166 ac_ext=cpp
30167ac_cpp='$CXXCPP $CPPFLAGS'
30168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030171
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030172 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030173 if test "$cross_compiling" = yes; then
30174 ac_cv_huge_val_sanity=yes
30175else
30176 cat >conftest.$ac_ext <<_ACEOF
30177/* confdefs.h. */
30178_ACEOF
30179cat confdefs.h >>conftest.$ac_ext
30180cat >>conftest.$ac_ext <<_ACEOF
30181/* end confdefs.h. */
30182#include <math.h>
30183int
30184main ()
30185{
30186double x = HUGE_VAL; return x != x;
30187 ;
30188 return 0;
30189}
30190_ACEOF
30191rm -f conftest$ac_exeext
30192if { (ac_try="$ac_link"
30193case "(($ac_try" in
30194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30195 *) ac_try_echo=$ac_try;;
30196esac
30197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30198 (eval "$ac_link") 2>&5
30199 ac_status=$?
30200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30202 { (case "(($ac_try" in
30203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30204 *) ac_try_echo=$ac_try;;
30205esac
30206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30207 (eval "$ac_try") 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30211 ac_cv_huge_val_sanity=yes
30212else
30213 echo "$as_me: program exited with status $ac_status" >&5
30214echo "$as_me: failed program was:" >&5
30215sed 's/^/| /' conftest.$ac_ext >&5
30216
30217( exit $ac_status )
30218ac_cv_huge_val_sanity=no
30219fi
30220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30221fi
30222
30223
30224 ac_ext=c
30225ac_cpp='$CPP $CPPFLAGS'
30226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30228ac_compiler_gnu=$ac_cv_c_compiler_gnu
30229
30230
30231fi
30232{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30233echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30234 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30235
30236
Reid Spencera773bd52006-08-04 18:18:08 +000030237{ echo "$as_me:$LINENO: checking for pid_t" >&5
30238echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030239if test "${ac_cv_type_pid_t+set}" = set; then
30240 echo $ECHO_N "(cached) $ECHO_C" >&6
30241else
30242 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030243/* confdefs.h. */
30244_ACEOF
30245cat confdefs.h >>conftest.$ac_ext
30246cat >>conftest.$ac_ext <<_ACEOF
30247/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030248$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030249typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030250int
30251main ()
30252{
Reid Spencera773bd52006-08-04 18:18:08 +000030253if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030254 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030255if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030256 return 0;
30257 ;
30258 return 0;
30259}
30260_ACEOF
30261rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030262if { (ac_try="$ac_compile"
30263case "(($ac_try" in
30264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30265 *) ac_try_echo=$ac_try;;
30266esac
30267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30268 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030269 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030270 grep -v '^ *+' conftest.er1 >conftest.err
30271 rm -f conftest.er1
30272 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030274 (exit $ac_status); } &&
30275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30276 { (case "(($ac_try" in
30277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278 *) ac_try_echo=$ac_try;;
30279esac
30280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281 (eval "$ac_try") 2>&5
30282 ac_status=$?
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); }; } &&
30285 { ac_try='test -s conftest.$ac_objext'
30286 { (case "(($ac_try" in
30287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30288 *) ac_try_echo=$ac_try;;
30289esac
30290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30291 (eval "$ac_try") 2>&5
30292 ac_status=$?
30293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30294 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030295 ac_cv_type_pid_t=yes
30296else
30297 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030298sed 's/^/| /' conftest.$ac_ext >&5
30299
Reid Spencera773bd52006-08-04 18:18:08 +000030300 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030301fi
Reid Spencera773bd52006-08-04 18:18:08 +000030302
30303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030304fi
Reid Spencera773bd52006-08-04 18:18:08 +000030305{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30306echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030307if test $ac_cv_type_pid_t = yes; then
30308 :
30309else
30310
30311cat >>confdefs.h <<_ACEOF
30312#define pid_t int
30313_ACEOF
30314
30315fi
30316
Reid Spencera773bd52006-08-04 18:18:08 +000030317{ echo "$as_me:$LINENO: checking for size_t" >&5
30318echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030319if test "${ac_cv_type_size_t+set}" = set; then
30320 echo $ECHO_N "(cached) $ECHO_C" >&6
30321else
30322 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030323/* confdefs.h. */
30324_ACEOF
30325cat confdefs.h >>conftest.$ac_ext
30326cat >>conftest.$ac_ext <<_ACEOF
30327/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030328$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030329typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030330int
30331main ()
30332{
Reid Spencera773bd52006-08-04 18:18:08 +000030333if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030334 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030335if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030336 return 0;
30337 ;
30338 return 0;
30339}
30340_ACEOF
30341rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030342if { (ac_try="$ac_compile"
30343case "(($ac_try" in
30344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30345 *) ac_try_echo=$ac_try;;
30346esac
30347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30348 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030349 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030350 grep -v '^ *+' conftest.er1 >conftest.err
30351 rm -f conftest.er1
30352 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030354 (exit $ac_status); } &&
30355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30356 { (case "(($ac_try" in
30357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358 *) ac_try_echo=$ac_try;;
30359esac
30360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361 (eval "$ac_try") 2>&5
30362 ac_status=$?
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; } &&
30365 { ac_try='test -s conftest.$ac_objext'
30366 { (case "(($ac_try" in
30367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368 *) ac_try_echo=$ac_try;;
30369esac
30370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30371 (eval "$ac_try") 2>&5
30372 ac_status=$?
30373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030375 ac_cv_type_size_t=yes
30376else
30377 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030378sed 's/^/| /' conftest.$ac_ext >&5
30379
Reid Spencera773bd52006-08-04 18:18:08 +000030380 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030381fi
Reid Spencera773bd52006-08-04 18:18:08 +000030382
30383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030384fi
Reid Spencera773bd52006-08-04 18:18:08 +000030385{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30386echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030387if test $ac_cv_type_size_t = yes; then
30388 :
30389else
30390
30391cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030392#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030393_ACEOF
30394
30395fi
30396
Reid Spencera773bd52006-08-04 18:18:08 +000030397{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30398echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030399if test "${ac_cv_type_signal+set}" = set; then
30400 echo $ECHO_N "(cached) $ECHO_C" >&6
30401else
30402 cat >conftest.$ac_ext <<_ACEOF
30403/* confdefs.h. */
30404_ACEOF
30405cat confdefs.h >>conftest.$ac_ext
30406cat >>conftest.$ac_ext <<_ACEOF
30407/* end confdefs.h. */
30408#include <sys/types.h>
30409#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030410
30411int
30412main ()
30413{
Reid Spencera773bd52006-08-04 18:18:08 +000030414return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030415 ;
30416 return 0;
30417}
30418_ACEOF
30419rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030420if { (ac_try="$ac_compile"
30421case "(($ac_try" in
30422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30423 *) ac_try_echo=$ac_try;;
30424esac
30425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30426 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030427 ac_status=$?
30428 grep -v '^ *+' conftest.er1 >conftest.err
30429 rm -f conftest.er1
30430 cat conftest.err >&5
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030432 (exit $ac_status); } &&
30433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30434 { (case "(($ac_try" in
30435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436 *) ac_try_echo=$ac_try;;
30437esac
30438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439 (eval "$ac_try") 2>&5
30440 ac_status=$?
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); }; } &&
30443 { ac_try='test -s conftest.$ac_objext'
30444 { (case "(($ac_try" in
30445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30446 *) ac_try_echo=$ac_try;;
30447esac
30448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30449 (eval "$ac_try") 2>&5
30450 ac_status=$?
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030453 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030454else
30455 echo "$as_me: failed program was:" >&5
30456sed 's/^/| /' conftest.$ac_ext >&5
30457
Reid Spencera773bd52006-08-04 18:18:08 +000030458 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030459fi
Reid Spencera773bd52006-08-04 18:18:08 +000030460
30461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030462fi
Reid Spencera773bd52006-08-04 18:18:08 +000030463{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30464echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030465
30466cat >>confdefs.h <<_ACEOF
30467#define RETSIGTYPE $ac_cv_type_signal
30468_ACEOF
30469
30470
Reid Spencera773bd52006-08-04 18:18:08 +000030471{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30472echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030473if test "${ac_cv_struct_tm+set}" = set; then
30474 echo $ECHO_N "(cached) $ECHO_C" >&6
30475else
30476 cat >conftest.$ac_ext <<_ACEOF
30477/* confdefs.h. */
30478_ACEOF
30479cat confdefs.h >>conftest.$ac_ext
30480cat >>conftest.$ac_ext <<_ACEOF
30481/* end confdefs.h. */
30482#include <sys/types.h>
30483#include <time.h>
30484
30485int
30486main ()
30487{
Bill Wendlingebcceee2009-04-18 11:20:33 +000030488struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030489 ;
30490 return 0;
30491}
30492_ACEOF
30493rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030494if { (ac_try="$ac_compile"
30495case "(($ac_try" in
30496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30497 *) ac_try_echo=$ac_try;;
30498esac
30499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30500 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030501 ac_status=$?
30502 grep -v '^ *+' conftest.er1 >conftest.err
30503 rm -f conftest.er1
30504 cat conftest.err >&5
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030506 (exit $ac_status); } &&
30507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30508 { (case "(($ac_try" in
30509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510 *) ac_try_echo=$ac_try;;
30511esac
30512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513 (eval "$ac_try") 2>&5
30514 ac_status=$?
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); }; } &&
30517 { ac_try='test -s conftest.$ac_objext'
30518 { (case "(($ac_try" in
30519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520 *) ac_try_echo=$ac_try;;
30521esac
30522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523 (eval "$ac_try") 2>&5
30524 ac_status=$?
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030527 ac_cv_struct_tm=time.h
30528else
30529 echo "$as_me: failed program was:" >&5
30530sed 's/^/| /' conftest.$ac_ext >&5
30531
Reid Spencera773bd52006-08-04 18:18:08 +000030532 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030533fi
Reid Spencera773bd52006-08-04 18:18:08 +000030534
30535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030536fi
Reid Spencera773bd52006-08-04 18:18:08 +000030537{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30538echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030539if test $ac_cv_struct_tm = sys/time.h; then
30540
30541cat >>confdefs.h <<\_ACEOF
30542#define TM_IN_SYS_TIME 1
30543_ACEOF
30544
30545fi
30546
Reid Spencera773bd52006-08-04 18:18:08 +000030547{ echo "$as_me:$LINENO: checking for int64_t" >&5
30548echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030549if test "${ac_cv_type_int64_t+set}" = set; then
30550 echo $ECHO_N "(cached) $ECHO_C" >&6
30551else
30552 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030553/* confdefs.h. */
30554_ACEOF
30555cat confdefs.h >>conftest.$ac_ext
30556cat >>conftest.$ac_ext <<_ACEOF
30557/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030558$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030559typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030560int
30561main ()
30562{
Reid Spencera773bd52006-08-04 18:18:08 +000030563if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030564 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030565if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030566 return 0;
30567 ;
30568 return 0;
30569}
30570_ACEOF
30571rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030572if { (ac_try="$ac_compile"
30573case "(($ac_try" in
30574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30575 *) ac_try_echo=$ac_try;;
30576esac
30577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30578 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030579 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030580 grep -v '^ *+' conftest.er1 >conftest.err
30581 rm -f conftest.er1
30582 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030584 (exit $ac_status); } &&
30585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30586 { (case "(($ac_try" in
30587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30588 *) ac_try_echo=$ac_try;;
30589esac
30590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30591 (eval "$ac_try") 2>&5
30592 ac_status=$?
30593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30594 (exit $ac_status); }; } &&
30595 { ac_try='test -s conftest.$ac_objext'
30596 { (case "(($ac_try" in
30597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30598 *) ac_try_echo=$ac_try;;
30599esac
30600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30601 (eval "$ac_try") 2>&5
30602 ac_status=$?
30603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30604 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030605 ac_cv_type_int64_t=yes
30606else
30607 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030608sed 's/^/| /' conftest.$ac_ext >&5
30609
Reid Spencera773bd52006-08-04 18:18:08 +000030610 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030611fi
Reid Spencera773bd52006-08-04 18:18:08 +000030612
30613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030614fi
Reid Spencera773bd52006-08-04 18:18:08 +000030615{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30616echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030617if test $ac_cv_type_int64_t = yes; then
30618
30619cat >>confdefs.h <<_ACEOF
30620#define HAVE_INT64_T 1
30621_ACEOF
30622
30623
30624else
30625 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30626echo "$as_me: error: Type int64_t required but not found" >&2;}
30627 { (exit 1); exit 1; }; }
30628fi
30629
Reid Spencera773bd52006-08-04 18:18:08 +000030630{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30631echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030632if test "${ac_cv_type_uint64_t+set}" = set; then
30633 echo $ECHO_N "(cached) $ECHO_C" >&6
30634else
30635 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030636/* confdefs.h. */
30637_ACEOF
30638cat confdefs.h >>conftest.$ac_ext
30639cat >>conftest.$ac_ext <<_ACEOF
30640/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030641$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030642typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030643int
30644main ()
30645{
Reid Spencera773bd52006-08-04 18:18:08 +000030646if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030647 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030648if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030649 return 0;
30650 ;
30651 return 0;
30652}
30653_ACEOF
30654rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030655if { (ac_try="$ac_compile"
30656case "(($ac_try" in
30657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30658 *) ac_try_echo=$ac_try;;
30659esac
30660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30661 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030662 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030663 grep -v '^ *+' conftest.er1 >conftest.err
30664 rm -f conftest.er1
30665 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030667 (exit $ac_status); } &&
30668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30669 { (case "(($ac_try" in
30670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671 *) ac_try_echo=$ac_try;;
30672esac
30673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674 (eval "$ac_try") 2>&5
30675 ac_status=$?
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677 (exit $ac_status); }; } &&
30678 { ac_try='test -s conftest.$ac_objext'
30679 { (case "(($ac_try" in
30680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30681 *) ac_try_echo=$ac_try;;
30682esac
30683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30684 (eval "$ac_try") 2>&5
30685 ac_status=$?
30686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030688 ac_cv_type_uint64_t=yes
30689else
30690 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030691sed 's/^/| /' conftest.$ac_ext >&5
30692
Reid Spencera773bd52006-08-04 18:18:08 +000030693 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030694fi
Reid Spencera773bd52006-08-04 18:18:08 +000030695
30696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030697fi
Reid Spencera773bd52006-08-04 18:18:08 +000030698{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30699echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030700if test $ac_cv_type_uint64_t = yes; then
30701
30702cat >>confdefs.h <<_ACEOF
30703#define HAVE_UINT64_T 1
30704_ACEOF
30705
30706
30707else
Reid Spencera773bd52006-08-04 18:18:08 +000030708 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30709echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030710if test "${ac_cv_type_u_int64_t+set}" = set; then
30711 echo $ECHO_N "(cached) $ECHO_C" >&6
30712else
30713 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030714/* confdefs.h. */
30715_ACEOF
30716cat confdefs.h >>conftest.$ac_ext
30717cat >>conftest.$ac_ext <<_ACEOF
30718/* end confdefs.h. */
30719$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030720typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030721int
30722main ()
30723{
Reid Spencera773bd52006-08-04 18:18:08 +000030724if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030725 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030726if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030727 return 0;
30728 ;
30729 return 0;
30730}
30731_ACEOF
30732rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030733if { (ac_try="$ac_compile"
30734case "(($ac_try" in
30735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736 *) ac_try_echo=$ac_try;;
30737esac
30738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030741 grep -v '^ *+' conftest.er1 >conftest.err
30742 rm -f conftest.er1
30743 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030745 (exit $ac_status); } &&
30746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30747 { (case "(($ac_try" in
30748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30749 *) ac_try_echo=$ac_try;;
30750esac
30751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30752 (eval "$ac_try") 2>&5
30753 ac_status=$?
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); }; } &&
30756 { ac_try='test -s conftest.$ac_objext'
30757 { (case "(($ac_try" in
30758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30759 *) ac_try_echo=$ac_try;;
30760esac
30761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30762 (eval "$ac_try") 2>&5
30763 ac_status=$?
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030766 ac_cv_type_u_int64_t=yes
30767else
30768 echo "$as_me: failed program was:" >&5
30769sed 's/^/| /' conftest.$ac_ext >&5
30770
Reid Spencera773bd52006-08-04 18:18:08 +000030771 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030772fi
Reid Spencera773bd52006-08-04 18:18:08 +000030773
30774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030775fi
Reid Spencera773bd52006-08-04 18:18:08 +000030776{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30777echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030778if test $ac_cv_type_u_int64_t = yes; then
30779
30780cat >>confdefs.h <<_ACEOF
30781#define HAVE_U_INT64_T 1
30782_ACEOF
30783
30784
Misha Brukmanceca9042004-09-02 23:02:30 +000030785else
30786 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30787echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30788 { (exit 1); exit 1; }; }
30789fi
30790
John Criswell679ff312004-09-02 18:44:44 +000030791fi
30792
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030793
30794
30795
30796
30797
30798
30799
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030800
30801
Reid Spencerdf3be822006-01-23 08:15:53 +000030802for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030803do
30804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030805{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30807if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030808 echo $ECHO_N "(cached) $ECHO_C" >&6
30809else
30810 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030811/* confdefs.h. */
30812_ACEOF
30813cat confdefs.h >>conftest.$ac_ext
30814cat >>conftest.$ac_ext <<_ACEOF
30815/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30818#define $ac_func innocuous_$ac_func
30819
30820/* System header to define __stub macros and hopefully few prototypes,
30821 which can conflict with char $ac_func (); below.
30822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30823 <limits.h> exists even on freestanding compilers. */
30824
30825#ifdef __STDC__
30826# include <limits.h>
30827#else
30828# include <assert.h>
30829#endif
30830
30831#undef $ac_func
30832
Reid Spencera773bd52006-08-04 18:18:08 +000030833/* Override any GCC internal prototype to avoid an error.
30834 Use char because int might match the return type of a GCC
30835 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030836#ifdef __cplusplus
30837extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030838#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030839char $ac_func ();
30840/* The GNU C library defines this for functions which it implements
30841 to always fail with ENOSYS. Some functions are actually named
30842 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030843#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030844choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030845#endif
John Criswell7a73b802003-06-30 21:59:07 +000030846
John Criswell7a73b802003-06-30 21:59:07 +000030847int
30848main ()
30849{
Reid Spencera773bd52006-08-04 18:18:08 +000030850return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030851 ;
30852 return 0;
30853}
30854_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030855rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030856if { (ac_try="$ac_link"
30857case "(($ac_try" in
30858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30859 *) ac_try_echo=$ac_try;;
30860esac
30861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30862 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030863 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030864 grep -v '^ *+' conftest.er1 >conftest.err
30865 rm -f conftest.er1
30866 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030868 (exit $ac_status); } &&
30869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30870 { (case "(($ac_try" in
30871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30872 *) ac_try_echo=$ac_try;;
30873esac
30874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30875 (eval "$ac_try") 2>&5
30876 ac_status=$?
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); }; } &&
30879 { ac_try='test -s conftest$ac_exeext'
30880 { (case "(($ac_try" in
30881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882 *) ac_try_echo=$ac_try;;
30883esac
30884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885 (eval "$ac_try") 2>&5
30886 ac_status=$?
30887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030889 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030890else
30891 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030892sed 's/^/| /' conftest.$ac_ext >&5
30893
Reid Spencera773bd52006-08-04 18:18:08 +000030894 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030895fi
Reid Spencera773bd52006-08-04 18:18:08 +000030896
Bill Wendlingebcceee2009-04-18 11:20:33 +000030897rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030898 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030899fi
Reid Spencera773bd52006-08-04 18:18:08 +000030900ac_res=`eval echo '${'$as_ac_var'}'`
30901 { echo "$as_me:$LINENO: result: $ac_res" >&5
30902echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030903if test `eval echo '${'$as_ac_var'}'` = yes; then
30904 cat >>confdefs.h <<_ACEOF
30905#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030906_ACEOF
30907
30908fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030909done
John Criswell7a73b802003-06-30 21:59:07 +000030910
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030911
30912
30913
Reid Spencer6af3d262004-12-15 04:01:48 +000030914
Reid Spencer96cf5872007-07-13 10:05:30 +000030915for ac_func in powf fmodf strtof round
30916do
30917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30918{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30920if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30921 echo $ECHO_N "(cached) $ECHO_C" >&6
30922else
30923 cat >conftest.$ac_ext <<_ACEOF
30924/* confdefs.h. */
30925_ACEOF
30926cat confdefs.h >>conftest.$ac_ext
30927cat >>conftest.$ac_ext <<_ACEOF
30928/* end confdefs.h. */
30929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30931#define $ac_func innocuous_$ac_func
30932
30933/* System header to define __stub macros and hopefully few prototypes,
30934 which can conflict with char $ac_func (); below.
30935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30936 <limits.h> exists even on freestanding compilers. */
30937
30938#ifdef __STDC__
30939# include <limits.h>
30940#else
30941# include <assert.h>
30942#endif
30943
30944#undef $ac_func
30945
30946/* Override any GCC internal prototype to avoid an error.
30947 Use char because int might match the return type of a GCC
30948 builtin and then its argument prototype would still apply. */
30949#ifdef __cplusplus
30950extern "C"
30951#endif
30952char $ac_func ();
30953/* The GNU C library defines this for functions which it implements
30954 to always fail with ENOSYS. Some functions are actually named
30955 something starting with __ and the normal name is an alias. */
30956#if defined __stub_$ac_func || defined __stub___$ac_func
30957choke me
30958#endif
30959
30960int
30961main ()
30962{
30963return $ac_func ();
30964 ;
30965 return 0;
30966}
30967_ACEOF
30968rm -f conftest.$ac_objext conftest$ac_exeext
30969if { (ac_try="$ac_link"
30970case "(($ac_try" in
30971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30972 *) ac_try_echo=$ac_try;;
30973esac
30974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30975 (eval "$ac_link") 2>conftest.er1
30976 ac_status=$?
30977 grep -v '^ *+' conftest.er1 >conftest.err
30978 rm -f conftest.er1
30979 cat conftest.err >&5
30980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030981 (exit $ac_status); } &&
30982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30983 { (case "(($ac_try" in
30984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30985 *) ac_try_echo=$ac_try;;
30986esac
30987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30988 (eval "$ac_try") 2>&5
30989 ac_status=$?
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); }; } &&
30992 { ac_try='test -s conftest$ac_exeext'
30993 { (case "(($ac_try" in
30994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30995 *) ac_try_echo=$ac_try;;
30996esac
30997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30998 (eval "$ac_try") 2>&5
30999 ac_status=$?
31000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031002 eval "$as_ac_var=yes"
31003else
31004 echo "$as_me: failed program was:" >&5
31005sed 's/^/| /' conftest.$ac_ext >&5
31006
31007 eval "$as_ac_var=no"
31008fi
31009
Bill Wendlingebcceee2009-04-18 11:20:33 +000031010rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031011 conftest$ac_exeext conftest.$ac_ext
31012fi
31013ac_res=`eval echo '${'$as_ac_var'}'`
31014 { echo "$as_me:$LINENO: result: $ac_res" >&5
31015echo "${ECHO_T}$ac_res" >&6; }
31016if test `eval echo '${'$as_ac_var'}'` = yes; then
31017 cat >>confdefs.h <<_ACEOF
31018#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31019_ACEOF
31020
31021fi
31022done
31023
31024
31025
31026
31027
Reid Spencer6af3d262004-12-15 04:01:48 +000031028
Reid Spencerb90645c2007-02-16 19:17:20 +000031029for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31030do
31031as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31032{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31033echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31034if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31035 echo $ECHO_N "(cached) $ECHO_C" >&6
31036else
31037 cat >conftest.$ac_ext <<_ACEOF
31038/* confdefs.h. */
31039_ACEOF
31040cat confdefs.h >>conftest.$ac_ext
31041cat >>conftest.$ac_ext <<_ACEOF
31042/* end confdefs.h. */
31043/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31045#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031046
Reid Spencerb90645c2007-02-16 19:17:20 +000031047/* System header to define __stub macros and hopefully few prototypes,
31048 which can conflict with char $ac_func (); below.
31049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31050 <limits.h> exists even on freestanding compilers. */
31051
31052#ifdef __STDC__
31053# include <limits.h>
31054#else
31055# include <assert.h>
31056#endif
31057
31058#undef $ac_func
31059
31060/* Override any GCC internal prototype to avoid an error.
31061 Use char because int might match the return type of a GCC
31062 builtin and then its argument prototype would still apply. */
31063#ifdef __cplusplus
31064extern "C"
31065#endif
31066char $ac_func ();
31067/* The GNU C library defines this for functions which it implements
31068 to always fail with ENOSYS. Some functions are actually named
31069 something starting with __ and the normal name is an alias. */
31070#if defined __stub_$ac_func || defined __stub___$ac_func
31071choke me
31072#endif
31073
31074int
31075main ()
31076{
31077return $ac_func ();
31078 ;
31079 return 0;
31080}
31081_ACEOF
31082rm -f conftest.$ac_objext conftest$ac_exeext
31083if { (ac_try="$ac_link"
31084case "(($ac_try" in
31085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31086 *) ac_try_echo=$ac_try;;
31087esac
31088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31089 (eval "$ac_link") 2>conftest.er1
31090 ac_status=$?
31091 grep -v '^ *+' conftest.er1 >conftest.err
31092 rm -f conftest.er1
31093 cat conftest.err >&5
31094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031095 (exit $ac_status); } &&
31096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31097 { (case "(($ac_try" in
31098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31099 *) ac_try_echo=$ac_try;;
31100esac
31101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31102 (eval "$ac_try") 2>&5
31103 ac_status=$?
31104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31105 (exit $ac_status); }; } &&
31106 { ac_try='test -s conftest$ac_exeext'
31107 { (case "(($ac_try" in
31108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31109 *) ac_try_echo=$ac_try;;
31110esac
31111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31112 (eval "$ac_try") 2>&5
31113 ac_status=$?
31114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31115 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031116 eval "$as_ac_var=yes"
31117else
31118 echo "$as_me: failed program was:" >&5
31119sed 's/^/| /' conftest.$ac_ext >&5
31120
31121 eval "$as_ac_var=no"
31122fi
31123
Bill Wendlingebcceee2009-04-18 11:20:33 +000031124rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031125 conftest$ac_exeext conftest.$ac_ext
31126fi
31127ac_res=`eval echo '${'$as_ac_var'}'`
31128 { echo "$as_me:$LINENO: result: $ac_res" >&5
31129echo "${ECHO_T}$ac_res" >&6; }
31130if test `eval echo '${'$as_ac_var'}'` = yes; then
31131 cat >>confdefs.h <<_ACEOF
31132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31133_ACEOF
31134
31135fi
31136done
31137
31138
31139
31140
31141for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031142do
31143as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031144{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31145echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31146if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031147 echo $ECHO_N "(cached) $ECHO_C" >&6
31148else
31149 cat >conftest.$ac_ext <<_ACEOF
31150/* confdefs.h. */
31151_ACEOF
31152cat confdefs.h >>conftest.$ac_ext
31153cat >>conftest.$ac_ext <<_ACEOF
31154/* end confdefs.h. */
31155/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31157#define $ac_func innocuous_$ac_func
31158
31159/* System header to define __stub macros and hopefully few prototypes,
31160 which can conflict with char $ac_func (); below.
31161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31162 <limits.h> exists even on freestanding compilers. */
31163
31164#ifdef __STDC__
31165# include <limits.h>
31166#else
31167# include <assert.h>
31168#endif
31169
31170#undef $ac_func
31171
Reid Spencera773bd52006-08-04 18:18:08 +000031172/* Override any GCC internal prototype to avoid an error.
31173 Use char because int might match the return type of a GCC
31174 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031175#ifdef __cplusplus
31176extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031177#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031178char $ac_func ();
31179/* The GNU C library defines this for functions which it implements
31180 to always fail with ENOSYS. Some functions are actually named
31181 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031182#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031183choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031184#endif
31185
31186int
31187main ()
31188{
Reid Spencera773bd52006-08-04 18:18:08 +000031189return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031190 ;
31191 return 0;
31192}
31193_ACEOF
31194rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031195if { (ac_try="$ac_link"
31196case "(($ac_try" in
31197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31198 *) ac_try_echo=$ac_try;;
31199esac
31200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31201 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031202 ac_status=$?
31203 grep -v '^ *+' conftest.er1 >conftest.err
31204 rm -f conftest.er1
31205 cat conftest.err >&5
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031207 (exit $ac_status); } &&
31208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31209 { (case "(($ac_try" in
31210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31211 *) ac_try_echo=$ac_try;;
31212esac
31213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31214 (eval "$ac_try") 2>&5
31215 ac_status=$?
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); }; } &&
31218 { ac_try='test -s conftest$ac_exeext'
31219 { (case "(($ac_try" in
31220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31221 *) ac_try_echo=$ac_try;;
31222esac
31223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31224 (eval "$ac_try") 2>&5
31225 ac_status=$?
31226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31227 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031228 eval "$as_ac_var=yes"
31229else
31230 echo "$as_me: failed program was:" >&5
31231sed 's/^/| /' conftest.$ac_ext >&5
31232
Reid Spencera773bd52006-08-04 18:18:08 +000031233 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031234fi
Reid Spencera773bd52006-08-04 18:18:08 +000031235
Bill Wendlingebcceee2009-04-18 11:20:33 +000031236rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031237 conftest$ac_exeext conftest.$ac_ext
31238fi
Reid Spencera773bd52006-08-04 18:18:08 +000031239ac_res=`eval echo '${'$as_ac_var'}'`
31240 { echo "$as_me:$LINENO: result: $ac_res" >&5
31241echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031242if test `eval echo '${'$as_ac_var'}'` = yes; then
31243 cat >>confdefs.h <<_ACEOF
31244#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31245_ACEOF
31246
31247fi
31248done
31249
31250
31251
31252
31253
31254
31255
31256
31257for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031258do
31259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031260{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31262if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031263 echo $ECHO_N "(cached) $ECHO_C" >&6
31264else
31265 cat >conftest.$ac_ext <<_ACEOF
31266/* confdefs.h. */
31267_ACEOF
31268cat confdefs.h >>conftest.$ac_ext
31269cat >>conftest.$ac_ext <<_ACEOF
31270/* end confdefs.h. */
31271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31273#define $ac_func innocuous_$ac_func
31274
31275/* System header to define __stub macros and hopefully few prototypes,
31276 which can conflict with char $ac_func (); below.
31277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31278 <limits.h> exists even on freestanding compilers. */
31279
31280#ifdef __STDC__
31281# include <limits.h>
31282#else
31283# include <assert.h>
31284#endif
31285
31286#undef $ac_func
31287
Reid Spencera773bd52006-08-04 18:18:08 +000031288/* Override any GCC internal prototype to avoid an error.
31289 Use char because int might match the return type of a GCC
31290 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031291#ifdef __cplusplus
31292extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031293#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031294char $ac_func ();
31295/* The GNU C library defines this for functions which it implements
31296 to always fail with ENOSYS. Some functions are actually named
31297 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031298#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031299choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031300#endif
31301
31302int
31303main ()
31304{
Reid Spencera773bd52006-08-04 18:18:08 +000031305return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031306 ;
31307 return 0;
31308}
31309_ACEOF
31310rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031311if { (ac_try="$ac_link"
31312case "(($ac_try" in
31313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31314 *) ac_try_echo=$ac_try;;
31315esac
31316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31317 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031318 ac_status=$?
31319 grep -v '^ *+' conftest.er1 >conftest.err
31320 rm -f conftest.er1
31321 cat conftest.err >&5
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031323 (exit $ac_status); } &&
31324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31325 { (case "(($ac_try" in
31326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31327 *) ac_try_echo=$ac_try;;
31328esac
31329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31330 (eval "$ac_try") 2>&5
31331 ac_status=$?
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); }; } &&
31334 { ac_try='test -s conftest$ac_exeext'
31335 { (case "(($ac_try" in
31336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337 *) ac_try_echo=$ac_try;;
31338esac
31339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340 (eval "$ac_try") 2>&5
31341 ac_status=$?
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031344 eval "$as_ac_var=yes"
31345else
31346 echo "$as_me: failed program was:" >&5
31347sed 's/^/| /' conftest.$ac_ext >&5
31348
Reid Spencera773bd52006-08-04 18:18:08 +000031349 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031350fi
Reid Spencera773bd52006-08-04 18:18:08 +000031351
Bill Wendlingebcceee2009-04-18 11:20:33 +000031352rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031353 conftest$ac_exeext conftest.$ac_ext
31354fi
Reid Spencera773bd52006-08-04 18:18:08 +000031355ac_res=`eval echo '${'$as_ac_var'}'`
31356 { echo "$as_me:$LINENO: result: $ac_res" >&5
31357echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031358if test `eval echo '${'$as_ac_var'}'` = yes; then
31359 cat >>confdefs.h <<_ACEOF
31360#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31361_ACEOF
31362
31363fi
31364done
31365
31366
Reid Spencerba46ca32004-12-31 05:49:15 +000031367
31368
Chris Lattner0b142592005-11-14 06:57:34 +000031369
Chris Lattner511f11d2005-11-14 07:25:50 +000031370for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031371do
31372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031373{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31375if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031376 echo $ECHO_N "(cached) $ECHO_C" >&6
31377else
31378 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031379/* confdefs.h. */
31380_ACEOF
31381cat confdefs.h >>conftest.$ac_ext
31382cat >>conftest.$ac_ext <<_ACEOF
31383/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31386#define $ac_func innocuous_$ac_func
31387
31388/* System header to define __stub macros and hopefully few prototypes,
31389 which can conflict with char $ac_func (); below.
31390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31391 <limits.h> exists even on freestanding compilers. */
31392
31393#ifdef __STDC__
31394# include <limits.h>
31395#else
31396# include <assert.h>
31397#endif
31398
31399#undef $ac_func
31400
Reid Spencera773bd52006-08-04 18:18:08 +000031401/* Override any GCC internal prototype to avoid an error.
31402 Use char because int might match the return type of a GCC
31403 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031404#ifdef __cplusplus
31405extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031406#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031407char $ac_func ();
31408/* The GNU C library defines this for functions which it implements
31409 to always fail with ENOSYS. Some functions are actually named
31410 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031411#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031412choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031413#endif
John Criswell7a73b802003-06-30 21:59:07 +000031414
John Criswell7a73b802003-06-30 21:59:07 +000031415int
31416main ()
31417{
Reid Spencera773bd52006-08-04 18:18:08 +000031418return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031419 ;
31420 return 0;
31421}
31422_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031423rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031424if { (ac_try="$ac_link"
31425case "(($ac_try" in
31426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31427 *) ac_try_echo=$ac_try;;
31428esac
31429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31430 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031431 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031432 grep -v '^ *+' conftest.er1 >conftest.err
31433 rm -f conftest.er1
31434 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031436 (exit $ac_status); } &&
31437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31438 { (case "(($ac_try" in
31439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31440 *) ac_try_echo=$ac_try;;
31441esac
31442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31443 (eval "$ac_try") 2>&5
31444 ac_status=$?
31445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31446 (exit $ac_status); }; } &&
31447 { ac_try='test -s conftest$ac_exeext'
31448 { (case "(($ac_try" in
31449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31450 *) ac_try_echo=$ac_try;;
31451esac
31452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31453 (eval "$ac_try") 2>&5
31454 ac_status=$?
31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31456 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031457 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031458else
31459 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031460sed 's/^/| /' conftest.$ac_ext >&5
31461
Reid Spencera773bd52006-08-04 18:18:08 +000031462 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031463fi
Reid Spencera773bd52006-08-04 18:18:08 +000031464
Bill Wendlingebcceee2009-04-18 11:20:33 +000031465rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031466 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031467fi
Reid Spencera773bd52006-08-04 18:18:08 +000031468ac_res=`eval echo '${'$as_ac_var'}'`
31469 { echo "$as_me:$LINENO: result: $ac_res" >&5
31470echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031471if test `eval echo '${'$as_ac_var'}'` = yes; then
31472 cat >>confdefs.h <<_ACEOF
31473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031474_ACEOF
31475
31476fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031477done
John Criswell7a73b802003-06-30 21:59:07 +000031478
Reid Spencercdb08a32006-06-05 16:11:07 +000031479
31480
31481
31482
Reid Spencerafa22e22006-12-10 23:29:19 +000031483for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031484do
31485as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031486{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31487echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31488if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031489 echo $ECHO_N "(cached) $ECHO_C" >&6
31490else
31491 cat >conftest.$ac_ext <<_ACEOF
31492/* confdefs.h. */
31493_ACEOF
31494cat confdefs.h >>conftest.$ac_ext
31495cat >>conftest.$ac_ext <<_ACEOF
31496/* end confdefs.h. */
31497/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31499#define $ac_func innocuous_$ac_func
31500
31501/* System header to define __stub macros and hopefully few prototypes,
31502 which can conflict with char $ac_func (); below.
31503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31504 <limits.h> exists even on freestanding compilers. */
31505
31506#ifdef __STDC__
31507# include <limits.h>
31508#else
31509# include <assert.h>
31510#endif
31511
31512#undef $ac_func
31513
Reid Spencera773bd52006-08-04 18:18:08 +000031514/* Override any GCC internal prototype to avoid an error.
31515 Use char because int might match the return type of a GCC
31516 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031517#ifdef __cplusplus
31518extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031519#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031520char $ac_func ();
31521/* The GNU C library defines this for functions which it implements
31522 to always fail with ENOSYS. Some functions are actually named
31523 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031524#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031525choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031526#endif
31527
31528int
31529main ()
31530{
Reid Spencera773bd52006-08-04 18:18:08 +000031531return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031532 ;
31533 return 0;
31534}
31535_ACEOF
31536rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031537if { (ac_try="$ac_link"
31538case "(($ac_try" in
31539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31540 *) ac_try_echo=$ac_try;;
31541esac
31542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31543 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031544 ac_status=$?
31545 grep -v '^ *+' conftest.er1 >conftest.err
31546 rm -f conftest.er1
31547 cat conftest.err >&5
31548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031549 (exit $ac_status); } &&
31550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31551 { (case "(($ac_try" in
31552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31553 *) ac_try_echo=$ac_try;;
31554esac
31555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31556 (eval "$ac_try") 2>&5
31557 ac_status=$?
31558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31559 (exit $ac_status); }; } &&
31560 { ac_try='test -s conftest$ac_exeext'
31561 { (case "(($ac_try" in
31562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31563 *) ac_try_echo=$ac_try;;
31564esac
31565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31566 (eval "$ac_try") 2>&5
31567 ac_status=$?
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031570 eval "$as_ac_var=yes"
31571else
31572 echo "$as_me: failed program was:" >&5
31573sed 's/^/| /' conftest.$ac_ext >&5
31574
Reid Spencera773bd52006-08-04 18:18:08 +000031575 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031576fi
Reid Spencera773bd52006-08-04 18:18:08 +000031577
Bill Wendlingebcceee2009-04-18 11:20:33 +000031578rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031579 conftest$ac_exeext conftest.$ac_ext
31580fi
Reid Spencera773bd52006-08-04 18:18:08 +000031581ac_res=`eval echo '${'$as_ac_var'}'`
31582 { echo "$as_me:$LINENO: result: $ac_res" >&5
31583echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031584if test `eval echo '${'$as_ac_var'}'` = yes; then
31585 cat >>confdefs.h <<_ACEOF
31586#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31587_ACEOF
31588
31589fi
31590done
31591
Reid Spencera773bd52006-08-04 18:18:08 +000031592{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31593echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031594if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031595 echo $ECHO_N "(cached) $ECHO_C" >&6
31596else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031597 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031598ac_cpp='$CPP $CPPFLAGS'
31599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31601ac_compiler_gnu=$ac_cv_c_compiler_gnu
31602
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031603 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031604 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031605else
31606 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031607
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031608 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031609_ACEOF
31610cat confdefs.h >>conftest.$ac_ext
31611cat >>conftest.$ac_ext <<_ACEOF
31612/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031613
John Criswella0137d32003-10-13 16:22:01 +000031614#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031615#include <stdlib.h>
31616
John Criswella0137d32003-10-13 16:22:01 +000031617int
31618main ()
31619{
31620
Reid Spencer2706f8c2004-09-19 23:53:36 +000031621volatile double A, B;
31622char Buffer[100];
31623A = 1;
31624A /= 10.0;
31625sprintf(Buffer, "%a", A);
31626B = atof(Buffer);
31627if (A != B)
31628 return (1);
31629if (A != 0x1.999999999999ap-4)
31630 return (1);
31631return (0);
John Criswella0137d32003-10-13 16:22:01 +000031632 ;
31633 return 0;
31634}
31635_ACEOF
31636rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031637if { (ac_try="$ac_link"
31638case "(($ac_try" in
31639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31640 *) ac_try_echo=$ac_try;;
31641esac
31642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31643 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031644 ac_status=$?
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031647 { (case "(($ac_try" in
31648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31649 *) ac_try_echo=$ac_try;;
31650esac
31651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31652 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031653 ac_status=$?
31654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031656 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031657else
31658 echo "$as_me: program exited with status $ac_status" >&5
31659echo "$as_me: failed program was:" >&5
31660sed 's/^/| /' conftest.$ac_ext >&5
31661
31662( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031663llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031664fi
Reid Spencera773bd52006-08-04 18:18:08 +000031665rm -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 +000031666fi
Reid Spencera773bd52006-08-04 18:18:08 +000031667
31668
Reid Spencer2706f8c2004-09-19 23:53:36 +000031669 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031670ac_cpp='$CPP $CPPFLAGS'
31671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31673ac_compiler_gnu=$ac_cv_c_compiler_gnu
31674
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031675fi
Reid Spencera773bd52006-08-04 18:18:08 +000031676{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31677echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031678 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031679
31680cat >>confdefs.h <<\_ACEOF
31681#define HAVE_PRINTF_A 1
31682_ACEOF
31683
Reid Spencer2706f8c2004-09-19 23:53:36 +000031684 fi
John Criswella0137d32003-10-13 16:22:01 +000031685
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031686# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31687# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031688{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31689echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031690if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031691 echo $ECHO_N "(cached) $ECHO_C" >&6
31692else
John Criswell0021c312004-02-13 21:57:29 +000031693 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031694/* confdefs.h. */
31695_ACEOF
31696cat confdefs.h >>conftest.$ac_ext
31697cat >>conftest.$ac_ext <<_ACEOF
31698/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031699#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031700int
31701main ()
31702{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031703char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031704 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031705 ;
31706 return 0;
31707}
31708_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031709rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031710if { (ac_try="$ac_link"
31711case "(($ac_try" in
31712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713 *) ac_try_echo=$ac_try;;
31714esac
31715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31716 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031717 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031718 grep -v '^ *+' conftest.er1 >conftest.err
31719 rm -f conftest.er1
31720 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031722 (exit $ac_status); } &&
31723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31724 { (case "(($ac_try" in
31725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31726 *) ac_try_echo=$ac_try;;
31727esac
31728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31729 (eval "$ac_try") 2>&5
31730 ac_status=$?
31731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732 (exit $ac_status); }; } &&
31733 { ac_try='test -s conftest$ac_exeext'
31734 { (case "(($ac_try" in
31735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31736 *) ac_try_echo=$ac_try;;
31737esac
31738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31739 (eval "$ac_try") 2>&5
31740 ac_status=$?
31741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031743 ac_cv_working_alloca_h=yes
31744else
31745 echo "$as_me: failed program was:" >&5
31746sed 's/^/| /' conftest.$ac_ext >&5
31747
Reid Spencera773bd52006-08-04 18:18:08 +000031748 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031749fi
Reid Spencera773bd52006-08-04 18:18:08 +000031750
Bill Wendlingebcceee2009-04-18 11:20:33 +000031751rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031752 conftest$ac_exeext conftest.$ac_ext
31753fi
Reid Spencera773bd52006-08-04 18:18:08 +000031754{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31755echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031756if test $ac_cv_working_alloca_h = yes; then
31757
31758cat >>confdefs.h <<\_ACEOF
31759#define HAVE_ALLOCA_H 1
31760_ACEOF
31761
31762fi
31763
Reid Spencera773bd52006-08-04 18:18:08 +000031764{ echo "$as_me:$LINENO: checking for alloca" >&5
31765echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031766if test "${ac_cv_func_alloca_works+set}" = set; then
31767 echo $ECHO_N "(cached) $ECHO_C" >&6
31768else
31769 cat >conftest.$ac_ext <<_ACEOF
31770/* confdefs.h. */
31771_ACEOF
31772cat confdefs.h >>conftest.$ac_ext
31773cat >>conftest.$ac_ext <<_ACEOF
31774/* end confdefs.h. */
31775#ifdef __GNUC__
31776# define alloca __builtin_alloca
31777#else
31778# ifdef _MSC_VER
31779# include <malloc.h>
31780# define alloca _alloca
31781# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000031782# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031783# include <alloca.h>
31784# else
31785# ifdef _AIX
31786 #pragma alloca
31787# else
31788# ifndef alloca /* predefined by HP cc +Olibcalls */
31789char *alloca ();
31790# endif
31791# endif
31792# endif
31793# endif
31794#endif
31795
31796int
31797main ()
31798{
31799char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031800 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031801 ;
31802 return 0;
31803}
31804_ACEOF
31805rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031806if { (ac_try="$ac_link"
31807case "(($ac_try" in
31808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809 *) ac_try_echo=$ac_try;;
31810esac
31811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031813 ac_status=$?
31814 grep -v '^ *+' conftest.er1 >conftest.err
31815 rm -f conftest.er1
31816 cat conftest.err >&5
31817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031818 (exit $ac_status); } &&
31819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31820 { (case "(($ac_try" in
31821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822 *) ac_try_echo=$ac_try;;
31823esac
31824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825 (eval "$ac_try") 2>&5
31826 ac_status=$?
31827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828 (exit $ac_status); }; } &&
31829 { ac_try='test -s conftest$ac_exeext'
31830 { (case "(($ac_try" in
31831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31832 *) ac_try_echo=$ac_try;;
31833esac
31834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31835 (eval "$ac_try") 2>&5
31836 ac_status=$?
31837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031839 ac_cv_func_alloca_works=yes
31840else
31841 echo "$as_me: failed program was:" >&5
31842sed 's/^/| /' conftest.$ac_ext >&5
31843
Reid Spencera773bd52006-08-04 18:18:08 +000031844 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031845fi
Reid Spencera773bd52006-08-04 18:18:08 +000031846
Bill Wendlingebcceee2009-04-18 11:20:33 +000031847rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031848 conftest$ac_exeext conftest.$ac_ext
31849fi
Reid Spencera773bd52006-08-04 18:18:08 +000031850{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31851echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031852
31853if test $ac_cv_func_alloca_works = yes; then
31854
31855cat >>confdefs.h <<\_ACEOF
31856#define HAVE_ALLOCA 1
31857_ACEOF
31858
31859else
31860 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31861# that cause trouble. Some versions do not even contain alloca or
31862# contain a buggy version. If you still want to use their alloca,
31863# use ar to extract alloca.o from them instead of compiling alloca.c.
31864
Reid Spencera773bd52006-08-04 18:18:08 +000031865ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031866
31867cat >>confdefs.h <<\_ACEOF
31868#define C_ALLOCA 1
31869_ACEOF
31870
31871
Reid Spencera773bd52006-08-04 18:18:08 +000031872{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31873echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031874if test "${ac_cv_os_cray+set}" = set; then
31875 echo $ECHO_N "(cached) $ECHO_C" >&6
31876else
31877 cat >conftest.$ac_ext <<_ACEOF
31878/* confdefs.h. */
31879_ACEOF
31880cat confdefs.h >>conftest.$ac_ext
31881cat >>conftest.$ac_ext <<_ACEOF
31882/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031883#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031884webecray
31885#else
31886wenotbecray
31887#endif
31888
31889_ACEOF
31890if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31891 $EGREP "webecray" >/dev/null 2>&1; then
31892 ac_cv_os_cray=yes
31893else
31894 ac_cv_os_cray=no
31895fi
31896rm -f conftest*
31897
31898fi
Reid Spencera773bd52006-08-04 18:18:08 +000031899{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31900echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031901if test $ac_cv_os_cray = yes; then
31902 for ac_func in _getb67 GETB67 getb67; do
31903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031904{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31906if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031907 echo $ECHO_N "(cached) $ECHO_C" >&6
31908else
31909 cat >conftest.$ac_ext <<_ACEOF
31910/* confdefs.h. */
31911_ACEOF
31912cat confdefs.h >>conftest.$ac_ext
31913cat >>conftest.$ac_ext <<_ACEOF
31914/* end confdefs.h. */
31915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31917#define $ac_func innocuous_$ac_func
31918
31919/* System header to define __stub macros and hopefully few prototypes,
31920 which can conflict with char $ac_func (); below.
31921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31922 <limits.h> exists even on freestanding compilers. */
31923
31924#ifdef __STDC__
31925# include <limits.h>
31926#else
31927# include <assert.h>
31928#endif
31929
31930#undef $ac_func
31931
Reid Spencera773bd52006-08-04 18:18:08 +000031932/* Override any GCC internal prototype to avoid an error.
31933 Use char because int might match the return type of a GCC
31934 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031935#ifdef __cplusplus
31936extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031937#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031938char $ac_func ();
31939/* The GNU C library defines this for functions which it implements
31940 to always fail with ENOSYS. Some functions are actually named
31941 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031942#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031943choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031944#endif
31945
31946int
31947main ()
31948{
Reid Spencera773bd52006-08-04 18:18:08 +000031949return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031950 ;
31951 return 0;
31952}
31953_ACEOF
31954rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031955if { (ac_try="$ac_link"
31956case "(($ac_try" in
31957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31958 *) ac_try_echo=$ac_try;;
31959esac
31960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31961 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031962 ac_status=$?
31963 grep -v '^ *+' conftest.er1 >conftest.err
31964 rm -f conftest.er1
31965 cat conftest.err >&5
31966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031967 (exit $ac_status); } &&
31968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31969 { (case "(($ac_try" in
31970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31971 *) ac_try_echo=$ac_try;;
31972esac
31973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31974 (eval "$ac_try") 2>&5
31975 ac_status=$?
31976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31977 (exit $ac_status); }; } &&
31978 { ac_try='test -s conftest$ac_exeext'
31979 { (case "(($ac_try" in
31980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31981 *) ac_try_echo=$ac_try;;
31982esac
31983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31984 (eval "$ac_try") 2>&5
31985 ac_status=$?
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031988 eval "$as_ac_var=yes"
31989else
31990 echo "$as_me: failed program was:" >&5
31991sed 's/^/| /' conftest.$ac_ext >&5
31992
Reid Spencera773bd52006-08-04 18:18:08 +000031993 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031994fi
Reid Spencera773bd52006-08-04 18:18:08 +000031995
Bill Wendlingebcceee2009-04-18 11:20:33 +000031996rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031997 conftest$ac_exeext conftest.$ac_ext
31998fi
Reid Spencera773bd52006-08-04 18:18:08 +000031999ac_res=`eval echo '${'$as_ac_var'}'`
32000 { echo "$as_me:$LINENO: result: $ac_res" >&5
32001echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032002if test `eval echo '${'$as_ac_var'}'` = yes; then
32003
32004cat >>confdefs.h <<_ACEOF
32005#define CRAY_STACKSEG_END $ac_func
32006_ACEOF
32007
32008 break
32009fi
32010
32011 done
32012fi
32013
Reid Spencera773bd52006-08-04 18:18:08 +000032014{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32015echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032016if test "${ac_cv_c_stack_direction+set}" = set; then
32017 echo $ECHO_N "(cached) $ECHO_C" >&6
32018else
32019 if test "$cross_compiling" = yes; then
32020 ac_cv_c_stack_direction=0
32021else
32022 cat >conftest.$ac_ext <<_ACEOF
32023/* confdefs.h. */
32024_ACEOF
32025cat confdefs.h >>conftest.$ac_ext
32026cat >>conftest.$ac_ext <<_ACEOF
32027/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032028$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032029int
32030find_stack_direction ()
32031{
32032 static char *addr = 0;
32033 auto char dummy;
32034 if (addr == 0)
32035 {
32036 addr = &dummy;
32037 return find_stack_direction ();
32038 }
John Criswell0021c312004-02-13 21:57:29 +000032039 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032040 return (&dummy > addr) ? 1 : -1;
32041}
John Criswell0021c312004-02-13 21:57:29 +000032042
John Criswell0021c312004-02-13 21:57:29 +000032043int
32044main ()
32045{
Reid Spencera773bd52006-08-04 18:18:08 +000032046 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000032047}
32048_ACEOF
32049rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032050if { (ac_try="$ac_link"
32051case "(($ac_try" in
32052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32053 *) ac_try_echo=$ac_try;;
32054esac
32055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32056 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032057 ac_status=$?
32058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032060 { (case "(($ac_try" in
32061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062 *) ac_try_echo=$ac_try;;
32063esac
32064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032066 ac_status=$?
32067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32068 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032069 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000032070else
32071 echo "$as_me: program exited with status $ac_status" >&5
32072echo "$as_me: failed program was:" >&5
32073sed 's/^/| /' conftest.$ac_ext >&5
32074
32075( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032076ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000032077fi
Reid Spencera773bd52006-08-04 18:18:08 +000032078rm -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 +000032079fi
Reid Spencera773bd52006-08-04 18:18:08 +000032080
32081
John Criswell0021c312004-02-13 21:57:29 +000032082fi
Reid Spencera773bd52006-08-04 18:18:08 +000032083{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32084echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032085
32086cat >>confdefs.h <<_ACEOF
32087#define STACK_DIRECTION $ac_cv_c_stack_direction
32088_ACEOF
32089
32090
John Criswell0021c312004-02-13 21:57:29 +000032091fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032092
32093
Reid Spencera773bd52006-08-04 18:18:08 +000032094{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32095echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032096if test "${ac_cv_func_rand48+set}" = set; then
32097 echo $ECHO_N "(cached) $ECHO_C" >&6
32098else
Reid Spencera773bd52006-08-04 18:18:08 +000032099 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032100ac_cpp='$CXXCPP $CPPFLAGS'
32101ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32102ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32103ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32104
32105 cat >conftest.$ac_ext <<_ACEOF
32106/* confdefs.h. */
32107_ACEOF
32108cat confdefs.h >>conftest.$ac_ext
32109cat >>conftest.$ac_ext <<_ACEOF
32110/* end confdefs.h. */
32111#include <stdlib.h>
32112int
32113main ()
32114{
32115srand48(0);lrand48();drand48();
32116 ;
32117 return 0;
32118}
32119_ACEOF
32120rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032121if { (ac_try="$ac_compile"
32122case "(($ac_try" in
32123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32124 *) ac_try_echo=$ac_try;;
32125esac
32126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32127 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032128 ac_status=$?
32129 grep -v '^ *+' conftest.er1 >conftest.err
32130 rm -f conftest.er1
32131 cat conftest.err >&5
32132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032133 (exit $ac_status); } &&
32134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32135 { (case "(($ac_try" in
32136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32137 *) ac_try_echo=$ac_try;;
32138esac
32139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32140 (eval "$ac_try") 2>&5
32141 ac_status=$?
32142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143 (exit $ac_status); }; } &&
32144 { ac_try='test -s conftest.$ac_objext'
32145 { (case "(($ac_try" in
32146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32147 *) ac_try_echo=$ac_try;;
32148esac
32149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32150 (eval "$ac_try") 2>&5
32151 ac_status=$?
32152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32153 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032154 ac_cv_func_rand48=yes
32155else
32156 echo "$as_me: failed program was:" >&5
32157sed 's/^/| /' conftest.$ac_ext >&5
32158
Reid Spencera773bd52006-08-04 18:18:08 +000032159 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032160fi
Reid Spencera773bd52006-08-04 18:18:08 +000032161
32162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032163 ac_ext=c
32164ac_cpp='$CPP $CPPFLAGS'
32165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32167ac_compiler_gnu=$ac_cv_c_compiler_gnu
32168
32169fi
Reid Spencera773bd52006-08-04 18:18:08 +000032170{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32171echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032172
32173if test "$ac_cv_func_rand48" = "yes" ; then
32174
32175cat >>confdefs.h <<\_ACEOF
32176#define HAVE_RAND48 1
32177_ACEOF
32178
32179fi
John Criswell0021c312004-02-13 21:57:29 +000032180
32181
Reid Spencera773bd52006-08-04 18:18:08 +000032182{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32183echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032184if test "${ac_cv_cxx_namespaces+set}" = set; then
32185 echo $ECHO_N "(cached) $ECHO_C" >&6
32186else
Reid Spencera773bd52006-08-04 18:18:08 +000032187 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032188ac_cpp='$CXXCPP $CPPFLAGS'
32189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32192
32193 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032194/* confdefs.h. */
32195_ACEOF
32196cat confdefs.h >>conftest.$ac_ext
32197cat >>conftest.$ac_ext <<_ACEOF
32198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032199namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000032200int
32201main ()
32202{
32203using namespace Outer::Inner; return i;
32204 ;
32205 return 0;
32206}
32207_ACEOF
32208rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032209if { (ac_try="$ac_compile"
32210case "(($ac_try" in
32211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32212 *) ac_try_echo=$ac_try;;
32213esac
32214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32215 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032216 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032217 grep -v '^ *+' conftest.er1 >conftest.err
32218 rm -f conftest.er1
32219 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032221 (exit $ac_status); } &&
32222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32223 { (case "(($ac_try" in
32224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32225 *) ac_try_echo=$ac_try;;
32226esac
32227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32228 (eval "$ac_try") 2>&5
32229 ac_status=$?
32230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 (exit $ac_status); }; } &&
32232 { ac_try='test -s conftest.$ac_objext'
32233 { (case "(($ac_try" in
32234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32235 *) ac_try_echo=$ac_try;;
32236esac
32237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32238 (eval "$ac_try") 2>&5
32239 ac_status=$?
32240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032242 ac_cv_cxx_namespaces=yes
32243else
32244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032245sed 's/^/| /' conftest.$ac_ext >&5
32246
Reid Spencera773bd52006-08-04 18:18:08 +000032247 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032248fi
Reid Spencera773bd52006-08-04 18:18:08 +000032249
32250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032251 ac_ext=c
32252ac_cpp='$CPP $CPPFLAGS'
32253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32255ac_compiler_gnu=$ac_cv_c_compiler_gnu
32256
32257
32258fi
Reid Spencera773bd52006-08-04 18:18:08 +000032259{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32260echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032261if test "$ac_cv_cxx_namespaces" = yes; then
32262
32263cat >>confdefs.h <<\_ACEOF
32264#define HAVE_NAMESPACES
32265_ACEOF
32266
32267fi
32268
Reid Spencera773bd52006-08-04 18:18:08 +000032269{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32270echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032271if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32272 echo $ECHO_N "(cached) $ECHO_C" >&6
32273else
32274
Reid Spencera773bd52006-08-04 18:18:08 +000032275 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032276ac_cpp='$CXXCPP $CPPFLAGS'
32277ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32278ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32279ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32280
32281 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032282/* confdefs.h. */
32283_ACEOF
32284cat confdefs.h >>conftest.$ac_ext
32285cat >>conftest.$ac_ext <<_ACEOF
32286/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032287#include <iterator>
32288#ifdef HAVE_NAMESPACES
32289using namespace std;
32290#endif
John Criswell7a73b802003-06-30 21:59:07 +000032291int
32292main ()
32293{
32294iterator<int,int,int> t; return 0;
32295 ;
32296 return 0;
32297}
32298_ACEOF
32299rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032300if { (ac_try="$ac_compile"
32301case "(($ac_try" in
32302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32303 *) ac_try_echo=$ac_try;;
32304esac
32305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32306 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032307 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032308 grep -v '^ *+' conftest.er1 >conftest.err
32309 rm -f conftest.er1
32310 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032312 (exit $ac_status); } &&
32313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32314 { (case "(($ac_try" in
32315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316 *) ac_try_echo=$ac_try;;
32317esac
32318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319 (eval "$ac_try") 2>&5
32320 ac_status=$?
32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322 (exit $ac_status); }; } &&
32323 { ac_try='test -s conftest.$ac_objext'
32324 { (case "(($ac_try" in
32325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326 *) ac_try_echo=$ac_try;;
32327esac
32328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329 (eval "$ac_try") 2>&5
32330 ac_status=$?
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032333 ac_cv_cxx_have_std_iterator=yes
32334else
32335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032336sed 's/^/| /' conftest.$ac_ext >&5
32337
Reid Spencera773bd52006-08-04 18:18:08 +000032338 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032339fi
Reid Spencera773bd52006-08-04 18:18:08 +000032340
32341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032342 ac_ext=c
32343ac_cpp='$CPP $CPPFLAGS'
32344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32346ac_compiler_gnu=$ac_cv_c_compiler_gnu
32347
32348
32349fi
Reid Spencera773bd52006-08-04 18:18:08 +000032350{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32351echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032352if test "$ac_cv_cxx_have_std_iterator" = yes
32353then
John Criswell40468462004-09-24 21:19:06 +000032354
32355cat >>confdefs.h <<\_ACEOF
32356#define HAVE_STD_ITERATOR 1
32357_ACEOF
32358
32359else
32360
32361cat >>confdefs.h <<\_ACEOF
32362#define HAVE_STD_ITERATOR 0
32363_ACEOF
32364
John Criswell7a73b802003-06-30 21:59:07 +000032365fi
32366
Reid Spencera773bd52006-08-04 18:18:08 +000032367{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32368echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032369if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32370 echo $ECHO_N "(cached) $ECHO_C" >&6
32371else
32372
Reid Spencera773bd52006-08-04 18:18:08 +000032373 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032374ac_cpp='$CXXCPP $CPPFLAGS'
32375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32378
32379 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032380/* confdefs.h. */
32381_ACEOF
32382cat confdefs.h >>conftest.$ac_ext
32383cat >>conftest.$ac_ext <<_ACEOF
32384/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032385#include <iterator>
32386#ifdef HAVE_NAMESPACES
32387using namespace std;
32388#endif
John Criswell7a73b802003-06-30 21:59:07 +000032389int
32390main ()
32391{
John Criswellc78022e2003-07-29 19:11:58 +000032392bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032393 ;
32394 return 0;
32395}
32396_ACEOF
32397rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032398if { (ac_try="$ac_compile"
32399case "(($ac_try" in
32400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401 *) ac_try_echo=$ac_try;;
32402esac
32403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032405 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032406 grep -v '^ *+' conftest.er1 >conftest.err
32407 rm -f conftest.er1
32408 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032410 (exit $ac_status); } &&
32411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32412 { (case "(($ac_try" in
32413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414 *) ac_try_echo=$ac_try;;
32415esac
32416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417 (eval "$ac_try") 2>&5
32418 ac_status=$?
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); }; } &&
32421 { ac_try='test -s conftest.$ac_objext'
32422 { (case "(($ac_try" in
32423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32424 *) ac_try_echo=$ac_try;;
32425esac
32426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32427 (eval "$ac_try") 2>&5
32428 ac_status=$?
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032431 ac_cv_cxx_have_bi_iterator=yes
32432else
32433 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032434sed 's/^/| /' conftest.$ac_ext >&5
32435
Reid Spencera773bd52006-08-04 18:18:08 +000032436 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032437fi
Reid Spencera773bd52006-08-04 18:18:08 +000032438
32439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032440 ac_ext=c
32441ac_cpp='$CPP $CPPFLAGS'
32442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32444ac_compiler_gnu=$ac_cv_c_compiler_gnu
32445
32446
32447fi
Reid Spencera773bd52006-08-04 18:18:08 +000032448{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32449echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032450if test "$ac_cv_cxx_have_bi_iterator" = yes
32451then
John Criswell40468462004-09-24 21:19:06 +000032452
32453cat >>confdefs.h <<\_ACEOF
32454#define HAVE_BI_ITERATOR 1
32455_ACEOF
32456
32457else
32458
32459cat >>confdefs.h <<\_ACEOF
32460#define HAVE_BI_ITERATOR 0
32461_ACEOF
32462
John Criswell7a73b802003-06-30 21:59:07 +000032463fi
32464
Reid Spencera773bd52006-08-04 18:18:08 +000032465{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32466echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032467if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32468 echo $ECHO_N "(cached) $ECHO_C" >&6
32469else
32470
Reid Spencera773bd52006-08-04 18:18:08 +000032471 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032472ac_cpp='$CXXCPP $CPPFLAGS'
32473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32476
32477 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032478/* confdefs.h. */
32479_ACEOF
32480cat confdefs.h >>conftest.$ac_ext
32481cat >>conftest.$ac_ext <<_ACEOF
32482/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032483#include <iterator>
32484#ifdef HAVE_NAMESPACES
32485using namespace std;
32486#endif
John Criswell7a73b802003-06-30 21:59:07 +000032487int
32488main ()
32489{
John Criswellc78022e2003-07-29 19:11:58 +000032490forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032491 ;
32492 return 0;
32493}
32494_ACEOF
32495rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032496if { (ac_try="$ac_compile"
32497case "(($ac_try" in
32498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32499 *) ac_try_echo=$ac_try;;
32500esac
32501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32502 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032503 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032504 grep -v '^ *+' conftest.er1 >conftest.err
32505 rm -f conftest.er1
32506 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032508 (exit $ac_status); } &&
32509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32510 { (case "(($ac_try" in
32511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32512 *) ac_try_echo=$ac_try;;
32513esac
32514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32515 (eval "$ac_try") 2>&5
32516 ac_status=$?
32517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 (exit $ac_status); }; } &&
32519 { ac_try='test -s conftest.$ac_objext'
32520 { (case "(($ac_try" in
32521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522 *) ac_try_echo=$ac_try;;
32523esac
32524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525 (eval "$ac_try") 2>&5
32526 ac_status=$?
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032529 ac_cv_cxx_have_fwd_iterator=yes
32530else
32531 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032532sed 's/^/| /' conftest.$ac_ext >&5
32533
Reid Spencera773bd52006-08-04 18:18:08 +000032534 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032535fi
Reid Spencera773bd52006-08-04 18:18:08 +000032536
32537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032538 ac_ext=c
32539ac_cpp='$CPP $CPPFLAGS'
32540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32542ac_compiler_gnu=$ac_cv_c_compiler_gnu
32543
32544
32545fi
Reid Spencera773bd52006-08-04 18:18:08 +000032546{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32547echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032548if test "$ac_cv_cxx_have_fwd_iterator" = yes
32549then
John Criswell40468462004-09-24 21:19:06 +000032550
32551cat >>confdefs.h <<\_ACEOF
32552#define HAVE_FWD_ITERATOR 1
32553_ACEOF
32554
32555else
32556
32557cat >>confdefs.h <<\_ACEOF
32558#define HAVE_FWD_ITERATOR 0
32559_ACEOF
32560
John Criswell7a73b802003-06-30 21:59:07 +000032561fi
32562
32563
Reid Spencera773bd52006-08-04 18:18:08 +000032564{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32565echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032566if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32567 echo $ECHO_N "(cached) $ECHO_C" >&6
32568else
Reid Spencera773bd52006-08-04 18:18:08 +000032569 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032570ac_cpp='$CXXCPP $CPPFLAGS'
32571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32574
Reid Spencerabec8f92004-10-27 23:03:44 +000032575 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032576/* confdefs.h. */
32577_ACEOF
32578cat confdefs.h >>conftest.$ac_ext
32579cat >>conftest.$ac_ext <<_ACEOF
32580/* end confdefs.h. */
32581#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032582int
32583main ()
32584{
32585float f; isnan(f);
32586 ;
32587 return 0;
32588}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032589_ACEOF
32590rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032591if { (ac_try="$ac_compile"
32592case "(($ac_try" in
32593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32594 *) ac_try_echo=$ac_try;;
32595esac
32596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32597 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032598 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032599 grep -v '^ *+' conftest.er1 >conftest.err
32600 rm -f conftest.er1
32601 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032603 (exit $ac_status); } &&
32604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32605 { (case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32608esac
32609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_try") 2>&5
32611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; } &&
32614 { ac_try='test -s conftest.$ac_objext'
32615 { (case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32618esac
32619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_try") 2>&5
32621 ac_status=$?
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032624 ac_cv_func_isnan_in_math_h=yes
32625else
32626 echo "$as_me: failed program was:" >&5
32627sed 's/^/| /' conftest.$ac_ext >&5
32628
Reid Spencera773bd52006-08-04 18:18:08 +000032629 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032630fi
Reid Spencera773bd52006-08-04 18:18:08 +000032631
32632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032633 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032634ac_cpp='$CPP $CPPFLAGS'
32635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32637ac_compiler_gnu=$ac_cv_c_compiler_gnu
32638
32639fi
Reid Spencera773bd52006-08-04 18:18:08 +000032640{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32641echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032642
32643
32644if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032645
32646cat >>confdefs.h <<\_ACEOF
32647#define HAVE_ISNAN_IN_MATH_H 1
32648_ACEOF
32649
Reid Spencerabec8f92004-10-27 23:03:44 +000032650fi
32651
Reid Spencera773bd52006-08-04 18:18:08 +000032652{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32653echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032654if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32655 echo $ECHO_N "(cached) $ECHO_C" >&6
32656else
Reid Spencera773bd52006-08-04 18:18:08 +000032657 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032658ac_cpp='$CXXCPP $CPPFLAGS'
32659ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32660ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32661ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32662
Reid Spencerabec8f92004-10-27 23:03:44 +000032663 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032664/* confdefs.h. */
32665_ACEOF
32666cat confdefs.h >>conftest.$ac_ext
32667cat >>conftest.$ac_ext <<_ACEOF
32668/* end confdefs.h. */
32669#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032670int
32671main ()
32672{
32673float f; isnan(f);
32674 ;
32675 return 0;
32676}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032677_ACEOF
32678rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032679if { (ac_try="$ac_compile"
32680case "(($ac_try" in
32681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32682 *) ac_try_echo=$ac_try;;
32683esac
32684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32685 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032687 grep -v '^ *+' conftest.er1 >conftest.err
32688 rm -f conftest.er1
32689 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032691 (exit $ac_status); } &&
32692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32693 { (case "(($ac_try" in
32694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32695 *) ac_try_echo=$ac_try;;
32696esac
32697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32698 (eval "$ac_try") 2>&5
32699 ac_status=$?
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); }; } &&
32702 { ac_try='test -s conftest.$ac_objext'
32703 { (case "(($ac_try" in
32704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32705 *) ac_try_echo=$ac_try;;
32706esac
32707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32708 (eval "$ac_try") 2>&5
32709 ac_status=$?
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032712 ac_cv_func_isnan_in_cmath=yes
32713else
32714 echo "$as_me: failed program was:" >&5
32715sed 's/^/| /' conftest.$ac_ext >&5
32716
Reid Spencera773bd52006-08-04 18:18:08 +000032717 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032718fi
Reid Spencera773bd52006-08-04 18:18:08 +000032719
32720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032721 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032722ac_cpp='$CPP $CPPFLAGS'
32723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32725ac_compiler_gnu=$ac_cv_c_compiler_gnu
32726
32727fi
Reid Spencera773bd52006-08-04 18:18:08 +000032728{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32729echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032730
32731if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032732
32733cat >>confdefs.h <<\_ACEOF
32734#define HAVE_ISNAN_IN_CMATH 1
32735_ACEOF
32736
Reid Spencerabec8f92004-10-27 23:03:44 +000032737fi
32738
Reid Spencera773bd52006-08-04 18:18:08 +000032739{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32740echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032741if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32742 echo $ECHO_N "(cached) $ECHO_C" >&6
32743else
Reid Spencera773bd52006-08-04 18:18:08 +000032744 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032745ac_cpp='$CXXCPP $CPPFLAGS'
32746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32749
Reid Spencerabec8f92004-10-27 23:03:44 +000032750 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032751/* confdefs.h. */
32752_ACEOF
32753cat confdefs.h >>conftest.$ac_ext
32754cat >>conftest.$ac_ext <<_ACEOF
32755/* end confdefs.h. */
32756#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032757int
32758main ()
32759{
32760float f; std::isnan(f);
32761 ;
32762 return 0;
32763}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032764_ACEOF
32765rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032766if { (ac_try="$ac_compile"
32767case "(($ac_try" in
32768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769 *) ac_try_echo=$ac_try;;
32770esac
32771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032773 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032774 grep -v '^ *+' conftest.er1 >conftest.err
32775 rm -f conftest.er1
32776 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032778 (exit $ac_status); } &&
32779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32780 { (case "(($ac_try" in
32781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32782 *) ac_try_echo=$ac_try;;
32783esac
32784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32785 (eval "$ac_try") 2>&5
32786 ac_status=$?
32787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788 (exit $ac_status); }; } &&
32789 { ac_try='test -s conftest.$ac_objext'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32793esac
32794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32796 ac_status=$?
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032799 ac_cv_func_std_isnan_in_cmath=yes
32800else
32801 echo "$as_me: failed program was:" >&5
32802sed 's/^/| /' conftest.$ac_ext >&5
32803
Reid Spencera773bd52006-08-04 18:18:08 +000032804 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032805fi
Reid Spencera773bd52006-08-04 18:18:08 +000032806
32807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032808 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032809ac_cpp='$CPP $CPPFLAGS'
32810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32812ac_compiler_gnu=$ac_cv_c_compiler_gnu
32813
32814fi
Reid Spencera773bd52006-08-04 18:18:08 +000032815{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32816echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032817
32818if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032819
32820cat >>confdefs.h <<\_ACEOF
32821#define HAVE_STD_ISNAN_IN_CMATH 1
32822_ACEOF
32823
Reid Spencerabec8f92004-10-27 23:03:44 +000032824fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032825
32826
Reid Spencera773bd52006-08-04 18:18:08 +000032827{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32828echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032829if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32830 echo $ECHO_N "(cached) $ECHO_C" >&6
32831else
Reid Spencera773bd52006-08-04 18:18:08 +000032832 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032833ac_cpp='$CXXCPP $CPPFLAGS'
32834ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32835ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32836ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32837
Reid Spencerabec8f92004-10-27 23:03:44 +000032838 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032839/* confdefs.h. */
32840_ACEOF
32841cat confdefs.h >>conftest.$ac_ext
32842cat >>conftest.$ac_ext <<_ACEOF
32843/* end confdefs.h. */
32844#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032845int
32846main ()
32847{
32848float f; isinf(f);
32849 ;
32850 return 0;
32851}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032852_ACEOF
32853rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032854if { (ac_try="$ac_compile"
32855case "(($ac_try" in
32856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32857 *) ac_try_echo=$ac_try;;
32858esac
32859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32860 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032861 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032862 grep -v '^ *+' conftest.er1 >conftest.err
32863 rm -f conftest.er1
32864 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032866 (exit $ac_status); } &&
32867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32868 { (case "(($ac_try" in
32869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870 *) ac_try_echo=$ac_try;;
32871esac
32872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873 (eval "$ac_try") 2>&5
32874 ac_status=$?
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); }; } &&
32877 { ac_try='test -s conftest.$ac_objext'
32878 { (case "(($ac_try" in
32879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32880 *) ac_try_echo=$ac_try;;
32881esac
32882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32883 (eval "$ac_try") 2>&5
32884 ac_status=$?
32885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032887 ac_cv_func_isinf_in_math_h=yes
32888else
32889 echo "$as_me: failed program was:" >&5
32890sed 's/^/| /' conftest.$ac_ext >&5
32891
Reid Spencera773bd52006-08-04 18:18:08 +000032892 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032893fi
Reid Spencera773bd52006-08-04 18:18:08 +000032894
32895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032896 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032897ac_cpp='$CPP $CPPFLAGS'
32898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32900ac_compiler_gnu=$ac_cv_c_compiler_gnu
32901
32902fi
Reid Spencera773bd52006-08-04 18:18:08 +000032903{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32904echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032905
32906if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032907
32908cat >>confdefs.h <<\_ACEOF
32909#define HAVE_ISINF_IN_MATH_H 1
32910_ACEOF
32911
Reid Spencerabec8f92004-10-27 23:03:44 +000032912fi
32913
Reid Spencera773bd52006-08-04 18:18:08 +000032914{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32915echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032916if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32917 echo $ECHO_N "(cached) $ECHO_C" >&6
32918else
Reid Spencera773bd52006-08-04 18:18:08 +000032919 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032920ac_cpp='$CXXCPP $CPPFLAGS'
32921ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32922ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32923ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32924
Reid Spencerabec8f92004-10-27 23:03:44 +000032925 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032926/* confdefs.h. */
32927_ACEOF
32928cat confdefs.h >>conftest.$ac_ext
32929cat >>conftest.$ac_ext <<_ACEOF
32930/* end confdefs.h. */
32931#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032932int
32933main ()
32934{
32935float f; isinf(f);
32936 ;
32937 return 0;
32938}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032939_ACEOF
32940rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032941if { (ac_try="$ac_compile"
32942case "(($ac_try" in
32943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32944 *) ac_try_echo=$ac_try;;
32945esac
32946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32947 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032948 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032949 grep -v '^ *+' conftest.er1 >conftest.err
32950 rm -f conftest.er1
32951 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032953 (exit $ac_status); } &&
32954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32955 { (case "(($ac_try" in
32956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32957 *) ac_try_echo=$ac_try;;
32958esac
32959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32960 (eval "$ac_try") 2>&5
32961 ac_status=$?
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); }; } &&
32964 { ac_try='test -s conftest.$ac_objext'
32965 { (case "(($ac_try" in
32966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32967 *) ac_try_echo=$ac_try;;
32968esac
32969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32970 (eval "$ac_try") 2>&5
32971 ac_status=$?
32972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32973 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032974 ac_cv_func_isinf_in_cmath=yes
32975else
32976 echo "$as_me: failed program was:" >&5
32977sed 's/^/| /' conftest.$ac_ext >&5
32978
Reid Spencera773bd52006-08-04 18:18:08 +000032979 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032980fi
Reid Spencera773bd52006-08-04 18:18:08 +000032981
32982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032983 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032984ac_cpp='$CPP $CPPFLAGS'
32985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32987ac_compiler_gnu=$ac_cv_c_compiler_gnu
32988
32989fi
Reid Spencera773bd52006-08-04 18:18:08 +000032990{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32991echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032992
32993if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032994
32995cat >>confdefs.h <<\_ACEOF
32996#define HAVE_ISINF_IN_CMATH 1
32997_ACEOF
32998
Reid Spencerabec8f92004-10-27 23:03:44 +000032999fi
33000
Reid Spencera773bd52006-08-04 18:18:08 +000033001{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33002echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033003if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33004 echo $ECHO_N "(cached) $ECHO_C" >&6
33005else
Reid Spencera773bd52006-08-04 18:18:08 +000033006 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033007ac_cpp='$CXXCPP $CPPFLAGS'
33008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33011
Reid Spencerabec8f92004-10-27 23:03:44 +000033012 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033013/* confdefs.h. */
33014_ACEOF
33015cat confdefs.h >>conftest.$ac_ext
33016cat >>conftest.$ac_ext <<_ACEOF
33017/* end confdefs.h. */
33018#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033019int
33020main ()
33021{
33022float f; std::isinf(f)}
33023 ;
33024 return 0;
33025}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033026_ACEOF
33027rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033028if { (ac_try="$ac_compile"
33029case "(($ac_try" in
33030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33031 *) ac_try_echo=$ac_try;;
33032esac
33033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33034 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033035 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033036 grep -v '^ *+' conftest.er1 >conftest.err
33037 rm -f conftest.er1
33038 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033040 (exit $ac_status); } &&
33041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33042 { (case "(($ac_try" in
33043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33044 *) ac_try_echo=$ac_try;;
33045esac
33046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33047 (eval "$ac_try") 2>&5
33048 ac_status=$?
33049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33050 (exit $ac_status); }; } &&
33051 { ac_try='test -s conftest.$ac_objext'
33052 { (case "(($ac_try" in
33053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33054 *) ac_try_echo=$ac_try;;
33055esac
33056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33057 (eval "$ac_try") 2>&5
33058 ac_status=$?
33059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33060 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033061 ac_cv_func_std_isinf_in_cmath=yes
33062else
33063 echo "$as_me: failed program was:" >&5
33064sed 's/^/| /' conftest.$ac_ext >&5
33065
Reid Spencera773bd52006-08-04 18:18:08 +000033066 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033067fi
Reid Spencera773bd52006-08-04 18:18:08 +000033068
33069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033070 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033071ac_cpp='$CPP $CPPFLAGS'
33072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33074ac_compiler_gnu=$ac_cv_c_compiler_gnu
33075
33076fi
Reid Spencera773bd52006-08-04 18:18:08 +000033077{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33078echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033079
33080if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033081
33082cat >>confdefs.h <<\_ACEOF
33083#define HAVE_STD_ISINF_IN_CMATH 1
33084_ACEOF
33085
Reid Spencerabec8f92004-10-27 23:03:44 +000033086fi
33087
Reid Spencera773bd52006-08-04 18:18:08 +000033088{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33089echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033090if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33091 echo $ECHO_N "(cached) $ECHO_C" >&6
33092else
Reid Spencera773bd52006-08-04 18:18:08 +000033093 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033094ac_cpp='$CXXCPP $CPPFLAGS'
33095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33098
Reid Spencerabec8f92004-10-27 23:03:44 +000033099 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033100/* confdefs.h. */
33101_ACEOF
33102cat confdefs.h >>conftest.$ac_ext
33103cat >>conftest.$ac_ext <<_ACEOF
33104/* end confdefs.h. */
33105#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033106int
33107main ()
33108{
33109float f; finite(f);
33110 ;
33111 return 0;
33112}
Brian Gaeked59a6472004-07-21 03:33:58 +000033113_ACEOF
33114rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033115if { (ac_try="$ac_compile"
33116case "(($ac_try" in
33117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33118 *) ac_try_echo=$ac_try;;
33119esac
33120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33121 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033122 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033123 grep -v '^ *+' conftest.er1 >conftest.err
33124 rm -f conftest.er1
33125 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033127 (exit $ac_status); } &&
33128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33129 { (case "(($ac_try" in
33130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131 *) ac_try_echo=$ac_try;;
33132esac
33133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134 (eval "$ac_try") 2>&5
33135 ac_status=$?
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); }; } &&
33138 { ac_try='test -s conftest.$ac_objext'
33139 { (case "(($ac_try" in
33140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33141 *) ac_try_echo=$ac_try;;
33142esac
33143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33144 (eval "$ac_try") 2>&5
33145 ac_status=$?
33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033148 ac_cv_func_finite_in_ieeefp_h=yes
33149else
33150 echo "$as_me: failed program was:" >&5
33151sed 's/^/| /' conftest.$ac_ext >&5
33152
Reid Spencera773bd52006-08-04 18:18:08 +000033153 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033154fi
Reid Spencera773bd52006-08-04 18:18:08 +000033155
33156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033157 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033158ac_cpp='$CPP $CPPFLAGS'
33159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33161ac_compiler_gnu=$ac_cv_c_compiler_gnu
33162
33163fi
Reid Spencera773bd52006-08-04 18:18:08 +000033164{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33165echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033166
Brian Gaeke6802b552004-10-28 05:06:45 +000033167if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033168
33169cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033170#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033171_ACEOF
33172
Reid Spencerabec8f92004-10-27 23:03:44 +000033173fi
33174
33175
33176
Reid Spencer30fe5262007-01-20 07:48:49 +000033177if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033178
33179
33180for ac_header in stdlib.h unistd.h
33181do
33182as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033187 echo $ECHO_N "(cached) $ECHO_C" >&6
33188fi
Reid Spencera773bd52006-08-04 18:18:08 +000033189ac_res=`eval echo '${'$as_ac_Header'}'`
33190 { echo "$as_me:$LINENO: result: $ac_res" >&5
33191echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033192else
33193 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033194{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33195echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033196cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033197/* confdefs.h. */
33198_ACEOF
33199cat confdefs.h >>conftest.$ac_ext
33200cat >>conftest.$ac_ext <<_ACEOF
33201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033202$ac_includes_default
33203#include <$ac_header>
33204_ACEOF
33205rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033206if { (ac_try="$ac_compile"
33207case "(($ac_try" in
33208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33209 *) ac_try_echo=$ac_try;;
33210esac
33211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33212 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033213 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033214 grep -v '^ *+' conftest.er1 >conftest.err
33215 rm -f conftest.er1
33216 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033218 (exit $ac_status); } &&
33219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
33229 { ac_try='test -s conftest.$ac_objext'
33230 { (case "(($ac_try" in
33231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33232 *) ac_try_echo=$ac_try;;
33233esac
33234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33235 (eval "$ac_try") 2>&5
33236 ac_status=$?
33237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033239 ac_header_compiler=yes
33240else
33241 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033242sed 's/^/| /' conftest.$ac_ext >&5
33243
Reid Spencera773bd52006-08-04 18:18:08 +000033244 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033245fi
Reid Spencera773bd52006-08-04 18:18:08 +000033246
33247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33248{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33249echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033250
33251# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033252{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33253echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033254cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033255/* confdefs.h. */
33256_ACEOF
33257cat confdefs.h >>conftest.$ac_ext
33258cat >>conftest.$ac_ext <<_ACEOF
33259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033260#include <$ac_header>
33261_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033262if { (ac_try="$ac_cpp conftest.$ac_ext"
33263case "(($ac_try" in
33264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33265 *) ac_try_echo=$ac_try;;
33266esac
33267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033269 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033270 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033271 rm -f conftest.er1
33272 cat conftest.err >&5
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033274 (exit $ac_status); } >/dev/null; then
33275 if test -s conftest.err; then
33276 ac_cpp_err=$ac_c_preproc_warn_flag
33277 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33278 else
33279 ac_cpp_err=
33280 fi
33281else
33282 ac_cpp_err=yes
33283fi
33284if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033285 ac_header_preproc=yes
33286else
33287 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033288sed 's/^/| /' conftest.$ac_ext >&5
33289
John Criswell7a73b802003-06-30 21:59:07 +000033290 ac_header_preproc=no
33291fi
Reid Spencera773bd52006-08-04 18:18:08 +000033292
John Criswell7a73b802003-06-30 21:59:07 +000033293rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033294{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33295echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033296
33297# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033298case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33299 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033300 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33301echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033302 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33303echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33304 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033305 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033306 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033307 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33308echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033309 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33310echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33311 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33312echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33313 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33314echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033315 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33316echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033317 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33318echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033319 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033320## ----------------------------------- ##
33321## Report this to llvmbugs@cs.uiuc.edu ##
33322## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033323_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033324 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033325 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033326esac
Reid Spencera773bd52006-08-04 18:18:08 +000033327{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33329if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033330 echo $ECHO_N "(cached) $ECHO_C" >&6
33331else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033332 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033333fi
Reid Spencera773bd52006-08-04 18:18:08 +000033334ac_res=`eval echo '${'$as_ac_Header'}'`
33335 { echo "$as_me:$LINENO: result: $ac_res" >&5
33336echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033337
33338fi
33339if test `eval echo '${'$as_ac_Header'}'` = yes; then
33340 cat >>confdefs.h <<_ACEOF
33341#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33342_ACEOF
33343
33344fi
33345
33346done
33347
33348
33349for ac_func in getpagesize
33350do
33351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033352{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33354if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033355 echo $ECHO_N "(cached) $ECHO_C" >&6
33356else
33357 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033358/* confdefs.h. */
33359_ACEOF
33360cat confdefs.h >>conftest.$ac_ext
33361cat >>conftest.$ac_ext <<_ACEOF
33362/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33365#define $ac_func innocuous_$ac_func
33366
John Criswell7a73b802003-06-30 21:59:07 +000033367/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033368 which can conflict with char $ac_func (); below.
33369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33370 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033371
John Criswell0c38eaf2003-09-10 15:17:25 +000033372#ifdef __STDC__
33373# include <limits.h>
33374#else
33375# include <assert.h>
33376#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033377
33378#undef $ac_func
33379
Reid Spencera773bd52006-08-04 18:18:08 +000033380/* Override any GCC internal prototype to avoid an error.
33381 Use char because int might match the return type of a GCC
33382 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033383#ifdef __cplusplus
33384extern "C"
33385#endif
John Criswell7a73b802003-06-30 21:59:07 +000033386char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033387/* The GNU C library defines this for functions which it implements
33388 to always fail with ENOSYS. Some functions are actually named
33389 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033390#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033391choke me
John Criswell7a73b802003-06-30 21:59:07 +000033392#endif
33393
John Criswell0c38eaf2003-09-10 15:17:25 +000033394int
33395main ()
33396{
Reid Spencera773bd52006-08-04 18:18:08 +000033397return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033398 ;
33399 return 0;
33400}
33401_ACEOF
33402rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033403if { (ac_try="$ac_link"
33404case "(($ac_try" in
33405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33406 *) ac_try_echo=$ac_try;;
33407esac
33408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33409 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033410 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033411 grep -v '^ *+' conftest.er1 >conftest.err
33412 rm -f conftest.er1
33413 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033415 (exit $ac_status); } &&
33416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33417 { (case "(($ac_try" in
33418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33419 *) ac_try_echo=$ac_try;;
33420esac
33421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33422 (eval "$ac_try") 2>&5
33423 ac_status=$?
33424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 (exit $ac_status); }; } &&
33426 { ac_try='test -s conftest$ac_exeext'
33427 { (case "(($ac_try" in
33428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33429 *) ac_try_echo=$ac_try;;
33430esac
33431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33432 (eval "$ac_try") 2>&5
33433 ac_status=$?
33434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33435 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033436 eval "$as_ac_var=yes"
33437else
33438 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033439sed 's/^/| /' conftest.$ac_ext >&5
33440
Reid Spencera773bd52006-08-04 18:18:08 +000033441 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033442fi
Reid Spencera773bd52006-08-04 18:18:08 +000033443
Bill Wendlingebcceee2009-04-18 11:20:33 +000033444rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033445 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033446fi
Reid Spencera773bd52006-08-04 18:18:08 +000033447ac_res=`eval echo '${'$as_ac_var'}'`
33448 { echo "$as_me:$LINENO: result: $ac_res" >&5
33449echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033450if test `eval echo '${'$as_ac_var'}'` = yes; then
33451 cat >>confdefs.h <<_ACEOF
33452#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33453_ACEOF
33454
33455fi
33456done
33457
Reid Spencera773bd52006-08-04 18:18:08 +000033458{ echo "$as_me:$LINENO: checking for working mmap" >&5
33459echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033460if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33461 echo $ECHO_N "(cached) $ECHO_C" >&6
33462else
33463 if test "$cross_compiling" = yes; then
33464 ac_cv_func_mmap_fixed_mapped=no
33465else
33466 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033467/* confdefs.h. */
33468_ACEOF
33469cat confdefs.h >>conftest.$ac_ext
33470cat >>conftest.$ac_ext <<_ACEOF
33471/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033472$ac_includes_default
33473/* malloc might have been renamed as rpl_malloc. */
33474#undef malloc
33475
33476/* Thanks to Mike Haertel and Jim Avera for this test.
33477 Here is a matrix of mmap possibilities:
33478 mmap private not fixed
33479 mmap private fixed at somewhere currently unmapped
33480 mmap private fixed at somewhere already mapped
33481 mmap shared not fixed
33482 mmap shared fixed at somewhere currently unmapped
33483 mmap shared fixed at somewhere already mapped
33484 For private mappings, we should verify that changes cannot be read()
33485 back from the file, nor mmap's back from the file at a different
33486 address. (There have been systems where private was not correctly
33487 implemented like the infamous i386 svr4.0, and systems where the
33488 VM page cache was not coherent with the file system buffer cache
33489 like early versions of FreeBSD and possibly contemporary NetBSD.)
33490 For shared mappings, we should conversely verify that changes get
33491 propagated back to all the places they're supposed to be.
33492
33493 Grep wants private fixed already mapped.
33494 The main things grep needs to know about mmap are:
33495 * does it exist and is it safe to write into the mmap'd area
33496 * how to use it (BSD variants) */
33497
33498#include <fcntl.h>
33499#include <sys/mman.h>
33500
Bill Wendlingebcceee2009-04-18 11:20:33 +000033501#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033502char *malloc ();
33503#endif
33504
33505/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033506#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033507/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033508# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033509# define HAVE_SYS_PARAM_H 1
33510# endif
33511
33512# ifdef _SC_PAGESIZE
33513# define getpagesize() sysconf(_SC_PAGESIZE)
33514# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033515# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033516# include <sys/param.h>
33517# ifdef EXEC_PAGESIZE
33518# define getpagesize() EXEC_PAGESIZE
33519# else /* no EXEC_PAGESIZE */
33520# ifdef NBPG
33521# define getpagesize() NBPG * CLSIZE
33522# ifndef CLSIZE
33523# define CLSIZE 1
33524# endif /* no CLSIZE */
33525# else /* no NBPG */
33526# ifdef NBPC
33527# define getpagesize() NBPC
33528# else /* no NBPC */
33529# ifdef PAGESIZE
33530# define getpagesize() PAGESIZE
33531# endif /* PAGESIZE */
33532# endif /* no NBPC */
33533# endif /* no NBPG */
33534# endif /* no EXEC_PAGESIZE */
33535# else /* no HAVE_SYS_PARAM_H */
33536# define getpagesize() 8192 /* punt totally */
33537# endif /* no HAVE_SYS_PARAM_H */
33538# endif /* no _SC_PAGESIZE */
33539
33540#endif /* no HAVE_GETPAGESIZE */
33541
33542int
33543main ()
33544{
33545 char *data, *data2, *data3;
33546 int i, pagesize;
33547 int fd;
33548
33549 pagesize = getpagesize ();
33550
33551 /* First, make a file with some known garbage in it. */
33552 data = (char *) malloc (pagesize);
33553 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033554 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033555 for (i = 0; i < pagesize; ++i)
33556 *(data + i) = rand ();
33557 umask (0);
33558 fd = creat ("conftest.mmap", 0600);
33559 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033560 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033561 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033562 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033563 close (fd);
33564
33565 /* Next, try to mmap the file at a fixed address which already has
33566 something else allocated at it. If we can, also make sure that
33567 we see the same garbage. */
33568 fd = open ("conftest.mmap", O_RDWR);
33569 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033570 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033571 data2 = (char *) malloc (2 * pagesize);
33572 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033573 return 1;
33574 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033575 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033576 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033577 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033578 for (i = 0; i < pagesize; ++i)
33579 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033580 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033581
33582 /* Finally, make sure that changes to the mapped area do not
33583 percolate back to the file as seen by read(). (This is a bug on
33584 some variants of i386 svr4.0.) */
33585 for (i = 0; i < pagesize; ++i)
33586 *(data2 + i) = *(data2 + i) + 1;
33587 data3 = (char *) malloc (pagesize);
33588 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033589 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033590 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033591 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033592 for (i = 0; i < pagesize; ++i)
33593 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033594 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033595 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033596 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033597}
33598_ACEOF
33599rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033600if { (ac_try="$ac_link"
33601case "(($ac_try" in
33602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33603 *) ac_try_echo=$ac_try;;
33604esac
33605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33606 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033607 ac_status=$?
33608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033610 { (case "(($ac_try" in
33611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33612 *) ac_try_echo=$ac_try;;
33613esac
33614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33615 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033616 ac_status=$?
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); }; }; then
33619 ac_cv_func_mmap_fixed_mapped=yes
33620else
33621 echo "$as_me: program exited with status $ac_status" >&5
33622echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033623sed 's/^/| /' conftest.$ac_ext >&5
33624
John Criswell7a73b802003-06-30 21:59:07 +000033625( exit $ac_status )
33626ac_cv_func_mmap_fixed_mapped=no
33627fi
Reid Spencera773bd52006-08-04 18:18:08 +000033628rm -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 +000033629fi
Reid Spencera773bd52006-08-04 18:18:08 +000033630
33631
John Criswell7a73b802003-06-30 21:59:07 +000033632fi
Reid Spencera773bd52006-08-04 18:18:08 +000033633{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33634echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033635if test $ac_cv_func_mmap_fixed_mapped = yes; then
33636
33637cat >>confdefs.h <<\_ACEOF
33638#define HAVE_MMAP 1
33639_ACEOF
33640
33641fi
33642rm -f conftest.mmap
33643
Reid Spencer30fe5262007-01-20 07:48:49 +000033644 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033645echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033646if test "${ac_cv_func_mmap_file+set}" = set; then
33647 echo $ECHO_N "(cached) $ECHO_C" >&6
33648else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033649 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033650ac_cpp='$CPP $CPPFLAGS'
33651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33653ac_compiler_gnu=$ac_cv_c_compiler_gnu
33654
33655 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033656 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033657else
33658 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033659
Reid Spencer777ce172004-09-20 04:09:56 +000033660 /* confdefs.h. */
33661_ACEOF
33662cat confdefs.h >>conftest.$ac_ext
33663cat >>conftest.$ac_ext <<_ACEOF
33664/* end confdefs.h. */
33665
John Criswell7a73b802003-06-30 21:59:07 +000033666#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033667#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033668#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033669
33670int
33671main ()
33672{
John Criswell7a73b802003-06-30 21:59:07 +000033673
33674 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033675 fd = creat ("foo",0777);
33676 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33677 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033678 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033679 ;
33680 return 0;
33681}
John Criswell7a73b802003-06-30 21:59:07 +000033682_ACEOF
33683rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033684if { (ac_try="$ac_link"
33685case "(($ac_try" in
33686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33687 *) ac_try_echo=$ac_try;;
33688esac
33689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33690 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033691 ac_status=$?
33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033694 { (case "(($ac_try" in
33695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33696 *) ac_try_echo=$ac_try;;
33697esac
33698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33699 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033700 ac_status=$?
33701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33702 (exit $ac_status); }; }; then
33703 ac_cv_func_mmap_file=yes
33704else
33705 echo "$as_me: program exited with status $ac_status" >&5
33706echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033707sed 's/^/| /' conftest.$ac_ext >&5
33708
John Criswell7a73b802003-06-30 21:59:07 +000033709( exit $ac_status )
33710ac_cv_func_mmap_file=no
33711fi
Reid Spencera773bd52006-08-04 18:18:08 +000033712rm -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 +000033713fi
Reid Spencera773bd52006-08-04 18:18:08 +000033714
33715
John Criswell7a73b802003-06-30 21:59:07 +000033716 ac_ext=c
33717ac_cpp='$CPP $CPPFLAGS'
33718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33720ac_compiler_gnu=$ac_cv_c_compiler_gnu
33721
33722
33723fi
Reid Spencera773bd52006-08-04 18:18:08 +000033724{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33725echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033726if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033727
33728cat >>confdefs.h <<\_ACEOF
33729#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033730_ACEOF
33731
33732 MMAP_FILE=yes
33733
33734fi
33735
Reid Spencer30fe5262007-01-20 07:48:49 +000033736 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033737echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033738if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33739 echo $ECHO_N "(cached) $ECHO_C" >&6
33740else
Reid Spencer582a23c2004-12-29 07:07:57 +000033741 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033742 ac_cv_need_dev_zero_for_mmap=yes
33743 else
33744 ac_cv_need_dev_zero_for_mmap=no
33745 fi
33746
33747fi
Reid Spencera773bd52006-08-04 18:18:08 +000033748{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33749echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033750if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33751
33752cat >>confdefs.h <<\_ACEOF
33753#define NEED_DEV_ZERO_FOR_MMAP 1
33754_ACEOF
33755
33756fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033757
Reid Spencer30fe5262007-01-20 07:48:49 +000033758 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33759 then
33760 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033761echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033762 fi
33763 if test "$ac_cv_func_mmap_file" = "no"
33764 then
33765 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033766echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033767 fi
John Criswellb13092b2003-07-22 21:00:24 +000033768fi
John Criswell7a73b802003-06-30 21:59:07 +000033769
Owen Andersona8603702009-05-19 22:18:56 +000033770{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000033771echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000033772cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000033773/* confdefs.h. */
33774_ACEOF
33775cat confdefs.h >>conftest.$ac_ext
33776cat >>conftest.$ac_ext <<_ACEOF
33777/* end confdefs.h. */
33778int main() {
Owen Andersona8603702009-05-19 22:18:56 +000033779 volatile unsigned long val = 1;
33780 __sync_synchronize();
33781 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000033782 __sync_add_and_fetch(&val, 1);
33783 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000033784 return 0;
33785 }
Owen Andersond4b272b2009-05-18 23:58:51 +000033786
33787_ACEOF
33788rm -f conftest.$ac_objext conftest$ac_exeext
33789if { (ac_try="$ac_link"
33790case "(($ac_try" in
33791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33792 *) ac_try_echo=$ac_try;;
33793esac
33794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33795 (eval "$ac_link") 2>conftest.er1
33796 ac_status=$?
33797 grep -v '^ *+' conftest.er1 >conftest.err
33798 rm -f conftest.er1
33799 cat conftest.err >&5
33800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33801 (exit $ac_status); } &&
33802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33803 { (case "(($ac_try" in
33804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805 *) ac_try_echo=$ac_try;;
33806esac
33807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808 (eval "$ac_try") 2>&5
33809 ac_status=$?
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); }; } &&
33812 { ac_try='test -s conftest$ac_exeext'
33813 { (case "(($ac_try" in
33814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33815 *) ac_try_echo=$ac_try;;
33816esac
33817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33818 (eval "$ac_try") 2>&5
33819 ac_status=$?
33820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821 (exit $ac_status); }; }; then
33822 { echo "$as_me:$LINENO: result: yes" >&5
33823echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000033824
33825cat >>confdefs.h <<\_ACEOF
33826#define LLVM_MULTITHREADED 1
33827_ACEOF
33828
Owen Andersond4b272b2009-05-18 23:58:51 +000033829else
33830 echo "$as_me: failed program was:" >&5
33831sed 's/^/| /' conftest.$ac_ext >&5
33832
33833 { echo "$as_me:$LINENO: result: no" >&5
33834echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000033835
Owen Andersona8603702009-05-19 22:18:56 +000033836cat >>confdefs.h <<\_ACEOF
33837#define LLVM_MULTITHREADED 0
33838_ACEOF
33839
33840 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
33841echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000033842fi
33843
33844rm -f core conftest.err conftest.$ac_objext \
33845 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000033846
33847
John Criswell7a73b802003-06-30 21:59:07 +000033848
Reid Spencer9372f152007-07-30 20:13:24 +000033849
33850for ac_func in __dso_handle
33851do
33852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33853{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33855if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33856 echo $ECHO_N "(cached) $ECHO_C" >&6
33857else
33858 cat >conftest.$ac_ext <<_ACEOF
33859/* confdefs.h. */
33860_ACEOF
33861cat confdefs.h >>conftest.$ac_ext
33862cat >>conftest.$ac_ext <<_ACEOF
33863/* end confdefs.h. */
33864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33866#define $ac_func innocuous_$ac_func
33867
33868/* System header to define __stub macros and hopefully few prototypes,
33869 which can conflict with char $ac_func (); below.
33870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33871 <limits.h> exists even on freestanding compilers. */
33872
33873#ifdef __STDC__
33874# include <limits.h>
33875#else
33876# include <assert.h>
33877#endif
33878
33879#undef $ac_func
33880
33881/* Override any GCC internal prototype to avoid an error.
33882 Use char because int might match the return type of a GCC
33883 builtin and then its argument prototype would still apply. */
33884#ifdef __cplusplus
33885extern "C"
33886#endif
33887char $ac_func ();
33888/* The GNU C library defines this for functions which it implements
33889 to always fail with ENOSYS. Some functions are actually named
33890 something starting with __ and the normal name is an alias. */
33891#if defined __stub_$ac_func || defined __stub___$ac_func
33892choke me
33893#endif
33894
33895int
33896main ()
33897{
33898return $ac_func ();
33899 ;
33900 return 0;
33901}
33902_ACEOF
33903rm -f conftest.$ac_objext conftest$ac_exeext
33904if { (ac_try="$ac_link"
33905case "(($ac_try" in
33906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33907 *) ac_try_echo=$ac_try;;
33908esac
33909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33910 (eval "$ac_link") 2>conftest.er1
33911 ac_status=$?
33912 grep -v '^ *+' conftest.er1 >conftest.err
33913 rm -f conftest.er1
33914 cat conftest.err >&5
33915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033916 (exit $ac_status); } &&
33917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33918 { (case "(($ac_try" in
33919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33920 *) ac_try_echo=$ac_try;;
33921esac
33922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33923 (eval "$ac_try") 2>&5
33924 ac_status=$?
33925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33926 (exit $ac_status); }; } &&
33927 { ac_try='test -s conftest$ac_exeext'
33928 { (case "(($ac_try" in
33929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33930 *) ac_try_echo=$ac_try;;
33931esac
33932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33933 (eval "$ac_try") 2>&5
33934 ac_status=$?
33935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33936 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000033937 eval "$as_ac_var=yes"
33938else
33939 echo "$as_me: failed program was:" >&5
33940sed 's/^/| /' conftest.$ac_ext >&5
33941
33942 eval "$as_ac_var=no"
33943fi
33944
Bill Wendlingebcceee2009-04-18 11:20:33 +000033945rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000033946 conftest$ac_exeext conftest.$ac_ext
33947fi
33948ac_res=`eval echo '${'$as_ac_var'}'`
33949 { echo "$as_me:$LINENO: result: $ac_res" >&5
33950echo "${ECHO_T}$ac_res" >&6; }
33951if test `eval echo '${'$as_ac_var'}'` = yes; then
33952 cat >>confdefs.h <<_ACEOF
33953#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33954_ACEOF
33955
33956fi
33957done
33958
33959
Reid Spencera773bd52006-08-04 18:18:08 +000033960{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33961echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033962if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33963 echo $ECHO_N "(cached) $ECHO_C" >&6
33964else
33965 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033966if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033967 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033968 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33969 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033970 if test $? -eq 0 ; then
33971 llvm_cv_llvmgcc_sanity="yes"
33972 fi
33973 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033974fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033975fi
Reid Spencera773bd52006-08-04 18:18:08 +000033976{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33977echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033978
33979if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033980 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33981echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033982 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033983 LLVMCC1=$llvmcc1path
33984
Reid Spencer502935f2004-12-22 05:56:56 +000033985 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033986 LLVMCC1PLUS=$llvmcc1pluspath
33987
Reid Spencer502935f2004-12-22 05:56:56 +000033988 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33989 LLVMGCCDIR=$llvmgccdir
33990
Reid Spencer282d8c12006-12-21 22:55:41 +000033991 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33992 LLVMGCCLIBEXEC=$llvmgcclibexec
33993
Reid Spencerb5d75b82006-05-09 00:31:01 +000033994 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033995 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33996 LLVMGCC_VERSION=$llvmgccversion
33997
33998 LLVMGCC_MAJVERS=$llvmgccmajvers
33999
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034000 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034001 LLVMGCC_LANGS=$llvmgcclangs
34002
34003 { echo "$as_me:$LINENO: result: ok" >&5
34004echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034005fi
34006
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034007SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034008
34009
Reid Spencere9de0912004-08-20 09:03:57 +000034010# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034011# information into substitutions that will end up in Makefile.config.in
34012# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034013if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034014 prefix="/usr/local"
34015fi
Reid Spencere9de0912004-08-20 09:03:57 +000034016eval LLVM_PREFIX="${prefix}";
34017eval LLVM_BINDIR="${prefix}/bin";
34018eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034019eval LLVM_DATADIR="${prefix}/share/llvm";
34020eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34021eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034022eval LLVM_INCLUDEDIR="${prefix}/include";
34023eval LLVM_INFODIR="${prefix}/info";
34024eval LLVM_MANDIR="${prefix}/man";
34025LLVM_CONFIGTIME=`date`
34026
34027
34028
34029
34030
34031
34032
34033
34034
34035
34036
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034037# Place the various directores into the config.h file as #defines so that we
34038# can know about the installation paths within LLVM.
34039
Reid Spencere9de0912004-08-20 09:03:57 +000034040cat >>confdefs.h <<_ACEOF
34041#define LLVM_PREFIX "$LLVM_PREFIX"
34042_ACEOF
34043
34044
34045cat >>confdefs.h <<_ACEOF
34046#define LLVM_BINDIR "$LLVM_BINDIR"
34047_ACEOF
34048
34049
34050cat >>confdefs.h <<_ACEOF
34051#define LLVM_LIBDIR "$LLVM_LIBDIR"
34052_ACEOF
34053
34054
34055cat >>confdefs.h <<_ACEOF
34056#define LLVM_DATADIR "$LLVM_DATADIR"
34057_ACEOF
34058
34059
34060cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034061#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034062_ACEOF
34063
34064
34065cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034066#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034067_ACEOF
34068
34069
34070cat >>confdefs.h <<_ACEOF
34071#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34072_ACEOF
34073
34074
34075cat >>confdefs.h <<_ACEOF
34076#define LLVM_INFODIR "$LLVM_INFODIR"
34077_ACEOF
34078
34079
34080cat >>confdefs.h <<_ACEOF
34081#define LLVM_MANDIR "$LLVM_MANDIR"
34082_ACEOF
34083
34084
34085cat >>confdefs.h <<_ACEOF
34086#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34087_ACEOF
34088
34089
Eric Christopher790e11c2007-12-01 00:34:39 +000034090cat >>confdefs.h <<_ACEOF
34091#define LLVM_HOSTTRIPLE "$host"
34092_ACEOF
34093
34094
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034095# Determine which bindings to build.
34096if test "$BINDINGS_TO_BUILD" = auto ; then
34097 BINDINGS_TO_BUILD=""
34098 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34099 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34100 fi
34101fi
34102BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34103
34104
34105# This isn't really configurey, but it avoids having to repeat the list in
34106# other files.
34107ALL_BINDINGS=ocaml
34108
34109
Gordon Henriksenf0915682007-10-02 16:42:22 +000034110# Do any work necessary to ensure that bindings have what they need.
34111binding_prereqs_failed=0
34112for a_binding in $BINDINGS_TO_BUILD ; do
34113 case "$a_binding" in
34114 ocaml)
34115 if test "x$OCAMLC" = x ; then
34116 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34117echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34118 binding_prereqs_failed=1
34119 fi
34120 if test "x$OCAMLDEP" = x ; then
34121 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34122echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34123 binding_prereqs_failed=1
34124 fi
34125 if test "x$OCAMLOPT" = x ; then
34126 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34127echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34128 fi
34129 if test "x$with_ocaml_libdir" != xauto ; then
34130 OCAML_LIBDIR=$with_ocaml_libdir
34131
34132 else
34133 ocaml_stdlib="`"$OCAMLC" -where`"
34134 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34135 then
34136 # ocaml stdlib is beneath our prefix; use stdlib
34137 OCAML_LIBDIR=$ocaml_stdlib
34138
34139 else
34140 # ocaml stdlib is outside our prefix; use libdir/ocaml
34141 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34142
34143 fi
34144 fi
34145 ;;
34146 esac
34147done
34148if test "$binding_prereqs_failed" = 1 ; then
34149 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34150echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34151 { (exit 1); exit 1; }; }
34152fi
34153
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034154{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34155echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34156if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34157 echo $ECHO_N "(cached) $ECHO_C" >&6
34158else
34159 ac_ext=cpp
34160ac_cpp='$CXXCPP $CPPFLAGS'
34161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34164
34165 oldcxxflags="$CXXFLAGS"
34166 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34167 cat >conftest.$ac_ext <<_ACEOF
34168/* confdefs.h. */
34169_ACEOF
34170cat confdefs.h >>conftest.$ac_ext
34171cat >>conftest.$ac_ext <<_ACEOF
34172/* end confdefs.h. */
34173
34174int
34175main ()
34176{
34177
34178 ;
34179 return 0;
34180}
34181_ACEOF
34182rm -f conftest.$ac_objext
34183if { (ac_try="$ac_compile"
34184case "(($ac_try" in
34185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34186 *) ac_try_echo=$ac_try;;
34187esac
34188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34189 (eval "$ac_compile") 2>conftest.er1
34190 ac_status=$?
34191 grep -v '^ *+' conftest.er1 >conftest.err
34192 rm -f conftest.er1
34193 cat conftest.err >&5
34194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034195 (exit $ac_status); } &&
34196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34197 { (case "(($ac_try" in
34198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34199 *) ac_try_echo=$ac_try;;
34200esac
34201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34202 (eval "$ac_try") 2>&5
34203 ac_status=$?
34204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205 (exit $ac_status); }; } &&
34206 { ac_try='test -s conftest.$ac_objext'
34207 { (case "(($ac_try" in
34208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34209 *) ac_try_echo=$ac_try;;
34210esac
34211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34212 (eval "$ac_try") 2>&5
34213 ac_status=$?
34214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34215 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034216 llvm_cv_cxx_visibility_inlines_hidden=yes
34217else
34218 echo "$as_me: failed program was:" >&5
34219sed 's/^/| /' conftest.$ac_ext >&5
34220
34221 llvm_cv_cxx_visibility_inlines_hidden=no
34222fi
34223
34224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34225 CXXFLAGS="$oldcxxflags"
34226 ac_ext=c
34227ac_cpp='$CPP $CPPFLAGS'
34228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34230ac_compiler_gnu=$ac_cv_c_compiler_gnu
34231
34232
34233fi
34234{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34235echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34236if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34237 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34238
34239else
34240 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34241
34242fi
34243
Gordon Henriksenf0915682007-10-02 16:42:22 +000034244
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034245if test "$llvm_cv_link_use_r" = "yes" ; then
34246 RPATH="-Wl,-R"
34247else
34248 RPATH="-Wl,-rpath"
34249fi
34250
34251
34252if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34253 RDYNAMIC="-Wl,-export-dynamic"
34254else
34255 RDYNAMIC=""
34256fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034257
34258
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034259
Reid Spencera773bd52006-08-04 18:18:08 +000034260ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034261
Douglas Gregor1555a232009-06-16 20:12:29 +000034262ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34263
34264ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34265
Reid Spencera773bd52006-08-04 18:18:08 +000034266ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034267
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034268ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034269
34270
Reid Spencera773bd52006-08-04 18:18:08 +000034271ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034272
34273
Reid Spencerea949cf2006-08-16 00:45:38 +000034274ac_config_files="$ac_config_files llvm.spec"
34275
34276
Reid Spencera773bd52006-08-04 18:18:08 +000034277ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034278
34279
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034280ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34281
34282
Reid Spencera773bd52006-08-04 18:18:08 +000034283ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034284
34285
Reid Spencera773bd52006-08-04 18:18:08 +000034286ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034287
Reid Spencera773bd52006-08-04 18:18:08 +000034288ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034289
34290
Reid Spencera773bd52006-08-04 18:18:08 +000034291ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034292
34293
Reid Spencera773bd52006-08-04 18:18:08 +000034294ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034295
34296
Reid Spencera773bd52006-08-04 18:18:08 +000034297ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034298
34299
Reid Spencer8b2e1412006-11-17 03:32:33 +000034300ac_config_commands="$ac_config_commands runtime/Makefile"
34301
34302
Reid Spencera773bd52006-08-04 18:18:08 +000034303ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034304
34305
Reid Spencera773bd52006-08-04 18:18:08 +000034306ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034307
34308
Bill Wendlingf24eb392009-01-04 23:12:30 +000034309ac_config_commands="$ac_config_commands unittests/Makefile"
34310
34311
Reid Spencera773bd52006-08-04 18:18:08 +000034312ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034313
34314
Reid Spencera773bd52006-08-04 18:18:08 +000034315ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034316
34317
Reid Spencera773bd52006-08-04 18:18:08 +000034318ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034319
34320
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034321ac_config_commands="$ac_config_commands bindings/Makefile"
34322
34323
34324ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34325
34326
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034327
John Criswell7a73b802003-06-30 21:59:07 +000034328cat >confcache <<\_ACEOF
34329# This file is a shell script that caches the results of configure
34330# tests run on this system so they can be shared between configure
34331# scripts and configure runs, see configure's option --config-cache.
34332# It is not useful on other systems. If it contains results you don't
34333# want to keep, you may remove or edit it.
34334#
34335# config.status only pays attention to the cache file if you give it
34336# the --recheck option to rerun configure.
34337#
John Criswell0c38eaf2003-09-10 15:17:25 +000034338# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034339# loading this file, other *unset* `ac_cv_foo' will be assigned the
34340# following values.
34341
34342_ACEOF
34343
34344# The following way of writing the cache mishandles newlines in values,
34345# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034346# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034347# Ultrix sh set writes to stderr and can't be redirected directly,
34348# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034349(
34350 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34351 eval ac_val=\$$ac_var
34352 case $ac_val in #(
34353 *${as_nl}*)
34354 case $ac_var in #(
34355 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34356echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34357 esac
34358 case $ac_var in #(
34359 _ | IFS | as_nl) ;; #(
34360 *) $as_unset $ac_var ;;
34361 esac ;;
34362 esac
34363 done
34364
John Criswell7a73b802003-06-30 21:59:07 +000034365 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034366 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34367 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034368 # `set' does not quote correctly, so add quotes (double-quote
34369 # substitution turns \\\\ into \\, and sed turns \\ into \).
34370 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034371 "s/'/'\\\\''/g;
34372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034373 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034374 *)
34375 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034376 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034377 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034378 esac |
34379 sort
34380) |
John Criswell7a73b802003-06-30 21:59:07 +000034381 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034382 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034383 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034384 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034385 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34386 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034387 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34388 :end' >>confcache
34389if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34390 if test -w "$cache_file"; then
34391 test "x$cache_file" != "x/dev/null" &&
34392 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34393echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034394 cat confcache >$cache_file
34395 else
Reid Spencera773bd52006-08-04 18:18:08 +000034396 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34397echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034398 fi
34399fi
34400rm -f confcache
34401
34402test "x$prefix" = xNONE && prefix=$ac_default_prefix
34403# Let make expand exec_prefix.
34404test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34405
John Criswell7a73b802003-06-30 21:59:07 +000034406DEFS=-DHAVE_CONFIG_H
34407
John Criswell0c38eaf2003-09-10 15:17:25 +000034408ac_libobjs=
34409ac_ltlibobjs=
34410for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34411 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034412 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34413 ac_i=`echo "$ac_i" | sed "$ac_script"`
34414 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34415 # will be set to the directory where LIBOBJS objects are built.
34416 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34417 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034418done
34419LIBOBJS=$ac_libobjs
34420
34421LTLIBOBJS=$ac_ltlibobjs
34422
34423
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034424if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34425 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34426Usually this means the macro was only invoked conditionally." >&5
34427echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34428Usually this means the macro was only invoked conditionally." >&2;}
34429 { (exit 1); exit 1; }; }
34430fi
34431if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34432 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34433Usually this means the macro was only invoked conditionally." >&5
34434echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34435Usually this means the macro was only invoked conditionally." >&2;}
34436 { (exit 1); exit 1; }; }
34437fi
John Criswell7a73b802003-06-30 21:59:07 +000034438
34439: ${CONFIG_STATUS=./config.status}
34440ac_clean_files_save=$ac_clean_files
34441ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34442{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34443echo "$as_me: creating $CONFIG_STATUS" >&6;}
34444cat >$CONFIG_STATUS <<_ACEOF
34445#! $SHELL
34446# Generated by $as_me.
34447# Run this file to recreate the current configuration.
34448# Compiler output produced by configure, useful for debugging
34449# configure, is in config.log if it exists.
34450
34451debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034452ac_cs_recheck=false
34453ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034454SHELL=\${CONFIG_SHELL-$SHELL}
34455_ACEOF
34456
34457cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034458## --------------------- ##
34459## M4sh Initialization. ##
34460## --------------------- ##
34461
Bill Wendlingebcceee2009-04-18 11:20:33 +000034462# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034463if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34464 emulate sh
34465 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034466 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34467 # is contrary to our usage. Disable this feature.
34468 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034469 setopt NO_GLOB_SUBST
34470else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034471 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034472fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034473BIN_SH=xpg4; export BIN_SH # for Tru64
34474DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034475
John Criswell7a73b802003-06-30 21:59:07 +000034476
Reid Spencera773bd52006-08-04 18:18:08 +000034477# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034478# Avoid depending upon Character Ranges.
34479as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34480as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34481as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34482as_cr_digits='0123456789'
34483as_cr_alnum=$as_cr_Letters$as_cr_digits
34484
34485# The user is always right.
34486if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034487 echo "#! /bin/sh" >conf$$.sh
34488 echo "exit 0" >>conf$$.sh
34489 chmod +x conf$$.sh
34490 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034491 PATH_SEPARATOR=';'
34492 else
34493 PATH_SEPARATOR=:
34494 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034495 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034496fi
34497
Reid Spencera773bd52006-08-04 18:18:08 +000034498# Support unset when possible.
34499if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34500 as_unset=unset
34501else
34502 as_unset=false
34503fi
John Criswell7a73b802003-06-30 21:59:07 +000034504
Reid Spencera773bd52006-08-04 18:18:08 +000034505
34506# IFS
34507# We need space, tab and new line, in precisely that order. Quoting is
34508# there to prevent editors from complaining about space-tab.
34509# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34510# splitting by setting IFS to empty value.)
34511as_nl='
34512'
34513IFS=" "" $as_nl"
34514
34515# Find who we are. Look in the path if we contain no directory separator.
34516case $0 in
34517 *[\\/]* ) as_myself=$0 ;;
34518 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034519for as_dir in $PATH
34520do
34521 IFS=$as_save_IFS
34522 test -z "$as_dir" && as_dir=.
34523 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34524done
Reid Spencera773bd52006-08-04 18:18:08 +000034525IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034526
Reid Spencera773bd52006-08-04 18:18:08 +000034527 ;;
34528esac
34529# We did not find ourselves, most probably we were run as `sh COMMAND'
34530# in which case we are not to be found in the path.
34531if test "x$as_myself" = x; then
34532 as_myself=$0
34533fi
34534if test ! -f "$as_myself"; then
34535 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34536 { (exit 1); exit 1; }
34537fi
34538
34539# Work around bugs in pre-3.0 UWIN ksh.
34540for as_var in ENV MAIL MAILPATH
34541do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34542done
34543PS1='$ '
34544PS2='> '
34545PS4='+ '
34546
34547# NLS nuisances.
34548for as_var in \
34549 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34550 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34551 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034552do
Reid Spencera773bd52006-08-04 18:18:08 +000034553 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34554 eval $as_var=C; export $as_var
34555 else
34556 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34557 fi
34558done
34559
34560# Required to use basename.
34561if expr a : '\(a\)' >/dev/null 2>&1 &&
34562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34563 as_expr=expr
34564else
34565 as_expr=false
34566fi
34567
34568if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34569 as_basename=basename
34570else
34571 as_basename=false
34572fi
34573
34574
34575# Name of the executable.
34576as_me=`$as_basename -- "$0" ||
34577$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34578 X"$0" : 'X\(//\)$' \| \
34579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34580echo X/"$0" |
34581 sed '/^.*\/\([^/][^/]*\)\/*$/{
34582 s//\1/
34583 q
34584 }
34585 /^X\/\(\/\/\)$/{
34586 s//\1/
34587 q
34588 }
34589 /^X\/\(\/\).*/{
34590 s//\1/
34591 q
34592 }
34593 s/.*/./; q'`
34594
34595# CDPATH.
34596$as_unset CDPATH
34597
34598
34599
John Criswell7a73b802003-06-30 21:59:07 +000034600 as_lineno_1=$LINENO
34601 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034602 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034603 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034604
34605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34606 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034607 # line-number line after each line using $LINENO; the second 'sed'
34608 # does the real work. The second script uses 'N' to pair each
34609 # line-number line with the line containing $LINENO, and appends
34610 # trailing '-' during substitution so that $LINENO is not a special
34611 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034613 # scripts with optimization help from Paolo Bonzini. Blame Lee
34614 # E. McMahon (1931-1989) for sed's syntax. :-)
34615 sed -n '
34616 p
34617 /[$]LINENO/=
34618 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034619 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034620 s/[$]LINENO.*/&-/
34621 t lineno
34622 b
34623 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034624 N
Reid Spencera773bd52006-08-04 18:18:08 +000034625 :loop
34626 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034627 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034628 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034629 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034630 chmod +x "$as_me.lineno" ||
34631 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034632 { (exit 1); exit 1; }; }
34633
34634 # Don't try to exec as it changes $[0], causing all sort of problems
34635 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034636 # original and so on. Autoconf is especially sensitive to this).
34637 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034638 # Exit status is that of the last command.
34639 exit
34640}
34641
34642
Reid Spencera773bd52006-08-04 18:18:08 +000034643if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34644 as_dirname=dirname
34645else
34646 as_dirname=false
34647fi
34648
34649ECHO_C= ECHO_N= ECHO_T=
34650case `echo -n x` in
34651-n*)
34652 case `echo 'x\c'` in
34653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34654 *) ECHO_C='\c';;
34655 esac;;
34656*)
34657 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034658esac
34659
Reid Spencera773bd52006-08-04 18:18:08 +000034660if expr a : '\(a\)' >/dev/null 2>&1 &&
34661 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034662 as_expr=expr
34663else
34664 as_expr=false
34665fi
34666
34667rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034668if test -d conf$$.dir; then
34669 rm -f conf$$.dir/conf$$.file
34670else
34671 rm -f conf$$.dir
34672 mkdir conf$$.dir
34673fi
John Criswell7a73b802003-06-30 21:59:07 +000034674echo >conf$$.file
34675if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034676 as_ln_s='ln -s'
34677 # ... but there are two gotchas:
34678 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34679 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34680 # In both cases, we have to default to `cp -p'.
34681 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034682 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034683elif ln conf$$.file conf$$ 2>/dev/null; then
34684 as_ln_s=ln
34685else
34686 as_ln_s='cp -p'
34687fi
Reid Spencera773bd52006-08-04 18:18:08 +000034688rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34689rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034690
John Criswell0c38eaf2003-09-10 15:17:25 +000034691if mkdir -p . 2>/dev/null; then
34692 as_mkdir_p=:
34693else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034694 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034695 as_mkdir_p=false
34696fi
34697
Bill Wendlingebcceee2009-04-18 11:20:33 +000034698# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34699# systems may use methods other than mode bits to determine executability.
34700cat >conf$$.file <<_ASEOF
34701#! /bin/sh
34702exit 0
34703_ASEOF
34704chmod +x conf$$.file
34705if test -x conf$$.file >/dev/null 2>&1; then
34706 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034707else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034708 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034709fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034710rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034711
34712# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034713as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034714
34715# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034716as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034717
34718
John Criswell7a73b802003-06-30 21:59:07 +000034719exec 6>&1
34720
Reid Spencera773bd52006-08-04 18:18:08 +000034721# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034722# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034723# values after options handling.
34724ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034725This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000034726generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034727
34728 CONFIG_FILES = $CONFIG_FILES
34729 CONFIG_HEADERS = $CONFIG_HEADERS
34730 CONFIG_LINKS = $CONFIG_LINKS
34731 CONFIG_COMMANDS = $CONFIG_COMMANDS
34732 $ $0 $@
34733
Reid Spencera773bd52006-08-04 18:18:08 +000034734on `(hostname || uname -n) 2>/dev/null | sed 1q`
34735"
34736
John Criswell7a73b802003-06-30 21:59:07 +000034737_ACEOF
34738
Reid Spencera773bd52006-08-04 18:18:08 +000034739cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034740# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034741config_files="$ac_config_files"
34742config_headers="$ac_config_headers"
34743config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034744
Reid Spencera773bd52006-08-04 18:18:08 +000034745_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034746
34747cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034748ac_cs_usage="\
34749\`$as_me' instantiates files from templates according to the
34750current configuration.
34751
34752Usage: $0 [OPTIONS] [FILE]...
34753
34754 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000034755 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034756 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034757 -d, --debug don't remove temporary files
34758 --recheck update $as_me by reconfiguring in the same conditions
34759 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034760 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034761 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034762 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034763
34764Configuration files:
34765$config_files
34766
34767Configuration headers:
34768$config_headers
34769
John Criswellc764fbc2003-09-06 15:17:13 +000034770Configuration commands:
34771$config_commands
34772
John Criswell7a73b802003-06-30 21:59:07 +000034773Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034774
Reid Spencera773bd52006-08-04 18:18:08 +000034775_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034776cat >>$CONFIG_STATUS <<_ACEOF
34777ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034778llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000034779configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034780 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034781
Reid Spencera773bd52006-08-04 18:18:08 +000034782Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034783This config.status script is free software; the Free Software Foundation
34784gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034785
34786ac_pwd='$ac_pwd'
34787srcdir='$srcdir'
34788INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034789_ACEOF
34790
34791cat >>$CONFIG_STATUS <<\_ACEOF
34792# If no file are specified by the user, then we need to provide default
34793# value. By we need to know if files were specified by the user.
34794ac_need_defaults=:
34795while test $# != 0
34796do
34797 case $1 in
34798 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034799 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34800 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034801 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034802 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034803 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034804 ac_option=$1
34805 ac_optarg=$2
34806 ac_shift=shift
34807 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034808 esac
34809
John Criswell0c38eaf2003-09-10 15:17:25 +000034810 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034811 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34813 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034814 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34815 echo "$ac_cs_version"; exit ;;
34816 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034817 debug=: ;;
34818 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034819 $ac_shift
34820 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034821 ac_need_defaults=false;;
34822 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034823 $ac_shift
34824 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034825 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034826 --he | --h)
34827 # Conflict between --help and --header
34828 { echo "$as_me: error: ambiguous option: $1
34829Try \`$0 --help' for more information." >&2
34830 { (exit 1); exit 1; }; };;
34831 --help | --hel | -h )
34832 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034833 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34834 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34835 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034836
34837 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034838 -*) { echo "$as_me: error: unrecognized option: $1
34839Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034840 { (exit 1); exit 1; }; } ;;
34841
Reid Spencera773bd52006-08-04 18:18:08 +000034842 *) ac_config_targets="$ac_config_targets $1"
34843 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034844
34845 esac
34846 shift
34847done
34848
John Criswell0c38eaf2003-09-10 15:17:25 +000034849ac_configure_extra_args=
34850
34851if $ac_cs_silent; then
34852 exec 6>/dev/null
34853 ac_configure_extra_args="$ac_configure_extra_args --silent"
34854fi
34855
34856_ACEOF
34857cat >>$CONFIG_STATUS <<_ACEOF
34858if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034859 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34860 CONFIG_SHELL=$SHELL
34861 export CONFIG_SHELL
34862 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034863fi
34864
John Criswell7a73b802003-06-30 21:59:07 +000034865_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034866cat >>$CONFIG_STATUS <<\_ACEOF
34867exec 5>>config.log
34868{
34869 echo
34870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34871## Running $as_me. ##
34872_ASBOX
34873 echo "$ac_log"
34874} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034875
Reid Spencera773bd52006-08-04 18:18:08 +000034876_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034877cat >>$CONFIG_STATUS <<_ACEOF
34878#
Reid Spencera773bd52006-08-04 18:18:08 +000034879# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034880#
Reid Spencerc0682832005-02-24 19:05:19 +000034881llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034882
34883_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034884
John Criswell7a73b802003-06-30 21:59:07 +000034885cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034886
34887# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034888for ac_config_target in $ac_config_targets
34889do
Reid Spencera773bd52006-08-04 18:18:08 +000034890 case $ac_config_target in
34891 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000034892 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
34893 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034894 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034895 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034896 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034897 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034898 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034899 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034900 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34901 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34902 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34903 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34904 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34905 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034906 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034907 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34908 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000034909 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034910 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34911 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34912 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034913 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34914 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034915
John Criswell7a73b802003-06-30 21:59:07 +000034916 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34917echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34918 { (exit 1); exit 1; }; };;
34919 esac
34920done
34921
Reid Spencera773bd52006-08-04 18:18:08 +000034922
John Criswell7a73b802003-06-30 21:59:07 +000034923# If the user did not use the arguments to specify the items to instantiate,
34924# then the envvar interface is used. Set only those that are not.
34925# We use the long form for the default assignment because of an extremely
34926# bizarre bug on SunOS 4.1.3.
34927if $ac_need_defaults; then
34928 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34929 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034930 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034931fi
34932
John Criswell0c38eaf2003-09-10 15:17:25 +000034933# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034934# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034935# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034936# Hook for its removal unless debugging.
34937# Note that there is a small window in which the directory will not be cleaned:
34938# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034939$debug ||
34940{
Reid Spencera773bd52006-08-04 18:18:08 +000034941 tmp=
34942 trap 'exit_status=$?
34943 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34944' 0
John Criswell7a73b802003-06-30 21:59:07 +000034945 trap '{ (exit 1); exit 1; }' 1 2 13 15
34946}
John Criswell7a73b802003-06-30 21:59:07 +000034947# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034948
John Criswell7a73b802003-06-30 21:59:07 +000034949{
Reid Spencera773bd52006-08-04 18:18:08 +000034950 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034951 test -n "$tmp" && test -d "$tmp"
34952} ||
34953{
Reid Spencera773bd52006-08-04 18:18:08 +000034954 tmp=./conf$$-$RANDOM
34955 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034956} ||
34957{
John Criswell0c38eaf2003-09-10 15:17:25 +000034958 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034959 { (exit 1); exit 1; }
34960}
34961
John Criswell7a73b802003-06-30 21:59:07 +000034962#
Reid Spencera773bd52006-08-04 18:18:08 +000034963# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034964#
34965
34966# No need to generate the scripts if there are no CONFIG_FILES.
34967# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034968if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034969
34970_ACEOF
34971
Reid Spencera773bd52006-08-04 18:18:08 +000034972
34973
34974ac_delim='%!_!# '
34975for ac_last_try in false false false false false :; do
34976 cat >conf$$subs.sed <<_ACEOF
34977SHELL!$SHELL$ac_delim
34978PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34979PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34980PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34981PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34982PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34983PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34984exec_prefix!$exec_prefix$ac_delim
34985prefix!$prefix$ac_delim
34986program_transform_name!$program_transform_name$ac_delim
34987bindir!$bindir$ac_delim
34988sbindir!$sbindir$ac_delim
34989libexecdir!$libexecdir$ac_delim
34990datarootdir!$datarootdir$ac_delim
34991datadir!$datadir$ac_delim
34992sysconfdir!$sysconfdir$ac_delim
34993sharedstatedir!$sharedstatedir$ac_delim
34994localstatedir!$localstatedir$ac_delim
34995includedir!$includedir$ac_delim
34996oldincludedir!$oldincludedir$ac_delim
34997docdir!$docdir$ac_delim
34998infodir!$infodir$ac_delim
34999htmldir!$htmldir$ac_delim
35000dvidir!$dvidir$ac_delim
35001pdfdir!$pdfdir$ac_delim
35002psdir!$psdir$ac_delim
35003libdir!$libdir$ac_delim
35004localedir!$localedir$ac_delim
35005mandir!$mandir$ac_delim
35006DEFS!$DEFS$ac_delim
35007ECHO_C!$ECHO_C$ac_delim
35008ECHO_N!$ECHO_N$ac_delim
35009ECHO_T!$ECHO_T$ac_delim
35010LIBS!$LIBS$ac_delim
35011build_alias!$build_alias$ac_delim
35012host_alias!$host_alias$ac_delim
35013target_alias!$target_alias$ac_delim
35014LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35015subdirs!$subdirs$ac_delim
35016build!$build$ac_delim
35017build_cpu!$build_cpu$ac_delim
35018build_vendor!$build_vendor$ac_delim
35019build_os!$build_os$ac_delim
35020host!$host$ac_delim
35021host_cpu!$host_cpu$ac_delim
35022host_vendor!$host_vendor$ac_delim
35023host_os!$host_os$ac_delim
35024target!$target$ac_delim
35025target_cpu!$target_cpu$ac_delim
35026target_vendor!$target_vendor$ac_delim
35027target_os!$target_os$ac_delim
35028OS!$OS$ac_delim
35029LINKALL!$LINKALL$ac_delim
35030NOLINKALL!$NOLINKALL$ac_delim
35031LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35032LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000035033ARCH!$ARCH$ac_delim
35034ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035035CC!$CC$ac_delim
35036CFLAGS!$CFLAGS$ac_delim
35037LDFLAGS!$LDFLAGS$ac_delim
35038CPPFLAGS!$CPPFLAGS$ac_delim
35039ac_ct_CC!$ac_ct_CC$ac_delim
35040EXEEXT!$EXEEXT$ac_delim
35041OBJEXT!$OBJEXT$ac_delim
35042CPP!$CPP$ac_delim
35043GREP!$GREP$ac_delim
35044EGREP!$EGREP$ac_delim
35045LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35046BUILD_CC!$BUILD_CC$ac_delim
35047BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035048BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035049CVSBUILD!$CVSBUILD$ac_delim
35050ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000035051ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035052DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035053ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35054EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035055DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035056JIT!$JIT$ac_delim
35057TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35058ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35059ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035060ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035061TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000035062LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35063LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035064ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035065EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000035066BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035067CXX!$CXX$ac_delim
35068CXXFLAGS!$CXXFLAGS$ac_delim
35069ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000035070NM!$NM$ac_delim
35071ifGNUmake!$ifGNUmake$ac_delim
35072LN_S!$LN_S$ac_delim
35073CMP!$CMP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035074_ACEOF
35075
35076 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35077 break
35078 elif $ac_last_try; then
35079 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35080echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35081 { (exit 1); exit 1; }; }
35082 else
35083 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035084 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035085done
35086
35087ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35088if test -n "$ac_eof"; then
35089 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35090 ac_eof=`expr $ac_eof + 1`
35091fi
35092
35093cat >>$CONFIG_STATUS <<_ACEOF
35094cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35095/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35096_ACEOF
35097sed '
35098s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35099s/^/s,@/; s/!/@,|#_!!_#|/
35100:n
35101t n
35102s/'"$ac_delim"'$/,g/; t
35103s/$/\\/; p
35104N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35105' >>$CONFIG_STATUS <conf$$subs.sed
35106rm -f conf$$subs.sed
35107cat >>$CONFIG_STATUS <<_ACEOF
35108CEOF$ac_eof
35109_ACEOF
35110
35111
35112ac_delim='%!_!# '
35113for ac_last_try in false false false false false :; do
35114 cat >conf$$subs.sed <<_ACEOF
Douglas Gregor1555a232009-06-16 20:12:29 +000035115CP!$CP$ac_delim
35116DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000035117FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035118MKDIR!$MKDIR$ac_delim
35119MV!$MV$ac_delim
35120RANLIB!$RANLIB$ac_delim
35121RM!$RM$ac_delim
35122SED!$SED$ac_delim
35123TAR!$TAR$ac_delim
35124BINPWD!$BINPWD$ac_delim
35125GRAPHVIZ!$GRAPHVIZ$ac_delim
35126DOT!$DOT$ac_delim
35127GV!$GV$ac_delim
35128DOTTY!$DOTTY$ac_delim
35129PERL!$PERL$ac_delim
35130HAVE_PERL!$HAVE_PERL$ac_delim
35131INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35132INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35133INSTALL_DATA!$INSTALL_DATA$ac_delim
35134BZIP2!$BZIP2$ac_delim
35135DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035136GROFF!$GROFF$ac_delim
35137GZIP!$GZIP$ac_delim
35138POD2HTML!$POD2HTML$ac_delim
35139POD2MAN!$POD2MAN$ac_delim
35140RUNTEST!$RUNTEST$ac_delim
35141TCLSH!$TCLSH$ac_delim
35142ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035143OCAMLC!$OCAMLC$ac_delim
35144OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035145OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035146OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035147GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035148INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35149INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35150CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35151CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35152LIBADD_DL!$LIBADD_DL$ac_delim
35153ECHO!$ECHO$ac_delim
35154AR!$AR$ac_delim
35155STRIP!$STRIP$ac_delim
35156CXXCPP!$CXXCPP$ac_delim
35157F77!$F77$ac_delim
35158FFLAGS!$FFLAGS$ac_delim
35159ac_ct_F77!$ac_ct_F77$ac_delim
35160LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035161LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35162LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000035163LLVMGCC!$LLVMGCC$ac_delim
35164LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035165USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035166HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035167HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035168ALLOCA!$ALLOCA$ac_delim
35169MMAP_FILE!$MMAP_FILE$ac_delim
35170LLVMCC1!$LLVMCC1$ac_delim
35171LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35172LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035173LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035174LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35175LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035176LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035177SHLIBEXT!$SHLIBEXT$ac_delim
35178LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35179LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35180LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35181LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35182LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35183LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35184LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35185LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35186LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35187LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035188BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35189ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035190OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035191ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035192RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035193RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035194LIBOBJS!$LIBOBJS$ac_delim
35195LTLIBOBJS!$LTLIBOBJS$ac_delim
35196_ACEOF
35197
Douglas Gregor1555a232009-06-16 20:12:29 +000035198 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
Reid Spencera773bd52006-08-04 18:18:08 +000035199 break
35200 elif $ac_last_try; then
35201 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35202echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35203 { (exit 1); exit 1; }; }
35204 else
35205 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35206 fi
35207done
35208
35209ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35210if test -n "$ac_eof"; then
35211 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35212 ac_eof=`expr $ac_eof + 1`
35213fi
35214
35215cat >>$CONFIG_STATUS <<_ACEOF
35216cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35217/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35218_ACEOF
35219sed '
35220s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35221s/^/s,@/; s/!/@,|#_!!_#|/
35222:n
35223t n
35224s/'"$ac_delim"'$/,g/; t
35225s/$/\\/; p
35226N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35227' >>$CONFIG_STATUS <conf$$subs.sed
35228rm -f conf$$subs.sed
35229cat >>$CONFIG_STATUS <<_ACEOF
35230:end
35231s/|#_!!_#|//g
35232CEOF$ac_eof
35233_ACEOF
35234
35235
35236# VPATH may cause trouble with some makes, so we remove $(srcdir),
35237# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35238# trailing colons and then remove the whole line if VPATH becomes empty
35239# (actually we leave an empty line to preserve line numbers).
35240if test "x$srcdir" = x.; then
35241 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35242s/:*\$(srcdir):*/:/
35243s/:*\${srcdir}:*/:/
35244s/:*@srcdir@:*/:/
35245s/^\([^=]*=[ ]*\):*/\1/
35246s/:*$//
35247s/^[^=]*=[ ]*$//
35248}'
35249fi
35250
35251cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035252fi # test -n "$CONFIG_FILES"
35253
Reid Spencera773bd52006-08-04 18:18:08 +000035254
35255for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35256do
35257 case $ac_tag in
35258 :[FHLC]) ac_mode=$ac_tag; continue;;
35259 esac
35260 case $ac_mode$ac_tag in
35261 :[FHL]*:*);;
35262 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35263echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35264 { (exit 1); exit 1; }; };;
35265 :[FH]-) ac_tag=-:-;;
35266 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35267 esac
35268 ac_save_IFS=$IFS
35269 IFS=:
35270 set x $ac_tag
35271 IFS=$ac_save_IFS
35272 shift
35273 ac_file=$1
35274 shift
35275
35276 case $ac_mode in
35277 :L) ac_source=$1;;
35278 :[FH])
35279 ac_file_inputs=
35280 for ac_f
35281 do
35282 case $ac_f in
35283 -) ac_f="$tmp/stdin";;
35284 *) # Look for the file first in the build tree, then in the source tree
35285 # (if the path is not absolute). The absolute path cannot be DOS-style,
35286 # because $ac_f cannot contain `:'.
35287 test -f "$ac_f" ||
35288 case $ac_f in
35289 [\\/$]*) false;;
35290 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35291 esac ||
35292 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35293echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35294 { (exit 1); exit 1; }; };;
35295 esac
35296 ac_file_inputs="$ac_file_inputs $ac_f"
35297 done
35298
35299 # Let's still pretend it is `configure' which instantiates (i.e., don't
35300 # use $as_me), people would be surprised to read:
35301 # /* config.h. Generated by config.status. */
35302 configure_input="Generated from "`IFS=:
35303 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35304 if test x"$ac_file" != x-; then
35305 configure_input="$ac_file. $configure_input"
35306 { echo "$as_me:$LINENO: creating $ac_file" >&5
35307echo "$as_me: creating $ac_file" >&6;}
35308 fi
35309
35310 case $ac_tag in
35311 *:-:* | *:-) cat >"$tmp/stdin";;
35312 esac
35313 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035314 esac
35315
Reid Spencera773bd52006-08-04 18:18:08 +000035316 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035317$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035318 X"$ac_file" : 'X\(//\)[^/]' \| \
35319 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035320 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035321echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35323 s//\1/
35324 q
35325 }
35326 /^X\(\/\/\)[^/].*/{
35327 s//\1/
35328 q
35329 }
35330 /^X\(\/\/\)$/{
35331 s//\1/
35332 q
35333 }
35334 /^X\(\/\).*/{
35335 s//\1/
35336 q
35337 }
35338 s/.*/./; q'`
35339 { as_dir="$ac_dir"
35340 case $as_dir in #(
35341 -*) as_dir=./$as_dir;;
35342 esac
35343 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035344 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035345 while :; do
35346 case $as_dir in #(
35347 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35348 *) as_qdir=$as_dir;;
35349 esac
35350 as_dirs="'$as_qdir' $as_dirs"
35351 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035353 X"$as_dir" : 'X\(//\)[^/]' \| \
35354 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035356echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35358 s//\1/
35359 q
35360 }
35361 /^X\(\/\/\)[^/].*/{
35362 s//\1/
35363 q
35364 }
35365 /^X\(\/\/\)$/{
35366 s//\1/
35367 q
35368 }
35369 /^X\(\/\).*/{
35370 s//\1/
35371 q
35372 }
35373 s/.*/./; q'`
35374 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035375 done
Reid Spencera773bd52006-08-04 18:18:08 +000035376 test -z "$as_dirs" || eval "mkdir $as_dirs"
35377 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35378echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035379 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035380 ac_builddir=.
35381
Reid Spencera773bd52006-08-04 18:18:08 +000035382case "$ac_dir" in
35383.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35384*)
John Criswell7a73b802003-06-30 21:59:07 +000035385 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035386 # A ".." for each directory in $ac_dir_suffix.
35387 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35388 case $ac_top_builddir_sub in
35389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35391 esac ;;
35392esac
35393ac_abs_top_builddir=$ac_pwd
35394ac_abs_builddir=$ac_pwd$ac_dir_suffix
35395# for backward compatibility:
35396ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035397
35398case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035399 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035400 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035401 ac_top_srcdir=$ac_top_builddir_sub
35402 ac_abs_top_srcdir=$ac_pwd ;;
35403 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035404 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035405 ac_top_srcdir=$srcdir
35406 ac_abs_top_srcdir=$srcdir ;;
35407 *) # Relative name.
35408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35409 ac_top_srcdir=$ac_top_build_prefix$srcdir
35410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035411esac
Reid Spencera773bd52006-08-04 18:18:08 +000035412ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035413
John Criswell7a73b802003-06-30 21:59:07 +000035414
Reid Spencera773bd52006-08-04 18:18:08 +000035415 case $ac_mode in
35416 :F)
35417 #
35418 # CONFIG_FILE
35419 #
John Criswell7a73b802003-06-30 21:59:07 +000035420
35421 case $INSTALL in
35422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035423 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035424 esac
John Criswell7a73b802003-06-30 21:59:07 +000035425_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035426
35427cat >>$CONFIG_STATUS <<\_ACEOF
35428# If the template does not know about datarootdir, expand it.
35429# FIXME: This hack should be removed a few years after 2.60.
35430ac_datarootdir_hack=; ac_datarootdir_seen=
35431
35432case `sed -n '/datarootdir/ {
35433 p
35434 q
35435}
35436/@datadir@/p
35437/@docdir@/p
35438/@infodir@/p
35439/@localedir@/p
35440/@mandir@/p
35441' $ac_file_inputs` in
35442*datarootdir*) ac_datarootdir_seen=yes;;
35443*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35444 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35445echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35446_ACEOF
35447cat >>$CONFIG_STATUS <<_ACEOF
35448 ac_datarootdir_hack='
35449 s&@datadir@&$datadir&g
35450 s&@docdir@&$docdir&g
35451 s&@infodir@&$infodir&g
35452 s&@localedir@&$localedir&g
35453 s&@mandir@&$mandir&g
35454 s&\\\${datarootdir}&$datarootdir&g' ;;
35455esac
35456_ACEOF
35457
35458# Neutralize VPATH when `$srcdir' = `.'.
35459# Shell code in configure.ac might set extrasub.
35460# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035461cat >>$CONFIG_STATUS <<_ACEOF
35462 sed "$ac_vpsub
35463$extrasub
35464_ACEOF
35465cat >>$CONFIG_STATUS <<\_ACEOF
35466:t
35467/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035468s&@configure_input@&$configure_input&;t t
35469s&@top_builddir@&$ac_top_builddir_sub&;t t
35470s&@srcdir@&$ac_srcdir&;t t
35471s&@abs_srcdir@&$ac_abs_srcdir&;t t
35472s&@top_srcdir@&$ac_top_srcdir&;t t
35473s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35474s&@builddir@&$ac_builddir&;t t
35475s&@abs_builddir@&$ac_abs_builddir&;t t
35476s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35477s&@INSTALL@&$ac_INSTALL&;t t
35478$ac_datarootdir_hack
35479" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035480
Reid Spencera773bd52006-08-04 18:18:08 +000035481test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35482 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35483 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35484 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35485which seems to be undefined. Please make sure it is defined." >&5
35486echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35487which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035488
Reid Spencera773bd52006-08-04 18:18:08 +000035489 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035490 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035491 -) cat "$tmp/out"; rm -f "$tmp/out";;
35492 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035493 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035494 ;;
35495 :H)
35496 #
35497 # CONFIG_HEADER
35498 #
John Criswell7a73b802003-06-30 21:59:07 +000035499_ACEOF
35500
Reid Spencera773bd52006-08-04 18:18:08 +000035501# Transform confdefs.h into a sed script `conftest.defines', that
35502# substitutes the proper values into config.h.in to produce config.h.
35503rm -f conftest.defines conftest.tail
35504# First, append a space to every undef/define line, to ease matching.
35505echo 's/$/ /' >conftest.defines
35506# Then, protect against being on the right side of a sed subst, or in
35507# an unquoted here document, in config.status. If some macros were
35508# called several times there might be several #defines for the same
35509# symbol, which is useless. But do not sort them, since the last
35510# AC_DEFINE must be honored.
35511ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35512# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35513# NAME is the cpp macro being defined, VALUE is the value it is being given.
35514# PARAMS is the parameter list in the macro definition--in most cases, it's
35515# just an empty string.
35516ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35517ac_dB='\\)[ (].*,\\1define\\2'
35518ac_dC=' '
35519ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035520
Reid Spencera773bd52006-08-04 18:18:08 +000035521uniq confdefs.h |
35522 sed -n '
35523 t rset
35524 :rset
35525 s/^[ ]*#[ ]*define[ ][ ]*//
35526 t ok
35527 d
35528 :ok
35529 s/[\\&,]/\\&/g
35530 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35531 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35532 ' >>conftest.defines
35533
35534# Remove the space that was appended to ease matching.
35535# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035536# example, in the case of _POSIX_SOURCE, which is predefined and required
35537# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035538# (The regexp can be short, since the line contains either #define or #undef.)
35539echo 's/ $//
35540s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035541
Reid Spencera773bd52006-08-04 18:18:08 +000035542# Break up conftest.defines:
35543ac_max_sed_lines=50
35544
35545# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35546# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35547# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35548# et cetera.
35549ac_in='$ac_file_inputs'
35550ac_out='"$tmp/out1"'
35551ac_nxt='"$tmp/out2"'
35552
35553while :
John Criswell7a73b802003-06-30 21:59:07 +000035554do
Reid Spencera773bd52006-08-04 18:18:08 +000035555 # Write a here document:
35556 cat >>$CONFIG_STATUS <<_ACEOF
35557 # First, check the format of the line:
35558 cat >"\$tmp/defines.sed" <<\\CEOF
35559/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35560/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35561b
35562:def
35563_ACEOF
35564 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035565 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035566 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35567 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35568 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35569 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035570 rm -f conftest.defines
35571 mv conftest.tail conftest.defines
35572done
Reid Spencera773bd52006-08-04 18:18:08 +000035573rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035574
Reid Spencera773bd52006-08-04 18:18:08 +000035575echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035576cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035577 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035578 echo "/* $configure_input */" >"$tmp/config.h"
35579 cat "$ac_result" >>"$tmp/config.h"
35580 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035581 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35582echo "$as_me: $ac_file is unchanged" >&6;}
35583 else
John Criswell7a73b802003-06-30 21:59:07 +000035584 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035585 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035586 fi
35587 else
Reid Spencera773bd52006-08-04 18:18:08 +000035588 echo "/* $configure_input */"
35589 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035590 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035591 rm -f "$tmp/out12"
35592 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035593
Reid Spencera773bd52006-08-04 18:18:08 +000035594 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35595echo "$as_me: executing $ac_file commands" >&6;}
35596 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035597 esac
John Criswell7a73b802003-06-30 21:59:07 +000035598
Reid Spencera773bd52006-08-04 18:18:08 +000035599
35600 case $ac_file$ac_mode in
35601 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35602 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35603 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35604 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35605 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35606 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35607 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35608 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035609 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35610 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035611 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35612 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35613 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35614 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035615 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35616 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035617 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35618 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35619 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35620 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35621 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35622 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035623 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35624 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35625 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35626 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035627
35628 esac
35629done # for ac_tag
35630
John Criswell7a73b802003-06-30 21:59:07 +000035631
35632{ (exit 0); exit 0; }
35633_ACEOF
35634chmod +x $CONFIG_STATUS
35635ac_clean_files=$ac_clean_files_save
35636
35637
35638# configure is writing to config.log, and then calls config.status.
35639# config.status does its own redirection, appending to config.log.
35640# Unfortunately, on DOS this fails, as config.log is still kept open
35641# by configure, so config.status won't be able to write to it; its
35642# output is simply discarded. So we exec the FD to /dev/null,
35643# effectively closing config.log, so it can be properly (re)opened and
35644# appended to by config.status. When coming back to configure, we
35645# need to make the FD available again.
35646if test "$no_create" != yes; then
35647 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035648 ac_config_status_args=
35649 test "$silent" = yes &&
35650 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035651 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035653 exec 5>>config.log
35654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35655 # would make configure fail if this is the last instruction.
35656 $ac_cs_success || { (exit 1); exit 1; }
35657fi
35658
John Criswell12399a12003-09-30 15:55:44 +000035659#
35660# CONFIG_SUBDIRS section.
35661#
35662if test "$no_recursion" != yes; then
35663
35664 # Remove --cache-file and --srcdir arguments so they do not pile up.
35665 ac_sub_configure_args=
35666 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035667 eval "set x $ac_configure_args"
35668 shift
35669 for ac_arg
35670 do
John Criswell12399a12003-09-30 15:55:44 +000035671 if test -n "$ac_prev"; then
35672 ac_prev=
35673 continue
35674 fi
35675 case $ac_arg in
35676 -cache-file | --cache-file | --cache-fil | --cache-fi \
35677 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35678 ac_prev=cache_file ;;
35679 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35680 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35681 | --c=*)
35682 ;;
35683 --config-cache | -C)
35684 ;;
35685 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35686 ac_prev=srcdir ;;
35687 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35688 ;;
35689 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35690 ac_prev=prefix ;;
35691 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35692 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035693 *)
35694 case $ac_arg in
35695 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35696 esac
35697 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035698 esac
35699 done
35700
35701 # Always prepend --prefix to ensure using the same prefix
35702 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035703 ac_arg="--prefix=$prefix"
35704 case $ac_arg in
35705 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35706 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000035707 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035708
35709 ac_popdir=`pwd`
35710 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35711
35712 # Do not complain, so a configure script can configure whichever
35713 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035714 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035715
Reid Spencera773bd52006-08-04 18:18:08 +000035716 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35717 echo "$as_me:$LINENO: $ac_msg" >&5
35718 echo "$ac_msg" >&6
35719 { as_dir="$ac_dir"
35720 case $as_dir in #(
35721 -*) as_dir=./$as_dir;;
35722 esac
35723 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035724 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035725 while :; do
35726 case $as_dir in #(
35727 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35728 *) as_qdir=$as_dir;;
35729 esac
35730 as_dirs="'$as_qdir' $as_dirs"
35731 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035732$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035733 X"$as_dir" : 'X\(//\)[^/]' \| \
35734 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035736echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35738 s//\1/
35739 q
35740 }
35741 /^X\(\/\/\)[^/].*/{
35742 s//\1/
35743 q
35744 }
35745 /^X\(\/\/\)$/{
35746 s//\1/
35747 q
35748 }
35749 /^X\(\/\).*/{
35750 s//\1/
35751 q
35752 }
35753 s/.*/./; q'`
35754 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035755 done
Reid Spencera773bd52006-08-04 18:18:08 +000035756 test -z "$as_dirs" || eval "mkdir $as_dirs"
35757 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35758echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035759 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035760 ac_builddir=.
35761
Reid Spencera773bd52006-08-04 18:18:08 +000035762case "$ac_dir" in
35763.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35764*)
John Criswell12399a12003-09-30 15:55:44 +000035765 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035766 # A ".." for each directory in $ac_dir_suffix.
35767 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35768 case $ac_top_builddir_sub in
35769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35771 esac ;;
35772esac
35773ac_abs_top_builddir=$ac_pwd
35774ac_abs_builddir=$ac_pwd$ac_dir_suffix
35775# for backward compatibility:
35776ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035777
35778case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035779 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035780 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035781 ac_top_srcdir=$ac_top_builddir_sub
35782 ac_abs_top_srcdir=$ac_pwd ;;
35783 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035784 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035785 ac_top_srcdir=$srcdir
35786 ac_abs_top_srcdir=$srcdir ;;
35787 *) # Relative name.
35788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35789 ac_top_srcdir=$ac_top_build_prefix$srcdir
35790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035791esac
Reid Spencera773bd52006-08-04 18:18:08 +000035792ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035793
35794
Reid Spencera773bd52006-08-04 18:18:08 +000035795 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035796
35797 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035798 if test -f "$ac_srcdir/configure.gnu"; then
35799 ac_sub_configure=$ac_srcdir/configure.gnu
35800 elif test -f "$ac_srcdir/configure"; then
35801 ac_sub_configure=$ac_srcdir/configure
35802 elif test -f "$ac_srcdir/configure.in"; then
35803 # This should be Cygnus configure.
35804 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035805 else
35806 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35807echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35808 ac_sub_configure=
35809 fi
35810
35811 # The recursion is here.
35812 if test -n "$ac_sub_configure"; then
35813 # Make the cache file name correct relative to the subdirectory.
35814 case $cache_file in
35815 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035816 *) # Relative name.
35817 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035818 esac
35819
Reid Spencera773bd52006-08-04 18:18:08 +000035820 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35821echo "$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 +000035822 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035823 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35824 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035825 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035826echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35827 { (exit 1); exit 1; }; }
35828 fi
35829
Reid Spencera773bd52006-08-04 18:18:08 +000035830 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035831 done
35832fi
35833