blob: 1179524853f166182d1654f8d34f03478189dd8a [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
Reid Spencer65c5d752006-11-05 17:08:18 +0000844ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000845EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000846BINUTILS_INCDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000847CXX
848CXXFLAGS
849ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000850NM
851ifGNUmake
852LN_S
853CMP
854CP
855DATE
856FIND
857MKDIR
858MV
859RANLIB
860RM
861SED
862TAR
863BINPWD
864GRAPHVIZ
865DOT
866GV
867DOTTY
868PERL
869HAVE_PERL
870INSTALL_PROGRAM
871INSTALL_SCRIPT
872INSTALL_DATA
873BZIP2
874DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000875GROFF
876GZIP
877POD2HTML
878POD2MAN
879RUNTEST
880TCLSH
881ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000882OCAMLC
883OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000884OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000885OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000886GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000887INSTALL_LTDL_TRUE
888INSTALL_LTDL_FALSE
889CONVENIENCE_LTDL_TRUE
890CONVENIENCE_LTDL_FALSE
891LIBADD_DL
892ECHO
893AR
894STRIP
895CXXCPP
896F77
897FFLAGS
898ac_ct_F77
899LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000900LLVMGCCCOMMAND
901LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000902LLVMGCC
903LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000904USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000905HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000906HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000907ALLOCA
908MMAP_FILE
909LLVMCC1
910LLVMCC1PLUS
911LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000912LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000913LLVMGCC_VERSION
914LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000915LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000916SHLIBEXT
917LLVM_PREFIX
918LLVM_BINDIR
919LLVM_LIBDIR
920LLVM_DATADIR
921LLVM_DOCSDIR
922LLVM_ETCDIR
923LLVM_INCLUDEDIR
924LLVM_INFODIR
925LLVM_MANDIR
926LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000927BINDINGS_TO_BUILD
928ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000929OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000930ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000931RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000932RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000933LIBOBJS
934LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000935ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000936 ac_precious_vars='build_alias
937host_alias
938target_alias
939CC
940CFLAGS
941LDFLAGS
942CPPFLAGS
943CPP
944CXX
945CXXFLAGS
946CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000947CXXCPP
948F77
949FFLAGS'
950ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000951projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000952projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000953projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000954projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000955projects/llvm-reopt
956projects/llvm-gcc
957projects/llvm-java
958projects/llvm-tv
959projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000960projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000961projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000962
963# Initialize some variables set by options.
964ac_init_help=
965ac_init_version=false
966# The variables have the same names as the options, with
967# dashes changed to underlines.
968cache_file=/dev/null
969exec_prefix=NONE
970no_create=
971no_recursion=
972prefix=NONE
973program_prefix=NONE
974program_suffix=NONE
975program_transform_name=s,x,x,
976silent=
977site=
978srcdir=
979verbose=
980x_includes=NONE
981x_libraries=NONE
982
983# Installation directory options.
984# These are left unexpanded so users can "make install exec_prefix=/foo"
985# and all the variables that are supposed to be based on exec_prefix
986# by default will actually change.
987# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000988# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000989bindir='${exec_prefix}/bin'
990sbindir='${exec_prefix}/sbin'
991libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000992datarootdir='${prefix}/share'
993datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000994sysconfdir='${prefix}/etc'
995sharedstatedir='${prefix}/com'
996localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000997includedir='${prefix}/include'
998oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000999docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001008
1009ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001010ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001011for ac_option
1012do
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001015 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001016 ac_prev=
1017 continue
1018 fi
1019
Reid Spencera773bd52006-08-04 18:18:08 +00001020 case $ac_option in
1021 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *) ac_optarg=yes ;;
1023 esac
John Criswell7a73b802003-06-30 21:59:07 +00001024
1025 # Accept the important Cygnus configure options, so we can diagnose typos.
1026
Reid Spencera773bd52006-08-04 18:18:08 +00001027 case $ac_dashdash$ac_option in
1028 --)
1029 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001030
1031 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 ac_prev=bindir ;;
1033 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1034 bindir=$ac_optarg ;;
1035
1036 -build | --build | --buil | --bui | --bu)
1037 ac_prev=build_alias ;;
1038 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1039 build_alias=$ac_optarg ;;
1040
1041 -cache-file | --cache-file | --cache-fil | --cache-fi \
1042 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1043 ac_prev=cache_file ;;
1044 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1045 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1046 cache_file=$ac_optarg ;;
1047
1048 --config-cache | -C)
1049 cache_file=config.cache ;;
1050
Reid Spencera773bd52006-08-04 18:18:08 +00001051 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001052 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001053 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001054 datadir=$ac_optarg ;;
1055
Reid Spencera773bd52006-08-04 18:18:08 +00001056 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1057 | --dataroo | --dataro | --datar)
1058 ac_prev=datarootdir ;;
1059 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1060 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1061 datarootdir=$ac_optarg ;;
1062
John Criswell7a73b802003-06-30 21:59:07 +00001063 -disable-* | --disable-*)
1064 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001066 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001067 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001069 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001070 eval enable_$ac_feature=no ;;
1071
1072 -docdir | --docdir | --docdi | --doc | --do)
1073 ac_prev=docdir ;;
1074 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1075 docdir=$ac_optarg ;;
1076
1077 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 ac_prev=dvidir ;;
1079 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1080 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001081
1082 -enable-* | --enable-*)
1083 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001085 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001086 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1087 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001088 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001089 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001090
1091 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1092 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1093 | --exec | --exe | --ex)
1094 ac_prev=exec_prefix ;;
1095 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1096 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1097 | --exec=* | --exe=* | --ex=*)
1098 exec_prefix=$ac_optarg ;;
1099
1100 -gas | --gas | --ga | --g)
1101 # Obsolete; use --with-gas.
1102 with_gas=yes ;;
1103
1104 -help | --help | --hel | --he | -h)
1105 ac_init_help=long ;;
1106 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1107 ac_init_help=recursive ;;
1108 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1109 ac_init_help=short ;;
1110
1111 -host | --host | --hos | --ho)
1112 ac_prev=host_alias ;;
1113 -host=* | --host=* | --hos=* | --ho=*)
1114 host_alias=$ac_optarg ;;
1115
Reid Spencera773bd52006-08-04 18:18:08 +00001116 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1117 ac_prev=htmldir ;;
1118 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1119 | --ht=*)
1120 htmldir=$ac_optarg ;;
1121
John Criswell7a73b802003-06-30 21:59:07 +00001122 -includedir | --includedir | --includedi | --included | --include \
1123 | --includ | --inclu | --incl | --inc)
1124 ac_prev=includedir ;;
1125 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1126 | --includ=* | --inclu=* | --incl=* | --inc=*)
1127 includedir=$ac_optarg ;;
1128
1129 -infodir | --infodir | --infodi | --infod | --info | --inf)
1130 ac_prev=infodir ;;
1131 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1132 infodir=$ac_optarg ;;
1133
1134 -libdir | --libdir | --libdi | --libd)
1135 ac_prev=libdir ;;
1136 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1137 libdir=$ac_optarg ;;
1138
1139 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1140 | --libexe | --libex | --libe)
1141 ac_prev=libexecdir ;;
1142 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1143 | --libexe=* | --libex=* | --libe=*)
1144 libexecdir=$ac_optarg ;;
1145
Reid Spencera773bd52006-08-04 18:18:08 +00001146 -localedir | --localedir | --localedi | --localed | --locale)
1147 ac_prev=localedir ;;
1148 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1149 localedir=$ac_optarg ;;
1150
John Criswell7a73b802003-06-30 21:59:07 +00001151 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001152 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001153 ac_prev=localstatedir ;;
1154 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001155 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001156 localstatedir=$ac_optarg ;;
1157
1158 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1159 ac_prev=mandir ;;
1160 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1161 mandir=$ac_optarg ;;
1162
1163 -nfp | --nfp | --nf)
1164 # Obsolete; use --without-fp.
1165 with_fp=no ;;
1166
1167 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1168 | --no-cr | --no-c | -n)
1169 no_create=yes ;;
1170
1171 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1172 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1173 no_recursion=yes ;;
1174
1175 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1176 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1177 | --oldin | --oldi | --old | --ol | --o)
1178 ac_prev=oldincludedir ;;
1179 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1180 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1181 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1182 oldincludedir=$ac_optarg ;;
1183
1184 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1185 ac_prev=prefix ;;
1186 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1187 prefix=$ac_optarg ;;
1188
1189 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1190 | --program-pre | --program-pr | --program-p)
1191 ac_prev=program_prefix ;;
1192 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1193 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1194 program_prefix=$ac_optarg ;;
1195
1196 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1197 | --program-suf | --program-su | --program-s)
1198 ac_prev=program_suffix ;;
1199 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1200 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1201 program_suffix=$ac_optarg ;;
1202
1203 -program-transform-name | --program-transform-name \
1204 | --program-transform-nam | --program-transform-na \
1205 | --program-transform-n | --program-transform- \
1206 | --program-transform | --program-transfor \
1207 | --program-transfo | --program-transf \
1208 | --program-trans | --program-tran \
1209 | --progr-tra | --program-tr | --program-t)
1210 ac_prev=program_transform_name ;;
1211 -program-transform-name=* | --program-transform-name=* \
1212 | --program-transform-nam=* | --program-transform-na=* \
1213 | --program-transform-n=* | --program-transform-=* \
1214 | --program-transform=* | --program-transfor=* \
1215 | --program-transfo=* | --program-transf=* \
1216 | --program-trans=* | --program-tran=* \
1217 | --progr-tra=* | --program-tr=* | --program-t=*)
1218 program_transform_name=$ac_optarg ;;
1219
Reid Spencera773bd52006-08-04 18:18:08 +00001220 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1221 ac_prev=pdfdir ;;
1222 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1223 pdfdir=$ac_optarg ;;
1224
1225 -psdir | --psdir | --psdi | --psd | --ps)
1226 ac_prev=psdir ;;
1227 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1228 psdir=$ac_optarg ;;
1229
John Criswell7a73b802003-06-30 21:59:07 +00001230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1231 | -silent | --silent | --silen | --sile | --sil)
1232 silent=yes ;;
1233
1234 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1235 ac_prev=sbindir ;;
1236 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1237 | --sbi=* | --sb=*)
1238 sbindir=$ac_optarg ;;
1239
1240 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1241 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1242 | --sharedst | --shareds | --shared | --share | --shar \
1243 | --sha | --sh)
1244 ac_prev=sharedstatedir ;;
1245 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1246 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1247 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1248 | --sha=* | --sh=*)
1249 sharedstatedir=$ac_optarg ;;
1250
1251 -site | --site | --sit)
1252 ac_prev=site ;;
1253 -site=* | --site=* | --sit=*)
1254 site=$ac_optarg ;;
1255
1256 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1257 ac_prev=srcdir ;;
1258 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1259 srcdir=$ac_optarg ;;
1260
1261 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1262 | --syscon | --sysco | --sysc | --sys | --sy)
1263 ac_prev=sysconfdir ;;
1264 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1265 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1266 sysconfdir=$ac_optarg ;;
1267
1268 -target | --target | --targe | --targ | --tar | --ta | --t)
1269 ac_prev=target_alias ;;
1270 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1271 target_alias=$ac_optarg ;;
1272
1273 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1274 verbose=yes ;;
1275
1276 -version | --version | --versio | --versi | --vers | -V)
1277 ac_init_version=: ;;
1278
1279 -with-* | --with-*)
1280 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1281 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001282 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001283 { echo "$as_me: error: invalid package name: $ac_package" >&2
1284 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001285 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001286 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001287
1288 -without-* | --without-*)
1289 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001291 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001294 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001295 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001296
1297 --x)
1298 # Obsolete; use --with-x.
1299 with_x=yes ;;
1300
1301 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1302 | --x-incl | --x-inc | --x-in | --x-i)
1303 ac_prev=x_includes ;;
1304 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1305 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1306 x_includes=$ac_optarg ;;
1307
1308 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1309 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1310 ac_prev=x_libraries ;;
1311 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1312 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1313 x_libraries=$ac_optarg ;;
1314
1315 -*) { echo "$as_me: error: unrecognized option: $ac_option
1316Try \`$0 --help' for more information." >&2
1317 { (exit 1); exit 1; }; }
1318 ;;
1319
1320 *=*)
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1324 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1325 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001326 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001327 export $ac_envvar ;;
1328
1329 *)
1330 # FIXME: should be removed in autoconf 3.0.
1331 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1332 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1333 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1334 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1335 ;;
1336
1337 esac
1338done
1339
1340if test -n "$ac_prev"; then
1341 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1342 { echo "$as_me: error: missing argument to $ac_option" >&2
1343 { (exit 1); exit 1; }; }
1344fi
1345
Reid Spencera773bd52006-08-04 18:18:08 +00001346# Be sure to have absolute directory names.
1347for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001351do
Reid Spencera773bd52006-08-04 18:18:08 +00001352 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001353 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001354 [\\/$]* | ?:[\\/]* ) continue;;
1355 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001356 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001357 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1358 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001359done
1360
1361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
1367
1368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
1372 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used." >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1376 fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
1384
Reid Spencera773bd52006-08-04 18:18:08 +00001385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 { echo "$as_me: error: Working directory cannot be determined" >&2
1389 { (exit 1); exit 1; }; }
1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1391 { echo "$as_me: error: pwd does not report name of working directory" >&2
1392 { (exit 1); exit 1; }; }
1393
1394
John Criswell7a73b802003-06-30 21:59:07 +00001395# Find the source files, if location was not specified.
1396if test -z "$srcdir"; then
1397 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001398 # Try the directory containing this script, then the parent directory.
1399 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001400$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001401 X"$0" : 'X\(//\)[^/]' \| \
1402 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001404echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)[^/].*/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\/\)$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\).*/{
1418 s//\1/
1419 q
1420 }
1421 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001422 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001423 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001424 srcdir=..
1425 fi
1426else
1427 ac_srcdir_defaulted=no
1428fi
Reid Spencera773bd52006-08-04 18:18:08 +00001429if test ! -r "$srcdir/$ac_unique_file"; then
1430 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1431 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001432 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001433fi
Reid Spencera773bd52006-08-04 18:18:08 +00001434ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435ac_abs_confdir=`(
1436 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001437 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001438 pwd)`
1439# When building in place, set srcdir=.
1440if test "$ac_abs_confdir" = "$ac_pwd"; then
1441 srcdir=.
1442fi
1443# Remove unnecessary trailing slashes from srcdir.
1444# Double slashes in file names in object file debugging info
1445# mess up M-x gdb in Emacs.
1446case $srcdir in
1447*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448esac
1449for ac_var in $ac_precious_vars; do
1450 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_${ac_var}_value=\$${ac_var}
1452 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454done
John Criswell7a73b802003-06-30 21:59:07 +00001455
1456#
1457# Report the --help message.
1458#
1459if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1462 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001463\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001464
1465Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468VAR=VALUE. See below for descriptions of some of the useful variables.
1469
1470Defaults for the options are specified in brackets.
1471
1472Configuration:
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1482
John Criswell7a73b802003-06-30 21:59:07 +00001483Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001485 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001487 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001488
1489By default, \`make install' will install all the files in
1490\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492for instance \`--prefix=\$HOME'.
1493
1494For better control, use the options below.
1495
1496Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001516_ACEOF
1517
1518 cat <<\_ACEOF
1519
1520System types:
1521 --build=BUILD configure for building on BUILD [guessed]
1522 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1523 --target=TARGET configure for building compilers for TARGET [HOST]
1524_ACEOF
1525fi
1526
1527if test -n "$ac_init_help"; then
1528 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001529 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001530 esac
1531 cat <<\_ACEOF
1532
1533Optional Features:
1534 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1535 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001536 --enable-optimized
David Greene2a5a12c2009-04-17 14:50:39 +00001537 --enable-profiling
Reid Spencer54d14482006-04-07 16:01:51 +00001538 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001539 --enable-expensive-checks
1540
Reid Spencer8b2e1412006-11-17 03:32:33 +00001541 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001542 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001543 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001544 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001545 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001546 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001547 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001548 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001549 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1550 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001551 --enable-bindings Build specific language bindings:
1552 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001553 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001554 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001555 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001556 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001557 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001558 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001559 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001560 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001561 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001562
1563Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001566 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1567 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001568 --with-llvmgcc Specify location of llvm-gcc driver (default
1569 searches PATH)
1570 --with-llvmgxx Specify location of llvm-g++ driver (default
1571 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001572 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001573 --with-ocaml-libdir Specify install location for ocaml bindings (default
1574 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001575 --with-binutils-include Specify path to binutils/include/ containing
1576 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001577 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001581 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001582 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001583
1584Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001585 CC C compiler command
1586 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001591 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001594 CXXCPP C++ preprocessor
1595 F77 Fortran 77 compiler command
1596 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
1601Report bugs to <llvmbugs@cs.uiuc.edu>.
1602_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001603ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001609 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001610 ac_builddir=.
1611
Reid Spencera773bd52006-08-04 18:18:08 +00001612case "$ac_dir" in
1613.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614*)
John Criswell7a73b802003-06-30 21:59:07 +00001615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 esac ;;
1622esac
1623ac_abs_top_builddir=$ac_pwd
1624ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625# for backward compatibility:
1626ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001627
1628case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001629 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001630 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001634 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1637 *) # Relative name.
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001641esac
Reid Spencera773bd52006-08-04 18:18:08 +00001642ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001643
Reid Spencera773bd52006-08-04 18:18:08 +00001644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001652 else
1653 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001654 fi || ac_status=$?
1655 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001656 done
1657fi
1658
Reid Spencera773bd52006-08-04 18:18:08 +00001659test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001660if $ac_init_version; then
1661 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001662llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001663generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001664
Reid Spencera773bd52006-08-04 18:18:08 +00001665Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16662002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001667This configure script is free software; the Free Software Foundation
1668gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001669
Tanya Lattnercf067672008-01-17 05:57:22 +00001670Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001671_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001672 exit
John Criswell7a73b802003-06-30 21:59:07 +00001673fi
Reid Spencera773bd52006-08-04 18:18:08 +00001674cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001675This file contains any messages produced by compilers while
1676running configure, to aid debugging if configure makes a mistake.
1677
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001678It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001679generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001680
1681 $ $0 $@
1682
1683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001684exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001685{
1686cat <<_ASUNAME
1687## --------- ##
1688## Platform. ##
1689## --------- ##
1690
1691hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699
1700/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001703/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001704/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707
1708_ASUNAME
1709
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 echo "PATH: $as_dir"
1716done
Reid Spencera773bd52006-08-04 18:18:08 +00001717IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001718
1719} >&5
1720
1721cat >&5 <<_ACEOF
1722
1723
1724## ----------- ##
1725## Core tests. ##
1726## ----------- ##
1727
1728_ACEOF
1729
1730
1731# Keep a trace of the command line.
1732# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001733# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001734# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001735# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001736ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001737ac_configure_args0=
1738ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001739ac_must_keep_next=false
1740for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001741do
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 for ac_arg
1743 do
1744 case $ac_arg in
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001749 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001750 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 esac
1752 case $ac_pass in
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754 2)
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001757 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001759 case $ac_arg in
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766 esac
1767 ;;
1768 -* ) ac_must_keep_next=true ;;
1769 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001771 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ;;
1773 esac
1774 done
John Criswell7a73b802003-06-30 21:59:07 +00001775done
John Criswell0c38eaf2003-09-10 15:17:25 +00001776$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777$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 +00001778
1779# When interrupted or exit'd, cleanup temporary files, and complete
1780# config.log. We remove comments because anyway the quotes in there
1781# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001782# WARNING: Use '\'' to represent an apostrophe within the trap.
1783# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001784trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1786 {
1787 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001788
John Criswell7a73b802003-06-30 21:59:07 +00001789 cat <<\_ASBOX
1790## ---------------- ##
1791## Cache variables. ##
1792## ---------------- ##
1793_ASBOX
1794 echo
1795 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001796(
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1799 case $ac_val in #(
1800 *${as_nl}*)
1801 case $ac_var in #(
1802 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804 esac
1805 case $ac_var in #(
1806 _ | IFS | as_nl) ;; #(
1807 *) $as_unset $ac_var ;;
1808 esac ;;
1809 esac
1810 done
John Criswell7a73b802003-06-30 21:59:07 +00001811 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001814 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001818 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001820 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001821 esac |
1822 sort
1823)
John Criswell7a73b802003-06-30 21:59:07 +00001824 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001825
1826 cat <<\_ASBOX
1827## ----------------- ##
1828## Output variables. ##
1829## ----------------- ##
1830_ASBOX
1831 echo
1832 for ac_var in $ac_subst_vars
1833 do
Reid Spencera773bd52006-08-04 18:18:08 +00001834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001839 done | sort
1840 echo
1841
1842 if test -n "$ac_subst_files"; then
1843 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001844## ------------------- ##
1845## File substitutions. ##
1846## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001847_ASBOX
1848 echo
1849 for ac_var in $ac_subst_files
1850 do
Reid Spencera773bd52006-08-04 18:18:08 +00001851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001856 done | sort
1857 echo
1858 fi
1859
John Criswell7a73b802003-06-30 21:59:07 +00001860 if test -s confdefs.h; then
1861 cat <<\_ASBOX
1862## ----------- ##
1863## confdefs.h. ##
1864## ----------- ##
1865_ASBOX
1866 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001867 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001868 echo
1869 fi
1870 test "$ac_signal" != 0 &&
1871 echo "$as_me: caught signal $ac_signal"
1872 echo "$as_me: exit $exit_status"
1873 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001876 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001877' 0
John Criswell7a73b802003-06-30 21:59:07 +00001878for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880done
1881ac_signal=0
1882
1883# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001884rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001885
1886# Predefined preprocessor variables.
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_NAME "$PACKAGE_NAME"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_VERSION "$PACKAGE_VERSION"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_STRING "$PACKAGE_STRING"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910_ACEOF
1911
1912
1913# Let the site file select an alternate cache file if it wants to.
1914# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001915if test -n "$CONFIG_SITE"; then
1916 set x "$CONFIG_SITE"
1917elif test "x$prefix" != xNONE; then
1918 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1919else
1920 set x "$ac_default_prefix/share/config.site" \
1921 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001922fi
Reid Spencera773bd52006-08-04 18:18:08 +00001923shift
1924for ac_site_file
1925do
John Criswell7a73b802003-06-30 21:59:07 +00001926 if test -r "$ac_site_file"; then
1927 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928echo "$as_me: loading site script $ac_site_file" >&6;}
1929 sed 's/^/| /' "$ac_site_file" >&5
1930 . "$ac_site_file"
1931 fi
1932done
1933
1934if test -r "$cache_file"; then
1935 # Some versions of bash will fail to source /dev/null (special
1936 # files actually), so we avoid doing that.
1937 if test -f "$cache_file"; then
1938 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939echo "$as_me: loading cache $cache_file" >&6;}
1940 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001943 esac
1944 fi
1945else
1946 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947echo "$as_me: creating cache $cache_file" >&6;}
1948 >$cache_file
1949fi
1950
1951# Check that the precious variables saved in the cache have kept the same
1952# value.
1953ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001954for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001959 case $ac_old_set,$ac_new_set in
1960 set,)
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,set)
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,);;
1969 *)
1970 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001971 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001972echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001973 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001974echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001975 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001976echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001977 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001978 fi;;
1979 esac
1980 # Pass precious variables to config.status.
1981 if test "$ac_new_set" = set; then
1982 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001983 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001984 *) ac_arg=$ac_var=$ac_new_val ;;
1985 esac
1986 case " $ac_configure_args " in
1987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1988 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989 esac
1990 fi
1991done
1992if $ac_cache_corrupted; then
1993 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997 { (exit 1); exit 1; }; }
1998fi
1999
Reid Spencera773bd52006-08-04 18:18:08 +00002000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
John Criswell7a73b802003-06-30 21:59:07 +00002024ac_ext=c
2025ac_cpp='$CPP $CPPFLAGS'
2026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029
2030
2031
Tanya Lattnercf067672008-01-17 05:57:22 +00002032LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033
2034
2035
2036
2037
2038
2039
John Criswell7a73b802003-06-30 21:59:07 +00002040ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002041for ac_dir in autoconf "$srcdir"/autoconf; do
2042 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/install-sh -c"
2045 break
Reid Spencera773bd52006-08-04 18:18:08 +00002046 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install.sh -c"
2049 break
Reid Spencera773bd52006-08-04 18:18:08 +00002050 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/shtool install -c"
2053 break
2054 fi
2055done
2056if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002057 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002059 { (exit 1); exit 1; }; }
2060fi
Reid Spencera773bd52006-08-04 18:18:08 +00002061
2062# These three variables are undocumented and unsupported,
2063# and are intended to be withdrawn in a future Autoconf release.
2064# They can cause serious problems if a builder's source tree is in a directory
2065# whose full name contains unusual characters.
2066ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2067ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2068ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2069
John Criswell7a73b802003-06-30 21:59:07 +00002070
John Criswell392aaa32003-07-22 19:18:09 +00002071
Reid Spencer2706f8c2004-09-19 23:53:36 +00002072if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002073 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002075echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077 fi
John Criswell93e1c722003-09-15 17:04:06 +00002078fi
2079
John Criswell33a911a2003-11-25 20:36:46 +00002080for i in `ls ${srcdir}/projects`
2081do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002082 if test -d ${srcdir}/projects/${i} ; then
2083 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002084 CVS) ;;
2085 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002087 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002088 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002089 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002091 # llvm-test is the old name of the test-suite, kept here for backwards
2092 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002093 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002094 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002095 test-suite) subdirs="$subdirs projects/test-suite"
2096 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002097 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002098;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002099 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002100 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002102 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002104 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002106 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002107 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002110 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002111 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002112 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2113echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002114 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002115 esac
John Criswell33a911a2003-11-25 20:36:46 +00002116 fi
2117done
John Criswell559a6c12003-09-30 16:31:48 +00002118
John Criswell7a73b802003-06-30 21:59:07 +00002119
2120# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002121$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2122 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2123echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002124 { (exit 1); exit 1; }; }
2125
Reid Spencera773bd52006-08-04 18:18:08 +00002126{ echo "$as_me:$LINENO: checking build system type" >&5
2127echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002128if test "${ac_cv_build+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
Reid Spencera773bd52006-08-04 18:18:08 +00002131 ac_build_alias=$build_alias
2132test "x$ac_build_alias" = x &&
2133 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2134test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002135 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2136echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2137 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002138ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2139 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2140echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002141 { (exit 1); exit 1; }; }
2142
2143fi
Reid Spencera773bd52006-08-04 18:18:08 +00002144{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2145echo "${ECHO_T}$ac_cv_build" >&6; }
2146case $ac_cv_build in
2147*-*-*) ;;
2148*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2149echo "$as_me: error: invalid value of canonical build" >&2;}
2150 { (exit 1); exit 1; }; };;
2151esac
John Criswell7a73b802003-06-30 21:59:07 +00002152build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002153ac_save_IFS=$IFS; IFS='-'
2154set x $ac_cv_build
2155shift
2156build_cpu=$1
2157build_vendor=$2
2158shift; shift
2159# Remember, the first character of IFS is used to create $*,
2160# except with old shells:
2161build_os=$*
2162IFS=$ac_save_IFS
2163case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002164
2165
Reid Spencera773bd52006-08-04 18:18:08 +00002166{ echo "$as_me:$LINENO: checking host system type" >&5
2167echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002168if test "${ac_cv_host+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
Reid Spencera773bd52006-08-04 18:18:08 +00002171 if test "x$host_alias" = x; then
2172 ac_cv_host=$ac_cv_build
2173else
2174 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2175 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2176echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002177 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002178fi
John Criswell7a73b802003-06-30 21:59:07 +00002179
2180fi
Reid Spencera773bd52006-08-04 18:18:08 +00002181{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2182echo "${ECHO_T}$ac_cv_host" >&6; }
2183case $ac_cv_host in
2184*-*-*) ;;
2185*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2186echo "$as_me: error: invalid value of canonical host" >&2;}
2187 { (exit 1); exit 1; }; };;
2188esac
John Criswell7a73b802003-06-30 21:59:07 +00002189host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002190ac_save_IFS=$IFS; IFS='-'
2191set x $ac_cv_host
2192shift
2193host_cpu=$1
2194host_vendor=$2
2195shift; shift
2196# Remember, the first character of IFS is used to create $*,
2197# except with old shells:
2198host_os=$*
2199IFS=$ac_save_IFS
2200case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002201
2202
Reid Spencera773bd52006-08-04 18:18:08 +00002203{ echo "$as_me:$LINENO: checking target system type" >&5
2204echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002205if test "${ac_cv_target+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207else
Reid Spencera773bd52006-08-04 18:18:08 +00002208 if test "x$target_alias" = x; then
2209 ac_cv_target=$ac_cv_host
2210else
2211 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2212 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2213echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002214 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002215fi
John Criswell7a73b802003-06-30 21:59:07 +00002216
2217fi
Reid Spencera773bd52006-08-04 18:18:08 +00002218{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2219echo "${ECHO_T}$ac_cv_target" >&6; }
2220case $ac_cv_target in
2221*-*-*) ;;
2222*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2223echo "$as_me: error: invalid value of canonical target" >&2;}
2224 { (exit 1); exit 1; }; };;
2225esac
John Criswell7a73b802003-06-30 21:59:07 +00002226target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002227ac_save_IFS=$IFS; IFS='-'
2228set x $ac_cv_target
2229shift
2230target_cpu=$1
2231target_vendor=$2
2232shift; shift
2233# Remember, the first character of IFS is used to create $*,
2234# except with old shells:
2235target_os=$*
2236IFS=$ac_save_IFS
2237case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002238
2239
2240# The aliases save the names the user supplied, while $host etc.
2241# will get canonicalized.
2242test -n "$target_alias" &&
2243 test "$program_prefix$program_suffix$program_transform_name" = \
2244 NONENONEs,x,x, &&
2245 program_prefix=${target_alias}-
2246
Reid Spencera773bd52006-08-04 18:18:08 +00002247{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2248echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002249if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002252 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002256 llvm_cv_os_type="AIX"
2257 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002258 *-*-irix*)
2259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2261 llvm_cv_os_type="IRIX"
2262 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002263 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 llvm_cv_os_type="Cygwin"
2267 llvm_cv_platform_type="Unix" ;;
2268 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002269 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002270 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 llvm_cv_os_type="Darwin"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002274 llvm_cv_link_all_option="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 llvm_cv_os_type="FreeBSD"
2277 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002278 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002281 llvm_cv_os_type="OpenBSD"
2282 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002283 *-*-netbsd*)
2284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2286 llvm_cv_os_type="NetBSD"
2287 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002288 *-*-dragonfly*)
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="DragonFly"
2292 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002293 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002296 llvm_cv_os_type="HP-UX"
2297 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002301 llvm_cv_os_type="Interix"
2302 llvm_cv_platform_type="Unix" ;;
2303 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306 llvm_cv_os_type="Linux"
2307 llvm_cv_platform_type="Unix" ;;
2308 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002309 llvm_cv_link_all_option="-Wl,-z,allextract"
2310 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002311 llvm_cv_os_type="SunOS"
2312 llvm_cv_platform_type="Unix" ;;
2313 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002314 llvm_cv_link_all_option="-Wl,--whole-archive"
2315 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002316 llvm_cv_os_type="Win32"
2317 llvm_cv_platform_type="Win32" ;;
2318 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002321 llvm_cv_os_type="MingW"
2322 llvm_cv_platform_type="Win32" ;;
2323 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002324 llvm_cv_link_all_option=""
2325 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326 llvm_cv_os_type="Unknown"
2327 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002328esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002329fi
Reid Spencera773bd52006-08-04 18:18:08 +00002330{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2331echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002332
Reid Spencer7b3e8512004-12-24 06:29:05 +00002333if test "$llvm_cv_os_type" = "Unknown" ; then
2334 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2335echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002336 { (exit 1); exit 1; }; }
2337fi
2338
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002340
2341
Reid Spencera773bd52006-08-04 18:18:08 +00002342LINKALL=$llvm_cv_link_all_option
2343
2344NOLINKALL=$llvm_cv_no_link_all_option
2345
2346
Reid Spencer7b3e8512004-12-24 06:29:05 +00002347case $llvm_cv_platform_type in
2348 Unix)
2349
2350cat >>confdefs.h <<\_ACEOF
2351#define LLVM_ON_UNIX 1
2352_ACEOF
2353
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002354 LLVM_ON_UNIX=1
2355
2356 LLVM_ON_WIN32=0
2357
Reid Spencer7b3e8512004-12-24 06:29:05 +00002358 ;;
2359 Win32)
2360
2361cat >>confdefs.h <<\_ACEOF
2362#define LLVM_ON_WIN32 1
2363_ACEOF
2364
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002365 LLVM_ON_UNIX=0
2366
2367 LLVM_ON_WIN32=1
2368
Reid Spencer7b3e8512004-12-24 06:29:05 +00002369 ;;
2370esac
2371
Reid Spencera773bd52006-08-04 18:18:08 +00002372{ echo "$as_me:$LINENO: checking target architecture" >&5
2373echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002374if test "${llvm_cv_target_arch+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376else
2377 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002378 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002379 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002380 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2381 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002382 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002383 ia64-*) llvm_cv_target_arch="IA64" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002384 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002385 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002386 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002387 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002388 msp430-*) llvm_cv_target_arch="MSP430" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002389 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002390esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391fi
Reid Spencera773bd52006-08-04 18:18:08 +00002392{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2393echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002394
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395if test "$llvm_cv_target_arch" = "Unknown" ; then
2396 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2397echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2398fi
John Criswell76595452003-07-01 22:07:39 +00002399
Bill Wendlinga0833352009-03-12 04:10:09 +00002400ARCH=$llvm_cv_target_arch
2401
2402
2403ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404ac_cpp='$CPP $CPPFLAGS'
2405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2407ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002408if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2410set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413if test "${ac_cv_prog_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2415else
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002425 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 +00002426 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430done
2431done
Reid Spencera773bd52006-08-04 18:18:08 +00002432IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433
2434fi
2435fi
2436CC=$ac_cv_prog_CC
2437if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002438 { echo "$as_me:$LINENO: result: $CC" >&5
2439echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440else
Reid Spencera773bd52006-08-04 18:18:08 +00002441 { echo "$as_me:$LINENO: result: no" >&5
2442echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002443fi
2444
Reid Spencera773bd52006-08-04 18:18:08 +00002445
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446fi
2447if test -z "$ac_cv_prog_CC"; then
2448 ac_ct_CC=$CC
2449 # Extract the first word of "gcc", so it can be a program name with args.
2450set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002451{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455else
2456 if test -n "$ac_ct_CC"; then
2457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2458else
2459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460for as_dir in $PATH
2461do
2462 IFS=$as_save_IFS
2463 test -z "$as_dir" && as_dir=.
2464 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002465 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 +00002466 ac_cv_prog_ac_ct_CC="gcc"
2467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2468 break 2
2469 fi
2470done
2471done
Reid Spencera773bd52006-08-04 18:18:08 +00002472IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473
2474fi
2475fi
2476ac_ct_CC=$ac_cv_prog_ac_ct_CC
2477if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002478 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2479echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002480else
Reid Spencera773bd52006-08-04 18:18:08 +00002481 { echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483fi
2484
Reid Spencera773bd52006-08-04 18:18:08 +00002485 if test "x$ac_ct_CC" = x; then
2486 CC=""
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489yes:)
2490{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491whose name does not start with the host triplet. If you think this
2492configuration is useful to you, please write to autoconf@gnu.org." >&5
2493echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494whose name does not start with the host triplet. If you think this
2495configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496ac_tool_warned=yes ;;
2497esac
2498 CC=$ac_ct_CC
2499 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500else
2501 CC="$ac_cv_prog_CC"
2502fi
2503
2504if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002505 if test -n "$ac_tool_prefix"; then
2506 # 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 +00002507set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002510if test "${ac_cv_prog_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515else
2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517for as_dir in $PATH
2518do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002522 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 +00002523 ac_cv_prog_CC="${ac_tool_prefix}cc"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 break 2
2526 fi
2527done
2528done
Reid Spencera773bd52006-08-04 18:18:08 +00002529IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002530
2531fi
2532fi
2533CC=$ac_cv_prog_CC
2534if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002535 { echo "$as_me:$LINENO: result: $CC" >&5
2536echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002537else
Reid Spencera773bd52006-08-04 18:18:08 +00002538 { echo "$as_me:$LINENO: result: no" >&5
2539echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540fi
2541
Reid Spencera773bd52006-08-04 18:18:08 +00002542
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002544fi
2545if test -z "$CC"; then
2546 # Extract the first word of "cc", so it can be a program name with args.
2547set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002548{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550if test "${ac_cv_prog_CC+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2552else
2553 if test -n "$CC"; then
2554 ac_cv_prog_CC="$CC" # Let the user override the test.
2555else
2556 ac_prog_rejected=no
2557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558for as_dir in $PATH
2559do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002563 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 +00002564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2565 ac_prog_rejected=yes
2566 continue
2567 fi
2568 ac_cv_prog_CC="cc"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572done
2573done
Reid Spencera773bd52006-08-04 18:18:08 +00002574IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002575
2576if test $ac_prog_rejected = yes; then
2577 # We found a bogon in the path, so make sure we never use it.
2578 set dummy $ac_cv_prog_CC
2579 shift
2580 if test $# != 0; then
2581 # We chose a different compiler from the bogus one.
2582 # However, it has the same basename, so the bogon will be chosen
2583 # first if we set CC to just the basename; use the full file name.
2584 shift
2585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2586 fi
2587fi
2588fi
2589fi
2590CC=$ac_cv_prog_CC
2591if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002592 { echo "$as_me:$LINENO: result: $CC" >&5
2593echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002594else
Reid Spencera773bd52006-08-04 18:18:08 +00002595 { echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597fi
2598
Reid Spencera773bd52006-08-04 18:18:08 +00002599
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600fi
2601if test -z "$CC"; then
2602 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002603 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002604 do
2605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002607{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002609if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002612 if test -n "$CC"; then
2613 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002621 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 +00002622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2625 fi
2626done
2627done
Reid Spencera773bd52006-08-04 18:18:08 +00002628IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002629
2630fi
2631fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002632CC=$ac_cv_prog_CC
2633if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002634 { echo "$as_me:$LINENO: result: $CC" >&5
2635echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002636else
Reid Spencera773bd52006-08-04 18:18:08 +00002637 { echo "$as_me:$LINENO: result: no" >&5
2638echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002639fi
2640
Reid Spencera773bd52006-08-04 18:18:08 +00002641
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002642 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002643 done
2644fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002645if test -z "$CC"; then
2646 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002647 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002648do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002654 echo $ECHO_N "(cached) $ECHO_C" >&6
2655else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002656 if test -n "$ac_ct_CC"; then
2657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002665 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 +00002666 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670done
2671done
Reid Spencera773bd52006-08-04 18:18:08 +00002672IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002673
2674fi
2675fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002676ac_ct_CC=$ac_cv_prog_ac_ct_CC
2677if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002678 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2679echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002680else
Reid Spencera773bd52006-08-04 18:18:08 +00002681 { echo "$as_me:$LINENO: result: no" >&5
2682echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002683fi
2684
Reid Spencera773bd52006-08-04 18:18:08 +00002685
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002686 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002687done
John Criswell7a73b802003-06-30 21:59:07 +00002688
Reid Spencera773bd52006-08-04 18:18:08 +00002689 if test "x$ac_ct_CC" = x; then
2690 CC=""
2691 else
2692 case $cross_compiling:$ac_tool_warned in
2693yes:)
2694{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2695whose name does not start with the host triplet. If you think this
2696configuration is useful to you, please write to autoconf@gnu.org." >&5
2697echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2698whose name does not start with the host triplet. If you think this
2699configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2700ac_tool_warned=yes ;;
2701esac
2702 CC=$ac_ct_CC
2703 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002704fi
2705
John Criswell7a73b802003-06-30 21:59:07 +00002706fi
2707
2708
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002709test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2710See \`config.log' for more details." >&5
2711echo "$as_me: error: no acceptable C compiler found in \$PATH
2712See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2714
John Criswell7a73b802003-06-30 21:59:07 +00002715# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002716echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002717ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002718{ (ac_try="$ac_compiler --version >&5"
2719case "(($ac_try" in
2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721 *) ac_try_echo=$ac_try;;
2722esac
2723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002728{ (ac_try="$ac_compiler -v >&5"
2729case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2732esac
2733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002738{ (ac_try="$ac_compiler -V >&5"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002745 ac_status=$?
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }
2748
2749cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002750/* confdefs.h. */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002755
John Criswell7a73b802003-06-30 21:59:07 +00002756int
2757main ()
2758{
2759
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002765ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002766# Try to create an executable without -o first, disregard a.out.
2767# It will help us diagnose broken compilers, and finding out an intuition
2768# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002769{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2770echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002771ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002772#
2773# List of possible output files, starting from the most likely.
2774# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2775# only as a last resort. b.out is created by i960 compilers.
2776ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2777#
2778# The IRIX 6 linker writes into existing files which may not be
2779# executable, retaining their permissions. Remove them first so a
2780# subsequent execution test works.
2781ac_rmfiles=
2782for ac_file in $ac_files
2783do
2784 case $ac_file in
2785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2786 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2787 esac
2788done
2789rm -f $ac_rmfiles
2790
2791if { (ac_try="$ac_link_default"
2792case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795esac
2796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2797 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002801 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2802# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2803# in a Makefile. We should not override ac_cv_exeext if it was cached,
2804# so that the user can short-circuit this test for compilers unknown to
2805# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002806for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002807do
2808 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002809 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002811 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002812 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002813 # We found the default executable, but exeext='' is most
2814 # certainly right.
2815 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002816 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002817 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2818 then :; else
2819 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2820 fi
2821 # We set ac_cv_exeext here because the later test for it is not
2822 # safe: cross compilers may not add the suffix if given an `-o'
2823 # argument, so we may need to know it at that point already.
2824 # Even if this section looks crufty: it has the advantage of
2825 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002826 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002827 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002828 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002829 esac
2830done
Reid Spencera773bd52006-08-04 18:18:08 +00002831test "$ac_cv_exeext" = no && ac_cv_exeext=
2832
John Criswell7a73b802003-06-30 21:59:07 +00002833else
2834 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002835sed 's/^/| /' conftest.$ac_ext >&5
2836
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002837{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002838See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002839echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002840See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002841 { (exit 77); exit 77; }; }
2842fi
2843
2844ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002845{ echo "$as_me:$LINENO: result: $ac_file" >&5
2846echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002847
Reid Spencera773bd52006-08-04 18:18:08 +00002848# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002849# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002850{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2851echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002852# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2853# If not cross compiling, check that we can run a simple program.
2854if test "$cross_compiling" != yes; then
2855 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002856 { (case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859esac
2860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2861 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 cross_compiling=no
2866 else
2867 if test "$cross_compiling" = maybe; then
2868 cross_compiling=yes
2869 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002870 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002871If you meant to cross compile, use \`--host'.
2872See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002873echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002874If you meant to cross compile, use \`--host'.
2875See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002876 { (exit 1); exit 1; }; }
2877 fi
2878 fi
2879fi
Reid Spencera773bd52006-08-04 18:18:08 +00002880{ echo "$as_me:$LINENO: result: yes" >&5
2881echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002882
John Criswell0c38eaf2003-09-10 15:17:25 +00002883rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002884ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002885# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002886# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002887{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2888echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2889{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2890echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002891
Reid Spencera773bd52006-08-04 18:18:08 +00002892{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2893echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2894if { (ac_try="$ac_link"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
2899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; then
2904 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2905# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2906# work properly (i.e., refer to `conftest.exe'), while it won't with
2907# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002908for ac_file in conftest.exe conftest conftest.*; do
2909 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002910 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002913 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002914 * ) break;;
2915 esac
2916done
2917else
John Criswell0c38eaf2003-09-10 15:17:25 +00002918 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2919See \`config.log' for more details." >&5
2920echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2921See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002922 { (exit 1); exit 1; }; }
2923fi
2924
2925rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002926{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2927echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002928
2929rm -f conftest.$ac_ext
2930EXEEXT=$ac_cv_exeext
2931ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002932{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2933echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002934if test "${ac_cv_objext+set}" = set; then
2935 echo $ECHO_N "(cached) $ECHO_C" >&6
2936else
2937 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002938/* confdefs.h. */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002943
John Criswell7a73b802003-06-30 21:59:07 +00002944int
2945main ()
2946{
2947
2948 ;
2949 return 0;
2950}
2951_ACEOF
2952rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002953if { (ac_try="$ac_compile"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002960 ac_status=$?
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002963 for ac_file in conftest.o conftest.obj conftest.*; do
2964 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002965 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002967 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2968 break;;
2969 esac
2970done
2971else
2972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002973sed 's/^/| /' conftest.$ac_ext >&5
2974
2975{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2976See \`config.log' for more details." >&5
2977echo "$as_me: error: cannot compute suffix of object files: cannot compile
2978See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002979 { (exit 1); exit 1; }; }
2980fi
2981
2982rm -f conftest.$ac_cv_objext conftest.$ac_ext
2983fi
Reid Spencera773bd52006-08-04 18:18:08 +00002984{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2985echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002986OBJEXT=$ac_cv_objext
2987ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002988{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2989echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002990if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002991 echo $ECHO_N "(cached) $ECHO_C" >&6
2992else
2993 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002994/* confdefs.h. */
2995_ACEOF
2996cat confdefs.h >>conftest.$ac_ext
2997cat >>conftest.$ac_ext <<_ACEOF
2998/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002999
John Criswell7a73b802003-06-30 21:59:07 +00003000int
3001main ()
3002{
3003#ifndef __GNUC__
3004 choke me
3005#endif
3006
3007 ;
3008 return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003012if { (ac_try="$ac_compile"
3013case "(($ac_try" in
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3016esac
3017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003019 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003020 grep -v '^ *+' conftest.er1 >conftest.err
3021 rm -f conftest.er1
3022 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003024 (exit $ac_status); } &&
3025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3026 { (case "(($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_try") 2>&5
3032 ac_status=$?
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; } &&
3035 { ac_try='test -s conftest.$ac_objext'
3036 { (case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_try") 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003045 ac_compiler_gnu=yes
3046else
3047 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003048sed 's/^/| /' conftest.$ac_ext >&5
3049
Reid Spencera773bd52006-08-04 18:18:08 +00003050 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003051fi
Reid Spencera773bd52006-08-04 18:18:08 +00003052
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003054ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003055
3056fi
Reid Spencera773bd52006-08-04 18:18:08 +00003057{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3058echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003059GCC=`test $ac_compiler_gnu = yes && echo yes`
3060ac_test_CFLAGS=${CFLAGS+set}
3061ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003062{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3063echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003064if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066else
Reid Spencera773bd52006-08-04 18:18:08 +00003067 ac_save_c_werror_flag=$ac_c_werror_flag
3068 ac_c_werror_flag=yes
3069 ac_cv_prog_cc_g=no
3070 CFLAGS="-g"
3071 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003077
John Criswell7a73b802003-06-30 21:59:07 +00003078int
3079main ()
3080{
3081
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003087if { (ac_try="$ac_compile"
3088case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003094 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3101 { (case "(($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_try") 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; } &&
3110 { ac_try='test -s conftest.$ac_objext'
3111 { (case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114esac
3115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_try") 2>&5
3117 ac_status=$?
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003120 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003121else
3122 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003123sed 's/^/| /' conftest.$ac_ext >&5
3124
Reid Spencera773bd52006-08-04 18:18:08 +00003125 CFLAGS=""
3126 cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h. */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h. */
3132
3133int
3134main ()
3135{
3136
3137 ;
3138 return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
3142if { (ac_try="$ac_compile"
3143case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146esac
3147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_compile") 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3156 { (case "(($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_try") 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; } &&
3165 { ac_try='test -s conftest.$ac_objext'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003175 :
3176else
3177 echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180 ac_c_werror_flag=$ac_save_c_werror_flag
3181 CFLAGS="-g"
3182 cat >conftest.$ac_ext <<_ACEOF
3183/* confdefs.h. */
3184_ACEOF
3185cat confdefs.h >>conftest.$ac_ext
3186cat >>conftest.$ac_ext <<_ACEOF
3187/* end confdefs.h. */
3188
3189int
3190main ()
3191{
3192
3193 ;
3194 return 0;
3195}
3196_ACEOF
3197rm -f conftest.$ac_objext
3198if { (ac_try="$ac_compile"
3199case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
3203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_compile") 2>conftest.er1
3205 ac_status=$?
3206 grep -v '^ *+' conftest.er1 >conftest.err
3207 rm -f conftest.er1
3208 cat conftest.err >&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003210 (exit $ac_status); } &&
3211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3212 { (case "(($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_try") 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }; } &&
3221 { ac_try='test -s conftest.$ac_objext'
3222 { (case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225esac
3226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_try") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003231 ac_cv_prog_cc_g=yes
3232else
3233 echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236
John Criswell7a73b802003-06-30 21:59:07 +00003237fi
Reid Spencera773bd52006-08-04 18:18:08 +00003238
3239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003240fi
Reid Spencera773bd52006-08-04 18:18:08 +00003241
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243fi
3244
3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3247fi
3248{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003250if test "$ac_test_CFLAGS" = set; then
3251 CFLAGS=$ac_save_CFLAGS
3252elif test $ac_cv_prog_cc_g = yes; then
3253 if test "$GCC" = yes; then
3254 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003255 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003257 fi
3258else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259 if test "$GCC" = yes; then
3260 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003261 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003263 fi
3264fi
Reid Spencera773bd52006-08-04 18:18:08 +00003265{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3267if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268 echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
Reid Spencera773bd52006-08-04 18:18:08 +00003270 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003271ac_save_CC=$CC
3272cat >conftest.$ac_ext <<_ACEOF
3273/* confdefs.h. */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h. */
3278#include <stdarg.h>
3279#include <stdio.h>
3280#include <sys/types.h>
3281#include <sys/stat.h>
3282/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283struct buf { int x; };
3284FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285static char *e (p, i)
3286 char **p;
3287 int i;
3288{
3289 return p[i];
3290}
3291static char *f (char * (*g) (char **, int), char **p, ...)
3292{
3293 char *s;
3294 va_list v;
3295 va_start (v,p);
3296 s = g (p, va_arg (v,int));
3297 va_end (v);
3298 return s;
3299}
3300
3301/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003304 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003307 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3309
Reid Spencera773bd52006-08-04 18:18:08 +00003310/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3312#define FOO(x) 'x'
3313int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3314
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315int test (int i, double x);
3316struct s1 {int (*f) (int a);};
3317struct s2 {int (*f) (double a);};
3318int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3319int argc;
3320char **argv;
3321int
3322main ()
3323{
3324return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3325 ;
3326 return 0;
3327}
3328_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003329for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331do
3332 CC="$ac_save_CC $ac_arg"
3333 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003334if { (ac_try="$ac_compile"
3335case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338esac
3339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3340 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341 ac_status=$?
3342 grep -v '^ *+' conftest.er1 >conftest.err
3343 rm -f conftest.er1
3344 cat conftest.err >&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003346 (exit $ac_status); } &&
3347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3348 { (case "(($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_try") 2>&5
3354 ac_status=$?
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361esac
3362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363 (eval "$ac_try") 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003367 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368else
3369 echo "$as_me: failed program was:" >&5
3370sed 's/^/| /' conftest.$ac_ext >&5
3371
Reid Spencera773bd52006-08-04 18:18:08 +00003372
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003373fi
Reid Spencera773bd52006-08-04 18:18:08 +00003374
3375rm -f core conftest.err conftest.$ac_objext
3376 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377done
Reid Spencera773bd52006-08-04 18:18:08 +00003378rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379CC=$ac_save_CC
3380
3381fi
Reid Spencera773bd52006-08-04 18:18:08 +00003382# AC_CACHE_VAL
3383case "x$ac_cv_prog_cc_c89" in
3384 x)
3385 { echo "$as_me:$LINENO: result: none needed" >&5
3386echo "${ECHO_T}none needed" >&6; } ;;
3387 xno)
3388 { echo "$as_me:$LINENO: result: unsupported" >&5
3389echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003391 CC="$CC $ac_cv_prog_cc_c89"
3392 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3393echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394esac
3395
John Criswell0c38eaf2003-09-10 15:17:25 +00003396
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003397ac_ext=c
3398ac_cpp='$CPP $CPPFLAGS'
3399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401ac_compiler_gnu=$ac_cv_c_compiler_gnu
3402
3403
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404ac_ext=c
3405ac_cpp='$CPP $CPPFLAGS'
3406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003409{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3410echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003411# On Suns, sometimes $CPP names a directory.
3412if test -n "$CPP" && test -d "$CPP"; then
3413 CPP=
3414fi
3415if test -z "$CPP"; then
3416 if test "${ac_cv_prog_CPP+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418else
3419 # Double quotes because CPP needs to be expanded
3420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3421 do
3422 ac_preproc_ok=false
3423for ac_c_preproc_warn_flag in '' yes
3424do
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
3437#ifdef __STDC__
3438# include <limits.h>
3439#else
3440# include <assert.h>
3441#endif
3442 Syntax error
3443_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003444if { (ac_try="$ac_cpp conftest.$ac_ext"
3445case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448esac
3449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003456 (exit $ac_status); } >/dev/null; then
3457 if test -s conftest.err; then
3458 ac_cpp_err=$ac_c_preproc_warn_flag
3459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3460 else
3461 ac_cpp_err=
3462 fi
3463else
3464 ac_cpp_err=yes
3465fi
3466if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467 :
3468else
3469 echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472 # Broken: fails on valid input.
3473continue
3474fi
Reid Spencera773bd52006-08-04 18:18:08 +00003475
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003476rm -f conftest.err conftest.$ac_ext
3477
Reid Spencera773bd52006-08-04 18:18:08 +00003478 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003479 # can be detected and how.
3480 cat >conftest.$ac_ext <<_ACEOF
3481/* confdefs.h. */
3482_ACEOF
3483cat confdefs.h >>conftest.$ac_ext
3484cat >>conftest.$ac_ext <<_ACEOF
3485/* end confdefs.h. */
3486#include <ac_nonexistent.h>
3487_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003488if { (ac_try="$ac_cpp conftest.$ac_ext"
3489case "(($ac_try" in
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3492esac
3493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003500 (exit $ac_status); } >/dev/null; then
3501 if test -s conftest.err; then
3502 ac_cpp_err=$ac_c_preproc_warn_flag
3503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3504 else
3505 ac_cpp_err=
3506 fi
3507else
3508 ac_cpp_err=yes
3509fi
3510if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003511 # Broken: success on invalid input.
3512continue
3513else
3514 echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517 # Passes both tests.
3518ac_preproc_ok=:
3519break
3520fi
Reid Spencera773bd52006-08-04 18:18:08 +00003521
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003522rm -f conftest.err conftest.$ac_ext
3523
3524done
3525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3526rm -f conftest.err conftest.$ac_ext
3527if $ac_preproc_ok; then
3528 break
3529fi
3530
3531 done
3532 ac_cv_prog_CPP=$CPP
3533
3534fi
3535 CPP=$ac_cv_prog_CPP
3536else
3537 ac_cv_prog_CPP=$CPP
3538fi
Reid Spencera773bd52006-08-04 18:18:08 +00003539{ echo "$as_me:$LINENO: result: $CPP" >&5
3540echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003541ac_preproc_ok=false
3542for ac_c_preproc_warn_flag in '' yes
3543do
3544 # Use a header file that comes with gcc, so configuring glibc
3545 # with a fresh cross-compiler works.
3546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3547 # <limits.h> exists even on freestanding compilers.
3548 # On the NeXT, cc -E runs the code through the compiler's parser,
3549 # not just through cpp. "Syntax error" is here to catch this case.
3550 cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556#ifdef __STDC__
3557# include <limits.h>
3558#else
3559# include <assert.h>
3560#endif
3561 Syntax error
3562_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003563if { (ac_try="$ac_cpp conftest.$ac_ext"
3564case "(($ac_try" in
3565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566 *) ac_try_echo=$ac_try;;
3567esac
3568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003570 ac_status=$?
3571 grep -v '^ *+' conftest.er1 >conftest.err
3572 rm -f conftest.er1
3573 cat conftest.err >&5
3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003575 (exit $ac_status); } >/dev/null; then
3576 if test -s conftest.err; then
3577 ac_cpp_err=$ac_c_preproc_warn_flag
3578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3579 else
3580 ac_cpp_err=
3581 fi
3582else
3583 ac_cpp_err=yes
3584fi
3585if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586 :
3587else
3588 echo "$as_me: failed program was:" >&5
3589sed 's/^/| /' conftest.$ac_ext >&5
3590
3591 # Broken: fails on valid input.
3592continue
3593fi
Reid Spencera773bd52006-08-04 18:18:08 +00003594
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003595rm -f conftest.err conftest.$ac_ext
3596
Reid Spencera773bd52006-08-04 18:18:08 +00003597 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003598 # can be detected and how.
3599 cat >conftest.$ac_ext <<_ACEOF
3600/* confdefs.h. */
3601_ACEOF
3602cat confdefs.h >>conftest.$ac_ext
3603cat >>conftest.$ac_ext <<_ACEOF
3604/* end confdefs.h. */
3605#include <ac_nonexistent.h>
3606_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003607if { (ac_try="$ac_cpp conftest.$ac_ext"
3608case "(($ac_try" in
3609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3611esac
3612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003614 ac_status=$?
3615 grep -v '^ *+' conftest.er1 >conftest.err
3616 rm -f conftest.er1
3617 cat conftest.err >&5
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003619 (exit $ac_status); } >/dev/null; then
3620 if test -s conftest.err; then
3621 ac_cpp_err=$ac_c_preproc_warn_flag
3622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3623 else
3624 ac_cpp_err=
3625 fi
3626else
3627 ac_cpp_err=yes
3628fi
3629if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003630 # Broken: success on invalid input.
3631continue
3632else
3633 echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 # Passes both tests.
3637ac_preproc_ok=:
3638break
3639fi
Reid Spencera773bd52006-08-04 18:18:08 +00003640
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003641rm -f conftest.err conftest.$ac_ext
3642
3643done
3644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3645rm -f conftest.err conftest.$ac_ext
3646if $ac_preproc_ok; then
3647 :
3648else
3649 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3650See \`config.log' for more details." >&5
3651echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3652See \`config.log' for more details." >&2;}
3653 { (exit 1); exit 1; }; }
3654fi
3655
John Criswell7a73b802003-06-30 21:59:07 +00003656ac_ext=c
3657ac_cpp='$CPP $CPPFLAGS'
3658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660ac_compiler_gnu=$ac_cv_c_compiler_gnu
3661
John Criswell7a73b802003-06-30 21:59:07 +00003662
Reid Spencera773bd52006-08-04 18:18:08 +00003663{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3664echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003665if test "${ac_cv_path_GREP+set}" = set; then
3666 echo $ECHO_N "(cached) $ECHO_C" >&6
3667else
Reid Spencera773bd52006-08-04 18:18:08 +00003668 # Extract the first word of "grep ggrep" to use in msg output
3669if test -z "$GREP"; then
3670set dummy grep ggrep; ac_prog_name=$2
3671if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
Reid Spencera773bd52006-08-04 18:18:08 +00003674 ac_path_GREP_found=false
3675# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003677for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003678do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003681 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003682 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003683 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003684 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003685 # Check for GNU ac_path_GREP and select it if it is found.
3686 # Check for GNU $ac_path_GREP
3687case `"$ac_path_GREP" --version 2>&1` in
3688*GNU*)
3689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3690*)
3691 ac_count=0
3692 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3693 while :
3694 do
3695 cat "conftest.in" "conftest.in" >"conftest.tmp"
3696 mv "conftest.tmp" "conftest.in"
3697 cp "conftest.in" "conftest.nl"
3698 echo 'GREP' >> "conftest.nl"
3699 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3701 ac_count=`expr $ac_count + 1`
3702 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3703 # Best one so far, save it but keep looking for a better one
3704 ac_cv_path_GREP="$ac_path_GREP"
3705 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003706 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003707 # 10*(2^10) chars as input seems more than enough
3708 test $ac_count -gt 10 && break
3709 done
3710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3711esac
3712
3713
3714 $ac_path_GREP_found && break 3
3715 done
3716done
3717
3718done
3719IFS=$as_save_IFS
3720
3721
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003722fi
Reid Spencera773bd52006-08-04 18:18:08 +00003723
3724GREP="$ac_cv_path_GREP"
3725if test -z "$GREP"; then
3726 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3727echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3728 { (exit 1); exit 1; }; }
3729fi
3730
3731else
3732 ac_cv_path_GREP=$GREP
3733fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003734
John Criswell7a73b802003-06-30 21:59:07 +00003735
Reid Spencera773bd52006-08-04 18:18:08 +00003736fi
3737{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3738echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3739 GREP="$ac_cv_path_GREP"
3740
3741
3742{ echo "$as_me:$LINENO: checking for egrep" >&5
3743echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3744if test "${ac_cv_path_EGREP+set}" = set; then
3745 echo $ECHO_N "(cached) $ECHO_C" >&6
3746else
3747 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3748 then ac_cv_path_EGREP="$GREP -E"
3749 else
3750 # Extract the first word of "egrep" to use in msg output
3751if test -z "$EGREP"; then
3752set dummy egrep; ac_prog_name=$2
3753if test "${ac_cv_path_EGREP+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755else
3756 ac_path_EGREP_found=false
3757# Loop through the user's path and test for each of PROGNAME-LIST
3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3760do
3761 IFS=$as_save_IFS
3762 test -z "$as_dir" && as_dir=.
3763 for ac_prog in egrep; do
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003766 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003767 # Check for GNU ac_path_EGREP and select it if it is found.
3768 # Check for GNU $ac_path_EGREP
3769case `"$ac_path_EGREP" --version 2>&1` in
3770*GNU*)
3771 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3772*)
3773 ac_count=0
3774 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3775 while :
3776 do
3777 cat "conftest.in" "conftest.in" >"conftest.tmp"
3778 mv "conftest.tmp" "conftest.in"
3779 cp "conftest.in" "conftest.nl"
3780 echo 'EGREP' >> "conftest.nl"
3781 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783 ac_count=`expr $ac_count + 1`
3784 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3785 # Best one so far, save it but keep looking for a better one
3786 ac_cv_path_EGREP="$ac_path_EGREP"
3787 ac_path_EGREP_max=$ac_count
3788 fi
3789 # 10*(2^10) chars as input seems more than enough
3790 test $ac_count -gt 10 && break
3791 done
3792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3793esac
3794
3795
3796 $ac_path_EGREP_found && break 3
3797 done
3798done
3799
3800done
3801IFS=$as_save_IFS
3802
3803
3804fi
3805
3806EGREP="$ac_cv_path_EGREP"
3807if test -z "$EGREP"; then
3808 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3809echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3810 { (exit 1); exit 1; }; }
3811fi
3812
3813else
3814 ac_cv_path_EGREP=$EGREP
3815fi
3816
3817
3818 fi
3819fi
3820{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3821echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3822 EGREP="$ac_cv_path_EGREP"
3823
3824
3825{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3826echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003827if test "${ac_cv_header_stdc+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003831/* confdefs.h. */
3832_ACEOF
3833cat confdefs.h >>conftest.$ac_ext
3834cat >>conftest.$ac_ext <<_ACEOF
3835/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003836#include <stdlib.h>
3837#include <stdarg.h>
3838#include <string.h>
3839#include <float.h>
3840
John Criswell0c38eaf2003-09-10 15:17:25 +00003841int
3842main ()
3843{
3844
3845 ;
3846 return 0;
3847}
John Criswell7a73b802003-06-30 21:59:07 +00003848_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003849rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003850if { (ac_try="$ac_compile"
3851case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854esac
3855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003857 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003858 grep -v '^ *+' conftest.er1 >conftest.err
3859 rm -f conftest.er1
3860 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003862 (exit $ac_status); } &&
3863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3864 { (case "(($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_try") 2>&5
3870 ac_status=$?
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); }; } &&
3873 { ac_try='test -s conftest.$ac_objext'
3874 { (case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877esac
3878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879 (eval "$ac_try") 2>&5
3880 ac_status=$?
3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003883 ac_cv_header_stdc=yes
3884else
3885 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003886sed 's/^/| /' conftest.$ac_ext >&5
3887
Reid Spencera773bd52006-08-04 18:18:08 +00003888 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003889fi
Reid Spencera773bd52006-08-04 18:18:08 +00003890
3891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003892
3893if test $ac_cv_header_stdc = yes; then
3894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3895 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003896/* confdefs.h. */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003901#include <string.h>
3902
3903_ACEOF
3904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003905 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003906 :
3907else
3908 ac_cv_header_stdc=no
3909fi
3910rm -f conftest*
3911
3912fi
3913
3914if test $ac_cv_header_stdc = yes; then
3915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3916 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003917/* confdefs.h. */
3918_ACEOF
3919cat confdefs.h >>conftest.$ac_ext
3920cat >>conftest.$ac_ext <<_ACEOF
3921/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003922#include <stdlib.h>
3923
3924_ACEOF
3925if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003926 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003927 :
3928else
3929 ac_cv_header_stdc=no
3930fi
3931rm -f conftest*
3932
3933fi
3934
3935if test $ac_cv_header_stdc = yes; then
3936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3937 if test "$cross_compiling" = yes; then
3938 :
3939else
3940 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003941/* confdefs.h. */
3942_ACEOF
3943cat confdefs.h >>conftest.$ac_ext
3944cat >>conftest.$ac_ext <<_ACEOF
3945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003946#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003947#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003948#if ((' ' & 0x0FF) == 0x020)
3949# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3950# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3951#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003952# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003953 (('a' <= (c) && (c) <= 'i') \
3954 || ('j' <= (c) && (c) <= 'r') \
3955 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003956# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3957#endif
3958
3959#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3960int
3961main ()
3962{
3963 int i;
3964 for (i = 0; i < 256; i++)
3965 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003966 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003967 return 2;
3968 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003969}
3970_ACEOF
3971rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003972if { (ac_try="$ac_link"
3973case "(($ac_try" in
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3976esac
3977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003982 { (case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985esac
3986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003988 ac_status=$?
3989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990 (exit $ac_status); }; }; then
3991 :
3992else
3993 echo "$as_me: program exited with status $ac_status" >&5
3994echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003995sed 's/^/| /' conftest.$ac_ext >&5
3996
John Criswell7a73b802003-06-30 21:59:07 +00003997( exit $ac_status )
3998ac_cv_header_stdc=no
3999fi
Reid Spencera773bd52006-08-04 18:18:08 +00004000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4001fi
4002
4003
John Criswell7a73b802003-06-30 21:59:07 +00004004fi
4005fi
Reid Spencera773bd52006-08-04 18:18:08 +00004006{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4007echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004008if test $ac_cv_header_stdc = yes; then
4009
4010cat >>confdefs.h <<\_ACEOF
4011#define STDC_HEADERS 1
4012_ACEOF
4013
4014fi
4015
Reid Spencera773bd52006-08-04 18:18:08 +00004016# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4027 inttypes.h stdint.h unistd.h
4028do
4029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4030{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035 cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h. */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h. */
4041$ac_includes_default
4042
4043#include <$ac_header>
4044_ACEOF
4045rm -f conftest.$ac_objext
4046if { (ac_try="$ac_compile"
4047case "(($ac_try" in
4048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4049 *) ac_try_echo=$ac_try;;
4050esac
4051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4052 (eval "$ac_compile") 2>conftest.er1
4053 ac_status=$?
4054 grep -v '^ *+' conftest.er1 >conftest.err
4055 rm -f conftest.er1
4056 cat conftest.err >&5
4057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004058 (exit $ac_status); } &&
4059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4060 { (case "(($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_try") 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try='test -s conftest.$ac_objext'
4070 { (case "(($ac_try" in
4071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072 *) ac_try_echo=$ac_try;;
4073esac
4074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4075 (eval "$ac_try") 2>&5
4076 ac_status=$?
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004079 eval "$as_ac_Header=yes"
4080else
4081 echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084 eval "$as_ac_Header=no"
4085fi
4086
4087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088fi
4089ac_res=`eval echo '${'$as_ac_Header'}'`
4090 { echo "$as_me:$LINENO: result: $ac_res" >&5
4091echo "${ECHO_T}$ac_res" >&6; }
4092if test `eval echo '${'$as_ac_Header'}'` = yes; then
4093 cat >>confdefs.h <<_ACEOF
4094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4095_ACEOF
4096
4097fi
4098
4099done
4100
4101
4102{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4103echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4104if test "${ac_cv_c_bigendian+set}" = set; then
4105 echo $ECHO_N "(cached) $ECHO_C" >&6
4106else
4107 # See if sys/param.h defines the BYTE_ORDER macro.
4108cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114#include <sys/types.h>
4115#include <sys/param.h>
4116
4117int
4118main ()
4119{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004120#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004121 bogus endian macros
4122#endif
4123
4124 ;
4125 return 0;
4126}
4127_ACEOF
4128rm -f conftest.$ac_objext
4129if { (ac_try="$ac_compile"
4130case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133esac
4134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4135 (eval "$ac_compile") 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004141 (exit $ac_status); } &&
4142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4143 { (case "(($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_try") 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004162 # It does; now see whether it defined to BIG_ENDIAN or not.
4163cat >conftest.$ac_ext <<_ACEOF
4164/* confdefs.h. */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h. */
4169#include <sys/types.h>
4170#include <sys/param.h>
4171
4172int
4173main ()
4174{
4175#if BYTE_ORDER != BIG_ENDIAN
4176 not big endian
4177#endif
4178
4179 ;
4180 return 0;
4181}
4182_ACEOF
4183rm -f conftest.$ac_objext
4184if { (ac_try="$ac_compile"
4185case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188esac
4189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_compile") 2>conftest.er1
4191 ac_status=$?
4192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004196 (exit $ac_status); } &&
4197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4198 { (case "(($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_try") 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; } &&
4207 { ac_try='test -s conftest.$ac_objext'
4208 { (case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
4212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_try") 2>&5
4214 ac_status=$?
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004217 ac_cv_c_bigendian=yes
4218else
4219 echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222 ac_cv_c_bigendian=no
4223fi
4224
4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226else
4227 echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4230 # It does not; compile a test program.
4231if test "$cross_compiling" = yes; then
4232 # try to guess the endianness by grepping values into an object file
4233 ac_cv_c_bigendian=unknown
4234 cat >conftest.$ac_ext <<_ACEOF
4235/* confdefs.h. */
4236_ACEOF
4237cat confdefs.h >>conftest.$ac_ext
4238cat >>conftest.$ac_ext <<_ACEOF
4239/* end confdefs.h. */
4240short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4241short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4242void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4243short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4244short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4245void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4246int
4247main ()
4248{
4249 _ascii (); _ebcdic ();
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254rm -f conftest.$ac_objext
4255if { (ac_try="$ac_compile"
4256case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004267 (exit $ac_status); } &&
4268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4269 { (case "(($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_try") 2>&5
4275 ac_status=$?
4276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277 (exit $ac_status); }; } &&
4278 { ac_try='test -s conftest.$ac_objext'
4279 { (case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282esac
4283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4284 (eval "$ac_try") 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004288 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4289 ac_cv_c_bigendian=yes
4290fi
4291if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4292 if test "$ac_cv_c_bigendian" = unknown; then
4293 ac_cv_c_bigendian=no
4294 else
4295 # finding both strings is unlikely to happen, but who knows?
4296 ac_cv_c_bigendian=unknown
4297 fi
4298fi
4299else
4300 echo "$as_me: failed program was:" >&5
4301sed 's/^/| /' conftest.$ac_ext >&5
4302
4303
4304fi
4305
4306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307else
4308 cat >conftest.$ac_ext <<_ACEOF
4309/* confdefs.h. */
4310_ACEOF
4311cat confdefs.h >>conftest.$ac_ext
4312cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h. */
4314$ac_includes_default
4315int
4316main ()
4317{
4318
4319 /* Are we little or big endian? From Harbison&Steele. */
4320 union
4321 {
4322 long int l;
4323 char c[sizeof (long int)];
4324 } u;
4325 u.l = 1;
4326 return u.c[sizeof (long int) - 1] == 1;
4327
4328 ;
4329 return 0;
4330}
4331_ACEOF
4332rm -f conftest$ac_exeext
4333if { (ac_try="$ac_link"
4334case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4337esac
4338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_link") 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4343 { (case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346esac
4347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_try") 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; }; then
4352 ac_cv_c_bigendian=no
4353else
4354 echo "$as_me: program exited with status $ac_status" >&5
4355echo "$as_me: failed program was:" >&5
4356sed 's/^/| /' conftest.$ac_ext >&5
4357
4358( exit $ac_status )
4359ac_cv_c_bigendian=yes
4360fi
4361rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4362fi
4363
4364
4365fi
4366
4367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4368fi
4369{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4370echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4371case $ac_cv_c_bigendian in
4372 yes)
4373 ENDIAN=big
4374 ;;
4375 no)
4376 ENDIAN=little
4377 ;;
4378 *)
4379 { { echo "$as_me:$LINENO: error: unknown endianness
4380presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4381echo "$as_me: error: unknown endianness
4382presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4383 { (exit 1); exit 1; }; } ;;
4384esac
4385
4386
4387if test "$cross_compiling" = yes; then
4388 LLVM_CROSS_COMPILING=1
4389
4390
4391{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4392echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4393if test "${ac_cv_build_exeext+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4397 ac_cv_build_exeext=.exe
4398else
4399 ac_build_prefix=${build_alias}-
4400
4401 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4402set dummy ${ac_build_prefix}gcc; ac_word=$2
4403{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4405if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407else
4408 if test -n "$BUILD_CC"; then
4409 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4410else
4411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004417 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 +00004418 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422done
4423done
4424IFS=$as_save_IFS
4425
4426fi
4427fi
4428BUILD_CC=$ac_cv_prog_BUILD_CC
4429if test -n "$BUILD_CC"; then
4430 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4431echo "${ECHO_T}$BUILD_CC" >&6; }
4432else
4433 { echo "$as_me:$LINENO: result: no" >&5
4434echo "${ECHO_T}no" >&6; }
4435fi
4436
4437
4438 if test -z "$BUILD_CC"; then
4439 # Extract the first word of "gcc", so it can be a program name with args.
4440set dummy gcc; ac_word=$2
4441{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445else
4446 if test -n "$BUILD_CC"; then
4447 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4448else
4449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450for as_dir in $PATH
4451do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004455 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 +00004456 ac_cv_prog_BUILD_CC="gcc"
4457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4459 fi
4460done
4461done
4462IFS=$as_save_IFS
4463
4464fi
4465fi
4466BUILD_CC=$ac_cv_prog_BUILD_CC
4467if test -n "$BUILD_CC"; then
4468 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4469echo "${ECHO_T}$BUILD_CC" >&6; }
4470else
4471 { echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6; }
4473fi
4474
4475
4476 if test -z "$BUILD_CC"; then
4477 # Extract the first word of "cc", so it can be a program name with args.
4478set dummy cc; ac_word=$2
4479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4481if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484 if test -n "$BUILD_CC"; then
4485 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4486else
4487 ac_prog_rejected=no
4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH
4490do
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004494 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 +00004495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4496 ac_prog_rejected=yes
4497 continue
4498 fi
4499 ac_cv_prog_BUILD_CC="cc"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4502 fi
4503done
4504done
4505IFS=$as_save_IFS
4506
4507if test $ac_prog_rejected = yes; then
4508 # We found a bogon in the path, so make sure we never use it.
4509 set dummy $ac_cv_prog_BUILD_CC
4510 shift
4511 if test $# != 0; then
4512 # We chose a different compiler from the bogus one.
4513 # However, it has the same basename, so the bogon will be chosen
4514 # first if we set BUILD_CC to just the basename; use the full file name.
4515 shift
4516 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4517 fi
4518fi
4519fi
4520fi
4521BUILD_CC=$ac_cv_prog_BUILD_CC
4522if test -n "$BUILD_CC"; then
4523 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4524echo "${ECHO_T}$BUILD_CC" >&6; }
4525else
4526 { echo "$as_me:$LINENO: result: no" >&5
4527echo "${ECHO_T}no" >&6; }
4528fi
4529
4530
4531 fi
4532 fi
4533 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4534echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4535 { (exit 1); exit 1; }; }
4536 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4537 rm -f conftest*
4538 echo 'int main () { return 0; }' > conftest.$ac_ext
4539 ac_cv_build_exeext=
4540 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4541 (eval $ac_build_link) 2>&5
4542 ac_status=$?
4543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544 (exit $ac_status); }; then
4545 for file in conftest.*; do
4546 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004547 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004548 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4549 esac
4550 done
4551 else
4552 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4553echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4554 { (exit 1); exit 1; }; }
4555 fi
4556 rm -f conftest*
4557 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4558fi
4559fi
4560
4561BUILD_EXEEXT=""
4562test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4563{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4564echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4565ac_build_exeext=$BUILD_EXEEXT
4566
Jim Grosbach673612e2008-10-02 22:56:44 +00004567 ac_build_prefix=${build_alias}-
4568 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4569set dummy ${ac_build_prefix}g++; ac_word=$2
4570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 if test -n "$BUILD_CXX"; then
4576 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4577else
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004584 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 +00004585 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4588 fi
4589done
4590done
4591IFS=$as_save_IFS
4592
4593fi
4594fi
4595BUILD_CXX=$ac_cv_prog_BUILD_CXX
4596if test -n "$BUILD_CXX"; then
4597 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4598echo "${ECHO_T}$BUILD_CXX" >&6; }
4599else
4600 { echo "$as_me:$LINENO: result: no" >&5
4601echo "${ECHO_T}no" >&6; }
4602fi
4603
4604
4605 if test -z "$BUILD_CXX"; then
4606 # Extract the first word of "g++", so it can be a program name with args.
4607set dummy g++; ac_word=$2
4608{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4610if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613 if test -n "$BUILD_CXX"; then
4614 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4615else
4616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004622 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 +00004623 ac_cv_prog_BUILD_CXX="g++"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627done
4628done
4629IFS=$as_save_IFS
4630
4631fi
4632fi
4633BUILD_CXX=$ac_cv_prog_BUILD_CXX
4634if test -n "$BUILD_CXX"; then
4635 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4636echo "${ECHO_T}$BUILD_CXX" >&6; }
4637else
4638 { echo "$as_me:$LINENO: result: no" >&5
4639echo "${ECHO_T}no" >&6; }
4640fi
4641
4642
4643 if test -z "$BUILD_CXX"; then
4644 # Extract the first word of "c++", so it can be a program name with args.
4645set dummy c++; ac_word=$2
4646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4650else
4651 if test -n "$BUILD_CXX"; then
4652 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4653else
4654 ac_prog_rejected=no
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004661 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 +00004662 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4663 ac_prog_rejected=yes
4664 continue
4665 fi
4666 ac_cv_prog_BUILD_CXX="c++"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670done
4671done
4672IFS=$as_save_IFS
4673
4674if test $ac_prog_rejected = yes; then
4675 # We found a bogon in the path, so make sure we never use it.
4676 set dummy $ac_cv_prog_BUILD_CXX
4677 shift
4678 if test $# != 0; then
4679 # We chose a different compiler from the bogus one.
4680 # However, it has the same basename, so the bogon will be chosen
4681 # first if we set BUILD_CXX to just the basename; use the full file name.
4682 shift
4683 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4684 fi
4685fi
4686fi
4687fi
4688BUILD_CXX=$ac_cv_prog_BUILD_CXX
4689if test -n "$BUILD_CXX"; then
4690 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4691echo "${ECHO_T}$BUILD_CXX" >&6; }
4692else
4693 { echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6; }
4695fi
4696
4697
4698 fi
4699 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004700else
4701 LLVM_CROSS_COMPILING=0
4702
4703fi
4704
Nick Lewycky5b28f862009-04-10 05:18:27 +00004705if 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 +00004706 cvsbuild="yes"
4707 optimize="no"
4708 CVSBUILD=CVSBUILD=1
4709
4710else
4711 cvsbuild="no"
4712 optimize="yes"
4713fi
4714
4715
4716# Check whether --enable-optimized was given.
4717if test "${enable_optimized+set}" = set; then
4718 enableval=$enable_optimized;
4719else
4720 enableval=$optimize
4721fi
4722
4723if test ${enableval} = "no" ; then
4724 ENABLE_OPTIMIZED=
4725
4726else
4727 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4728
4729fi
4730
David Greene2a5a12c2009-04-17 14:50:39 +00004731# Check whether --enable-profiling was given.
4732if test "${enable_profiling+set}" = set; then
4733 enableval=$enable_profiling;
4734else
4735 enableval="no"
4736fi
4737
4738if test ${enableval} = "no" ; then
4739 ENABLE_PROFILING=
4740
4741else
4742 ENABLE_PROFILING=ENABLE_PROFILING=1
4743
4744fi
4745
Reid Spencera773bd52006-08-04 18:18:08 +00004746# Check whether --enable-assertions was given.
4747if test "${enable_assertions+set}" = set; then
4748 enableval=$enable_assertions;
4749else
4750 enableval="yes"
4751fi
4752
4753if test ${enableval} = "yes" ; then
4754 DISABLE_ASSERTIONS=
4755
4756else
4757 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4758
4759fi
4760
David Greenea696d242007-06-28 19:36:08 +00004761# Check whether --enable-expensive-checks was given.
4762if test "${enable_expensive_checks+set}" = set; then
4763 enableval=$enable_expensive_checks;
4764else
4765 enableval="no"
4766fi
4767
4768if test ${enableval} = "yes" ; then
4769 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4770
4771 EXPENSIVE_CHECKS=yes
4772
4773else
4774 ENABLE_EXPENSIVE_CHECKS=
4775
4776 EXPENSIVE_CHECKS=no
4777
4778fi
4779
Reid Spencer8b2e1412006-11-17 03:32:33 +00004780# Check whether --enable-debug-runtime was given.
4781if test "${enable_debug_runtime+set}" = set; then
4782 enableval=$enable_debug_runtime;
4783else
4784 enableval=no
4785fi
4786
4787if test ${enableval} = "no" ; then
4788 DEBUG_RUNTIME=
4789
4790else
4791 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4792
4793fi
4794
Reid Spencera773bd52006-08-04 18:18:08 +00004795# Check whether --enable-jit was given.
4796if test "${enable_jit+set}" = set; then
4797 enableval=$enable_jit;
4798else
4799 enableval=default
4800fi
4801
4802if test ${enableval} = "no"
4803then
4804 JIT=
4805
4806else
4807 case "$llvm_cv_target_arch" in
4808 x86) TARGET_HAS_JIT=1
4809 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004810 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004811 ;;
4812 PowerPC) TARGET_HAS_JIT=1
4813 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004814 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004815 ;;
4816 Alpha) TARGET_HAS_JIT=1
4817 ;;
4818 IA64) TARGET_HAS_JIT=0
4819 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004820 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004821 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004822 Mips) TARGET_HAS_JIT=0
4823 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004824 PIC16) TARGET_HAS_JIT=0
4825 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004826 XCore) TARGET_HAS_JIT=0
4827 ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004828 MSP430) TARGET_HAS_JIT=0
4829 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004830 *) TARGET_HAS_JIT=0
4831 ;;
4832 esac
4833fi
4834
4835# Check whether --enable-doxygen was given.
4836if test "${enable_doxygen+set}" = set; then
4837 enableval=$enable_doxygen;
4838else
4839 enableval=default
4840fi
4841
4842case "$enableval" in
4843 yes) ENABLE_DOXYGEN=1
4844 ;;
4845 no) ENABLE_DOXYGEN=0
4846 ;;
4847 default) ENABLE_DOXYGEN=0
4848 ;;
4849 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4850echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4851 { (exit 1); exit 1; }; } ;;
4852esac
4853
4854# Check whether --enable-threads was given.
4855if test "${enable_threads+set}" = set; then
4856 enableval=$enable_threads;
4857else
Reid Spencer65c5d752006-11-05 17:08:18 +00004858 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004859fi
4860
4861case "$enableval" in
4862 yes) ENABLE_THREADS=1
4863 ;;
4864 no) ENABLE_THREADS=0
4865 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004866 default) ENABLE_THREADS=1
4867 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004868 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4869echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4870 { (exit 1); exit 1; }; } ;;
4871esac
4872
Owen Andersona8603702009-05-19 22:18:56 +00004873cat >>confdefs.h <<_ACEOF
4874#define ENABLE_THREADS $ENABLE_THREADS
4875_ACEOF
4876
4877
Reid Spencer89b0d992006-12-16 22:07:52 +00004878# Check whether --enable-pic was given.
4879if test "${enable_pic+set}" = set; then
4880 enableval=$enable_pic;
4881else
4882 enableval=default
4883fi
4884
4885case "$enableval" in
4886 yes) ENABLE_PIC=1
4887 ;;
4888 no) ENABLE_PIC=0
4889 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004890 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004891 ;;
4892 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4893echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4894 { (exit 1); exit 1; }; } ;;
4895esac
4896
4897cat >>confdefs.h <<_ACEOF
4898#define ENABLE_PIC $ENABLE_PIC
4899_ACEOF
4900
4901
Reid Spencera773bd52006-08-04 18:18:08 +00004902TARGETS_TO_BUILD=""
4903# Check whether --enable-targets was given.
4904if test "${enable_targets+set}" = set; then
4905 enableval=$enable_targets;
4906else
4907 enableval=all
4908fi
4909
4910case "$enableval" in
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004911 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 +00004912 host-only)
4913 case "$llvm_cv_target_arch" in
4914 x86) TARGETS_TO_BUILD="X86" ;;
4915 x86_64) TARGETS_TO_BUILD="X86" ;;
4916 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4917 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4918 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4919 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004920 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004921 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004922 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004923 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004924 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004925 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004926 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4927echo "$as_me: error: Can not set target to build" >&2;}
4928 { (exit 1); exit 1; }; } ;;
4929 esac
4930 ;;
4931 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4932 case "$a_target" in
4933 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4934 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4935 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4936 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4937 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4938 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004939 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004940 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004941 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004942 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004943 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004944 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004945 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4946 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004947 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004948 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4949echo "$as_me: error: Unrecognized target $a_target" >&2;}
4950 { (exit 1); exit 1; }; } ;;
4951 esac
4952 done
4953 ;;
4954esac
Reid Spencera773bd52006-08-04 18:18:08 +00004955TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4956
4957
Reid Spencer65c5d752006-11-05 17:08:18 +00004958# Check whether --enable-cbe-printf-a was given.
4959if test "${enable_cbe_printf_a+set}" = set; then
4960 enableval=$enable_cbe_printf_a;
4961else
4962 enableval=default
4963fi
4964
4965case "$enableval" in
4966 yes) ENABLE_CBE_PRINTF_A=1
4967 ;;
4968 no) ENABLE_CBE_PRINTF_A=0
4969 ;;
4970 default) ENABLE_CBE_PRINTF_A=1
4971 ;;
4972 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4973echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4974 { (exit 1); exit 1; }; } ;;
4975esac
4976
4977cat >>confdefs.h <<_ACEOF
4978#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4979_ACEOF
4980
4981
Reid Spencera773bd52006-08-04 18:18:08 +00004982
4983# Check whether --with-llvmgccdir was given.
4984if test "${with_llvmgccdir+set}" = set; then
4985 withval=$with_llvmgccdir;
4986else
4987 withval=default
4988fi
4989
4990case "$withval" in
4991 default) WITH_LLVMGCCDIR=default ;;
4992 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4993 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4994echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4995 { (exit 1); exit 1; }; } ;;
4996esac
4997
4998
Devang Patel5d28b882007-12-04 22:54:47 +00004999# Check whether --with-llvmgcc was given.
5000if test "${with_llvmgcc+set}" = set; then
5001 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5002 WITH_LLVMGCCDIR=""
5003fi
5004
5005
5006
5007# Check whether --with-llvmgxx was given.
5008if test "${with_llvmgxx+set}" = set; then
5009 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5010 WITH_LLVMGCCDIR=""
5011fi
5012
Douglas Gregor01746742009-05-11 18:05:52 +00005013
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005014if test -n "$LLVMGCC"; then
5015 LLVMGCCCOMMAND="$LLVMGCC"
5016fi
5017
5018if test -n "$LLVMGXX"; then
5019 LLVMGXXCOMMAND="$LLVMGXX"
5020fi
Devang Patel5d28b882007-12-04 22:54:47 +00005021
5022if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5023 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5024echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5025 { (exit 1); exit 1; }; };
5026fi
5027
5028if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5029 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5030echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5031 { (exit 1); exit 1; }; };
5032fi
5033
5034
Reid Spencera773bd52006-08-04 18:18:08 +00005035# Check whether --with-extra-options was given.
5036if test "${with_extra_options+set}" = set; then
5037 withval=$with_extra_options;
5038else
5039 withval=default
5040fi
5041
5042case "$withval" in
5043 default) EXTRA_OPTIONS= ;;
5044 *) EXTRA_OPTIONS=$withval ;;
5045esac
5046EXTRA_OPTIONS=$EXTRA_OPTIONS
5047
5048
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005049# Check whether --enable-bindings was given.
5050if test "${enable_bindings+set}" = set; then
5051 enableval=$enable_bindings;
5052else
5053 enableval=default
5054fi
5055
5056BINDINGS_TO_BUILD=""
5057case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005058 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005059 all ) BINDINGS_TO_BUILD="ocaml" ;;
5060 none | no) BINDINGS_TO_BUILD="" ;;
5061 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5062 case "$a_binding" in
5063 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5064 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5065echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5066 { (exit 1); exit 1; }; } ;;
5067 esac
5068 done
5069 ;;
5070esac
5071
Reid Spencera773bd52006-08-04 18:18:08 +00005072
Gordon Henriksenf0915682007-10-02 16:42:22 +00005073# Check whether --with-ocaml-libdir was given.
5074if test "${with_ocaml_libdir+set}" = set; then
5075 withval=$with_ocaml_libdir;
5076else
5077 withval=auto
5078fi
5079
5080case "$withval" in
5081 auto) with_ocaml_libdir="$withval" ;;
5082 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5083 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5084echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5085 { (exit 1); exit 1; }; } ;;
5086esac
5087
5088
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005089# Check whether --with-binutils-include was given.
5090if test "${with_binutils_include+set}" = set; then
5091 withval=$with_binutils_include;
5092else
5093 withval=default
5094fi
5095
5096case "$withval" in
5097 default) WITH_BINUTILS_INCDIR=default ;;
5098 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5099 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5100echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5101 { (exit 1); exit 1; }; } ;;
5102esac
5103if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5104 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5105
5106 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5107 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5108 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5109echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5110 { (exit 1); exit 1; }; };
5111 fi
5112fi
5113
5114
Reid Spencera773bd52006-08-04 18:18:08 +00005115ac_ext=c
5116ac_cpp='$CPP $CPPFLAGS'
5117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5119ac_compiler_gnu=$ac_cv_c_compiler_gnu
5120{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5121echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5122# On Suns, sometimes $CPP names a directory.
5123if test -n "$CPP" && test -d "$CPP"; then
5124 CPP=
5125fi
5126if test -z "$CPP"; then
5127 if test "${ac_cv_prog_CPP+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130 # Double quotes because CPP needs to be expanded
5131 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5132 do
5133 ac_preproc_ok=false
5134for ac_c_preproc_warn_flag in '' yes
5135do
5136 # Use a header file that comes with gcc, so configuring glibc
5137 # with a fresh cross-compiler works.
5138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5139 # <limits.h> exists even on freestanding compilers.
5140 # On the NeXT, cc -E runs the code through the compiler's parser,
5141 # not just through cpp. "Syntax error" is here to catch this case.
5142 cat >conftest.$ac_ext <<_ACEOF
5143/* confdefs.h. */
5144_ACEOF
5145cat confdefs.h >>conftest.$ac_ext
5146cat >>conftest.$ac_ext <<_ACEOF
5147/* end confdefs.h. */
5148#ifdef __STDC__
5149# include <limits.h>
5150#else
5151# include <assert.h>
5152#endif
5153 Syntax error
5154_ACEOF
5155if { (ac_try="$ac_cpp conftest.$ac_ext"
5156case "(($ac_try" in
5157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5158 *) ac_try_echo=$ac_try;;
5159esac
5160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005167 (exit $ac_status); } >/dev/null; then
5168 if test -s conftest.err; then
5169 ac_cpp_err=$ac_c_preproc_warn_flag
5170 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5171 else
5172 ac_cpp_err=
5173 fi
5174else
5175 ac_cpp_err=yes
5176fi
5177if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005178 :
5179else
5180 echo "$as_me: failed program was:" >&5
5181sed 's/^/| /' conftest.$ac_ext >&5
5182
5183 # Broken: fails on valid input.
5184continue
5185fi
5186
5187rm -f conftest.err conftest.$ac_ext
5188
5189 # OK, works on sane cases. Now check whether nonexistent headers
5190 # can be detected and how.
5191 cat >conftest.$ac_ext <<_ACEOF
5192/* confdefs.h. */
5193_ACEOF
5194cat confdefs.h >>conftest.$ac_ext
5195cat >>conftest.$ac_ext <<_ACEOF
5196/* end confdefs.h. */
5197#include <ac_nonexistent.h>
5198_ACEOF
5199if { (ac_try="$ac_cpp conftest.$ac_ext"
5200case "(($ac_try" in
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5203esac
5204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005211 (exit $ac_status); } >/dev/null; then
5212 if test -s conftest.err; then
5213 ac_cpp_err=$ac_c_preproc_warn_flag
5214 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5215 else
5216 ac_cpp_err=
5217 fi
5218else
5219 ac_cpp_err=yes
5220fi
5221if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005222 # Broken: success on invalid input.
5223continue
5224else
5225 echo "$as_me: failed program was:" >&5
5226sed 's/^/| /' conftest.$ac_ext >&5
5227
5228 # Passes both tests.
5229ac_preproc_ok=:
5230break
5231fi
5232
5233rm -f conftest.err conftest.$ac_ext
5234
5235done
5236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5237rm -f conftest.err conftest.$ac_ext
5238if $ac_preproc_ok; then
5239 break
5240fi
5241
5242 done
5243 ac_cv_prog_CPP=$CPP
5244
5245fi
5246 CPP=$ac_cv_prog_CPP
5247else
5248 ac_cv_prog_CPP=$CPP
5249fi
5250{ echo "$as_me:$LINENO: result: $CPP" >&5
5251echo "${ECHO_T}$CPP" >&6; }
5252ac_preproc_ok=false
5253for ac_c_preproc_warn_flag in '' yes
5254do
5255 # Use a header file that comes with gcc, so configuring glibc
5256 # with a fresh cross-compiler works.
5257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5258 # <limits.h> exists even on freestanding compilers.
5259 # On the NeXT, cc -E runs the code through the compiler's parser,
5260 # not just through cpp. "Syntax error" is here to catch this case.
5261 cat >conftest.$ac_ext <<_ACEOF
5262/* confdefs.h. */
5263_ACEOF
5264cat confdefs.h >>conftest.$ac_ext
5265cat >>conftest.$ac_ext <<_ACEOF
5266/* end confdefs.h. */
5267#ifdef __STDC__
5268# include <limits.h>
5269#else
5270# include <assert.h>
5271#endif
5272 Syntax error
5273_ACEOF
5274if { (ac_try="$ac_cpp conftest.$ac_ext"
5275case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278esac
5279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5281 ac_status=$?
5282 grep -v '^ *+' conftest.er1 >conftest.err
5283 rm -f conftest.er1
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005286 (exit $ac_status); } >/dev/null; then
5287 if test -s conftest.err; then
5288 ac_cpp_err=$ac_c_preproc_warn_flag
5289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5290 else
5291 ac_cpp_err=
5292 fi
5293else
5294 ac_cpp_err=yes
5295fi
5296if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005297 :
5298else
5299 echo "$as_me: failed program was:" >&5
5300sed 's/^/| /' conftest.$ac_ext >&5
5301
5302 # Broken: fails on valid input.
5303continue
5304fi
5305
5306rm -f conftest.err conftest.$ac_ext
5307
5308 # OK, works on sane cases. Now check whether nonexistent headers
5309 # can be detected and how.
5310 cat >conftest.$ac_ext <<_ACEOF
5311/* confdefs.h. */
5312_ACEOF
5313cat confdefs.h >>conftest.$ac_ext
5314cat >>conftest.$ac_ext <<_ACEOF
5315/* end confdefs.h. */
5316#include <ac_nonexistent.h>
5317_ACEOF
5318if { (ac_try="$ac_cpp conftest.$ac_ext"
5319case "(($ac_try" in
5320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321 *) ac_try_echo=$ac_try;;
5322esac
5323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5325 ac_status=$?
5326 grep -v '^ *+' conftest.er1 >conftest.err
5327 rm -f conftest.er1
5328 cat conftest.err >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005330 (exit $ac_status); } >/dev/null; then
5331 if test -s conftest.err; then
5332 ac_cpp_err=$ac_c_preproc_warn_flag
5333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5334 else
5335 ac_cpp_err=
5336 fi
5337else
5338 ac_cpp_err=yes
5339fi
5340if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005341 # Broken: success on invalid input.
5342continue
5343else
5344 echo "$as_me: failed program was:" >&5
5345sed 's/^/| /' conftest.$ac_ext >&5
5346
5347 # Passes both tests.
5348ac_preproc_ok=:
5349break
5350fi
5351
5352rm -f conftest.err conftest.$ac_ext
5353
5354done
5355# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5356rm -f conftest.err conftest.$ac_ext
5357if $ac_preproc_ok; then
5358 :
5359else
5360 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5361See \`config.log' for more details." >&5
5362echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5363See \`config.log' for more details." >&2;}
5364 { (exit 1); exit 1; }; }
5365fi
5366
5367ac_ext=c
5368ac_cpp='$CPP $CPPFLAGS'
5369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5371ac_compiler_gnu=$ac_cv_c_compiler_gnu
5372
5373ac_ext=c
5374ac_cpp='$CPP $CPPFLAGS'
5375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5377ac_compiler_gnu=$ac_cv_c_compiler_gnu
5378if test -n "$ac_tool_prefix"; then
5379 for ac_prog in gcc
5380 do
5381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5382set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5385if test "${ac_cv_prog_CC+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387else
5388 if test -n "$CC"; then
5389 ac_cv_prog_CC="$CC" # Let the user override the test.
5390else
5391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392for as_dir in $PATH
5393do
5394 IFS=$as_save_IFS
5395 test -z "$as_dir" && as_dir=.
5396 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005397 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 +00005398 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5400 break 2
5401 fi
5402done
5403done
5404IFS=$as_save_IFS
5405
5406fi
5407fi
5408CC=$ac_cv_prog_CC
5409if test -n "$CC"; then
5410 { echo "$as_me:$LINENO: result: $CC" >&5
5411echo "${ECHO_T}$CC" >&6; }
5412else
5413 { echo "$as_me:$LINENO: result: no" >&5
5414echo "${ECHO_T}no" >&6; }
5415fi
5416
5417
5418 test -n "$CC" && break
5419 done
5420fi
5421if test -z "$CC"; then
5422 ac_ct_CC=$CC
5423 for ac_prog in gcc
5424do
5425 # Extract the first word of "$ac_prog", so it can be a program name with args.
5426set dummy $ac_prog; ac_word=$2
5427{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5429if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432 if test -n "$ac_ct_CC"; then
5433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5434else
5435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436for as_dir in $PATH
5437do
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005441 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 +00005442 ac_cv_prog_ac_ct_CC="$ac_prog"
5443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5445 fi
5446done
5447done
5448IFS=$as_save_IFS
5449
5450fi
5451fi
5452ac_ct_CC=$ac_cv_prog_ac_ct_CC
5453if test -n "$ac_ct_CC"; then
5454 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5455echo "${ECHO_T}$ac_ct_CC" >&6; }
5456else
5457 { echo "$as_me:$LINENO: result: no" >&5
5458echo "${ECHO_T}no" >&6; }
5459fi
5460
5461
5462 test -n "$ac_ct_CC" && break
5463done
5464
5465 if test "x$ac_ct_CC" = x; then
5466 CC=""
5467 else
5468 case $cross_compiling:$ac_tool_warned in
5469yes:)
5470{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5471whose name does not start with the host triplet. If you think this
5472configuration is useful to you, please write to autoconf@gnu.org." >&5
5473echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5474whose name does not start with the host triplet. If you think this
5475configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5476ac_tool_warned=yes ;;
5477esac
5478 CC=$ac_ct_CC
5479 fi
5480fi
5481
5482
5483test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5484See \`config.log' for more details." >&5
5485echo "$as_me: error: no acceptable C compiler found in \$PATH
5486See \`config.log' for more details." >&2;}
5487 { (exit 1); exit 1; }; }
5488
5489# Provide some information about the compiler.
5490echo "$as_me:$LINENO: checking for C compiler version" >&5
5491ac_compiler=`set X $ac_compile; echo $2`
5492{ (ac_try="$ac_compiler --version >&5"
5493case "(($ac_try" in
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5496esac
5497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_compiler --version >&5") 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }
5502{ (ac_try="$ac_compiler -v >&5"
5503case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506esac
5507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compiler -v >&5") 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }
5512{ (ac_try="$ac_compiler -V >&5"
5513case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516esac
5517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compiler -V >&5") 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }
5522
5523{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5524echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5525if test "${ac_cv_c_compiler_gnu+set}" = set; then
5526 echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528 cat >conftest.$ac_ext <<_ACEOF
5529/* confdefs.h. */
5530_ACEOF
5531cat confdefs.h >>conftest.$ac_ext
5532cat >>conftest.$ac_ext <<_ACEOF
5533/* end confdefs.h. */
5534
5535int
5536main ()
5537{
5538#ifndef __GNUC__
5539 choke me
5540#endif
5541
5542 ;
5543 return 0;
5544}
5545_ACEOF
5546rm -f conftest.$ac_objext
5547if { (ac_try="$ac_compile"
5548case "(($ac_try" in
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5551esac
5552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_compile") 2>conftest.er1
5554 ac_status=$?
5555 grep -v '^ *+' conftest.er1 >conftest.err
5556 rm -f conftest.er1
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005559 (exit $ac_status); } &&
5560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5561 { (case "(($ac_try" in
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5564esac
5565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_try") 2>&5
5567 ac_status=$?
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; } &&
5570 { ac_try='test -s conftest.$ac_objext'
5571 { (case "(($ac_try" in
5572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5573 *) ac_try_echo=$ac_try;;
5574esac
5575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_try") 2>&5
5577 ac_status=$?
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005580 ac_compiler_gnu=yes
5581else
5582 echo "$as_me: failed program was:" >&5
5583sed 's/^/| /' conftest.$ac_ext >&5
5584
5585 ac_compiler_gnu=no
5586fi
5587
5588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589ac_cv_c_compiler_gnu=$ac_compiler_gnu
5590
5591fi
5592{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5593echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5594GCC=`test $ac_compiler_gnu = yes && echo yes`
5595ac_test_CFLAGS=${CFLAGS+set}
5596ac_save_CFLAGS=$CFLAGS
5597{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5598echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5599if test "${ac_cv_prog_cc_g+set}" = set; then
5600 echo $ECHO_N "(cached) $ECHO_C" >&6
5601else
5602 ac_save_c_werror_flag=$ac_c_werror_flag
5603 ac_c_werror_flag=yes
5604 ac_cv_prog_cc_g=no
5605 CFLAGS="-g"
5606 cat >conftest.$ac_ext <<_ACEOF
5607/* confdefs.h. */
5608_ACEOF
5609cat confdefs.h >>conftest.$ac_ext
5610cat >>conftest.$ac_ext <<_ACEOF
5611/* end confdefs.h. */
5612
5613int
5614main ()
5615{
5616
5617 ;
5618 return 0;
5619}
5620_ACEOF
5621rm -f conftest.$ac_objext
5622if { (ac_try="$ac_compile"
5623case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5626esac
5627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_compile") 2>conftest.er1
5629 ac_status=$?
5630 grep -v '^ *+' conftest.er1 >conftest.err
5631 rm -f conftest.er1
5632 cat conftest.err >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005634 (exit $ac_status); } &&
5635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5636 { (case "(($ac_try" in
5637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5639esac
5640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_try") 2>&5
5642 ac_status=$?
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; } &&
5645 { ac_try='test -s conftest.$ac_objext'
5646 { (case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649esac
5650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_try") 2>&5
5652 ac_status=$?
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005655 ac_cv_prog_cc_g=yes
5656else
5657 echo "$as_me: failed program was:" >&5
5658sed 's/^/| /' conftest.$ac_ext >&5
5659
5660 CFLAGS=""
5661 cat >conftest.$ac_ext <<_ACEOF
5662/* confdefs.h. */
5663_ACEOF
5664cat confdefs.h >>conftest.$ac_ext
5665cat >>conftest.$ac_ext <<_ACEOF
5666/* end confdefs.h. */
5667
5668int
5669main ()
5670{
5671
5672 ;
5673 return 0;
5674}
5675_ACEOF
5676rm -f conftest.$ac_objext
5677if { (ac_try="$ac_compile"
5678case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681esac
5682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005689 (exit $ac_status); } &&
5690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5691 { (case "(($ac_try" in
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5694esac
5695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696 (eval "$ac_try") 2>&5
5697 ac_status=$?
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; } &&
5700 { ac_try='test -s conftest.$ac_objext'
5701 { (case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704esac
5705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5706 (eval "$ac_try") 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005710 :
5711else
5712 echo "$as_me: failed program was:" >&5
5713sed 's/^/| /' conftest.$ac_ext >&5
5714
5715 ac_c_werror_flag=$ac_save_c_werror_flag
5716 CFLAGS="-g"
5717 cat >conftest.$ac_ext <<_ACEOF
5718/* confdefs.h. */
5719_ACEOF
5720cat confdefs.h >>conftest.$ac_ext
5721cat >>conftest.$ac_ext <<_ACEOF
5722/* end confdefs.h. */
5723
5724int
5725main ()
5726{
5727
5728 ;
5729 return 0;
5730}
5731_ACEOF
5732rm -f conftest.$ac_objext
5733if { (ac_try="$ac_compile"
5734case "(($ac_try" in
5735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5736 *) ac_try_echo=$ac_try;;
5737esac
5738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5739 (eval "$ac_compile") 2>conftest.er1
5740 ac_status=$?
5741 grep -v '^ *+' conftest.er1 >conftest.err
5742 rm -f conftest.er1
5743 cat conftest.err >&5
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005745 (exit $ac_status); } &&
5746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5747 { (case "(($ac_try" in
5748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5750esac
5751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 (eval "$ac_try") 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; } &&
5756 { ac_try='test -s conftest.$ac_objext'
5757 { (case "(($ac_try" in
5758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5759 *) ac_try_echo=$ac_try;;
5760esac
5761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5762 (eval "$ac_try") 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005766 ac_cv_prog_cc_g=yes
5767else
5768 echo "$as_me: failed program was:" >&5
5769sed 's/^/| /' conftest.$ac_ext >&5
5770
5771
5772fi
5773
5774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775fi
5776
5777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778fi
5779
5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 ac_c_werror_flag=$ac_save_c_werror_flag
5782fi
5783{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5784echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5785if test "$ac_test_CFLAGS" = set; then
5786 CFLAGS=$ac_save_CFLAGS
5787elif test $ac_cv_prog_cc_g = yes; then
5788 if test "$GCC" = yes; then
5789 CFLAGS="-g -O2"
5790 else
5791 CFLAGS="-g"
5792 fi
5793else
5794 if test "$GCC" = yes; then
5795 CFLAGS="-O2"
5796 else
5797 CFLAGS=
5798 fi
5799fi
5800{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5801echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5802if test "${ac_cv_prog_cc_c89+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804else
5805 ac_cv_prog_cc_c89=no
5806ac_save_CC=$CC
5807cat >conftest.$ac_ext <<_ACEOF
5808/* confdefs.h. */
5809_ACEOF
5810cat confdefs.h >>conftest.$ac_ext
5811cat >>conftest.$ac_ext <<_ACEOF
5812/* end confdefs.h. */
5813#include <stdarg.h>
5814#include <stdio.h>
5815#include <sys/types.h>
5816#include <sys/stat.h>
5817/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5818struct buf { int x; };
5819FILE * (*rcsopen) (struct buf *, struct stat *, int);
5820static char *e (p, i)
5821 char **p;
5822 int i;
5823{
5824 return p[i];
5825}
5826static char *f (char * (*g) (char **, int), char **p, ...)
5827{
5828 char *s;
5829 va_list v;
5830 va_start (v,p);
5831 s = g (p, va_arg (v,int));
5832 va_end (v);
5833 return s;
5834}
5835
5836/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5837 function prototypes and stuff, but not '\xHH' hex character constants.
5838 These don't provoke an error unfortunately, instead are silently treated
5839 as 'x'. The following induces an error, until -std is added to get
5840 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5841 array size at least. It's necessary to write '\x00'==0 to get something
5842 that's true only with -std. */
5843int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5844
5845/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5846 inside strings and character constants. */
5847#define FOO(x) 'x'
5848int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5849
5850int test (int i, double x);
5851struct s1 {int (*f) (int a);};
5852struct s2 {int (*f) (double a);};
5853int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5854int argc;
5855char **argv;
5856int
5857main ()
5858{
5859return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5865 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5866do
5867 CC="$ac_save_CC $ac_arg"
5868 rm -f conftest.$ac_objext
5869if { (ac_try="$ac_compile"
5870case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873esac
5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005881 (exit $ac_status); } &&
5882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5883 { (case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886esac
5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_try") 2>&5
5889 ac_status=$?
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); }; } &&
5892 { ac_try='test -s conftest.$ac_objext'
5893 { (case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_try") 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005902 ac_cv_prog_cc_c89=$ac_arg
5903else
5904 echo "$as_me: failed program was:" >&5
5905sed 's/^/| /' conftest.$ac_ext >&5
5906
5907
5908fi
5909
5910rm -f core conftest.err conftest.$ac_objext
5911 test "x$ac_cv_prog_cc_c89" != "xno" && break
5912done
5913rm -f conftest.$ac_ext
5914CC=$ac_save_CC
5915
5916fi
5917# AC_CACHE_VAL
5918case "x$ac_cv_prog_cc_c89" in
5919 x)
5920 { echo "$as_me:$LINENO: result: none needed" >&5
5921echo "${ECHO_T}none needed" >&6; } ;;
5922 xno)
5923 { echo "$as_me:$LINENO: result: unsupported" >&5
5924echo "${ECHO_T}unsupported" >&6; } ;;
5925 *)
5926 CC="$CC $ac_cv_prog_cc_c89"
5927 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5928echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5929esac
5930
5931
5932ac_ext=c
5933ac_cpp='$CPP $CPPFLAGS'
5934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5936ac_compiler_gnu=$ac_cv_c_compiler_gnu
5937
5938ac_ext=cpp
5939ac_cpp='$CXXCPP $CPPFLAGS'
5940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5943if test -z "$CXX"; then
5944 if test -n "$CCC"; then
5945 CXX=$CCC
5946 else
5947 if test -n "$ac_tool_prefix"; then
5948 for ac_prog in g++
5949 do
5950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5951set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5954if test "${ac_cv_prog_CXX+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956else
5957 if test -n "$CXX"; then
5958 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5959else
5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961for as_dir in $PATH
5962do
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005966 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 +00005967 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5970 fi
5971done
5972done
5973IFS=$as_save_IFS
5974
5975fi
5976fi
5977CXX=$ac_cv_prog_CXX
5978if test -n "$CXX"; then
5979 { echo "$as_me:$LINENO: result: $CXX" >&5
5980echo "${ECHO_T}$CXX" >&6; }
5981else
5982 { echo "$as_me:$LINENO: result: no" >&5
5983echo "${ECHO_T}no" >&6; }
5984fi
5985
5986
5987 test -n "$CXX" && break
5988 done
5989fi
5990if test -z "$CXX"; then
5991 ac_ct_CXX=$CXX
5992 for ac_prog in g++
5993do
5994 # Extract the first word of "$ac_prog", so it can be a program name with args.
5995set dummy $ac_prog; ac_word=$2
5996{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5998if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000else
6001 if test -n "$ac_ct_CXX"; then
6002 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6003else
6004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005for as_dir in $PATH
6006do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006010 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 +00006011 ac_cv_prog_ac_ct_CXX="$ac_prog"
6012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015done
6016done
6017IFS=$as_save_IFS
6018
6019fi
6020fi
6021ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6022if test -n "$ac_ct_CXX"; then
6023 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6024echo "${ECHO_T}$ac_ct_CXX" >&6; }
6025else
6026 { echo "$as_me:$LINENO: result: no" >&5
6027echo "${ECHO_T}no" >&6; }
6028fi
6029
6030
6031 test -n "$ac_ct_CXX" && break
6032done
6033
6034 if test "x$ac_ct_CXX" = x; then
6035 CXX="g++"
6036 else
6037 case $cross_compiling:$ac_tool_warned in
6038yes:)
6039{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6040whose name does not start with the host triplet. If you think this
6041configuration is useful to you, please write to autoconf@gnu.org." >&5
6042echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6043whose name does not start with the host triplet. If you think this
6044configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6045ac_tool_warned=yes ;;
6046esac
6047 CXX=$ac_ct_CXX
6048 fi
6049fi
6050
6051 fi
6052fi
6053# Provide some information about the compiler.
6054echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6055ac_compiler=`set X $ac_compile; echo $2`
6056{ (ac_try="$ac_compiler --version >&5"
6057case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060esac
6061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compiler --version >&5") 2>&5
6063 ac_status=$?
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); }
6066{ (ac_try="$ac_compiler -v >&5"
6067case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070esac
6071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_compiler -v >&5") 2>&5
6073 ac_status=$?
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }
6076{ (ac_try="$ac_compiler -V >&5"
6077case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080esac
6081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_compiler -V >&5") 2>&5
6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }
6086
6087{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6088echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6089if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091else
6092 cat >conftest.$ac_ext <<_ACEOF
6093/* confdefs.h. */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h. */
6098
6099int
6100main ()
6101{
6102#ifndef __GNUC__
6103 choke me
6104#endif
6105
6106 ;
6107 return 0;
6108}
6109_ACEOF
6110rm -f conftest.$ac_objext
6111if { (ac_try="$ac_compile"
6112case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115esac
6116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_compile") 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006123 (exit $ac_status); } &&
6124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6125 { (case "(($ac_try" in
6126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6128esac
6129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130 (eval "$ac_try") 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); }; } &&
6134 { ac_try='test -s conftest.$ac_objext'
6135 { (case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138esac
6139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_try") 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006144 ac_compiler_gnu=yes
6145else
6146 echo "$as_me: failed program was:" >&5
6147sed 's/^/| /' conftest.$ac_ext >&5
6148
6149 ac_compiler_gnu=no
6150fi
6151
6152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6154
6155fi
6156{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6157echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6158GXX=`test $ac_compiler_gnu = yes && echo yes`
6159ac_test_CXXFLAGS=${CXXFLAGS+set}
6160ac_save_CXXFLAGS=$CXXFLAGS
6161{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6162echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6163if test "${ac_cv_prog_cxx_g+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6165else
6166 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6167 ac_cxx_werror_flag=yes
6168 ac_cv_prog_cxx_g=no
6169 CXXFLAGS="-g"
6170 cat >conftest.$ac_ext <<_ACEOF
6171/* confdefs.h. */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h. */
6176
6177int
6178main ()
6179{
6180
6181 ;
6182 return 0;
6183}
6184_ACEOF
6185rm -f conftest.$ac_objext
6186if { (ac_try="$ac_compile"
6187case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6190esac
6191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_compile") 2>conftest.er1
6193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006198 (exit $ac_status); } &&
6199 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6200 { (case "(($ac_try" in
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6203esac
6204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205 (eval "$ac_try") 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); }; } &&
6209 { ac_try='test -s conftest.$ac_objext'
6210 { (case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213esac
6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_try") 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006219 ac_cv_prog_cxx_g=yes
6220else
6221 echo "$as_me: failed program was:" >&5
6222sed 's/^/| /' conftest.$ac_ext >&5
6223
6224 CXXFLAGS=""
6225 cat >conftest.$ac_ext <<_ACEOF
6226/* confdefs.h. */
6227_ACEOF
6228cat confdefs.h >>conftest.$ac_ext
6229cat >>conftest.$ac_ext <<_ACEOF
6230/* end confdefs.h. */
6231
6232int
6233main ()
6234{
6235
6236 ;
6237 return 0;
6238}
6239_ACEOF
6240rm -f conftest.$ac_objext
6241if { (ac_try="$ac_compile"
6242case "(($ac_try" in
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6245esac
6246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_compile") 2>conftest.er1
6248 ac_status=$?
6249 grep -v '^ *+' conftest.er1 >conftest.err
6250 rm -f conftest.er1
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6255 { (case "(($ac_try" in
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6258esac
6259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_try") 2>&5
6261 ac_status=$?
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest.$ac_objext'
6265 { (case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268esac
6269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_try") 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006274 :
6275else
6276 echo "$as_me: failed program was:" >&5
6277sed 's/^/| /' conftest.$ac_ext >&5
6278
6279 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6280 CXXFLAGS="-g"
6281 cat >conftest.$ac_ext <<_ACEOF
6282/* confdefs.h. */
6283_ACEOF
6284cat confdefs.h >>conftest.$ac_ext
6285cat >>conftest.$ac_ext <<_ACEOF
6286/* end confdefs.h. */
6287
6288int
6289main ()
6290{
6291
6292 ;
6293 return 0;
6294}
6295_ACEOF
6296rm -f conftest.$ac_objext
6297if { (ac_try="$ac_compile"
6298case "(($ac_try" in
6299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300 *) ac_try_echo=$ac_try;;
6301esac
6302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6303 (eval "$ac_compile") 2>conftest.er1
6304 ac_status=$?
6305 grep -v '^ *+' conftest.er1 >conftest.err
6306 rm -f conftest.er1
6307 cat conftest.err >&5
6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006309 (exit $ac_status); } &&
6310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6311 { (case "(($ac_try" in
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6314esac
6315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$ac_try") 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; } &&
6320 { ac_try='test -s conftest.$ac_objext'
6321 { (case "(($ac_try" in
6322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6323 *) ac_try_echo=$ac_try;;
6324esac
6325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6326 (eval "$ac_try") 2>&5
6327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006330 ac_cv_prog_cxx_g=yes
6331else
6332 echo "$as_me: failed program was:" >&5
6333sed 's/^/| /' conftest.$ac_ext >&5
6334
6335
6336fi
6337
6338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339fi
6340
6341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6342fi
6343
6344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6346fi
6347{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6348echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6349if test "$ac_test_CXXFLAGS" = set; then
6350 CXXFLAGS=$ac_save_CXXFLAGS
6351elif test $ac_cv_prog_cxx_g = yes; then
6352 if test "$GXX" = yes; then
6353 CXXFLAGS="-g -O2"
6354 else
6355 CXXFLAGS="-g"
6356 fi
6357else
6358 if test "$GXX" = yes; then
6359 CXXFLAGS="-O2"
6360 else
6361 CXXFLAGS=
6362 fi
6363fi
6364ac_ext=c
6365ac_cpp='$CPP $CPPFLAGS'
6366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6368ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369
Reid Spencera773bd52006-08-04 18:18:08 +00006370
6371{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6372echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6373if test "${lt_cv_path_NM+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376 if test -n "$NM"; then
6377 # Let the user override the test.
6378 lt_cv_path_NM="$NM"
6379else
6380 lt_nm_to_check="${ac_tool_prefix}nm"
6381 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6382 lt_nm_to_check="$lt_nm_to_check nm"
6383 fi
6384 for lt_tmp_nm in $lt_nm_to_check; do
6385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6386 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6387 IFS="$lt_save_ifs"
6388 test -z "$ac_dir" && ac_dir=.
6389 tmp_nm="$ac_dir/$lt_tmp_nm"
6390 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6391 # Check to see if the nm accepts a BSD-compat flag.
6392 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6393 # nm: unknown option "B" ignored
6394 # Tru64's nm complains that /dev/null is an invalid object file
6395 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6396 */dev/null* | *'Invalid file or object type'*)
6397 lt_cv_path_NM="$tmp_nm -B"
6398 break
6399 ;;
6400 *)
6401 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6402 */dev/null*)
6403 lt_cv_path_NM="$tmp_nm -p"
6404 break
6405 ;;
6406 *)
6407 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6408 continue # so that we can try to find one that supports BSD flags
6409 ;;
6410 esac
6411 ;;
6412 esac
6413 fi
6414 done
6415 IFS="$lt_save_ifs"
6416 done
6417 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6418fi
6419fi
6420{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6421echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6422NM="$lt_cv_path_NM"
6423
6424
6425
6426{ echo "$as_me:$LINENO: checking for GNU make" >&5
6427echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6428if test "${llvm_cv_gnu_make_command+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6430else
6431 llvm_cv_gnu_make_command=''
6432 for a in "$MAKE" make gmake gnumake ; do
6433 if test -z "$a" ; then continue ; fi ;
6434 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6435 then
6436 llvm_cv_gnu_make_command=$a ;
6437 break;
6438 fi
6439 done
6440fi
6441{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6442echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6443 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6444 ifGNUmake='' ;
6445 else
6446 ifGNUmake='#' ;
6447 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6448echo "${ECHO_T}\"Not found\"" >&6; };
6449 fi
6450
6451
6452{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6453echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6454LN_S=$as_ln_s
6455if test "$LN_S" = "ln -s"; then
6456 { echo "$as_me:$LINENO: result: yes" >&5
6457echo "${ECHO_T}yes" >&6; }
6458else
6459 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6460echo "${ECHO_T}no, using $LN_S" >&6; }
6461fi
6462
6463# Extract the first word of "cmp", so it can be a program name with args.
6464set dummy cmp; ac_word=$2
6465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6467if test "${ac_cv_path_CMP+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6469else
6470 case $CMP in
6471 [\\/]* | ?:[\\/]*)
6472 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6473 ;;
6474 *)
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476for as_dir in $PATH
6477do
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006481 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 +00006482 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 break 2
6485 fi
6486done
6487done
6488IFS=$as_save_IFS
6489
6490 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6491 ;;
6492esac
6493fi
6494CMP=$ac_cv_path_CMP
6495if test -n "$CMP"; then
6496 { echo "$as_me:$LINENO: result: $CMP" >&5
6497echo "${ECHO_T}$CMP" >&6; }
6498else
6499 { echo "$as_me:$LINENO: result: no" >&5
6500echo "${ECHO_T}no" >&6; }
6501fi
6502
6503
6504# Extract the first word of "cp", so it can be a program name with args.
6505set dummy cp; ac_word=$2
6506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6508if test "${ac_cv_path_CP+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510else
6511 case $CP in
6512 [\\/]* | ?:[\\/]*)
6513 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6514 ;;
6515 *)
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517for as_dir in $PATH
6518do
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006522 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 +00006523 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6526 fi
6527done
6528done
6529IFS=$as_save_IFS
6530
6531 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6532 ;;
6533esac
6534fi
6535CP=$ac_cv_path_CP
6536if test -n "$CP"; then
6537 { echo "$as_me:$LINENO: result: $CP" >&5
6538echo "${ECHO_T}$CP" >&6; }
6539else
6540 { echo "$as_me:$LINENO: result: no" >&5
6541echo "${ECHO_T}no" >&6; }
6542fi
6543
6544
6545# Extract the first word of "date", so it can be a program name with args.
6546set dummy date; ac_word=$2
6547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6549if test "${ac_cv_path_DATE+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551else
6552 case $DATE in
6553 [\\/]* | ?:[\\/]*)
6554 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6555 ;;
6556 *)
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558for as_dir in $PATH
6559do
6560 IFS=$as_save_IFS
6561 test -z "$as_dir" && as_dir=.
6562 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006563 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 +00006564 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 break 2
6567 fi
6568done
6569done
6570IFS=$as_save_IFS
6571
6572 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6573 ;;
6574esac
6575fi
6576DATE=$ac_cv_path_DATE
6577if test -n "$DATE"; then
6578 { echo "$as_me:$LINENO: result: $DATE" >&5
6579echo "${ECHO_T}$DATE" >&6; }
6580else
6581 { echo "$as_me:$LINENO: result: no" >&5
6582echo "${ECHO_T}no" >&6; }
6583fi
6584
6585
6586# Extract the first word of "find", so it can be a program name with args.
6587set dummy find; ac_word=$2
6588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6590if test "${ac_cv_path_FIND+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592else
6593 case $FIND in
6594 [\\/]* | ?:[\\/]*)
6595 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6596 ;;
6597 *)
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599for as_dir in $PATH
6600do
6601 IFS=$as_save_IFS
6602 test -z "$as_dir" && as_dir=.
6603 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006604 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 +00006605 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6607 break 2
6608 fi
6609done
6610done
6611IFS=$as_save_IFS
6612
6613 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6614 ;;
6615esac
6616fi
6617FIND=$ac_cv_path_FIND
6618if test -n "$FIND"; then
6619 { echo "$as_me:$LINENO: result: $FIND" >&5
6620echo "${ECHO_T}$FIND" >&6; }
6621else
6622 { echo "$as_me:$LINENO: result: no" >&5
6623echo "${ECHO_T}no" >&6; }
6624fi
6625
6626
6627# Extract the first word of "grep", so it can be a program name with args.
6628set dummy grep; ac_word=$2
6629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631if test "${ac_cv_path_GREP+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
6634 case $GREP in
6635 [\\/]* | ?:[\\/]*)
6636 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6637 ;;
6638 *)
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640for as_dir in $PATH
6641do
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006645 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 +00006646 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 break 2
6649 fi
6650done
6651done
6652IFS=$as_save_IFS
6653
6654 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6655 ;;
6656esac
6657fi
6658GREP=$ac_cv_path_GREP
6659if test -n "$GREP"; then
6660 { echo "$as_me:$LINENO: result: $GREP" >&5
6661echo "${ECHO_T}$GREP" >&6; }
6662else
6663 { echo "$as_me:$LINENO: result: no" >&5
6664echo "${ECHO_T}no" >&6; }
6665fi
6666
6667
6668# Extract the first word of "mkdir", so it can be a program name with args.
6669set dummy mkdir; ac_word=$2
6670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672if test "${ac_cv_path_MKDIR+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6674else
6675 case $MKDIR in
6676 [\\/]* | ?:[\\/]*)
6677 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6678 ;;
6679 *)
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681for as_dir in $PATH
6682do
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006686 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 +00006687 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691done
6692done
6693IFS=$as_save_IFS
6694
6695 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6696 ;;
6697esac
6698fi
6699MKDIR=$ac_cv_path_MKDIR
6700if test -n "$MKDIR"; then
6701 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6702echo "${ECHO_T}$MKDIR" >&6; }
6703else
6704 { echo "$as_me:$LINENO: result: no" >&5
6705echo "${ECHO_T}no" >&6; }
6706fi
6707
6708
6709# Extract the first word of "mv", so it can be a program name with args.
6710set dummy mv; ac_word=$2
6711{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6713if test "${ac_cv_path_MV+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6715else
6716 case $MV in
6717 [\\/]* | ?:[\\/]*)
6718 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6719 ;;
6720 *)
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722for as_dir in $PATH
6723do
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006727 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 +00006728 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6731 fi
6732done
6733done
6734IFS=$as_save_IFS
6735
6736 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6737 ;;
6738esac
6739fi
6740MV=$ac_cv_path_MV
6741if test -n "$MV"; then
6742 { echo "$as_me:$LINENO: result: $MV" >&5
6743echo "${ECHO_T}$MV" >&6; }
6744else
6745 { echo "$as_me:$LINENO: result: no" >&5
6746echo "${ECHO_T}no" >&6; }
6747fi
6748
6749
6750if test -n "$ac_tool_prefix"; then
6751 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6752set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6755if test "${ac_cv_prog_RANLIB+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758 if test -n "$RANLIB"; then
6759 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6760else
6761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006767 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 +00006768 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772done
6773done
6774IFS=$as_save_IFS
6775
6776fi
6777fi
6778RANLIB=$ac_cv_prog_RANLIB
6779if test -n "$RANLIB"; then
6780 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6781echo "${ECHO_T}$RANLIB" >&6; }
6782else
6783 { echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6; }
6785fi
6786
6787
6788fi
6789if test -z "$ac_cv_prog_RANLIB"; then
6790 ac_ct_RANLIB=$RANLIB
6791 # Extract the first word of "ranlib", so it can be a program name with args.
6792set dummy ranlib; ac_word=$2
6793{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797else
6798 if test -n "$ac_ct_RANLIB"; then
6799 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006807 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 +00006808 ac_cv_prog_ac_ct_RANLIB="ranlib"
6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812done
6813done
6814IFS=$as_save_IFS
6815
6816fi
6817fi
6818ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6819if test -n "$ac_ct_RANLIB"; then
6820 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6821echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6822else
6823 { echo "$as_me:$LINENO: result: no" >&5
6824echo "${ECHO_T}no" >&6; }
6825fi
6826
6827 if test "x$ac_ct_RANLIB" = x; then
6828 RANLIB=":"
6829 else
6830 case $cross_compiling:$ac_tool_warned in
6831yes:)
6832{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6833whose name does not start with the host triplet. If you think this
6834configuration is useful to you, please write to autoconf@gnu.org." >&5
6835echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6836whose name does not start with the host triplet. If you think this
6837configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6838ac_tool_warned=yes ;;
6839esac
6840 RANLIB=$ac_ct_RANLIB
6841 fi
6842else
6843 RANLIB="$ac_cv_prog_RANLIB"
6844fi
6845
6846# Extract the first word of "rm", so it can be a program name with args.
6847set dummy rm; ac_word=$2
6848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6850if test "${ac_cv_path_RM+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6852else
6853 case $RM in
6854 [\\/]* | ?:[\\/]*)
6855 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6856 ;;
6857 *)
6858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859for as_dir in $PATH
6860do
6861 IFS=$as_save_IFS
6862 test -z "$as_dir" && as_dir=.
6863 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006864 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 +00006865 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6867 break 2
6868 fi
6869done
6870done
6871IFS=$as_save_IFS
6872
6873 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6874 ;;
6875esac
6876fi
6877RM=$ac_cv_path_RM
6878if test -n "$RM"; then
6879 { echo "$as_me:$LINENO: result: $RM" >&5
6880echo "${ECHO_T}$RM" >&6; }
6881else
6882 { echo "$as_me:$LINENO: result: no" >&5
6883echo "${ECHO_T}no" >&6; }
6884fi
6885
6886
6887# Extract the first word of "sed", so it can be a program name with args.
6888set dummy sed; ac_word=$2
6889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6891if test "${ac_cv_path_SED+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893else
6894 case $SED in
6895 [\\/]* | ?:[\\/]*)
6896 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6897 ;;
6898 *)
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006905 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 +00006906 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910done
6911done
6912IFS=$as_save_IFS
6913
6914 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6915 ;;
6916esac
6917fi
6918SED=$ac_cv_path_SED
6919if test -n "$SED"; then
6920 { echo "$as_me:$LINENO: result: $SED" >&5
6921echo "${ECHO_T}$SED" >&6; }
6922else
6923 { echo "$as_me:$LINENO: result: no" >&5
6924echo "${ECHO_T}no" >&6; }
6925fi
6926
6927
6928# Extract the first word of "tar", so it can be a program name with args.
6929set dummy tar; ac_word=$2
6930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6932if test "${ac_cv_path_TAR+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6934else
6935 case $TAR in
6936 [\\/]* | ?:[\\/]*)
6937 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6938 ;;
6939 *)
6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941for as_dir in $PATH
6942do
6943 IFS=$as_save_IFS
6944 test -z "$as_dir" && as_dir=.
6945 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006946 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 +00006947 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949 break 2
6950 fi
6951done
6952done
6953IFS=$as_save_IFS
6954
6955 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6956 ;;
6957esac
6958fi
6959TAR=$ac_cv_path_TAR
6960if test -n "$TAR"; then
6961 { echo "$as_me:$LINENO: result: $TAR" >&5
6962echo "${ECHO_T}$TAR" >&6; }
6963else
6964 { echo "$as_me:$LINENO: result: no" >&5
6965echo "${ECHO_T}no" >&6; }
6966fi
6967
6968
6969# Extract the first word of "pwd", so it can be a program name with args.
6970set dummy pwd; ac_word=$2
6971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6973if test "${ac_cv_path_BINPWD+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6975else
6976 case $BINPWD in
6977 [\\/]* | ?:[\\/]*)
6978 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6979 ;;
6980 *)
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982for as_dir in $PATH
6983do
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006987 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 +00006988 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6991 fi
6992done
6993done
6994IFS=$as_save_IFS
6995
6996 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6997 ;;
6998esac
6999fi
7000BINPWD=$ac_cv_path_BINPWD
7001if test -n "$BINPWD"; then
7002 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7003echo "${ECHO_T}$BINPWD" >&6; }
7004else
7005 { echo "$as_me:$LINENO: result: no" >&5
7006echo "${ECHO_T}no" >&6; }
7007fi
7008
7009
7010
7011# Extract the first word of "Graphviz", so it can be a program name with args.
7012set dummy Graphviz; ac_word=$2
7013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018 case $GRAPHVIZ in
7019 [\\/]* | ?:[\\/]*)
7020 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7021 ;;
7022 *)
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024for as_dir in $PATH
7025do
7026 IFS=$as_save_IFS
7027 test -z "$as_dir" && as_dir=.
7028 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007029 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 +00007030 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 break 2
7033 fi
7034done
7035done
7036IFS=$as_save_IFS
7037
7038 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7039 ;;
7040esac
7041fi
7042GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7043if test -n "$GRAPHVIZ"; then
7044 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7045echo "${ECHO_T}$GRAPHVIZ" >&6; }
7046else
7047 { echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6; }
7049fi
7050
7051
7052if test "$GRAPHVIZ" != "echo Graphviz" ; then
7053
7054cat >>confdefs.h <<\_ACEOF
7055#define HAVE_GRAPHVIZ 1
7056_ACEOF
7057
Jeff Cohen28783c32007-01-12 18:22:38 +00007058 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007059 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7060 fi
7061
7062cat >>confdefs.h <<_ACEOF
7063#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7064_ACEOF
7065
7066fi
7067# Extract the first word of "dot", so it can be a program name with args.
7068set dummy dot; ac_word=$2
7069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7071if test "${ac_cv_path_DOT+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7073else
7074 case $DOT in
7075 [\\/]* | ?:[\\/]*)
7076 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7077 ;;
7078 *)
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007085 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 +00007086 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090done
7091done
7092IFS=$as_save_IFS
7093
7094 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7095 ;;
7096esac
7097fi
7098DOT=$ac_cv_path_DOT
7099if test -n "$DOT"; then
7100 { echo "$as_me:$LINENO: result: $DOT" >&5
7101echo "${ECHO_T}$DOT" >&6; }
7102else
7103 { echo "$as_me:$LINENO: result: no" >&5
7104echo "${ECHO_T}no" >&6; }
7105fi
7106
7107
7108if test "$DOT" != "echo dot" ; then
7109
7110cat >>confdefs.h <<\_ACEOF
7111#define HAVE_DOT 1
7112_ACEOF
7113
Jeff Cohen28783c32007-01-12 18:22:38 +00007114 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007115 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7116 fi
7117
7118cat >>confdefs.h <<_ACEOF
7119#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7120_ACEOF
7121
7122fi
7123for ac_prog in gv gsview32
7124do
7125 # Extract the first word of "$ac_prog", so it can be a program name with args.
7126set dummy $ac_prog; ac_word=$2
7127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7129if test "${ac_cv_path_GV+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132 case $GV in
7133 [\\/]* | ?:[\\/]*)
7134 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7135 ;;
7136 *)
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007144 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149done
7150IFS=$as_save_IFS
7151
7152 ;;
7153esac
7154fi
7155GV=$ac_cv_path_GV
7156if test -n "$GV"; then
7157 { echo "$as_me:$LINENO: result: $GV" >&5
7158echo "${ECHO_T}$GV" >&6; }
7159else
7160 { echo "$as_me:$LINENO: result: no" >&5
7161echo "${ECHO_T}no" >&6; }
7162fi
7163
7164
7165 test -n "$GV" && break
7166done
7167test -n "$GV" || GV="echo gv"
7168
7169if test "$GV" != "echo gv" ; then
7170
7171cat >>confdefs.h <<\_ACEOF
7172#define HAVE_GV 1
7173_ACEOF
7174
Jeff Cohen28783c32007-01-12 18:22:38 +00007175 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007176 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7177 fi
7178
7179cat >>confdefs.h <<_ACEOF
7180#define LLVM_PATH_GV "$GV${EXEEXT}"
7181_ACEOF
7182
7183fi
7184# Extract the first word of "dotty", so it can be a program name with args.
7185set dummy dotty; ac_word=$2
7186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7188if test "${ac_cv_path_DOTTY+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7190else
7191 case $DOTTY in
7192 [\\/]* | ?:[\\/]*)
7193 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7194 ;;
7195 *)
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007202 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 +00007203 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207done
7208done
7209IFS=$as_save_IFS
7210
7211 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7212 ;;
7213esac
7214fi
7215DOTTY=$ac_cv_path_DOTTY
7216if test -n "$DOTTY"; then
7217 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7218echo "${ECHO_T}$DOTTY" >&6; }
7219else
7220 { echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6; }
7222fi
7223
7224
7225if test "$DOTTY" != "echo dotty" ; then
7226
7227cat >>confdefs.h <<\_ACEOF
7228#define HAVE_DOTTY 1
7229_ACEOF
7230
Jeff Cohen28783c32007-01-12 18:22:38 +00007231 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007232 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7233 fi
7234
7235cat >>confdefs.h <<_ACEOF
7236#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7237_ACEOF
7238
7239fi
7240
7241
7242# Extract the first word of "perl", so it can be a program name with args.
7243set dummy perl; ac_word=$2
7244{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246if test "${ac_cv_path_PERL+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7248else
7249 case $PERL in
7250 [\\/]* | ?:[\\/]*)
7251 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7252 ;;
7253 *)
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257 IFS=$as_save_IFS
7258 test -z "$as_dir" && as_dir=.
7259 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007261 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 break 2
7264 fi
7265done
7266done
7267IFS=$as_save_IFS
7268
7269 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7270 ;;
7271esac
7272fi
7273PERL=$ac_cv_path_PERL
7274if test -n "$PERL"; then
7275 { echo "$as_me:$LINENO: result: $PERL" >&5
7276echo "${ECHO_T}$PERL" >&6; }
7277else
7278 { echo "$as_me:$LINENO: result: no" >&5
7279echo "${ECHO_T}no" >&6; }
7280fi
7281
7282
7283if test "$PERL" != "none"; then
7284 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7285echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7286 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7287 { echo "$as_me:$LINENO: result: yes" >&5
7288echo "${ECHO_T}yes" >&6; }
7289 else
7290 PERL=none
7291 { echo "$as_me:$LINENO: result: not found" >&5
7292echo "${ECHO_T}not found" >&6; }
7293 fi
7294fi
7295
7296
7297if test x"$PERL" = xnone; then
7298 HAVE_PERL=0
7299
Reid Spencer59807fa2007-05-17 18:11:03 +00007300 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7301echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7302 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007303else
7304 HAVE_PERL=1
7305
7306fi
7307
7308# Find a good install program. We prefer a C program (faster),
7309# so one script is as good as another. But avoid the broken or
7310# incompatible versions:
7311# SysV /etc/install, /usr/sbin/install
7312# SunOS /usr/etc/install
7313# IRIX /sbin/install
7314# AIX /bin/install
7315# AmigaOS /C/install, which installs bootblocks on floppy discs
7316# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7317# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7318# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7319# OS/2's system install, which has a completely different semantic
7320# ./install, which can be erroneously created by make from ./install.sh.
7321{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7322echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7323if test -z "$INSTALL"; then
7324if test "${ac_cv_path_install+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328for as_dir in $PATH
7329do
7330 IFS=$as_save_IFS
7331 test -z "$as_dir" && as_dir=.
7332 # Account for people who put trailing slashes in PATH elements.
7333case $as_dir/ in
7334 ./ | .// | /cC/* | \
7335 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7336 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7337 /usr/ucb/* ) ;;
7338 *)
7339 # OSF1 and SCO ODT 3.0 have their own names for install.
7340 # Don't use installbsd from OSF since it installs stuff as root
7341 # by default.
7342 for ac_prog in ginstall scoinst install; do
7343 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007344 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 +00007345 if test $ac_prog = install &&
7346 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7347 # AIX install. It has an incompatible calling convention.
7348 :
7349 elif test $ac_prog = install &&
7350 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7351 # program-specific install script used by HP pwplus--don't use.
7352 :
7353 else
7354 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7355 break 3
7356 fi
7357 fi
7358 done
7359 done
7360 ;;
7361esac
7362done
7363IFS=$as_save_IFS
7364
7365
7366fi
7367 if test "${ac_cv_path_install+set}" = set; then
7368 INSTALL=$ac_cv_path_install
7369 else
7370 # As a last resort, use the slow shell script. Don't cache a
7371 # value for INSTALL within a source directory, because that will
7372 # break other packages using the cache if that directory is
7373 # removed, or if the value is a relative name.
7374 INSTALL=$ac_install_sh
7375 fi
7376fi
7377{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7378echo "${ECHO_T}$INSTALL" >&6; }
7379
7380# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7381# It thinks the first close brace ends the variable substitution.
7382test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7383
7384test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7385
7386test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7387
7388
7389# Extract the first word of "bzip2", so it can be a program name with args.
7390set dummy bzip2; ac_word=$2
7391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7393if test "${ac_cv_path_BZIP2+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7395else
7396 case $BZIP2 in
7397 [\\/]* | ?:[\\/]*)
7398 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7399 ;;
7400 *)
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402for as_dir in $PATH
7403do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007408 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412done
7413done
7414IFS=$as_save_IFS
7415
Reid Spencera773bd52006-08-04 18:18:08 +00007416 ;;
7417esac
7418fi
7419BZIP2=$ac_cv_path_BZIP2
7420if test -n "$BZIP2"; then
7421 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7422echo "${ECHO_T}$BZIP2" >&6; }
7423else
7424 { echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6; }
7426fi
7427
7428
7429# Extract the first word of "doxygen", so it can be a program name with args.
7430set dummy doxygen; ac_word=$2
7431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7433if test "${ac_cv_path_DOXYGEN+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435else
7436 case $DOXYGEN in
7437 [\\/]* | ?:[\\/]*)
7438 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7439 ;;
7440 *)
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007447 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 +00007448 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452done
7453done
7454IFS=$as_save_IFS
7455
Reid Spencera773bd52006-08-04 18:18:08 +00007456 ;;
7457esac
7458fi
7459DOXYGEN=$ac_cv_path_DOXYGEN
7460if test -n "$DOXYGEN"; then
7461 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7462echo "${ECHO_T}$DOXYGEN" >&6; }
7463else
7464 { echo "$as_me:$LINENO: result: no" >&5
7465echo "${ECHO_T}no" >&6; }
7466fi
7467
7468
Reid Spencera773bd52006-08-04 18:18:08 +00007469# Extract the first word of "groff", so it can be a program name with args.
7470set dummy groff; ac_word=$2
7471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7473if test "${ac_cv_path_GROFF+set}" = set; then
7474 echo $ECHO_N "(cached) $ECHO_C" >&6
7475else
7476 case $GROFF in
7477 [\\/]* | ?:[\\/]*)
7478 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7479 ;;
7480 *)
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482for as_dir in $PATH
7483do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007487 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 +00007488 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492done
7493done
7494IFS=$as_save_IFS
7495
Reid Spencera773bd52006-08-04 18:18:08 +00007496 ;;
7497esac
7498fi
7499GROFF=$ac_cv_path_GROFF
7500if test -n "$GROFF"; then
7501 { echo "$as_me:$LINENO: result: $GROFF" >&5
7502echo "${ECHO_T}$GROFF" >&6; }
7503else
7504 { echo "$as_me:$LINENO: result: no" >&5
7505echo "${ECHO_T}no" >&6; }
7506fi
7507
7508
7509# Extract the first word of "gzip", so it can be a program name with args.
7510set dummy gzip; ac_word=$2
7511{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7513if test "${ac_cv_path_GZIP+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7515else
7516 case $GZIP in
7517 [\\/]* | ?:[\\/]*)
7518 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7519 ;;
7520 *)
7521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522for as_dir in $PATH
7523do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
7526 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007527 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 +00007528 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 break 2
7531 fi
7532done
7533done
7534IFS=$as_save_IFS
7535
Reid Spencera773bd52006-08-04 18:18:08 +00007536 ;;
7537esac
7538fi
7539GZIP=$ac_cv_path_GZIP
7540if test -n "$GZIP"; then
7541 { echo "$as_me:$LINENO: result: $GZIP" >&5
7542echo "${ECHO_T}$GZIP" >&6; }
7543else
7544 { echo "$as_me:$LINENO: result: no" >&5
7545echo "${ECHO_T}no" >&6; }
7546fi
7547
7548
7549# Extract the first word of "pod2html", so it can be a program name with args.
7550set dummy pod2html; ac_word=$2
7551{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7553if test "${ac_cv_path_POD2HTML+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555else
7556 case $POD2HTML in
7557 [\\/]* | ?:[\\/]*)
7558 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7559 ;;
7560 *)
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564 IFS=$as_save_IFS
7565 test -z "$as_dir" && as_dir=.
7566 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007567 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 +00007568 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 break 2
7571 fi
7572done
7573done
7574IFS=$as_save_IFS
7575
Reid Spencera773bd52006-08-04 18:18:08 +00007576 ;;
7577esac
7578fi
7579POD2HTML=$ac_cv_path_POD2HTML
7580if test -n "$POD2HTML"; then
7581 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7582echo "${ECHO_T}$POD2HTML" >&6; }
7583else
7584 { echo "$as_me:$LINENO: result: no" >&5
7585echo "${ECHO_T}no" >&6; }
7586fi
7587
7588
7589# Extract the first word of "pod2man", so it can be a program name with args.
7590set dummy pod2man; ac_word=$2
7591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7593if test "${ac_cv_path_POD2MAN+set}" = set; then
7594 echo $ECHO_N "(cached) $ECHO_C" >&6
7595else
7596 case $POD2MAN in
7597 [\\/]* | ?:[\\/]*)
7598 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7599 ;;
7600 *)
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007607 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 +00007608 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612done
7613done
7614IFS=$as_save_IFS
7615
Reid Spencera773bd52006-08-04 18:18:08 +00007616 ;;
7617esac
7618fi
7619POD2MAN=$ac_cv_path_POD2MAN
7620if test -n "$POD2MAN"; then
7621 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7622echo "${ECHO_T}$POD2MAN" >&6; }
7623else
7624 { echo "$as_me:$LINENO: result: no" >&5
7625echo "${ECHO_T}no" >&6; }
7626fi
7627
7628
7629# Extract the first word of "runtest", so it can be a program name with args.
7630set dummy runtest; ac_word=$2
7631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7633if test "${ac_cv_path_RUNTEST+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636 case $RUNTEST in
7637 [\\/]* | ?:[\\/]*)
7638 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7639 ;;
7640 *)
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
7646 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007647 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 +00007648 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 break 2
7651 fi
7652done
7653done
7654IFS=$as_save_IFS
7655
Reid Spencera773bd52006-08-04 18:18:08 +00007656 ;;
7657esac
7658fi
7659RUNTEST=$ac_cv_path_RUNTEST
7660if test -n "$RUNTEST"; then
7661 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7662echo "${ECHO_T}$RUNTEST" >&6; }
7663else
7664 { echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6; }
7666fi
7667
7668
7669
7670no_itcl=true
7671{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7672echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7673
7674# Check whether --with-tclinclude was given.
7675if test "${with_tclinclude+set}" = set; then
7676 withval=$with_tclinclude; with_tclinclude=${withval}
7677else
7678 with_tclinclude=''
7679fi
7680
7681if test "${ac_cv_path_tclsh+set}" = set; then
7682 echo $ECHO_N "(cached) $ECHO_C" >&6
7683else
7684
7685if test x"${with_tclinclude}" != x ; then
7686 if test -f ${with_tclinclude}/tclsh ; then
7687 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7688 elif test -f ${with_tclinclude}/src/tclsh ; then
7689 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7690 else
7691 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7692echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7693 { (exit 1); exit 1; }; }
7694 fi
7695fi
7696
7697if test x"${ac_cv_path_tclsh}" = x ; then
7698 { echo "$as_me:$LINENO: result: none" >&5
7699echo "${ECHO_T}none" >&6; }
7700 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
7701do
7702 # Extract the first word of "$ac_prog", so it can be a program name with args.
7703set dummy $ac_prog; ac_word=$2
7704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7706if test "${ac_cv_path_TCLSH+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7708else
7709 case $TCLSH in
7710 [\\/]* | ?:[\\/]*)
7711 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7712 ;;
7713 *)
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715for as_dir in $PATH
7716do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007720 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 +00007721 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725done
7726done
7727IFS=$as_save_IFS
7728
7729 ;;
7730esac
7731fi
7732TCLSH=$ac_cv_path_TCLSH
7733if test -n "$TCLSH"; then
7734 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7735echo "${ECHO_T}$TCLSH" >&6; }
7736else
7737 { echo "$as_me:$LINENO: result: no" >&5
7738echo "${ECHO_T}no" >&6; }
7739fi
7740
7741
7742 test -n "$TCLSH" && break
7743done
7744
7745 if test x"${TCLSH}" = x ; then
7746 ac_cv_path_tclsh='';
7747 else
7748 ac_cv_path_tclsh="${TCLSH}";
7749 fi
7750else
7751 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7752echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7753 TCLSH="${ac_cv_path_tclsh}"
7754
7755fi
7756
7757fi
7758
7759# Extract the first word of "zip", so it can be a program name with args.
7760set dummy zip; ac_word=$2
7761{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7763if test "${ac_cv_path_ZIP+set}" = set; then
7764 echo $ECHO_N "(cached) $ECHO_C" >&6
7765else
7766 case $ZIP in
7767 [\\/]* | ?:[\\/]*)
7768 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7769 ;;
7770 *)
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007777 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 +00007778 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7781 fi
7782done
7783done
7784IFS=$as_save_IFS
7785
Reid Spencera773bd52006-08-04 18:18:08 +00007786 ;;
7787esac
7788fi
7789ZIP=$ac_cv_path_ZIP
7790if test -n "$ZIP"; then
7791 { echo "$as_me:$LINENO: result: $ZIP" >&5
7792echo "${ECHO_T}$ZIP" >&6; }
7793else
7794 { echo "$as_me:$LINENO: result: no" >&5
7795echo "${ECHO_T}no" >&6; }
7796fi
7797
7798
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007799for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007800do
7801 # Extract the first word of "$ac_prog", so it can be a program name with args.
7802set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007803{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7805if test "${ac_cv_path_OCAMLC+set}" = set; then
7806 echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808 case $OCAMLC in
7809 [\\/]* | ?:[\\/]*)
7810 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7811 ;;
7812 *)
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814for as_dir in $PATH
7815do
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007819 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 +00007820 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 break 2
7823 fi
7824done
7825done
7826IFS=$as_save_IFS
7827
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007828 ;;
7829esac
7830fi
7831OCAMLC=$ac_cv_path_OCAMLC
7832if test -n "$OCAMLC"; then
7833 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7834echo "${ECHO_T}$OCAMLC" >&6; }
7835else
7836 { echo "$as_me:$LINENO: result: no" >&5
7837echo "${ECHO_T}no" >&6; }
7838fi
7839
7840
Gordon Henriksene7072162008-03-07 18:20:01 +00007841 test -n "$OCAMLC" && break
7842done
7843
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007844for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007845do
7846 # Extract the first word of "$ac_prog", so it can be a program name with args.
7847set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7850if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852else
7853 case $OCAMLOPT in
7854 [\\/]* | ?:[\\/]*)
7855 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7856 ;;
7857 *)
7858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859for as_dir in $PATH
7860do
7861 IFS=$as_save_IFS
7862 test -z "$as_dir" && as_dir=.
7863 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007864 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 +00007865 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 break 2
7868 fi
7869done
7870done
7871IFS=$as_save_IFS
7872
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007873 ;;
7874esac
7875fi
7876OCAMLOPT=$ac_cv_path_OCAMLOPT
7877if test -n "$OCAMLOPT"; then
7878 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7879echo "${ECHO_T}$OCAMLOPT" >&6; }
7880else
7881 { echo "$as_me:$LINENO: result: no" >&5
7882echo "${ECHO_T}no" >&6; }
7883fi
7884
7885
Gordon Henriksene7072162008-03-07 18:20:01 +00007886 test -n "$OCAMLOPT" && break
7887done
7888
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007889for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007890do
7891 # Extract the first word of "$ac_prog", so it can be a program name with args.
7892set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007893{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7895if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7896 echo $ECHO_N "(cached) $ECHO_C" >&6
7897else
7898 case $OCAMLDEP in
7899 [\\/]* | ?:[\\/]*)
7900 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7901 ;;
7902 *)
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904for as_dir in $PATH
7905do
7906 IFS=$as_save_IFS
7907 test -z "$as_dir" && as_dir=.
7908 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007909 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 +00007910 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7912 break 2
7913 fi
7914done
7915done
7916IFS=$as_save_IFS
7917
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007918 ;;
7919esac
7920fi
7921OCAMLDEP=$ac_cv_path_OCAMLDEP
7922if test -n "$OCAMLDEP"; then
7923 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7924echo "${ECHO_T}$OCAMLDEP" >&6; }
7925else
7926 { echo "$as_me:$LINENO: result: no" >&5
7927echo "${ECHO_T}no" >&6; }
7928fi
7929
7930
Gordon Henriksene7072162008-03-07 18:20:01 +00007931 test -n "$OCAMLDEP" && break
7932done
7933
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007934for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007935do
7936 # Extract the first word of "$ac_prog", so it can be a program name with args.
7937set dummy $ac_prog; ac_word=$2
7938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7940if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7942else
7943 case $OCAMLDOC in
7944 [\\/]* | ?:[\\/]*)
7945 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7946 ;;
7947 *)
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949for as_dir in $PATH
7950do
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007954 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 +00007955 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 break 2
7958 fi
7959done
7960done
7961IFS=$as_save_IFS
7962
7963 ;;
7964esac
7965fi
7966OCAMLDOC=$ac_cv_path_OCAMLDOC
7967if test -n "$OCAMLDOC"; then
7968 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7969echo "${ECHO_T}$OCAMLDOC" >&6; }
7970else
7971 { echo "$as_me:$LINENO: result: no" >&5
7972echo "${ECHO_T}no" >&6; }
7973fi
7974
7975
7976 test -n "$OCAMLDOC" && break
7977done
7978
Torok Edwincc499a42008-10-22 09:56:27 +00007979for ac_prog in gas as
7980do
7981 # Extract the first word of "$ac_prog", so it can be a program name with args.
7982set dummy $ac_prog; ac_word=$2
7983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7985if test "${ac_cv_path_GAS+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7987else
7988 case $GAS in
7989 [\\/]* | ?:[\\/]*)
7990 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7991 ;;
7992 *)
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994for as_dir in $PATH
7995do
7996 IFS=$as_save_IFS
7997 test -z "$as_dir" && as_dir=.
7998 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007999 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 +00008000 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8002 break 2
8003 fi
8004done
8005done
8006IFS=$as_save_IFS
8007
8008 ;;
8009esac
8010fi
8011GAS=$ac_cv_path_GAS
8012if test -n "$GAS"; then
8013 { echo "$as_me:$LINENO: result: $GAS" >&5
8014echo "${ECHO_T}$GAS" >&6; }
8015else
8016 { echo "$as_me:$LINENO: result: no" >&5
8017echo "${ECHO_T}no" >&6; }
8018fi
8019
8020
8021 test -n "$GAS" && break
8022done
8023
Reid Spencera773bd52006-08-04 18:18:08 +00008024
8025{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8026echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8027if test "${llvm_cv_link_use_r+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029else
8030 ac_ext=c
8031ac_cpp='$CPP $CPPFLAGS'
8032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8034ac_compiler_gnu=$ac_cv_c_compiler_gnu
8035
8036 oldcflags="$CFLAGS"
8037 CFLAGS="$CFLAGS -Wl,-R."
8038 cat >conftest.$ac_ext <<_ACEOF
8039/* confdefs.h. */
8040_ACEOF
8041cat confdefs.h >>conftest.$ac_ext
8042cat >>conftest.$ac_ext <<_ACEOF
8043/* end confdefs.h. */
8044
8045int
8046main ()
8047{
8048int main() { return 0; }
8049 ;
8050 return 0;
8051}
8052_ACEOF
8053rm -f conftest.$ac_objext conftest$ac_exeext
8054if { (ac_try="$ac_link"
8055case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8058esac
8059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_link") 2>conftest.er1
8061 ac_status=$?
8062 grep -v '^ *+' conftest.er1 >conftest.err
8063 rm -f conftest.er1
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008066 (exit $ac_status); } &&
8067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8068 { (case "(($ac_try" in
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8071esac
8072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_try") 2>&5
8074 ac_status=$?
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }; } &&
8077 { ac_try='test -s conftest$ac_exeext'
8078 { (case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8081esac
8082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083 (eval "$ac_try") 2>&5
8084 ac_status=$?
8085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008087 llvm_cv_link_use_r=yes
8088else
8089 echo "$as_me: failed program was:" >&5
8090sed 's/^/| /' conftest.$ac_ext >&5
8091
8092 llvm_cv_link_use_r=no
8093fi
8094
Bill Wendlingebcceee2009-04-18 11:20:33 +00008095rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008096 conftest$ac_exeext conftest.$ac_ext
8097 CFLAGS="$oldcflags"
8098 ac_ext=c
8099ac_cpp='$CPP $CPPFLAGS'
8100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102ac_compiler_gnu=$ac_cv_c_compiler_gnu
8103
8104
8105fi
8106{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8107echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8108if test "$llvm_cv_link_use_r" = yes ; then
8109
8110cat >>confdefs.h <<\_ACEOF
8111#define HAVE_LINK_R 1
8112_ACEOF
8113
8114 fi
8115
8116
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008117{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8118echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8119if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121else
8122 ac_ext=c
8123ac_cpp='$CPP $CPPFLAGS'
8124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8126ac_compiler_gnu=$ac_cv_c_compiler_gnu
8127
8128 oldcflags="$CFLAGS"
8129 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8130 cat >conftest.$ac_ext <<_ACEOF
8131/* confdefs.h. */
8132_ACEOF
8133cat confdefs.h >>conftest.$ac_ext
8134cat >>conftest.$ac_ext <<_ACEOF
8135/* end confdefs.h. */
8136
8137int
8138main ()
8139{
8140int main() { return 0; }
8141 ;
8142 return 0;
8143}
8144_ACEOF
8145rm -f conftest.$ac_objext conftest$ac_exeext
8146if { (ac_try="$ac_link"
8147case "(($ac_try" in
8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149 *) ac_try_echo=$ac_try;;
8150esac
8151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_link") 2>conftest.er1
8153 ac_status=$?
8154 grep -v '^ *+' conftest.er1 >conftest.err
8155 rm -f conftest.er1
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008158 (exit $ac_status); } &&
8159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8160 { (case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163esac
8164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_try") 2>&5
8166 ac_status=$?
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; } &&
8169 { ac_try='test -s conftest$ac_exeext'
8170 { (case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173esac
8174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_try") 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008179 llvm_cv_link_use_export_dynamic=yes
8180else
8181 echo "$as_me: failed program was:" >&5
8182sed 's/^/| /' conftest.$ac_ext >&5
8183
8184 llvm_cv_link_use_export_dynamic=no
8185fi
8186
Bill Wendlingebcceee2009-04-18 11:20:33 +00008187rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008188 conftest$ac_exeext conftest.$ac_ext
8189 CFLAGS="$oldcflags"
8190 ac_ext=c
8191ac_cpp='$CPP $CPPFLAGS'
8192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8194ac_compiler_gnu=$ac_cv_c_compiler_gnu
8195
8196
8197fi
8198{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8199echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8200if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8201
8202cat >>confdefs.h <<\_ACEOF
8203#define HAVE_LINK_EXPORT_DYNAMIC 1
8204_ACEOF
8205
8206 fi
8207
8208
Reid Spencera773bd52006-08-04 18:18:08 +00008209
8210
8211{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8212echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8213if test "${ac_cv_c_const+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8215else
8216 cat >conftest.$ac_ext <<_ACEOF
8217/* confdefs.h. */
8218_ACEOF
8219cat confdefs.h >>conftest.$ac_ext
8220cat >>conftest.$ac_ext <<_ACEOF
8221/* end confdefs.h. */
8222
8223int
8224main ()
8225{
8226/* FIXME: Include the comments suggested by Paul. */
8227#ifndef __cplusplus
8228 /* Ultrix mips cc rejects this. */
8229 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008230 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008231 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008232 char const *const *ccp;
8233 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008234 /* NEC SVR4.0.2 mips cc rejects this. */
8235 struct point {int x, y;};
8236 static struct point const zero = {0,0};
8237 /* AIX XL C 1.02.0.0 rejects this.
8238 It does not let you subtract one const X* pointer from another in
8239 an arm of an if-expression whose if-part is not a constant
8240 expression */
8241 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008242 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008243 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008244 ++ccp;
8245 p = (char**) ccp;
8246 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008247 { /* SCO 3.2v4 cc rejects this. */
8248 char *t;
8249 char const *s = 0 ? (char *) 0 : (char const *) 0;
8250
8251 *t++ = 0;
8252 if (s) return 0;
8253 }
8254 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8255 int x[] = {25, 17};
8256 const int *foo = &x[0];
8257 ++foo;
8258 }
8259 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8260 typedef const int *iptr;
8261 iptr p = 0;
8262 ++p;
8263 }
8264 { /* AIX XL C 1.02.0.0 rejects this saying
8265 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8266 struct s { int j; const int *ap[3]; };
8267 struct s *b; b->j = 5;
8268 }
8269 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8270 const int foo = 10;
8271 if (!foo) return 0;
8272 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008273 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008274#endif
8275
8276 ;
8277 return 0;
8278}
8279_ACEOF
8280rm -f conftest.$ac_objext
8281if { (ac_try="$ac_compile"
8282case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8285esac
8286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008293 (exit $ac_status); } &&
8294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295 { (case "(($ac_try" in
8296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297 *) ac_try_echo=$ac_try;;
8298esac
8299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300 (eval "$ac_try") 2>&5
8301 ac_status=$?
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; } &&
8304 { ac_try='test -s conftest.$ac_objext'
8305 { (case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
8309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_try") 2>&5
8311 ac_status=$?
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008314 ac_cv_c_const=yes
8315else
8316 echo "$as_me: failed program was:" >&5
8317sed 's/^/| /' conftest.$ac_ext >&5
8318
8319 ac_cv_c_const=no
8320fi
8321
8322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323fi
8324{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8325echo "${ECHO_T}$ac_cv_c_const" >&6; }
8326if test $ac_cv_c_const = no; then
8327
8328cat >>confdefs.h <<\_ACEOF
8329#define const
8330_ACEOF
8331
8332fi
8333
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008334
8335
8336
8337
8338
8339ac_header_dirent=no
8340for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8341 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008342{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8343echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346else
8347 cat >conftest.$ac_ext <<_ACEOF
8348/* confdefs.h. */
8349_ACEOF
8350cat confdefs.h >>conftest.$ac_ext
8351cat >>conftest.$ac_ext <<_ACEOF
8352/* end confdefs.h. */
8353#include <sys/types.h>
8354#include <$ac_hdr>
8355
8356int
8357main ()
8358{
8359if ((DIR *) 0)
8360return 0;
8361 ;
8362 return 0;
8363}
8364_ACEOF
8365rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008366if { (ac_try="$ac_compile"
8367case "(($ac_try" in
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8370esac
8371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008373 ac_status=$?
8374 grep -v '^ *+' conftest.er1 >conftest.err
8375 rm -f conftest.er1
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008378 (exit $ac_status); } &&
8379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8380 { (case "(($ac_try" in
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8383esac
8384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_try") 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; } &&
8389 { ac_try='test -s conftest.$ac_objext'
8390 { (case "(($ac_try" in
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8393esac
8394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_try") 2>&5
8396 ac_status=$?
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008399 eval "$as_ac_Header=yes"
8400else
8401 echo "$as_me: failed program was:" >&5
8402sed 's/^/| /' conftest.$ac_ext >&5
8403
Reid Spencera773bd52006-08-04 18:18:08 +00008404 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008405fi
Reid Spencera773bd52006-08-04 18:18:08 +00008406
8407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008408fi
Reid Spencera773bd52006-08-04 18:18:08 +00008409ac_res=`eval echo '${'$as_ac_Header'}'`
8410 { echo "$as_me:$LINENO: result: $ac_res" >&5
8411echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008412if test `eval echo '${'$as_ac_Header'}'` = yes; then
8413 cat >>confdefs.h <<_ACEOF
8414#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8415_ACEOF
8416
8417ac_header_dirent=$ac_hdr; break
8418fi
8419
8420done
8421# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8422if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008423 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8424echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008425if test "${ac_cv_search_opendir+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8427else
8428 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008429cat >conftest.$ac_ext <<_ACEOF
8430/* confdefs.h. */
8431_ACEOF
8432cat confdefs.h >>conftest.$ac_ext
8433cat >>conftest.$ac_ext <<_ACEOF
8434/* end confdefs.h. */
8435
Reid Spencera773bd52006-08-04 18:18:08 +00008436/* Override any GCC internal prototype to avoid an error.
8437 Use char because int might match the return type of a GCC
8438 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008439#ifdef __cplusplus
8440extern "C"
8441#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008442char opendir ();
8443int
8444main ()
8445{
Reid Spencera773bd52006-08-04 18:18:08 +00008446return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008447 ;
8448 return 0;
8449}
8450_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008451for ac_lib in '' dir; do
8452 if test -z "$ac_lib"; then
8453 ac_res="none required"
8454 else
8455 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008457 fi
8458 rm -f conftest.$ac_objext conftest$ac_exeext
8459if { (ac_try="$ac_link"
8460case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463esac
8464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008471 (exit $ac_status); } &&
8472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8473 { (case "(($ac_try" in
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8476esac
8477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_try") 2>&5
8479 ac_status=$?
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); }; } &&
8482 { ac_try='test -s conftest$ac_exeext'
8483 { (case "(($ac_try" in
8484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8485 *) ac_try_echo=$ac_try;;
8486esac
8487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8488 (eval "$ac_try") 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008492 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008493else
8494 echo "$as_me: failed program was:" >&5
8495sed 's/^/| /' conftest.$ac_ext >&5
8496
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008497
8498fi
8499
Bill Wendlingebcceee2009-04-18 11:20:33 +00008500rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008501 conftest$ac_exeext
8502 if test "${ac_cv_search_opendir+set}" = set; then
8503 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008504fi
John Criswell7a73b802003-06-30 21:59:07 +00008505done
Reid Spencera773bd52006-08-04 18:18:08 +00008506if test "${ac_cv_search_opendir+set}" = set; then
8507 :
8508else
8509 ac_cv_search_opendir=no
8510fi
8511rm conftest.$ac_ext
8512LIBS=$ac_func_search_save_LIBS
8513fi
8514{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8515echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8516ac_res=$ac_cv_search_opendir
8517if test "$ac_res" != no; then
8518 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008519
Reid Spencera773bd52006-08-04 18:18:08 +00008520fi
8521
8522else
8523 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8524echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8525if test "${ac_cv_search_opendir+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8527else
8528 ac_func_search_save_LIBS=$LIBS
8529cat >conftest.$ac_ext <<_ACEOF
8530/* confdefs.h. */
8531_ACEOF
8532cat confdefs.h >>conftest.$ac_ext
8533cat >>conftest.$ac_ext <<_ACEOF
8534/* end confdefs.h. */
8535
8536/* Override any GCC internal prototype to avoid an error.
8537 Use char because int might match the return type of a GCC
8538 builtin and then its argument prototype would still apply. */
8539#ifdef __cplusplus
8540extern "C"
8541#endif
8542char opendir ();
8543int
8544main ()
8545{
8546return opendir ();
8547 ;
8548 return 0;
8549}
8550_ACEOF
8551for ac_lib in '' x; do
8552 if test -z "$ac_lib"; then
8553 ac_res="none required"
8554 else
8555 ac_res=-l$ac_lib
8556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8557 fi
8558 rm -f conftest.$ac_objext conftest$ac_exeext
8559if { (ac_try="$ac_link"
8560case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8563esac
8564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8565 (eval "$ac_link") 2>conftest.er1
8566 ac_status=$?
8567 grep -v '^ *+' conftest.er1 >conftest.err
8568 rm -f conftest.er1
8569 cat conftest.err >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008571 (exit $ac_status); } &&
8572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8573 { (case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576esac
8577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_try") 2>&5
8579 ac_status=$?
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); }; } &&
8582 { ac_try='test -s conftest$ac_exeext'
8583 { (case "(($ac_try" in
8584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8585 *) ac_try_echo=$ac_try;;
8586esac
8587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8588 (eval "$ac_try") 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008592 ac_cv_search_opendir=$ac_res
8593else
8594 echo "$as_me: failed program was:" >&5
8595sed 's/^/| /' conftest.$ac_ext >&5
8596
8597
8598fi
8599
Bill Wendlingebcceee2009-04-18 11:20:33 +00008600rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008601 conftest$ac_exeext
8602 if test "${ac_cv_search_opendir+set}" = set; then
8603 break
8604fi
8605done
8606if test "${ac_cv_search_opendir+set}" = set; then
8607 :
8608else
8609 ac_cv_search_opendir=no
8610fi
8611rm conftest.$ac_ext
8612LIBS=$ac_func_search_save_LIBS
8613fi
8614{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8615echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8616ac_res=$ac_cv_search_opendir
8617if test "$ac_res" != no; then
8618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8619
8620fi
8621
8622fi
John Criswell7a73b802003-06-30 21:59:07 +00008623
8624
8625for ac_header in dlfcn.h
8626do
8627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008632 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008633fi
Reid Spencera773bd52006-08-04 18:18:08 +00008634ac_res=`eval echo '${'$as_ac_Header'}'`
8635 { echo "$as_me:$LINENO: result: $ac_res" >&5
8636echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008637else
Brian Gaeke0a621332004-09-08 20:38:05 +00008638 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008639{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8640echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008641cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008642/* confdefs.h. */
8643_ACEOF
8644cat confdefs.h >>conftest.$ac_ext
8645cat >>conftest.$ac_ext <<_ACEOF
8646/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008647$ac_includes_default
8648#include <$ac_header>
8649_ACEOF
8650rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008651if { (ac_try="$ac_compile"
8652case "(($ac_try" in
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8655esac
8656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008658 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008659 grep -v '^ *+' conftest.er1 >conftest.err
8660 rm -f conftest.er1
8661 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008663 (exit $ac_status); } &&
8664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8665 { (case "(($ac_try" in
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8668esac
8669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8670 (eval "$ac_try") 2>&5
8671 ac_status=$?
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); }; } &&
8674 { ac_try='test -s conftest.$ac_objext'
8675 { (case "(($ac_try" in
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8678esac
8679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680 (eval "$ac_try") 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008684 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008685else
8686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008687sed 's/^/| /' conftest.$ac_ext >&5
8688
Reid Spencera773bd52006-08-04 18:18:08 +00008689 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008690fi
Reid Spencera773bd52006-08-04 18:18:08 +00008691
8692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8693{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8694echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008695
8696# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008697{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8698echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008699cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008700/* confdefs.h. */
8701_ACEOF
8702cat confdefs.h >>conftest.$ac_ext
8703cat >>conftest.$ac_ext <<_ACEOF
8704/* end confdefs.h. */
8705#include <$ac_header>
8706_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008707if { (ac_try="$ac_cpp conftest.$ac_ext"
8708case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711esac
8712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008714 ac_status=$?
8715 grep -v '^ *+' conftest.er1 >conftest.err
8716 rm -f conftest.er1
8717 cat conftest.err >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008719 (exit $ac_status); } >/dev/null; then
8720 if test -s conftest.err; then
8721 ac_cpp_err=$ac_c_preproc_warn_flag
8722 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8723 else
8724 ac_cpp_err=
8725 fi
8726else
8727 ac_cpp_err=yes
8728fi
8729if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008730 ac_header_preproc=yes
8731else
8732 echo "$as_me: failed program was:" >&5
8733sed 's/^/| /' conftest.$ac_ext >&5
8734
8735 ac_header_preproc=no
8736fi
Reid Spencera773bd52006-08-04 18:18:08 +00008737
Brian Gaeke0a621332004-09-08 20:38:05 +00008738rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008739{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8740echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008741
8742# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8744 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8746echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8748echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8749 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008750 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008751 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8753echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8755echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8757echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8759echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8761echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8763echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008764 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008765## ----------------------------------- ##
8766## Report this to llvmbugs@cs.uiuc.edu ##
8767## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008768_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008769 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008770 ;;
8771esac
Reid Spencera773bd52006-08-04 18:18:08 +00008772{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008775 echo $ECHO_N "(cached) $ECHO_C" >&6
8776else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008777 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008778fi
Reid Spencera773bd52006-08-04 18:18:08 +00008779ac_res=`eval echo '${'$as_ac_Header'}'`
8780 { echo "$as_me:$LINENO: result: $ac_res" >&5
8781echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008782
8783fi
John Criswell7a73b802003-06-30 21:59:07 +00008784if test `eval echo '${'$as_ac_Header'}'` = yes; then
8785 cat >>confdefs.h <<_ACEOF
8786#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8787_ACEOF
8788
8789fi
8790
8791done
8792
Reid Spencera773bd52006-08-04 18:18:08 +00008793# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008794if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008795 enableval=$enable_ltdl_install;
8796fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008797
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008798
Bill Wendlingebcceee2009-04-18 11:20:33 +00008799
8800
8801if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008802 INSTALL_LTDL_TRUE=
8803 INSTALL_LTDL_FALSE='#'
8804else
8805 INSTALL_LTDL_TRUE='#'
8806 INSTALL_LTDL_FALSE=
8807fi
8808
Bill Wendlingebcceee2009-04-18 11:20:33 +00008809
8810
8811if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008812 CONVENIENCE_LTDL_TRUE=
8813 CONVENIENCE_LTDL_FALSE='#'
8814else
8815 CONVENIENCE_LTDL_TRUE='#'
8816 CONVENIENCE_LTDL_FALSE=
8817fi
8818
8819
Reid Spencera773bd52006-08-04 18:18:08 +00008820{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8821echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008822library_names_spec=
8823libname_spec='lib$name'
8824soname_spec=
8825shrext_cmds=".so"
8826postinstall_cmds=
8827postuninstall_cmds=
8828finish_cmds=
8829finish_eval=
8830shlibpath_var=
8831shlibpath_overrides_runpath=unknown
8832version_type=none
8833dynamic_linker="$host_os ld.so"
8834sys_lib_dlsearch_path_spec="/lib /usr/lib"
8835if test "$GCC" = yes; then
8836 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8837 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8838 # if the path contains ";" then we assume it to be the separator
8839 # otherwise default to the standard path separator (i.e. ":") - it is
8840 # assumed that no part of a normal pathname contains ";" but that should
8841 # okay in the real world where ";" in dirpaths is itself problematic.
8842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8843 else
8844 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8845 fi
8846else
8847 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8848fi
8849need_lib_prefix=unknown
8850hardcode_into_libs=no
8851
8852# when you set need_version to no, make sure it does not cause -set_version
8853# flags to be left without arguments
8854need_version=unknown
8855
8856case $host_os in
8857aix3*)
8858 version_type=linux
8859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8860 shlibpath_var=LIBPATH
8861
8862 # AIX 3 has no versioning support, so we append a major version to the name.
8863 soname_spec='${libname}${release}${shared_ext}$major'
8864 ;;
8865
8866aix4* | aix5*)
8867 version_type=linux
8868 need_lib_prefix=no
8869 need_version=no
8870 hardcode_into_libs=yes
8871 if test "$host_cpu" = ia64; then
8872 # AIX 5 supports IA64
8873 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8874 shlibpath_var=LD_LIBRARY_PATH
8875 else
8876 # With GCC up to 2.95.x, collect2 would create an import file
8877 # for dependence libraries. The import file would start with
8878 # the line `#! .'. This would cause the generated library to
8879 # depend on `.', always an invalid library. This was fixed in
8880 # development snapshots of GCC prior to 3.0.
8881 case $host_os in
8882 aix4 | aix4.[01] | aix4.[01].*)
8883 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8884 echo ' yes '
8885 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8886 :
8887 else
8888 can_build_shared=no
8889 fi
8890 ;;
8891 esac
8892 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8893 # soname into executable. Probably we can add versioning support to
8894 # collect2, so additional links can be useful in future.
8895 if test "$aix_use_runtimelinking" = yes; then
8896 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8897 # instead of lib<name>.a to let people know that these are not
8898 # typical AIX shared libraries.
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900 else
8901 # We preserve .a as extension for shared libraries through AIX4.2
8902 # and later when we are not doing run time linking.
8903 library_names_spec='${libname}${release}.a $libname.a'
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 fi
8906 shlibpath_var=LIBPATH
8907 fi
8908 ;;
8909
8910amigaos*)
8911 library_names_spec='$libname.ixlibrary $libname.a'
8912 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8913 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'
8914 ;;
8915
8916beos*)
8917 library_names_spec='${libname}${shared_ext}'
8918 dynamic_linker="$host_os ld.so"
8919 shlibpath_var=LIBRARY_PATH
8920 ;;
8921
8922bsdi[45]*)
8923 version_type=linux
8924 need_version=no
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8928 shlibpath_var=LD_LIBRARY_PATH
8929 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8930 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8931 # the default ld.so.conf also contains /usr/contrib/lib and
8932 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8933 # libtool to hard-code these into programs
8934 ;;
8935
8936cygwin* | mingw* | pw32*)
8937 version_type=windows
8938 shrext_cmds=".dll"
8939 need_version=no
8940 need_lib_prefix=no
8941
8942 case $GCC,$host_os in
8943 yes,cygwin* | yes,mingw* | yes,pw32*)
8944 library_names_spec='$libname.dll.a'
8945 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8946 postinstall_cmds='base_file=`basename \${file}`~
8947 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8948 dldir=$destdir/`dirname \$dlpath`~
8949 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008950 $install_prog $dir/$dlname \$dldir/$dlname~
8951 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8953 dlpath=$dir/\$dldll~
8954 $rm \$dlpath'
8955 shlibpath_overrides_runpath=yes
8956
8957 case $host_os in
8958 cygwin*)
8959 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8960 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8961 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8962 ;;
8963 mingw*)
8964 # MinGW DLLs use traditional 'lib' prefix
8965 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8966 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8967 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8968 # It is most probably a Windows format PATH printed by
8969 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8970 # path with ; separators, and with drive letters. We can handle the
8971 # drive letters (cygwin fileutils understands them), so leave them,
8972 # especially as we might pass files found there to a mingw objdump,
8973 # which wouldn't understand a cygwinified path. Ahh.
8974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8975 else
8976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8977 fi
8978 ;;
8979 pw32*)
8980 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008981 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 +00008982 ;;
8983 esac
8984 ;;
8985
8986 *)
8987 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8988 ;;
8989 esac
8990 dynamic_linker='Win32 ld.exe'
8991 # FIXME: first we should search . and the directory the executable is in
8992 shlibpath_var=PATH
8993 ;;
8994
8995darwin* | rhapsody*)
8996 dynamic_linker="$host_os dyld"
8997 version_type=darwin
8998 need_lib_prefix=no
8999 need_version=no
9000 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9001 soname_spec='${libname}${release}${major}$shared_ext'
9002 shlibpath_overrides_runpath=yes
9003 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009004 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009005 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9006 if test "$GCC" = yes; then
9007 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"`
9008 else
9009 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9010 fi
9011 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9012 ;;
9013
9014dgux*)
9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 ;;
9022
9023freebsd1*)
9024 dynamic_linker=no
9025 ;;
9026
9027kfreebsd*-gnu)
9028 version_type=linux
9029 need_lib_prefix=no
9030 need_version=no
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 shlibpath_var=LD_LIBRARY_PATH
9034 shlibpath_overrides_runpath=no
9035 hardcode_into_libs=yes
9036 dynamic_linker='GNU ld.so'
9037 ;;
9038
Reid Spencera773bd52006-08-04 18:18:08 +00009039freebsd* | dragonfly*)
9040 # DragonFly does not have aout. When/if they implement a new
9041 # versioning mechanism, adjust this.
9042 if test -x /usr/bin/objformat; then
9043 objformat=`/usr/bin/objformat`
9044 else
9045 case $host_os in
9046 freebsd[123]*) objformat=aout ;;
9047 *) objformat=elf ;;
9048 esac
9049 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009050 version_type=freebsd-$objformat
9051 case $version_type in
9052 freebsd-elf*)
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9054 need_version=no
9055 need_lib_prefix=no
9056 ;;
9057 freebsd-*)
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9059 need_version=yes
9060 ;;
9061 esac
9062 shlibpath_var=LD_LIBRARY_PATH
9063 case $host_os in
9064 freebsd2*)
9065 shlibpath_overrides_runpath=yes
9066 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009067 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009068 shlibpath_overrides_runpath=yes
9069 hardcode_into_libs=yes
9070 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009071 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9072 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009073 shlibpath_overrides_runpath=no
9074 hardcode_into_libs=yes
9075 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009076 freebsd*) # from 4.6 on
9077 shlibpath_overrides_runpath=yes
9078 hardcode_into_libs=yes
9079 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009080 esac
9081 ;;
9082
9083gnu*)
9084 version_type=linux
9085 need_lib_prefix=no
9086 need_version=no
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9088 soname_spec='${libname}${release}${shared_ext}$major'
9089 shlibpath_var=LD_LIBRARY_PATH
9090 hardcode_into_libs=yes
9091 ;;
9092
9093hpux9* | hpux10* | hpux11*)
9094 # Give a soname corresponding to the major version so that dld.sl refuses to
9095 # link against other versions.
9096 version_type=sunos
9097 need_lib_prefix=no
9098 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009099 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009100 ia64*)
9101 shrext_cmds='.so'
9102 hardcode_into_libs=yes
9103 dynamic_linker="$host_os dld.so"
9104 shlibpath_var=LD_LIBRARY_PATH
9105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107 soname_spec='${libname}${release}${shared_ext}$major'
9108 if test "X$HPUX_IA64_MODE" = X32; then
9109 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9110 else
9111 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9112 fi
9113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9114 ;;
9115 hppa*64*)
9116 shrext_cmds='.sl'
9117 hardcode_into_libs=yes
9118 dynamic_linker="$host_os dld.sl"
9119 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9120 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9125 ;;
9126 *)
9127 shrext_cmds='.sl'
9128 dynamic_linker="$host_os dld.sl"
9129 shlibpath_var=SHLIB_PATH
9130 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 ;;
9134 esac
9135 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9136 postinstall_cmds='chmod 555 $lib'
9137 ;;
9138
Reid Spencera773bd52006-08-04 18:18:08 +00009139interix3*)
9140 version_type=linux
9141 need_lib_prefix=no
9142 need_version=no
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9144 soname_spec='${libname}${release}${shared_ext}$major'
9145 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 shlibpath_overrides_runpath=no
9148 hardcode_into_libs=yes
9149 ;;
9150
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009151irix5* | irix6* | nonstopux*)
9152 case $host_os in
9153 nonstopux*) version_type=nonstopux ;;
9154 *)
9155 if test "$lt_cv_prog_gnu_ld" = yes; then
9156 version_type=linux
9157 else
9158 version_type=irix
9159 fi ;;
9160 esac
9161 need_lib_prefix=no
9162 need_version=no
9163 soname_spec='${libname}${release}${shared_ext}$major'
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9165 case $host_os in
9166 irix5* | nonstopux*)
9167 libsuff= shlibsuff=
9168 ;;
9169 *)
9170 case $LD in # libtool.m4 will add one of these switches to LD
9171 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9172 libsuff= shlibsuff= libmagic=32-bit;;
9173 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9174 libsuff=32 shlibsuff=N32 libmagic=N32;;
9175 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9176 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9177 *) libsuff= shlibsuff= libmagic=never-match;;
9178 esac
9179 ;;
9180 esac
9181 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9182 shlibpath_overrides_runpath=no
9183 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9184 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9185 hardcode_into_libs=yes
9186 ;;
9187
9188# No shared lib support for Linux oldld, aout, or coff.
9189linux*oldld* | linux*aout* | linux*coff*)
9190 dynamic_linker=no
9191 ;;
9192
9193# This must be Linux ELF.
9194linux*)
9195 version_type=linux
9196 need_lib_prefix=no
9197 need_version=no
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9199 soname_spec='${libname}${release}${shared_ext}$major'
9200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 shlibpath_overrides_runpath=no
9203 # This implies no fast_install, which is unacceptable.
9204 # Some rework will be needed to allow for fast_install
9205 # before this can be enabled.
9206 hardcode_into_libs=yes
9207
9208 # Append ld.so.conf contents to the search path
9209 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009210 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 +00009211 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9212 fi
9213
9214 # We used to test for /lib/ld.so.1 and disable shared libraries on
9215 # powerpc, because MkLinux only supported shared libraries with the
9216 # GNU dynamic linker. Since this was broken with cross compilers,
9217 # most powerpc-linux boxes support dynamic linking these days and
9218 # people can always --disable-shared, the test was removed, and we
9219 # assume the GNU/Linux dynamic linker is in use.
9220 dynamic_linker='GNU/Linux ld.so'
9221 ;;
9222
9223knetbsd*-gnu)
9224 version_type=linux
9225 need_lib_prefix=no
9226 need_version=no
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 shlibpath_var=LD_LIBRARY_PATH
9230 shlibpath_overrides_runpath=no
9231 hardcode_into_libs=yes
9232 dynamic_linker='GNU ld.so'
9233 ;;
9234
9235netbsd*)
9236 version_type=sunos
9237 need_lib_prefix=no
9238 need_version=no
9239 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9242 dynamic_linker='NetBSD (a.out) ld.so'
9243 else
9244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9245 soname_spec='${libname}${release}${shared_ext}$major'
9246 dynamic_linker='NetBSD ld.elf_so'
9247 fi
9248 shlibpath_var=LD_LIBRARY_PATH
9249 shlibpath_overrides_runpath=yes
9250 hardcode_into_libs=yes
9251 ;;
9252
9253newsos6)
9254 version_type=linux
9255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 shlibpath_overrides_runpath=yes
9258 ;;
9259
9260nto-qnx*)
9261 version_type=linux
9262 need_lib_prefix=no
9263 need_version=no
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265 soname_spec='${libname}${release}${shared_ext}$major'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 shlibpath_overrides_runpath=yes
9268 ;;
9269
9270openbsd*)
9271 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009272 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009273 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009274 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9275 case $host_os in
9276 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9277 *) need_version=no ;;
9278 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9281 shlibpath_var=LD_LIBRARY_PATH
9282 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9283 case $host_os in
9284 openbsd2.[89] | openbsd2.[89].*)
9285 shlibpath_overrides_runpath=no
9286 ;;
9287 *)
9288 shlibpath_overrides_runpath=yes
9289 ;;
9290 esac
9291 else
9292 shlibpath_overrides_runpath=yes
9293 fi
9294 ;;
9295
9296os2*)
9297 libname_spec='$name'
9298 shrext_cmds=".dll"
9299 need_lib_prefix=no
9300 library_names_spec='$libname${shared_ext} $libname.a'
9301 dynamic_linker='OS/2 ld.exe'
9302 shlibpath_var=LIBPATH
9303 ;;
9304
9305osf3* | osf4* | osf5*)
9306 version_type=osf
9307 need_lib_prefix=no
9308 need_version=no
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9313 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9314 ;;
9315
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009316solaris*)
9317 version_type=linux
9318 need_lib_prefix=no
9319 need_version=no
9320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9321 soname_spec='${libname}${release}${shared_ext}$major'
9322 shlibpath_var=LD_LIBRARY_PATH
9323 shlibpath_overrides_runpath=yes
9324 hardcode_into_libs=yes
9325 # ldd complains unless libraries are executable
9326 postinstall_cmds='chmod +x $lib'
9327 ;;
9328
9329sunos4*)
9330 version_type=sunos
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9332 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 shlibpath_overrides_runpath=yes
9335 if test "$with_gnu_ld" = yes; then
9336 need_lib_prefix=no
9337 fi
9338 need_version=yes
9339 ;;
9340
Reid Spencera773bd52006-08-04 18:18:08 +00009341sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009342 version_type=linux
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9344 soname_spec='${libname}${release}${shared_ext}$major'
9345 shlibpath_var=LD_LIBRARY_PATH
9346 case $host_vendor in
9347 sni)
9348 shlibpath_overrides_runpath=no
9349 need_lib_prefix=no
9350 export_dynamic_flag_spec='${wl}-Blargedynsym'
9351 runpath_var=LD_RUN_PATH
9352 ;;
9353 siemens)
9354 need_lib_prefix=no
9355 ;;
9356 motorola)
9357 need_lib_prefix=no
9358 need_version=no
9359 shlibpath_overrides_runpath=no
9360 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9361 ;;
9362 esac
9363 ;;
9364
9365sysv4*MP*)
9366 if test -d /usr/nec ;then
9367 version_type=linux
9368 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9369 soname_spec='$libname${shared_ext}.$major'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 fi
9372 ;;
9373
Reid Spencera773bd52006-08-04 18:18:08 +00009374sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9375 version_type=freebsd-elf
9376 need_lib_prefix=no
9377 need_version=no
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 shlibpath_var=LD_LIBRARY_PATH
9381 hardcode_into_libs=yes
9382 if test "$with_gnu_ld" = yes; then
9383 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9384 shlibpath_overrides_runpath=no
9385 else
9386 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9387 shlibpath_overrides_runpath=yes
9388 case $host_os in
9389 sco3.2v5*)
9390 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9391 ;;
9392 esac
9393 fi
9394 sys_lib_dlsearch_path_spec='/usr/lib'
9395 ;;
9396
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009397uts4*)
9398 version_type=linux
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9400 soname_spec='${libname}${release}${shared_ext}$major'
9401 shlibpath_var=LD_LIBRARY_PATH
9402 ;;
9403
9404*)
9405 dynamic_linker=no
9406 ;;
9407esac
Reid Spencera773bd52006-08-04 18:18:08 +00009408{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9409echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009410test "$dynamic_linker" = no && can_build_shared=no
9411
Reid Spencera773bd52006-08-04 18:18:08 +00009412variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9413if test "$GCC" = yes; then
9414 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9415fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009416
Reid Spencera773bd52006-08-04 18:18:08 +00009417
9418{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9419echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009420if test "${libltdl_cv_shlibext+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422else
9423
9424module=yes
9425eval libltdl_cv_shlibext=$shrext_cmds
9426
9427fi
Reid Spencera773bd52006-08-04 18:18:08 +00009428{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9429echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009430if test -n "$libltdl_cv_shlibext"; then
9431
9432cat >>confdefs.h <<_ACEOF
9433#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9434_ACEOF
9435
9436fi
9437
9438
Reid Spencera773bd52006-08-04 18:18:08 +00009439{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9440echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009441if test "${libltdl_cv_shlibpath_var+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443else
9444 libltdl_cv_shlibpath_var="$shlibpath_var"
9445fi
Reid Spencera773bd52006-08-04 18:18:08 +00009446{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9447echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009448if test -n "$libltdl_cv_shlibpath_var"; then
9449
9450cat >>confdefs.h <<_ACEOF
9451#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9452_ACEOF
9453
9454fi
9455
9456
Reid Spencera773bd52006-08-04 18:18:08 +00009457{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9458echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009459if test "${libltdl_cv_sys_search_path+set}" = set; then
9460 echo $ECHO_N "(cached) $ECHO_C" >&6
9461else
9462 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9463fi
Reid Spencera773bd52006-08-04 18:18:08 +00009464{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9465echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009466if test -n "$libltdl_cv_sys_search_path"; then
9467 sys_search_path=
9468 for dir in $libltdl_cv_sys_search_path; do
9469 if test -z "$sys_search_path"; then
9470 sys_search_path="$dir"
9471 else
9472 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9473 fi
9474 done
9475
9476cat >>confdefs.h <<_ACEOF
9477#define LTDL_SYSSEARCHPATH "$sys_search_path"
9478_ACEOF
9479
9480fi
9481
Reid Spencera773bd52006-08-04 18:18:08 +00009482{ echo "$as_me:$LINENO: checking for objdir" >&5
9483echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009484if test "${libltdl_cv_objdir+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486else
9487 libltdl_cv_objdir="$objdir"
9488 if test -n "$objdir"; then
9489 :
9490 else
9491 rm -f .libs 2>/dev/null
9492 mkdir .libs 2>/dev/null
9493 if test -d .libs; then
9494 libltdl_cv_objdir=.libs
9495 else
9496 # MS-DOS does not allow filenames that begin with a dot.
9497 libltdl_cv_objdir=_libs
9498 fi
9499 rmdir .libs 2>/dev/null
9500 fi
9501
9502fi
Reid Spencera773bd52006-08-04 18:18:08 +00009503{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9504echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009505
9506cat >>confdefs.h <<_ACEOF
9507#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9508_ACEOF
9509
9510
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009511
9512
9513
9514
9515# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009516{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9517echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009518if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520else
9521
9522# These are sane defaults that work on at least a few old systems.
9523# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9524
9525# Character class describing NM global symbol codes.
9526symcode='[BCDEGRST]'
9527
9528# Regexp to match symbols that can be accessed directly from C.
9529sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9530
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009531# Transform an extracted symbol line into a proper C declaration
9532lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9533
9534# Transform an extracted symbol line into symbol name and symbol address
9535lt_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'"
9536
9537# Define system-specific variables.
9538case $host_os in
9539aix*)
9540 symcode='[BCDT]'
9541 ;;
9542cygwin* | mingw* | pw32*)
9543 symcode='[ABCDGISTW]'
9544 ;;
9545hpux*) # Its linker distinguishes data from code symbols
9546 if test "$host_cpu" = ia64; then
9547 symcode='[ABCDEGRST]'
9548 fi
9549 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9550 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'"
9551 ;;
9552linux*)
9553 if test "$host_cpu" = ia64; then
9554 symcode='[ABCDGIRSTW]'
9555 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9556 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'"
9557 fi
9558 ;;
9559irix* | nonstopux*)
9560 symcode='[BCDEGRST]'
9561 ;;
9562osf*)
9563 symcode='[BCDEGQRST]'
9564 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009565solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009566 symcode='[BDRT]'
9567 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009568sco3.2v5*)
9569 symcode='[DT]'
9570 ;;
9571sysv4.2uw2*)
9572 symcode='[DT]'
9573 ;;
9574sysv5* | sco5v6* | unixware* | OpenUNIX*)
9575 symcode='[ABDT]'
9576 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577sysv4)
9578 symcode='[DFNSTU]'
9579 ;;
9580esac
9581
9582# Handle CRLF in mingw tool chain
9583opt_cr=
9584case $build_os in
9585mingw*)
9586 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9587 ;;
9588esac
9589
9590# If we're using GNU nm, then use its standard symbol codes.
9591case `$NM -V 2>&1` in
9592*GNU* | *'with BFD'*)
9593 symcode='[ABCDGIRSTW]' ;;
9594esac
9595
9596# Try without a prefix undercore, then with it.
9597for ac_symprfx in "" "_"; do
9598
Reid Spencera773bd52006-08-04 18:18:08 +00009599 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9600 symxfrm="\\1 $ac_symprfx\\2 \\2"
9601
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009602 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009603 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 +00009604
9605 # Check to see that the pipe works correctly.
9606 pipe_works=no
9607
9608 rm -f conftest*
9609 cat > conftest.$ac_ext <<EOF
9610#ifdef __cplusplus
9611extern "C" {
9612#endif
9613char nm_test_var;
9614void nm_test_func(){}
9615#ifdef __cplusplus
9616}
9617#endif
9618int main(){nm_test_var='a';nm_test_func();return(0);}
9619EOF
9620
9621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9622 (eval $ac_compile) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; then
9626 # Now try to grab the symbols.
9627 nlist=conftest.nm
9628 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9629 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && test -s "$nlist"; then
9633 # Try sorting and uniquifying the output.
9634 if sort "$nlist" | uniq > "$nlist"T; then
9635 mv -f "$nlist"T "$nlist"
9636 else
9637 rm -f "$nlist"T
9638 fi
9639
9640 # Make sure that we snagged all the symbols we need.
9641 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9642 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9643 cat <<EOF > conftest.$ac_ext
9644#ifdef __cplusplus
9645extern "C" {
9646#endif
9647
9648EOF
9649 # Now generate the symbol file.
9650 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9651
9652 cat <<EOF >> conftest.$ac_ext
9653#if defined (__STDC__) && __STDC__
9654# define lt_ptr_t void *
9655#else
9656# define lt_ptr_t char *
9657# define const
9658#endif
9659
9660/* The mapping between symbol names and symbols. */
9661const struct {
9662 const char *name;
9663 lt_ptr_t address;
9664}
9665lt_preloaded_symbols[] =
9666{
9667EOF
9668 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9669 cat <<\EOF >> conftest.$ac_ext
9670 {0, (lt_ptr_t) 0}
9671};
9672
9673#ifdef __cplusplus
9674}
9675#endif
9676EOF
9677 # Now try linking the two files.
9678 mv conftest.$ac_objext conftstm.$ac_objext
9679 lt_save_LIBS="$LIBS"
9680 lt_save_CFLAGS="$CFLAGS"
9681 LIBS="conftstm.$ac_objext"
9682 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9684 (eval $ac_link) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9688 pipe_works=yes
9689 fi
9690 LIBS="$lt_save_LIBS"
9691 CFLAGS="$lt_save_CFLAGS"
9692 else
9693 echo "cannot find nm_test_func in $nlist" >&5
9694 fi
9695 else
9696 echo "cannot find nm_test_var in $nlist" >&5
9697 fi
9698 else
9699 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9700 fi
9701 else
9702 echo "$progname: failed program was:" >&5
9703 cat conftest.$ac_ext >&5
9704 fi
9705 rm -f conftest* conftst*
9706
9707 # Do not use the global_symbol_pipe unless it works.
9708 if test "$pipe_works" = yes; then
9709 break
9710 else
9711 lt_cv_sys_global_symbol_pipe=
9712 fi
9713done
9714
9715fi
9716
9717if test -z "$lt_cv_sys_global_symbol_pipe"; then
9718 lt_cv_sys_global_symbol_to_cdecl=
9719fi
9720if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009721 { echo "$as_me:$LINENO: result: failed" >&5
9722echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009723else
Reid Spencera773bd52006-08-04 18:18:08 +00009724 { echo "$as_me:$LINENO: result: ok" >&5
9725echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009726fi
9727
9728
Reid Spencera773bd52006-08-04 18:18:08 +00009729{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9730echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009731if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9733else
9734 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9735 libltdl_cv_preloaded_symbols=yes
9736 else
9737 libltdl_cv_preloaded_symbols=no
9738 fi
9739
9740fi
Reid Spencera773bd52006-08-04 18:18:08 +00009741{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9742echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009743if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9744
9745cat >>confdefs.h <<\_ACEOF
9746#define HAVE_PRELOADED_SYMBOLS 1
9747_ACEOF
9748
9749fi
9750
9751LIBADD_DL=
9752
9753ac_ext=c
9754ac_cpp='$CPP $CPPFLAGS'
9755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9757ac_compiler_gnu=$ac_cv_c_compiler_gnu
9758
9759
Reid Spencera773bd52006-08-04 18:18:08 +00009760{ echo "$as_me:$LINENO: checking for shl_load" >&5
9761echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009762if test "${ac_cv_func_shl_load+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9764else
9765 cat >conftest.$ac_ext <<_ACEOF
9766/* confdefs.h. */
9767_ACEOF
9768cat confdefs.h >>conftest.$ac_ext
9769cat >>conftest.$ac_ext <<_ACEOF
9770/* end confdefs.h. */
9771/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9773#define shl_load innocuous_shl_load
9774
9775/* System header to define __stub macros and hopefully few prototypes,
9776 which can conflict with char shl_load (); below.
9777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9778 <limits.h> exists even on freestanding compilers. */
9779
9780#ifdef __STDC__
9781# include <limits.h>
9782#else
9783# include <assert.h>
9784#endif
9785
9786#undef shl_load
9787
Reid Spencera773bd52006-08-04 18:18:08 +00009788/* Override any GCC internal prototype to avoid an error.
9789 Use char because int might match the return type of a GCC
9790 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009791#ifdef __cplusplus
9792extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009793#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009794char shl_load ();
9795/* The GNU C library defines this for functions which it implements
9796 to always fail with ENOSYS. Some functions are actually named
9797 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009798#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009799choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009800#endif
9801
9802int
9803main ()
9804{
Reid Spencera773bd52006-08-04 18:18:08 +00009805return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009806 ;
9807 return 0;
9808}
9809_ACEOF
9810rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009811if { (ac_try="$ac_link"
9812case "(($ac_try" in
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9815esac
9816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009818 ac_status=$?
9819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009823 (exit $ac_status); } &&
9824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9825 { (case "(($ac_try" in
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9828esac
9829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_try") 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; } &&
9834 { ac_try='test -s conftest$ac_exeext'
9835 { (case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838esac
9839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_try") 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009844 ac_cv_func_shl_load=yes
9845else
9846 echo "$as_me: failed program was:" >&5
9847sed 's/^/| /' conftest.$ac_ext >&5
9848
Reid Spencera773bd52006-08-04 18:18:08 +00009849 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009850fi
Reid Spencera773bd52006-08-04 18:18:08 +00009851
Bill Wendlingebcceee2009-04-18 11:20:33 +00009852rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853 conftest$ac_exeext conftest.$ac_ext
9854fi
Reid Spencera773bd52006-08-04 18:18:08 +00009855{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9856echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009857if test $ac_cv_func_shl_load = yes; then
9858
9859cat >>confdefs.h <<\_ACEOF
9860#define HAVE_SHL_LOAD 1
9861_ACEOF
9862
9863else
Reid Spencera773bd52006-08-04 18:18:08 +00009864 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9865echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009866if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9868else
9869 ac_check_lib_save_LIBS=$LIBS
9870LIBS="-ldld $LIBS"
9871cat >conftest.$ac_ext <<_ACEOF
9872/* confdefs.h. */
9873_ACEOF
9874cat confdefs.h >>conftest.$ac_ext
9875cat >>conftest.$ac_ext <<_ACEOF
9876/* end confdefs.h. */
9877
Reid Spencera773bd52006-08-04 18:18:08 +00009878/* Override any GCC internal prototype to avoid an error.
9879 Use char because int might match the return type of a GCC
9880 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009881#ifdef __cplusplus
9882extern "C"
9883#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009884char shl_load ();
9885int
9886main ()
9887{
Reid Spencera773bd52006-08-04 18:18:08 +00009888return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009889 ;
9890 return 0;
9891}
9892_ACEOF
9893rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009894if { (ac_try="$ac_link"
9895case "(($ac_try" in
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9898esac
9899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9908 { (case "(($ac_try" in
9909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9910 *) ac_try_echo=$ac_try;;
9911esac
9912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9913 (eval "$ac_try") 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest$ac_exeext'
9918 { (case "(($ac_try" in
9919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920 *) ac_try_echo=$ac_try;;
9921esac
9922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_try") 2>&5
9924 ac_status=$?
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009927 ac_cv_lib_dld_shl_load=yes
9928else
9929 echo "$as_me: failed program was:" >&5
9930sed 's/^/| /' conftest.$ac_ext >&5
9931
Reid Spencera773bd52006-08-04 18:18:08 +00009932 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009933fi
Reid Spencera773bd52006-08-04 18:18:08 +00009934
Bill Wendlingebcceee2009-04-18 11:20:33 +00009935rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936 conftest$ac_exeext conftest.$ac_ext
9937LIBS=$ac_check_lib_save_LIBS
9938fi
Reid Spencera773bd52006-08-04 18:18:08 +00009939{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9940echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009941if test $ac_cv_lib_dld_shl_load = yes; then
9942
9943cat >>confdefs.h <<\_ACEOF
9944#define HAVE_SHL_LOAD 1
9945_ACEOF
9946
9947 LIBADD_DL="$LIBADD_DL -ldld"
9948else
Reid Spencera773bd52006-08-04 18:18:08 +00009949 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9950echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009951if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953else
9954 ac_check_lib_save_LIBS=$LIBS
9955LIBS="-ldl $LIBS"
9956cat >conftest.$ac_ext <<_ACEOF
9957/* confdefs.h. */
9958_ACEOF
9959cat confdefs.h >>conftest.$ac_ext
9960cat >>conftest.$ac_ext <<_ACEOF
9961/* end confdefs.h. */
9962
Reid Spencera773bd52006-08-04 18:18:08 +00009963/* Override any GCC internal prototype to avoid an error.
9964 Use char because int might match the return type of a GCC
9965 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009966#ifdef __cplusplus
9967extern "C"
9968#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009969char dlopen ();
9970int
9971main ()
9972{
Reid Spencera773bd52006-08-04 18:18:08 +00009973return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009974 ;
9975 return 0;
9976}
9977_ACEOF
9978rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009979if { (ac_try="$ac_link"
9980case "(($ac_try" in
9981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982 *) ac_try_echo=$ac_try;;
9983esac
9984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009986 ac_status=$?
9987 grep -v '^ *+' conftest.er1 >conftest.err
9988 rm -f conftest.er1
9989 cat conftest.err >&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009991 (exit $ac_status); } &&
9992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9993 { (case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9996esac
9997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_try") 2>&5
9999 ac_status=$?
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try='test -s conftest$ac_exeext'
10003 { (case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10006esac
10007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008 (eval "$ac_try") 2>&5
10009 ac_status=$?
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010012 ac_cv_lib_dl_dlopen=yes
10013else
10014 echo "$as_me: failed program was:" >&5
10015sed 's/^/| /' conftest.$ac_ext >&5
10016
Reid Spencera773bd52006-08-04 18:18:08 +000010017 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010018fi
Reid Spencera773bd52006-08-04 18:18:08 +000010019
Bill Wendlingebcceee2009-04-18 11:20:33 +000010020rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021 conftest$ac_exeext conftest.$ac_ext
10022LIBS=$ac_check_lib_save_LIBS
10023fi
Reid Spencera773bd52006-08-04 18:18:08 +000010024{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10025echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010026if test $ac_cv_lib_dl_dlopen = yes; then
10027
10028cat >>confdefs.h <<\_ACEOF
10029#define HAVE_LIBDL 1
10030_ACEOF
10031
10032 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10033else
10034 cat >conftest.$ac_ext <<_ACEOF
10035/* confdefs.h. */
10036_ACEOF
10037cat confdefs.h >>conftest.$ac_ext
10038cat >>conftest.$ac_ext <<_ACEOF
10039/* end confdefs.h. */
10040#if HAVE_DLFCN_H
10041# include <dlfcn.h>
10042#endif
10043
10044int
10045main ()
10046{
10047dlopen(0, 0);
10048 ;
10049 return 0;
10050}
10051_ACEOF
10052rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010053if { (ac_try="$ac_link"
10054case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10057esac
10058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010060 ac_status=$?
10061 grep -v '^ *+' conftest.er1 >conftest.err
10062 rm -f conftest.er1
10063 cat conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010065 (exit $ac_status); } &&
10066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10067 { (case "(($ac_try" in
10068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069 *) ac_try_echo=$ac_try;;
10070esac
10071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072 (eval "$ac_try") 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; } &&
10076 { ac_try='test -s conftest$ac_exeext'
10077 { (case "(($ac_try" in
10078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10079 *) ac_try_echo=$ac_try;;
10080esac
10081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10082 (eval "$ac_try") 2>&5
10083 ac_status=$?
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086
10087cat >>confdefs.h <<\_ACEOF
10088#define HAVE_LIBDL 1
10089_ACEOF
10090 libltdl_cv_func_dlopen="yes"
10091else
10092 echo "$as_me: failed program was:" >&5
10093sed 's/^/| /' conftest.$ac_ext >&5
10094
Reid Spencera773bd52006-08-04 18:18:08 +000010095 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10096echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010097if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10099else
10100 ac_check_lib_save_LIBS=$LIBS
10101LIBS="-lsvld $LIBS"
10102cat >conftest.$ac_ext <<_ACEOF
10103/* confdefs.h. */
10104_ACEOF
10105cat confdefs.h >>conftest.$ac_ext
10106cat >>conftest.$ac_ext <<_ACEOF
10107/* end confdefs.h. */
10108
Reid Spencera773bd52006-08-04 18:18:08 +000010109/* Override any GCC internal prototype to avoid an error.
10110 Use char because int might match the return type of a GCC
10111 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010112#ifdef __cplusplus
10113extern "C"
10114#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010115char dlopen ();
10116int
10117main ()
10118{
Reid Spencera773bd52006-08-04 18:18:08 +000010119return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010120 ;
10121 return 0;
10122}
10123_ACEOF
10124rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010125if { (ac_try="$ac_link"
10126case "(($ac_try" in
10127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10129esac
10130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132 ac_status=$?
10133 grep -v '^ *+' conftest.er1 >conftest.err
10134 rm -f conftest.er1
10135 cat conftest.err >&5
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010137 (exit $ac_status); } &&
10138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10139 { (case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10142esac
10143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144 (eval "$ac_try") 2>&5
10145 ac_status=$?
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (case "(($ac_try" in
10150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10151 *) ac_try_echo=$ac_try;;
10152esac
10153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10154 (eval "$ac_try") 2>&5
10155 ac_status=$?
10156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010158 ac_cv_lib_svld_dlopen=yes
10159else
10160 echo "$as_me: failed program was:" >&5
10161sed 's/^/| /' conftest.$ac_ext >&5
10162
Reid Spencera773bd52006-08-04 18:18:08 +000010163 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010164fi
Reid Spencera773bd52006-08-04 18:18:08 +000010165
Bill Wendlingebcceee2009-04-18 11:20:33 +000010166rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010167 conftest$ac_exeext conftest.$ac_ext
10168LIBS=$ac_check_lib_save_LIBS
10169fi
Reid Spencera773bd52006-08-04 18:18:08 +000010170{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10171echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010172if test $ac_cv_lib_svld_dlopen = yes; then
10173
10174cat >>confdefs.h <<\_ACEOF
10175#define HAVE_LIBDL 1
10176_ACEOF
10177
10178 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10179else
Reid Spencera773bd52006-08-04 18:18:08 +000010180 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10181echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10184else
10185 ac_check_lib_save_LIBS=$LIBS
10186LIBS="-ldld $LIBS"
10187cat >conftest.$ac_ext <<_ACEOF
10188/* confdefs.h. */
10189_ACEOF
10190cat confdefs.h >>conftest.$ac_ext
10191cat >>conftest.$ac_ext <<_ACEOF
10192/* end confdefs.h. */
10193
Reid Spencera773bd52006-08-04 18:18:08 +000010194/* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010197#ifdef __cplusplus
10198extern "C"
10199#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010200char dld_link ();
10201int
10202main ()
10203{
Reid Spencera773bd52006-08-04 18:18:08 +000010204return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010205 ;
10206 return 0;
10207}
10208_ACEOF
10209rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010210if { (ac_try="$ac_link"
10211case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10214esac
10215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010217 ac_status=$?
10218 grep -v '^ *+' conftest.er1 >conftest.err
10219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010222 (exit $ac_status); } &&
10223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10224 { (case "(($ac_try" in
10225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10226 *) ac_try_echo=$ac_try;;
10227esac
10228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10229 (eval "$ac_try") 2>&5
10230 ac_status=$?
10231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); }; } &&
10233 { ac_try='test -s conftest$ac_exeext'
10234 { (case "(($ac_try" in
10235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236 *) ac_try_echo=$ac_try;;
10237esac
10238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239 (eval "$ac_try") 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010243 ac_cv_lib_dld_dld_link=yes
10244else
10245 echo "$as_me: failed program was:" >&5
10246sed 's/^/| /' conftest.$ac_ext >&5
10247
Reid Spencera773bd52006-08-04 18:18:08 +000010248 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010249fi
Reid Spencera773bd52006-08-04 18:18:08 +000010250
Bill Wendlingebcceee2009-04-18 11:20:33 +000010251rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010252 conftest$ac_exeext conftest.$ac_ext
10253LIBS=$ac_check_lib_save_LIBS
10254fi
Reid Spencera773bd52006-08-04 18:18:08 +000010255{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10256echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010257if test $ac_cv_lib_dld_dld_link = yes; then
10258
10259cat >>confdefs.h <<\_ACEOF
10260#define HAVE_DLD 1
10261_ACEOF
10262
10263 LIBADD_DL="$LIBADD_DL -ldld"
10264else
Reid Spencera773bd52006-08-04 18:18:08 +000010265 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10266echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010267if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10269else
10270 cat >conftest.$ac_ext <<_ACEOF
10271/* confdefs.h. */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
10275/* end confdefs.h. */
10276/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10278#define _dyld_func_lookup innocuous__dyld_func_lookup
10279
10280/* System header to define __stub macros and hopefully few prototypes,
10281 which can conflict with char _dyld_func_lookup (); below.
10282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10283 <limits.h> exists even on freestanding compilers. */
10284
10285#ifdef __STDC__
10286# include <limits.h>
10287#else
10288# include <assert.h>
10289#endif
10290
10291#undef _dyld_func_lookup
10292
Reid Spencera773bd52006-08-04 18:18:08 +000010293/* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010296#ifdef __cplusplus
10297extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010298#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010299char _dyld_func_lookup ();
10300/* The GNU C library defines this for functions which it implements
10301 to always fail with ENOSYS. Some functions are actually named
10302 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010303#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010304choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305#endif
10306
10307int
10308main ()
10309{
Reid Spencera773bd52006-08-04 18:18:08 +000010310return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010311 ;
10312 return 0;
10313}
10314_ACEOF
10315rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010316if { (ac_try="$ac_link"
10317case "(($ac_try" in
10318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10319 *) ac_try_echo=$ac_try;;
10320esac
10321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10322 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010323 ac_status=$?
10324 grep -v '^ *+' conftest.er1 >conftest.err
10325 rm -f conftest.er1
10326 cat conftest.err >&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010328 (exit $ac_status); } &&
10329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10330 { (case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333esac
10334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_try") 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; } &&
10339 { ac_try='test -s conftest$ac_exeext'
10340 { (case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10343esac
10344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_try") 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010349 ac_cv_func__dyld_func_lookup=yes
10350else
10351 echo "$as_me: failed program was:" >&5
10352sed 's/^/| /' conftest.$ac_ext >&5
10353
Reid Spencera773bd52006-08-04 18:18:08 +000010354 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010355fi
Reid Spencera773bd52006-08-04 18:18:08 +000010356
Bill Wendlingebcceee2009-04-18 11:20:33 +000010357rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358 conftest$ac_exeext conftest.$ac_ext
10359fi
Reid Spencera773bd52006-08-04 18:18:08 +000010360{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10361echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010362if test $ac_cv_func__dyld_func_lookup = yes; then
10363
10364cat >>confdefs.h <<\_ACEOF
10365#define HAVE_DYLD 1
10366_ACEOF
10367
10368fi
10369
10370
10371fi
10372
10373
10374fi
10375
10376
10377fi
Reid Spencera773bd52006-08-04 18:18:08 +000010378
Bill Wendlingebcceee2009-04-18 11:20:33 +000010379rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010380 conftest$ac_exeext conftest.$ac_ext
10381
10382fi
10383
10384
10385fi
10386
10387
10388fi
10389
10390
10391if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10392then
10393 lt_save_LIBS="$LIBS"
10394 LIBS="$LIBS $LIBADD_DL"
10395
10396for ac_func in dlerror
10397do
10398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010399{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10401if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403else
10404 cat >conftest.$ac_ext <<_ACEOF
10405/* confdefs.h. */
10406_ACEOF
10407cat confdefs.h >>conftest.$ac_ext
10408cat >>conftest.$ac_ext <<_ACEOF
10409/* end confdefs.h. */
10410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10412#define $ac_func innocuous_$ac_func
10413
10414/* System header to define __stub macros and hopefully few prototypes,
10415 which can conflict with char $ac_func (); below.
10416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10417 <limits.h> exists even on freestanding compilers. */
10418
10419#ifdef __STDC__
10420# include <limits.h>
10421#else
10422# include <assert.h>
10423#endif
10424
10425#undef $ac_func
10426
Reid Spencera773bd52006-08-04 18:18:08 +000010427/* Override any GCC internal prototype to avoid an error.
10428 Use char because int might match the return type of a GCC
10429 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010430#ifdef __cplusplus
10431extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010432#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010433char $ac_func ();
10434/* The GNU C library defines this for functions which it implements
10435 to always fail with ENOSYS. Some functions are actually named
10436 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010437#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010438choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010439#endif
10440
10441int
10442main ()
10443{
Reid Spencera773bd52006-08-04 18:18:08 +000010444return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010445 ;
10446 return 0;
10447}
10448_ACEOF
10449rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010450if { (ac_try="$ac_link"
10451case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10454esac
10455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457 ac_status=$?
10458 grep -v '^ *+' conftest.er1 >conftest.err
10459 rm -f conftest.er1
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010462 (exit $ac_status); } &&
10463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10464 { (case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10467esac
10468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_try") 2>&5
10470 ac_status=$?
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); }; } &&
10473 { ac_try='test -s conftest$ac_exeext'
10474 { (case "(($ac_try" in
10475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476 *) ac_try_echo=$ac_try;;
10477esac
10478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479 (eval "$ac_try") 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010483 eval "$as_ac_var=yes"
10484else
10485 echo "$as_me: failed program was:" >&5
10486sed 's/^/| /' conftest.$ac_ext >&5
10487
Reid Spencera773bd52006-08-04 18:18:08 +000010488 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010489fi
Reid Spencera773bd52006-08-04 18:18:08 +000010490
Bill Wendlingebcceee2009-04-18 11:20:33 +000010491rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010492 conftest$ac_exeext conftest.$ac_ext
10493fi
Reid Spencera773bd52006-08-04 18:18:08 +000010494ac_res=`eval echo '${'$as_ac_var'}'`
10495 { echo "$as_me:$LINENO: result: $ac_res" >&5
10496echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010497if test `eval echo '${'$as_ac_var'}'` = yes; then
10498 cat >>confdefs.h <<_ACEOF
10499#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10500_ACEOF
10501
10502fi
10503done
10504
10505 LIBS="$lt_save_LIBS"
10506fi
10507ac_ext=c
10508ac_cpp='$CPP $CPPFLAGS'
10509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10511ac_compiler_gnu=$ac_cv_c_compiler_gnu
10512
10513
10514
Reid Spencera773bd52006-08-04 18:18:08 +000010515{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10516echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010517if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519else
10520 ac_cv_sys_symbol_underscore=no
10521 cat > conftest.$ac_ext <<EOF
10522void nm_test_func(){}
10523int main(){nm_test_func;return 0;}
10524EOF
10525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526 (eval $ac_compile) 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; then
10530 # Now try to grab the symbols.
10531 ac_nlist=conftest.nm
10532 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10533 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10534 ac_status=$?
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } && test -s "$ac_nlist"; then
10537 # See whether the symbols have a leading underscore.
10538 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10539 ac_cv_sys_symbol_underscore=yes
10540 else
10541 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10542 :
10543 else
10544 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10545 fi
10546 fi
10547 else
10548 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10549 fi
10550 else
10551 echo "configure: failed program was:" >&5
10552 cat conftest.c >&5
10553 fi
10554 rm -rf conftest*
10555
10556fi
Reid Spencera773bd52006-08-04 18:18:08 +000010557{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10558echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010559
10560
10561if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10562 if test x"$libltdl_cv_func_dlopen" = xyes ||
10563 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010564 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10565echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566if test "${libltdl_cv_need_uscore+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568else
10569 libltdl_cv_need_uscore=unknown
10570 save_LIBS="$LIBS"
10571 LIBS="$LIBS $LIBADD_DL"
10572 if test "$cross_compiling" = yes; then :
10573 libltdl_cv_need_uscore=cross
10574else
10575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10576 lt_status=$lt_dlunknown
10577 cat > conftest.$ac_ext <<EOF
Owen Andersona8603702009-05-19 22:18:56 +000010578#line 10578 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579#include "confdefs.h"
10580
10581#if HAVE_DLFCN_H
10582#include <dlfcn.h>
10583#endif
10584
10585#include <stdio.h>
10586
10587#ifdef RTLD_GLOBAL
10588# define LT_DLGLOBAL RTLD_GLOBAL
10589#else
10590# ifdef DL_GLOBAL
10591# define LT_DLGLOBAL DL_GLOBAL
10592# else
10593# define LT_DLGLOBAL 0
10594# endif
10595#endif
10596
10597/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10598 find out it does not work in some platform. */
10599#ifndef LT_DLLAZY_OR_NOW
10600# ifdef RTLD_LAZY
10601# define LT_DLLAZY_OR_NOW RTLD_LAZY
10602# else
10603# ifdef DL_LAZY
10604# define LT_DLLAZY_OR_NOW DL_LAZY
10605# else
10606# ifdef RTLD_NOW
10607# define LT_DLLAZY_OR_NOW RTLD_NOW
10608# else
10609# ifdef DL_NOW
10610# define LT_DLLAZY_OR_NOW DL_NOW
10611# else
10612# define LT_DLLAZY_OR_NOW 0
10613# endif
10614# endif
10615# endif
10616# endif
10617#endif
10618
10619#ifdef __cplusplus
10620extern "C" void exit (int);
10621#endif
10622
10623void fnord() { int i=42;}
10624int main ()
10625{
10626 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10627 int status = $lt_dlunknown;
10628
10629 if (self)
10630 {
10631 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10632 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10633 /* dlclose (self); */
10634 }
Reid Spencera773bd52006-08-04 18:18:08 +000010635 else
10636 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637
10638 exit (status);
10639}
10640EOF
10641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642 (eval $ac_link) 2>&5
10643 ac_status=$?
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010646 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010647 lt_status=$?
10648 case x$lt_status in
10649 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10650 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010651 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010652 esac
10653 else :
10654 # compilation failed
10655
10656 fi
10657fi
10658rm -fr conftest*
10659
10660 LIBS="$save_LIBS"
10661
10662fi
Reid Spencera773bd52006-08-04 18:18:08 +000010663{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10664echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010665 fi
10666fi
10667
10668if test x"$libltdl_cv_need_uscore" = xyes; then
10669
10670cat >>confdefs.h <<\_ACEOF
10671#define NEED_USCORE 1
10672_ACEOF
10673
10674fi
10675
10676
Reid Spencera773bd52006-08-04 18:18:08 +000010677{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10678echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681else
10682 # PORTME does your system automatically load deplibs for dlopen?
10683 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10684 # For now, we just catch OSes we know something about -- in the
10685 # future, we'll try test this programmatically.
10686 libltdl_cv_sys_dlopen_deplibs=unknown
10687 case "$host_os" in
10688 aix3*|aix4.1.*|aix4.2.*)
10689 # Unknown whether this is true for these versions of AIX, but
10690 # we want this `case' here to explicitly catch those versions.
10691 libltdl_cv_sys_dlopen_deplibs=unknown
10692 ;;
10693 aix[45]*)
10694 libltdl_cv_sys_dlopen_deplibs=yes
10695 ;;
10696 darwin*)
10697 # Assuming the user has installed a libdl from somewhere, this is true
10698 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10699 libltdl_cv_sys_dlopen_deplibs=yes
10700 ;;
10701 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10702 # GNU and its variants, using gnu ld.so (Glibc)
10703 libltdl_cv_sys_dlopen_deplibs=yes
10704 ;;
10705 hpux10*|hpux11*)
10706 libltdl_cv_sys_dlopen_deplibs=yes
10707 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010708 interix*)
10709 libltdl_cv_sys_dlopen_deplibs=yes
10710 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010711 irix[12345]*|irix6.[01]*)
10712 # Catch all versions of IRIX before 6.2, and indicate that we don't
10713 # know how it worked for any of those versions.
10714 libltdl_cv_sys_dlopen_deplibs=unknown
10715 ;;
10716 irix*)
10717 # The case above catches anything before 6.2, and it's known that
10718 # at 6.2 and later dlopen does load deplibs.
10719 libltdl_cv_sys_dlopen_deplibs=yes
10720 ;;
10721 netbsd*)
10722 libltdl_cv_sys_dlopen_deplibs=yes
10723 ;;
10724 openbsd*)
10725 libltdl_cv_sys_dlopen_deplibs=yes
10726 ;;
10727 osf[1234]*)
10728 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10729 # it did *not* use an RPATH in a shared library to find objects the
10730 # library depends on, so we explictly say `no'.
10731 libltdl_cv_sys_dlopen_deplibs=no
10732 ;;
10733 osf5.0|osf5.0a|osf5.1)
10734 # dlopen *does* load deplibs and with the right loader patch applied
10735 # it even uses RPATH in a shared library to search for shared objects
10736 # that the library depends on, but there's no easy way to know if that
10737 # patch is installed. Since this is the case, all we can really
10738 # say is unknown -- it depends on the patch being installed. If
10739 # it is, this changes to `yes'. Without it, it would be `no'.
10740 libltdl_cv_sys_dlopen_deplibs=unknown
10741 ;;
10742 osf*)
10743 # the two cases above should catch all versions of osf <= 5.1. Read
10744 # the comments above for what we know about them.
10745 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10746 # is used to find them so we can finally say `yes'.
10747 libltdl_cv_sys_dlopen_deplibs=yes
10748 ;;
10749 solaris*)
10750 libltdl_cv_sys_dlopen_deplibs=yes
10751 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10753 libltdl_cv_sys_dlopen_deplibs=yes
10754 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010755 esac
10756
10757fi
Reid Spencera773bd52006-08-04 18:18:08 +000010758{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10759echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10761
10762cat >>confdefs.h <<\_ACEOF
10763#define LTDL_DLOPEN_DEPLIBS 1
10764_ACEOF
10765
10766fi
10767
10768
10769for ac_header in argz.h
10770do
10771as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10774echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10775if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777fi
Reid Spencera773bd52006-08-04 18:18:08 +000010778ac_res=`eval echo '${'$as_ac_Header'}'`
10779 { echo "$as_me:$LINENO: result: $ac_res" >&5
10780echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781else
10782 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010783{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10784echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785cat >conftest.$ac_ext <<_ACEOF
10786/* confdefs.h. */
10787_ACEOF
10788cat confdefs.h >>conftest.$ac_ext
10789cat >>conftest.$ac_ext <<_ACEOF
10790/* end confdefs.h. */
10791$ac_includes_default
10792#include <$ac_header>
10793_ACEOF
10794rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010795if { (ac_try="$ac_compile"
10796case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10799esac
10800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010802 ac_status=$?
10803 grep -v '^ *+' conftest.er1 >conftest.err
10804 rm -f conftest.er1
10805 cat conftest.err >&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010807 (exit $ac_status); } &&
10808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10809 { (case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10812esac
10813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_try") 2>&5
10815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; } &&
10818 { ac_try='test -s conftest.$ac_objext'
10819 { (case "(($ac_try" in
10820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10821 *) ac_try_echo=$ac_try;;
10822esac
10823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10824 (eval "$ac_try") 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010828 ac_header_compiler=yes
10829else
10830 echo "$as_me: failed program was:" >&5
10831sed 's/^/| /' conftest.$ac_ext >&5
10832
Reid Spencera773bd52006-08-04 18:18:08 +000010833 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834fi
Reid Spencera773bd52006-08-04 18:18:08 +000010835
10836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10838echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839
10840# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010841{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10842echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843cat >conftest.$ac_ext <<_ACEOF
10844/* confdefs.h. */
10845_ACEOF
10846cat confdefs.h >>conftest.$ac_ext
10847cat >>conftest.$ac_ext <<_ACEOF
10848/* end confdefs.h. */
10849#include <$ac_header>
10850_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010851if { (ac_try="$ac_cpp conftest.$ac_ext"
10852case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010863 (exit $ac_status); } >/dev/null; then
10864 if test -s conftest.err; then
10865 ac_cpp_err=$ac_c_preproc_warn_flag
10866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10867 else
10868 ac_cpp_err=
10869 fi
10870else
10871 ac_cpp_err=yes
10872fi
10873if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010874 ac_header_preproc=yes
10875else
10876 echo "$as_me: failed program was:" >&5
10877sed 's/^/| /' conftest.$ac_ext >&5
10878
10879 ac_header_preproc=no
10880fi
Reid Spencera773bd52006-08-04 18:18:08 +000010881
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010882rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010883{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10884echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010885
10886# So? What about this header?
10887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10888 yes:no: )
10889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10890echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10892echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10893 ac_header_preproc=yes
10894 ;;
10895 no:yes:* )
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10897echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10899echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10901echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10903echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10905echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10907echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010908 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909## ----------------------------------- ##
10910## Report this to llvmbugs@cs.uiuc.edu ##
10911## ----------------------------------- ##
10912_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010913 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010914 ;;
10915esac
Reid Spencera773bd52006-08-04 18:18:08 +000010916{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10917echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920else
10921 eval "$as_ac_Header=\$ac_header_preproc"
10922fi
Reid Spencera773bd52006-08-04 18:18:08 +000010923ac_res=`eval echo '${'$as_ac_Header'}'`
10924 { echo "$as_me:$LINENO: result: $ac_res" >&5
10925echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010926
10927fi
10928if test `eval echo '${'$as_ac_Header'}'` = yes; then
10929 cat >>confdefs.h <<_ACEOF
10930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10931_ACEOF
10932
10933fi
10934
10935done
10936
10937
Reid Spencera773bd52006-08-04 18:18:08 +000010938{ echo "$as_me:$LINENO: checking for error_t" >&5
10939echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010940if test "${ac_cv_type_error_t+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942else
10943 cat >conftest.$ac_ext <<_ACEOF
10944/* confdefs.h. */
10945_ACEOF
10946cat confdefs.h >>conftest.$ac_ext
10947cat >>conftest.$ac_ext <<_ACEOF
10948/* end confdefs.h. */
10949#if HAVE_ARGZ_H
10950# include <argz.h>
10951#endif
10952
Reid Spencera773bd52006-08-04 18:18:08 +000010953typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010954int
10955main ()
10956{
Reid Spencera773bd52006-08-04 18:18:08 +000010957if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010958 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010959if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010960 return 0;
10961 ;
10962 return 0;
10963}
10964_ACEOF
10965rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010966if { (ac_try="$ac_compile"
10967case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970esac
10971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010973 ac_status=$?
10974 grep -v '^ *+' conftest.er1 >conftest.err
10975 rm -f conftest.er1
10976 cat conftest.err >&5
10977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010978 (exit $ac_status); } &&
10979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10980 { (case "(($ac_try" in
10981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982 *) ac_try_echo=$ac_try;;
10983esac
10984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985 (eval "$ac_try") 2>&5
10986 ac_status=$?
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; } &&
10989 { ac_try='test -s conftest.$ac_objext'
10990 { (case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993esac
10994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_try") 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010999 ac_cv_type_error_t=yes
11000else
11001 echo "$as_me: failed program was:" >&5
11002sed 's/^/| /' conftest.$ac_ext >&5
11003
Reid Spencera773bd52006-08-04 18:18:08 +000011004 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011005fi
Reid Spencera773bd52006-08-04 18:18:08 +000011006
11007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008fi
Reid Spencera773bd52006-08-04 18:18:08 +000011009{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11010echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011011if test $ac_cv_type_error_t = yes; then
11012
11013cat >>confdefs.h <<_ACEOF
11014#define HAVE_ERROR_T 1
11015_ACEOF
11016
11017
11018else
11019
11020cat >>confdefs.h <<\_ACEOF
11021#define error_t int
11022_ACEOF
11023
11024fi
11025
11026
11027
11028
11029
11030
11031
11032for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11033do
11034as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011035{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11036echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11037if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011038 echo $ECHO_N "(cached) $ECHO_C" >&6
11039else
11040 cat >conftest.$ac_ext <<_ACEOF
11041/* confdefs.h. */
11042_ACEOF
11043cat confdefs.h >>conftest.$ac_ext
11044cat >>conftest.$ac_ext <<_ACEOF
11045/* end confdefs.h. */
11046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11048#define $ac_func innocuous_$ac_func
11049
11050/* System header to define __stub macros and hopefully few prototypes,
11051 which can conflict with char $ac_func (); below.
11052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11053 <limits.h> exists even on freestanding compilers. */
11054
11055#ifdef __STDC__
11056# include <limits.h>
11057#else
11058# include <assert.h>
11059#endif
11060
11061#undef $ac_func
11062
Reid Spencera773bd52006-08-04 18:18:08 +000011063/* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011066#ifdef __cplusplus
11067extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011068#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011069char $ac_func ();
11070/* The GNU C library defines this for functions which it implements
11071 to always fail with ENOSYS. Some functions are actually named
11072 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011073#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011074choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011075#endif
11076
11077int
11078main ()
11079{
Reid Spencera773bd52006-08-04 18:18:08 +000011080return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081 ;
11082 return 0;
11083}
11084_ACEOF
11085rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011086if { (ac_try="$ac_link"
11087case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11090esac
11091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011093 ac_status=$?
11094 grep -v '^ *+' conftest.er1 >conftest.err
11095 rm -f conftest.er1
11096 cat conftest.err >&5
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011098 (exit $ac_status); } &&
11099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100 { (case "(($ac_try" in
11101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11103esac
11104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_try") 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); }; } &&
11109 { ac_try='test -s conftest$ac_exeext'
11110 { (case "(($ac_try" in
11111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112 *) ac_try_echo=$ac_try;;
11113esac
11114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115 (eval "$ac_try") 2>&5
11116 ac_status=$?
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011119 eval "$as_ac_var=yes"
11120else
11121 echo "$as_me: failed program was:" >&5
11122sed 's/^/| /' conftest.$ac_ext >&5
11123
Reid Spencera773bd52006-08-04 18:18:08 +000011124 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011125fi
Reid Spencera773bd52006-08-04 18:18:08 +000011126
Bill Wendlingebcceee2009-04-18 11:20:33 +000011127rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011128 conftest$ac_exeext conftest.$ac_ext
11129fi
Reid Spencera773bd52006-08-04 18:18:08 +000011130ac_res=`eval echo '${'$as_ac_var'}'`
11131 { echo "$as_me:$LINENO: result: $ac_res" >&5
11132echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011133if test `eval echo '${'$as_ac_var'}'` = yes; then
11134 cat >>confdefs.h <<_ACEOF
11135#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11136_ACEOF
11137
11138fi
11139done
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11169 stdio.h unistd.h
11170do
11171as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011172if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177fi
Reid Spencera773bd52006-08-04 18:18:08 +000011178ac_res=`eval echo '${'$as_ac_Header'}'`
11179 { echo "$as_me:$LINENO: result: $ac_res" >&5
11180echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011181else
11182 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011183{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11184echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011185cat >conftest.$ac_ext <<_ACEOF
11186/* confdefs.h. */
11187_ACEOF
11188cat confdefs.h >>conftest.$ac_ext
11189cat >>conftest.$ac_ext <<_ACEOF
11190/* end confdefs.h. */
11191$ac_includes_default
11192#include <$ac_header>
11193_ACEOF
11194rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011195if { (ac_try="$ac_compile"
11196case "(($ac_try" in
11197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11199esac
11200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011202 ac_status=$?
11203 grep -v '^ *+' conftest.er1 >conftest.err
11204 rm -f conftest.er1
11205 cat conftest.err >&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011207 (exit $ac_status); } &&
11208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11209 { (case "(($ac_try" in
11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11212esac
11213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214 (eval "$ac_try") 2>&5
11215 ac_status=$?
11216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217 (exit $ac_status); }; } &&
11218 { ac_try='test -s conftest.$ac_objext'
11219 { (case "(($ac_try" in
11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11222esac
11223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224 (eval "$ac_try") 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011228 ac_header_compiler=yes
11229else
11230 echo "$as_me: failed program was:" >&5
11231sed 's/^/| /' conftest.$ac_ext >&5
11232
Reid Spencera773bd52006-08-04 18:18:08 +000011233 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011234fi
Reid Spencera773bd52006-08-04 18:18:08 +000011235
11236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11237{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11238echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011239
11240# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011241{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11242echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011243cat >conftest.$ac_ext <<_ACEOF
11244/* confdefs.h. */
11245_ACEOF
11246cat confdefs.h >>conftest.$ac_ext
11247cat >>conftest.$ac_ext <<_ACEOF
11248/* end confdefs.h. */
11249#include <$ac_header>
11250_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011251if { (ac_try="$ac_cpp conftest.$ac_ext"
11252case "(($ac_try" in
11253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254 *) ac_try_echo=$ac_try;;
11255esac
11256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011263 (exit $ac_status); } >/dev/null; then
11264 if test -s conftest.err; then
11265 ac_cpp_err=$ac_c_preproc_warn_flag
11266 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11267 else
11268 ac_cpp_err=
11269 fi
11270else
11271 ac_cpp_err=yes
11272fi
11273if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011274 ac_header_preproc=yes
11275else
11276 echo "$as_me: failed program was:" >&5
11277sed 's/^/| /' conftest.$ac_ext >&5
11278
11279 ac_header_preproc=no
11280fi
Reid Spencera773bd52006-08-04 18:18:08 +000011281
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011283{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11284echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011285
11286# So? What about this header?
11287case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11288 yes:no: )
11289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11290echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11292echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11293 ac_header_preproc=yes
11294 ;;
11295 no:yes:* )
11296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11297echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11299echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11301echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11303echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11305echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11307echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011308 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011309## ----------------------------------- ##
11310## Report this to llvmbugs@cs.uiuc.edu ##
11311## ----------------------------------- ##
11312_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011313 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011314 ;;
11315esac
Reid Spencera773bd52006-08-04 18:18:08 +000011316{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011319 echo $ECHO_N "(cached) $ECHO_C" >&6
11320else
11321 eval "$as_ac_Header=\$ac_header_preproc"
11322fi
Reid Spencera773bd52006-08-04 18:18:08 +000011323ac_res=`eval echo '${'$as_ac_Header'}'`
11324 { echo "$as_me:$LINENO: result: $ac_res" >&5
11325echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011326
11327fi
11328if test `eval echo '${'$as_ac_Header'}'` = yes; then
11329 cat >>confdefs.h <<_ACEOF
11330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11331_ACEOF
11332
11333fi
11334
11335done
11336
11337
11338
11339
11340
11341for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11342do
11343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11347if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349fi
Reid Spencera773bd52006-08-04 18:18:08 +000011350ac_res=`eval echo '${'$as_ac_Header'}'`
11351 { echo "$as_me:$LINENO: result: $ac_res" >&5
11352echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011353else
11354 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011355{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11356echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011357cat >conftest.$ac_ext <<_ACEOF
11358/* confdefs.h. */
11359_ACEOF
11360cat confdefs.h >>conftest.$ac_ext
11361cat >>conftest.$ac_ext <<_ACEOF
11362/* end confdefs.h. */
11363$ac_includes_default
11364#include <$ac_header>
11365_ACEOF
11366rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011367if { (ac_try="$ac_compile"
11368case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11371esac
11372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11373 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011379 (exit $ac_status); } &&
11380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11381 { (case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11384esac
11385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_try") 2>&5
11387 ac_status=$?
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }; } &&
11390 { ac_try='test -s conftest.$ac_objext'
11391 { (case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11394esac
11395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_try") 2>&5
11397 ac_status=$?
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011400 ac_header_compiler=yes
11401else
11402 echo "$as_me: failed program was:" >&5
11403sed 's/^/| /' conftest.$ac_ext >&5
11404
Reid Spencera773bd52006-08-04 18:18:08 +000011405 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011406fi
Reid Spencera773bd52006-08-04 18:18:08 +000011407
11408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11409{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11410echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011411
11412# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011413{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11414echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415cat >conftest.$ac_ext <<_ACEOF
11416/* confdefs.h. */
11417_ACEOF
11418cat confdefs.h >>conftest.$ac_ext
11419cat >>conftest.$ac_ext <<_ACEOF
11420/* end confdefs.h. */
11421#include <$ac_header>
11422_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011423if { (ac_try="$ac_cpp conftest.$ac_ext"
11424case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427esac
11428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011430 ac_status=$?
11431 grep -v '^ *+' conftest.er1 >conftest.err
11432 rm -f conftest.er1
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011435 (exit $ac_status); } >/dev/null; then
11436 if test -s conftest.err; then
11437 ac_cpp_err=$ac_c_preproc_warn_flag
11438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11439 else
11440 ac_cpp_err=
11441 fi
11442else
11443 ac_cpp_err=yes
11444fi
11445if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011446 ac_header_preproc=yes
11447else
11448 echo "$as_me: failed program was:" >&5
11449sed 's/^/| /' conftest.$ac_ext >&5
11450
11451 ac_header_preproc=no
11452fi
Reid Spencera773bd52006-08-04 18:18:08 +000011453
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011454rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011455{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11456echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011457
11458# So? What about this header?
11459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11460 yes:no: )
11461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11465 ac_header_preproc=yes
11466 ;;
11467 no:yes:* )
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11471echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11475echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011480 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011481## ----------------------------------- ##
11482## Report this to llvmbugs@cs.uiuc.edu ##
11483## ----------------------------------- ##
11484_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011485 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011486 ;;
11487esac
Reid Spencera773bd52006-08-04 18:18:08 +000011488{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11489echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011491 echo $ECHO_N "(cached) $ECHO_C" >&6
11492else
11493 eval "$as_ac_Header=\$ac_header_preproc"
11494fi
Reid Spencera773bd52006-08-04 18:18:08 +000011495ac_res=`eval echo '${'$as_ac_Header'}'`
11496 { echo "$as_me:$LINENO: result: $ac_res" >&5
11497echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011498
11499fi
11500if test `eval echo '${'$as_ac_Header'}'` = yes; then
11501 cat >>confdefs.h <<_ACEOF
11502#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11503_ACEOF
11504
11505fi
11506
11507done
11508
11509
11510
11511for ac_header in string.h strings.h
11512do
11513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11517if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519fi
Reid Spencera773bd52006-08-04 18:18:08 +000011520ac_res=`eval echo '${'$as_ac_Header'}'`
11521 { echo "$as_me:$LINENO: result: $ac_res" >&5
11522echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523else
11524 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011525{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011527cat >conftest.$ac_ext <<_ACEOF
11528/* confdefs.h. */
11529_ACEOF
11530cat confdefs.h >>conftest.$ac_ext
11531cat >>conftest.$ac_ext <<_ACEOF
11532/* end confdefs.h. */
11533$ac_includes_default
11534#include <$ac_header>
11535_ACEOF
11536rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011537if { (ac_try="$ac_compile"
11538case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11541esac
11542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011549 (exit $ac_status); } &&
11550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11551 { (case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554esac
11555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_try") 2>&5
11557 ac_status=$?
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; } &&
11560 { ac_try='test -s conftest.$ac_objext'
11561 { (case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11564esac
11565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11566 (eval "$ac_try") 2>&5
11567 ac_status=$?
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011570 ac_header_compiler=yes
11571else
11572 echo "$as_me: failed program was:" >&5
11573sed 's/^/| /' conftest.$ac_ext >&5
11574
Reid Spencera773bd52006-08-04 18:18:08 +000011575 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011576fi
Reid Spencera773bd52006-08-04 18:18:08 +000011577
11578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11579{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11580echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011581
11582# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011583{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11584echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011585cat >conftest.$ac_ext <<_ACEOF
11586/* confdefs.h. */
11587_ACEOF
11588cat confdefs.h >>conftest.$ac_ext
11589cat >>conftest.$ac_ext <<_ACEOF
11590/* end confdefs.h. */
11591#include <$ac_header>
11592_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011593if { (ac_try="$ac_cpp conftest.$ac_ext"
11594case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597esac
11598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600 ac_status=$?
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011605 (exit $ac_status); } >/dev/null; then
11606 if test -s conftest.err; then
11607 ac_cpp_err=$ac_c_preproc_warn_flag
11608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11609 else
11610 ac_cpp_err=
11611 fi
11612else
11613 ac_cpp_err=yes
11614fi
11615if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011616 ac_header_preproc=yes
11617else
11618 echo "$as_me: failed program was:" >&5
11619sed 's/^/| /' conftest.$ac_ext >&5
11620
11621 ac_header_preproc=no
11622fi
Reid Spencera773bd52006-08-04 18:18:08 +000011623
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011624rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011625{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11626echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011627
11628# So? What about this header?
11629case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11630 yes:no: )
11631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11632echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11634echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11635 ac_header_preproc=yes
11636 ;;
11637 no:yes:* )
11638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11641echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11643echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11645echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11647echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11649echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011650 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011651## ----------------------------------- ##
11652## Report this to llvmbugs@cs.uiuc.edu ##
11653## ----------------------------------- ##
11654_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011655 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011656 ;;
11657esac
Reid Spencera773bd52006-08-04 18:18:08 +000011658{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011661 echo $ECHO_N "(cached) $ECHO_C" >&6
11662else
11663 eval "$as_ac_Header=\$ac_header_preproc"
11664fi
Reid Spencera773bd52006-08-04 18:18:08 +000011665ac_res=`eval echo '${'$as_ac_Header'}'`
11666 { echo "$as_me:$LINENO: result: $ac_res" >&5
11667echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011668
11669fi
11670if test `eval echo '${'$as_ac_Header'}'` = yes; then
11671 cat >>confdefs.h <<_ACEOF
11672#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11673_ACEOF
11674 break
11675fi
11676
11677done
11678
11679
11680
11681
11682for ac_func in strchr index
11683do
11684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011685{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11687if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011688 echo $ECHO_N "(cached) $ECHO_C" >&6
11689else
11690 cat >conftest.$ac_ext <<_ACEOF
11691/* confdefs.h. */
11692_ACEOF
11693cat confdefs.h >>conftest.$ac_ext
11694cat >>conftest.$ac_ext <<_ACEOF
11695/* end confdefs.h. */
11696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11698#define $ac_func innocuous_$ac_func
11699
11700/* System header to define __stub macros and hopefully few prototypes,
11701 which can conflict with char $ac_func (); below.
11702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11703 <limits.h> exists even on freestanding compilers. */
11704
11705#ifdef __STDC__
11706# include <limits.h>
11707#else
11708# include <assert.h>
11709#endif
11710
11711#undef $ac_func
11712
Reid Spencera773bd52006-08-04 18:18:08 +000011713/* Override any GCC internal prototype to avoid an error.
11714 Use char because int might match the return type of a GCC
11715 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011716#ifdef __cplusplus
11717extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011718#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011719char $ac_func ();
11720/* The GNU C library defines this for functions which it implements
11721 to always fail with ENOSYS. Some functions are actually named
11722 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011723#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011725#endif
11726
11727int
11728main ()
11729{
Reid Spencera773bd52006-08-04 18:18:08 +000011730return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011731 ;
11732 return 0;
11733}
11734_ACEOF
11735rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011736if { (ac_try="$ac_link"
11737case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740esac
11741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743 ac_status=$?
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011748 (exit $ac_status); } &&
11749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11750 { (case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753esac
11754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_try") 2>&5
11756 ac_status=$?
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); }; } &&
11759 { ac_try='test -s conftest$ac_exeext'
11760 { (case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11763esac
11764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_try") 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011769 eval "$as_ac_var=yes"
11770else
11771 echo "$as_me: failed program was:" >&5
11772sed 's/^/| /' conftest.$ac_ext >&5
11773
Reid Spencera773bd52006-08-04 18:18:08 +000011774 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775fi
Reid Spencera773bd52006-08-04 18:18:08 +000011776
Bill Wendlingebcceee2009-04-18 11:20:33 +000011777rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778 conftest$ac_exeext conftest.$ac_ext
11779fi
Reid Spencera773bd52006-08-04 18:18:08 +000011780ac_res=`eval echo '${'$as_ac_var'}'`
11781 { echo "$as_me:$LINENO: result: $ac_res" >&5
11782echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011783if test `eval echo '${'$as_ac_var'}'` = yes; then
11784 cat >>confdefs.h <<_ACEOF
11785#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11786_ACEOF
11787 break
11788fi
11789done
11790
11791
11792
11793for ac_func in strrchr rindex
11794do
11795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011796{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11798if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801 cat >conftest.$ac_ext <<_ACEOF
11802/* confdefs.h. */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h. */
11807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11809#define $ac_func innocuous_$ac_func
11810
11811/* System header to define __stub macros and hopefully few prototypes,
11812 which can conflict with char $ac_func (); below.
11813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11814 <limits.h> exists even on freestanding compilers. */
11815
11816#ifdef __STDC__
11817# include <limits.h>
11818#else
11819# include <assert.h>
11820#endif
11821
11822#undef $ac_func
11823
Reid Spencera773bd52006-08-04 18:18:08 +000011824/* Override any GCC internal prototype to avoid an error.
11825 Use char because int might match the return type of a GCC
11826 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011827#ifdef __cplusplus
11828extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011829#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011830char $ac_func ();
11831/* The GNU C library defines this for functions which it implements
11832 to always fail with ENOSYS. Some functions are actually named
11833 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011834#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011835choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011836#endif
11837
11838int
11839main ()
11840{
Reid Spencera773bd52006-08-04 18:18:08 +000011841return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011842 ;
11843 return 0;
11844}
11845_ACEOF
11846rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011847if { (ac_try="$ac_link"
11848case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864esac
11865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11867 ac_status=$?
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try='test -s conftest$ac_exeext'
11871 { (case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874esac
11875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_try") 2>&5
11877 ac_status=$?
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011880 eval "$as_ac_var=yes"
11881else
11882 echo "$as_me: failed program was:" >&5
11883sed 's/^/| /' conftest.$ac_ext >&5
11884
Reid Spencera773bd52006-08-04 18:18:08 +000011885 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011886fi
Reid Spencera773bd52006-08-04 18:18:08 +000011887
Bill Wendlingebcceee2009-04-18 11:20:33 +000011888rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011889 conftest$ac_exeext conftest.$ac_ext
11890fi
Reid Spencera773bd52006-08-04 18:18:08 +000011891ac_res=`eval echo '${'$as_ac_var'}'`
11892 { echo "$as_me:$LINENO: result: $ac_res" >&5
11893echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011894if test `eval echo '${'$as_ac_var'}'` = yes; then
11895 cat >>confdefs.h <<_ACEOF
11896#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11897_ACEOF
11898 break
11899fi
11900done
11901
11902
11903
11904for ac_func in memcpy bcopy
11905do
11906as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011907{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11908echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11909if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011910 echo $ECHO_N "(cached) $ECHO_C" >&6
11911else
11912 cat >conftest.$ac_ext <<_ACEOF
11913/* confdefs.h. */
11914_ACEOF
11915cat confdefs.h >>conftest.$ac_ext
11916cat >>conftest.$ac_ext <<_ACEOF
11917/* end confdefs.h. */
11918/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11920#define $ac_func innocuous_$ac_func
11921
11922/* System header to define __stub macros and hopefully few prototypes,
11923 which can conflict with char $ac_func (); below.
11924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11925 <limits.h> exists even on freestanding compilers. */
11926
11927#ifdef __STDC__
11928# include <limits.h>
11929#else
11930# include <assert.h>
11931#endif
11932
11933#undef $ac_func
11934
Reid Spencera773bd52006-08-04 18:18:08 +000011935/* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011938#ifdef __cplusplus
11939extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011940#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011941char $ac_func ();
11942/* The GNU C library defines this for functions which it implements
11943 to always fail with ENOSYS. Some functions are actually named
11944 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011945#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011946choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011947#endif
11948
11949int
11950main ()
11951{
Reid Spencera773bd52006-08-04 18:18:08 +000011952return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011953 ;
11954 return 0;
11955}
11956_ACEOF
11957rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011958if { (ac_try="$ac_link"
11959case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11962esac
11963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011965 ac_status=$?
11966 grep -v '^ *+' conftest.er1 >conftest.err
11967 rm -f conftest.er1
11968 cat conftest.err >&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011970 (exit $ac_status); } &&
11971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11972 { (case "(($ac_try" in
11973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11974 *) ac_try_echo=$ac_try;;
11975esac
11976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11977 (eval "$ac_try") 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest$ac_exeext'
11982 { (case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11985esac
11986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_try") 2>&5
11988 ac_status=$?
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011991 eval "$as_ac_var=yes"
11992else
11993 echo "$as_me: failed program was:" >&5
11994sed 's/^/| /' conftest.$ac_ext >&5
11995
Reid Spencera773bd52006-08-04 18:18:08 +000011996 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011997fi
Reid Spencera773bd52006-08-04 18:18:08 +000011998
Bill Wendlingebcceee2009-04-18 11:20:33 +000011999rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000 conftest$ac_exeext conftest.$ac_ext
12001fi
Reid Spencera773bd52006-08-04 18:18:08 +000012002ac_res=`eval echo '${'$as_ac_var'}'`
12003 { echo "$as_me:$LINENO: result: $ac_res" >&5
12004echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012005if test `eval echo '${'$as_ac_var'}'` = yes; then
12006 cat >>confdefs.h <<_ACEOF
12007#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12008_ACEOF
12009 break
12010fi
12011done
12012
12013
12014
12015for ac_func in memmove strcmp
12016do
12017as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012018{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12019echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12020if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012021 echo $ECHO_N "(cached) $ECHO_C" >&6
12022else
12023 cat >conftest.$ac_ext <<_ACEOF
12024/* confdefs.h. */
12025_ACEOF
12026cat confdefs.h >>conftest.$ac_ext
12027cat >>conftest.$ac_ext <<_ACEOF
12028/* end confdefs.h. */
12029/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12031#define $ac_func innocuous_$ac_func
12032
12033/* System header to define __stub macros and hopefully few prototypes,
12034 which can conflict with char $ac_func (); below.
12035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12036 <limits.h> exists even on freestanding compilers. */
12037
12038#ifdef __STDC__
12039# include <limits.h>
12040#else
12041# include <assert.h>
12042#endif
12043
12044#undef $ac_func
12045
Reid Spencera773bd52006-08-04 18:18:08 +000012046/* Override any GCC internal prototype to avoid an error.
12047 Use char because int might match the return type of a GCC
12048 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012049#ifdef __cplusplus
12050extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012051#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012052char $ac_func ();
12053/* The GNU C library defines this for functions which it implements
12054 to always fail with ENOSYS. Some functions are actually named
12055 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012056#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012057choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058#endif
12059
12060int
12061main ()
12062{
Reid Spencera773bd52006-08-04 18:18:08 +000012063return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012064 ;
12065 return 0;
12066}
12067_ACEOF
12068rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012069if { (ac_try="$ac_link"
12070case "(($ac_try" in
12071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12072 *) ac_try_echo=$ac_try;;
12073esac
12074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12075 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012076 ac_status=$?
12077 grep -v '^ *+' conftest.er1 >conftest.err
12078 rm -f conftest.er1
12079 cat conftest.err >&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012081 (exit $ac_status); } &&
12082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12083 { (case "(($ac_try" in
12084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085 *) ac_try_echo=$ac_try;;
12086esac
12087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12088 (eval "$ac_try") 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; } &&
12092 { ac_try='test -s conftest$ac_exeext'
12093 { (case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12096esac
12097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_try") 2>&5
12099 ac_status=$?
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012102 eval "$as_ac_var=yes"
12103else
12104 echo "$as_me: failed program was:" >&5
12105sed 's/^/| /' conftest.$ac_ext >&5
12106
Reid Spencera773bd52006-08-04 18:18:08 +000012107 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012108fi
Reid Spencera773bd52006-08-04 18:18:08 +000012109
Bill Wendlingebcceee2009-04-18 11:20:33 +000012110rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012111 conftest$ac_exeext conftest.$ac_ext
12112fi
Reid Spencera773bd52006-08-04 18:18:08 +000012113ac_res=`eval echo '${'$as_ac_var'}'`
12114 { echo "$as_me:$LINENO: result: $ac_res" >&5
12115echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012116if test `eval echo '${'$as_ac_var'}'` = yes; then
12117 cat >>confdefs.h <<_ACEOF
12118#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12119_ACEOF
12120
12121fi
12122done
12123
12124
12125
12126
12127for ac_func in closedir opendir readdir
12128do
12129as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012130{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12131echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12132if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012133 echo $ECHO_N "(cached) $ECHO_C" >&6
12134else
12135 cat >conftest.$ac_ext <<_ACEOF
12136/* confdefs.h. */
12137_ACEOF
12138cat confdefs.h >>conftest.$ac_ext
12139cat >>conftest.$ac_ext <<_ACEOF
12140/* end confdefs.h. */
12141/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12143#define $ac_func innocuous_$ac_func
12144
12145/* System header to define __stub macros and hopefully few prototypes,
12146 which can conflict with char $ac_func (); below.
12147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12148 <limits.h> exists even on freestanding compilers. */
12149
12150#ifdef __STDC__
12151# include <limits.h>
12152#else
12153# include <assert.h>
12154#endif
12155
12156#undef $ac_func
12157
Reid Spencera773bd52006-08-04 18:18:08 +000012158/* Override any GCC internal prototype to avoid an error.
12159 Use char because int might match the return type of a GCC
12160 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012161#ifdef __cplusplus
12162extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012164char $ac_func ();
12165/* The GNU C library defines this for functions which it implements
12166 to always fail with ENOSYS. Some functions are actually named
12167 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012168#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012169choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012170#endif
12171
12172int
12173main ()
12174{
Reid Spencera773bd52006-08-04 18:18:08 +000012175return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012176 ;
12177 return 0;
12178}
12179_ACEOF
12180rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012181if { (ac_try="$ac_link"
12182case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185esac
12186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012188 ac_status=$?
12189 grep -v '^ *+' conftest.er1 >conftest.err
12190 rm -f conftest.er1
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012193 (exit $ac_status); } &&
12194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197 *) ac_try_echo=$ac_try;;
12198esac
12199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12201 ac_status=$?
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try='test -s conftest$ac_exeext'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208esac
12209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012214 eval "$as_ac_var=yes"
12215else
12216 echo "$as_me: failed program was:" >&5
12217sed 's/^/| /' conftest.$ac_ext >&5
12218
Reid Spencera773bd52006-08-04 18:18:08 +000012219 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012220fi
Reid Spencera773bd52006-08-04 18:18:08 +000012221
Bill Wendlingebcceee2009-04-18 11:20:33 +000012222rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012223 conftest$ac_exeext conftest.$ac_ext
12224fi
Reid Spencera773bd52006-08-04 18:18:08 +000012225ac_res=`eval echo '${'$as_ac_var'}'`
12226 { echo "$as_me:$LINENO: result: $ac_res" >&5
12227echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012228if test `eval echo '${'$as_ac_var'}'` = yes; then
12229 cat >>confdefs.h <<_ACEOF
12230#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12231_ACEOF
12232
12233fi
12234done
12235
12236
Reid Spencera773bd52006-08-04 18:18:08 +000012237# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012238if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012239 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012240 case $enableval in
12241 yes) enable_shared=yes ;;
12242 no) enable_shared=no ;;
12243 *)
12244 enable_shared=no
12245 # Look at the argument we got. We use all the common list separators.
12246 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12247 for pkg in $enableval; do
12248 IFS="$lt_save_ifs"
12249 if test "X$pkg" = "X$p"; then
12250 enable_shared=yes
12251 fi
12252 done
12253 IFS="$lt_save_ifs"
12254 ;;
12255 esac
12256else
12257 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012258fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012259
Reid Spencera773bd52006-08-04 18:18:08 +000012260
12261# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012262if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012263 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012264 case $enableval in
12265 yes) enable_static=yes ;;
12266 no) enable_static=no ;;
12267 *)
12268 enable_static=no
12269 # Look at the argument we got. We use all the common list separators.
12270 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12271 for pkg in $enableval; do
12272 IFS="$lt_save_ifs"
12273 if test "X$pkg" = "X$p"; then
12274 enable_static=yes
12275 fi
12276 done
12277 IFS="$lt_save_ifs"
12278 ;;
12279 esac
12280else
12281 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012282fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012283
Reid Spencera773bd52006-08-04 18:18:08 +000012284
12285# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012286if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012287 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012288 case $enableval in
12289 yes) enable_fast_install=yes ;;
12290 no) enable_fast_install=no ;;
12291 *)
12292 enable_fast_install=no
12293 # Look at the argument we got. We use all the common list separators.
12294 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12295 for pkg in $enableval; do
12296 IFS="$lt_save_ifs"
12297 if test "X$pkg" = "X$p"; then
12298 enable_fast_install=yes
12299 fi
12300 done
12301 IFS="$lt_save_ifs"
12302 ;;
12303 esac
12304else
12305 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012306fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012307
Reid Spencera773bd52006-08-04 18:18:08 +000012308
12309{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12310echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012311if test "${lt_cv_path_SED+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12313else
12314 # Loop through the user's path and test for sed and gsed.
12315# Then use that list of sed's as ones to test for truncation.
12316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317for as_dir in $PATH
12318do
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
12321 for lt_ac_prog in sed gsed; do
12322 for ac_exec_ext in '' $ac_executable_extensions; do
12323 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12324 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12325 fi
12326 done
12327 done
12328done
12329lt_ac_max=0
12330lt_ac_count=0
12331# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12332# along with /bin/sed that truncates output.
12333for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012334 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012335 cat /dev/null > conftest.in
12336 lt_ac_count=0
12337 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12338 # Check for GNU sed and select it if it is found.
12339 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12340 lt_cv_path_SED=$lt_ac_sed
12341 break
12342 fi
12343 while true; do
12344 cat conftest.in conftest.in >conftest.tmp
12345 mv conftest.tmp conftest.in
12346 cp conftest.in conftest.nl
12347 echo >>conftest.nl
12348 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12349 cmp -s conftest.out conftest.nl || break
12350 # 10000 chars as input seems more than enough
12351 test $lt_ac_count -gt 10 && break
12352 lt_ac_count=`expr $lt_ac_count + 1`
12353 if test $lt_ac_count -gt $lt_ac_max; then
12354 lt_ac_max=$lt_ac_count
12355 lt_cv_path_SED=$lt_ac_sed
12356 fi
12357 done
12358done
12359
12360fi
12361
12362SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012363{ echo "$as_me:$LINENO: result: $SED" >&5
12364echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012365
12366
Reid Spencera773bd52006-08-04 18:18:08 +000012367# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012368if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012369 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012370else
12371 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012372fi
12373
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012374ac_prog=ld
12375if test "$GCC" = yes; then
12376 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012377 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12378echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012379 case $host in
12380 *-*-mingw*)
12381 # gcc leaves a trailing carriage return which upsets mingw
12382 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12383 *)
12384 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12385 esac
12386 case $ac_prog in
12387 # Accept absolute paths.
12388 [\\/]* | ?:[\\/]*)
12389 re_direlt='/[^/][^/]*/\.\./'
12390 # Canonicalize the pathname of ld
12391 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12392 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12393 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12394 done
12395 test -z "$LD" && LD="$ac_prog"
12396 ;;
12397 "")
12398 # If it fails, then pretend we aren't using GCC.
12399 ac_prog=ld
12400 ;;
12401 *)
12402 # If it is relative, then search for the first ld in PATH.
12403 with_gnu_ld=unknown
12404 ;;
12405 esac
12406elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012407 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12408echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012409else
Reid Spencera773bd52006-08-04 18:18:08 +000012410 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12411echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012412fi
12413if test "${lt_cv_path_LD+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12415else
12416 if test -z "$LD"; then
12417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12418 for ac_dir in $PATH; do
12419 IFS="$lt_save_ifs"
12420 test -z "$ac_dir" && ac_dir=.
12421 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12422 lt_cv_path_LD="$ac_dir/$ac_prog"
12423 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012424 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012425 # Break only if it was the GNU/non-GNU ld that we prefer.
12426 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12427 *GNU* | *'with BFD'*)
12428 test "$with_gnu_ld" != no && break
12429 ;;
12430 *)
12431 test "$with_gnu_ld" != yes && break
12432 ;;
12433 esac
12434 fi
12435 done
12436 IFS="$lt_save_ifs"
12437else
12438 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12439fi
12440fi
12441
12442LD="$lt_cv_path_LD"
12443if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012444 { echo "$as_me:$LINENO: result: $LD" >&5
12445echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012446else
Reid Spencera773bd52006-08-04 18:18:08 +000012447 { echo "$as_me:$LINENO: result: no" >&5
12448echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012449fi
12450test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12451echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12452 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012453{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12454echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012455if test "${lt_cv_prog_gnu_ld+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12457else
Reid Spencera773bd52006-08-04 18:18:08 +000012458 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012459case `$LD -v 2>&1 </dev/null` in
12460*GNU* | *'with BFD'*)
12461 lt_cv_prog_gnu_ld=yes
12462 ;;
12463*)
12464 lt_cv_prog_gnu_ld=no
12465 ;;
12466esac
12467fi
Reid Spencera773bd52006-08-04 18:18:08 +000012468{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12469echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012470with_gnu_ld=$lt_cv_prog_gnu_ld
12471
12472
Reid Spencera773bd52006-08-04 18:18:08 +000012473{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12474echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012475if test "${lt_cv_ld_reload_flag+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12477else
12478 lt_cv_ld_reload_flag='-r'
12479fi
Reid Spencera773bd52006-08-04 18:18:08 +000012480{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12481echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012482reload_flag=$lt_cv_ld_reload_flag
12483case $reload_flag in
12484"" | " "*) ;;
12485*) reload_flag=" $reload_flag" ;;
12486esac
12487reload_cmds='$LD$reload_flag -o $output$reload_objs'
12488case $host_os in
12489 darwin*)
12490 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012491 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012492 else
12493 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12494 fi
12495 ;;
12496esac
12497
Reid Spencera773bd52006-08-04 18:18:08 +000012498{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12499echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012500if test "${lt_cv_deplibs_check_method+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12502else
12503 lt_cv_file_magic_cmd='$MAGIC_CMD'
12504lt_cv_file_magic_test_file=
12505lt_cv_deplibs_check_method='unknown'
12506# Need to set the preceding variable on all platforms that support
12507# interlibrary dependencies.
12508# 'none' -- dependencies not supported.
12509# `unknown' -- same as none, but documents that we really don't know.
12510# 'pass_all' -- all dependencies passed with no checks.
12511# 'test_compile' -- check by making test program.
12512# 'file_magic [[regex]]' -- check by looking for files in library path
12513# which responds to the $file_magic_cmd with a given extended regex.
12514# If you have `file' or equivalent on your system and you're not sure
12515# whether `pass_all' will *always* work, you probably want this one.
12516
12517case $host_os in
12518aix4* | aix5*)
12519 lt_cv_deplibs_check_method=pass_all
12520 ;;
12521
12522beos*)
12523 lt_cv_deplibs_check_method=pass_all
12524 ;;
12525
12526bsdi[45]*)
12527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12528 lt_cv_file_magic_cmd='/usr/bin/file -L'
12529 lt_cv_file_magic_test_file=/shlib/libc.so
12530 ;;
12531
12532cygwin*)
12533 # func_win32_libid is a shell function defined in ltmain.sh
12534 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12535 lt_cv_file_magic_cmd='func_win32_libid'
12536 ;;
12537
12538mingw* | pw32*)
12539 # Base MSYS/MinGW do not provide the 'file' command needed by
12540 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12541 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12542 lt_cv_file_magic_cmd='$OBJDUMP -f'
12543 ;;
12544
12545darwin* | rhapsody*)
12546 lt_cv_deplibs_check_method=pass_all
12547 ;;
12548
Reid Spencera773bd52006-08-04 18:18:08 +000012549freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012550 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12551 case $host_cpu in
12552 i*86 )
12553 # Not sure whether the presence of OpenBSD here was a mistake.
12554 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012555 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 +000012556 lt_cv_file_magic_cmd=/usr/bin/file
12557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12558 ;;
12559 esac
12560 else
12561 lt_cv_deplibs_check_method=pass_all
12562 fi
12563 ;;
12564
12565gnu*)
12566 lt_cv_deplibs_check_method=pass_all
12567 ;;
12568
12569hpux10.20* | hpux11*)
12570 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012571 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012572 ia64*)
12573 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12574 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12575 ;;
12576 hppa*64*)
12577 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]'
12578 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12579 ;;
12580 *)
12581 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12582 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12583 ;;
12584 esac
12585 ;;
12586
Reid Spencera773bd52006-08-04 18:18:08 +000012587interix3*)
12588 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12589 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12590 ;;
12591
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012592irix5* | irix6* | nonstopux*)
12593 case $LD in
12594 *-32|*"-32 ") libmagic=32-bit;;
12595 *-n32|*"-n32 ") libmagic=N32;;
12596 *-64|*"-64 ") libmagic=64-bit;;
12597 *) libmagic=never-match;;
12598 esac
12599 lt_cv_deplibs_check_method=pass_all
12600 ;;
12601
12602# This must be Linux ELF.
12603linux*)
12604 lt_cv_deplibs_check_method=pass_all
12605 ;;
12606
12607netbsd*)
12608 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12609 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12610 else
12611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12612 fi
12613 ;;
12614
12615newos6*)
12616 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12617 lt_cv_file_magic_cmd=/usr/bin/file
12618 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12619 ;;
12620
12621nto-qnx*)
12622 lt_cv_deplibs_check_method=unknown
12623 ;;
12624
12625openbsd*)
12626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12628 else
12629 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12630 fi
12631 ;;
12632
12633osf3* | osf4* | osf5*)
12634 lt_cv_deplibs_check_method=pass_all
12635 ;;
12636
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012637solaris*)
12638 lt_cv_deplibs_check_method=pass_all
12639 ;;
12640
Reid Spencera773bd52006-08-04 18:18:08 +000012641sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012642 case $host_vendor in
12643 motorola)
12644 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]'
12645 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12646 ;;
12647 ncr)
12648 lt_cv_deplibs_check_method=pass_all
12649 ;;
12650 sequent)
12651 lt_cv_file_magic_cmd='/bin/file'
12652 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12653 ;;
12654 sni)
12655 lt_cv_file_magic_cmd='/bin/file'
12656 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12657 lt_cv_file_magic_test_file=/lib/libc.so
12658 ;;
12659 siemens)
12660 lt_cv_deplibs_check_method=pass_all
12661 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012662 pc)
12663 lt_cv_deplibs_check_method=pass_all
12664 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012665 esac
12666 ;;
12667
Reid Spencera773bd52006-08-04 18:18:08 +000012668sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012669 lt_cv_deplibs_check_method=pass_all
12670 ;;
12671esac
12672
12673fi
Reid Spencera773bd52006-08-04 18:18:08 +000012674{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12675echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012676file_magic_cmd=$lt_cv_file_magic_cmd
12677deplibs_check_method=$lt_cv_deplibs_check_method
12678test -z "$deplibs_check_method" && deplibs_check_method=unknown
12679
12680
12681
12682# If no C compiler was specified, use CC.
12683LTCC=${LTCC-"$CC"}
12684
Reid Spencera773bd52006-08-04 18:18:08 +000012685# If no C compiler flags were specified, use CFLAGS.
12686LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12687
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012688# Allow CC to be a program name with arguments.
12689compiler=$CC
12690
Reid Spencera773bd52006-08-04 18:18:08 +000012691# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012692if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012693 enableval=$enable_libtool_lock;
12694fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012695
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012696test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12697
12698# Some flags need to be propagated to the compiler or linker for good
12699# libtool support.
12700case $host in
12701ia64-*-hpux*)
12702 # Find out which ABI we are using.
12703 echo 'int i;' > conftest.$ac_ext
12704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12705 (eval $ac_compile) 2>&5
12706 ac_status=$?
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); }; then
12709 case `/usr/bin/file conftest.$ac_objext` in
12710 *ELF-32*)
12711 HPUX_IA64_MODE="32"
12712 ;;
12713 *ELF-64*)
12714 HPUX_IA64_MODE="64"
12715 ;;
12716 esac
12717 fi
12718 rm -rf conftest*
12719 ;;
12720*-*-irix6*)
12721 # Find out which ABI we are using.
Owen Andersona8603702009-05-19 22:18:56 +000012722 echo '#line 12722 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12724 (eval $ac_compile) 2>&5
12725 ac_status=$?
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); }; then
12728 if test "$lt_cv_prog_gnu_ld" = yes; then
12729 case `/usr/bin/file conftest.$ac_objext` in
12730 *32-bit*)
12731 LD="${LD-ld} -melf32bsmip"
12732 ;;
12733 *N32*)
12734 LD="${LD-ld} -melf32bmipn32"
12735 ;;
12736 *64-bit*)
12737 LD="${LD-ld} -melf64bmip"
12738 ;;
12739 esac
12740 else
12741 case `/usr/bin/file conftest.$ac_objext` in
12742 *32-bit*)
12743 LD="${LD-ld} -32"
12744 ;;
12745 *N32*)
12746 LD="${LD-ld} -n32"
12747 ;;
12748 *64-bit*)
12749 LD="${LD-ld} -64"
12750 ;;
12751 esac
12752 fi
12753 fi
12754 rm -rf conftest*
12755 ;;
12756
12757x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12758 # Find out which ABI we are using.
12759 echo 'int i;' > conftest.$ac_ext
12760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12761 (eval $ac_compile) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012765 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012766 *32-bit*)
12767 case $host in
12768 x86_64-*linux*)
12769 LD="${LD-ld} -m elf_i386"
12770 ;;
12771 ppc64-*linux*|powerpc64-*linux*)
12772 LD="${LD-ld} -m elf32ppclinux"
12773 ;;
12774 s390x-*linux*)
12775 LD="${LD-ld} -m elf_s390"
12776 ;;
12777 sparc64-*linux*)
12778 LD="${LD-ld} -m elf32_sparc"
12779 ;;
12780 esac
12781 ;;
12782 *64-bit*)
12783 case $host in
12784 x86_64-*linux*)
12785 LD="${LD-ld} -m elf_x86_64"
12786 ;;
12787 ppc*-*linux*|powerpc*-*linux*)
12788 LD="${LD-ld} -m elf64ppc"
12789 ;;
12790 s390*-*linux*)
12791 LD="${LD-ld} -m elf64_s390"
12792 ;;
12793 sparc*-*linux*)
12794 LD="${LD-ld} -m elf64_sparc"
12795 ;;
12796 esac
12797 ;;
12798 esac
12799 fi
12800 rm -rf conftest*
12801 ;;
12802
12803*-*-sco3.2v5*)
12804 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12805 SAVE_CFLAGS="$CFLAGS"
12806 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012807 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12808echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012809if test "${lt_cv_cc_needs_belf+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12811else
12812 ac_ext=c
12813ac_cpp='$CPP $CPPFLAGS'
12814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12816ac_compiler_gnu=$ac_cv_c_compiler_gnu
12817
12818 cat >conftest.$ac_ext <<_ACEOF
12819/* confdefs.h. */
12820_ACEOF
12821cat confdefs.h >>conftest.$ac_ext
12822cat >>conftest.$ac_ext <<_ACEOF
12823/* end confdefs.h. */
12824
Reid Spencera773bd52006-08-04 18:18:08 +000012825int
12826main ()
12827{
12828
12829 ;
12830 return 0;
12831}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012832_ACEOF
12833rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012834if { (ac_try="$ac_link"
12835case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12838esac
12839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012846 (exit $ac_status); } &&
12847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12848 { (case "(($ac_try" in
12849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12851esac
12852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_try") 2>&5
12854 ac_status=$?
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; } &&
12857 { ac_try='test -s conftest$ac_exeext'
12858 { (case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12861esac
12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_try") 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012867 lt_cv_cc_needs_belf=yes
12868else
12869 echo "$as_me: failed program was:" >&5
12870sed 's/^/| /' conftest.$ac_ext >&5
12871
Reid Spencera773bd52006-08-04 18:18:08 +000012872 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012873fi
Reid Spencera773bd52006-08-04 18:18:08 +000012874
Bill Wendlingebcceee2009-04-18 11:20:33 +000012875rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012876 conftest$ac_exeext conftest.$ac_ext
12877 ac_ext=c
12878ac_cpp='$CPP $CPPFLAGS'
12879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12881ac_compiler_gnu=$ac_cv_c_compiler_gnu
12882
12883fi
Reid Spencera773bd52006-08-04 18:18:08 +000012884{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12885echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012886 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12887 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12888 CFLAGS="$SAVE_CFLAGS"
12889 fi
12890 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012891sparc*-*solaris*)
12892 # Find out which ABI we are using.
12893 echo 'int i;' > conftest.$ac_ext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895 (eval $ac_compile) 2>&5
12896 ac_status=$?
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; then
12899 case `/usr/bin/file conftest.o` in
12900 *64-bit*)
12901 case $lt_cv_prog_gnu_ld in
12902 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12903 *) LD="${LD-ld} -64" ;;
12904 esac
12905 ;;
12906 esac
12907 fi
12908 rm -rf conftest*
12909 ;;
12910
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012911
12912esac
12913
12914need_locks="$enable_libtool_lock"
12915
12916
Reid Spencer2706f8c2004-09-19 23:53:36 +000012917
12918
12919if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12920 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12921 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012922 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012923ac_cpp='$CXXCPP $CPPFLAGS'
12924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012927{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12928echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012929if test -z "$CXXCPP"; then
12930 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012931 echo $ECHO_N "(cached) $ECHO_C" >&6
12932else
John Criswell47fdd832003-07-14 16:52:07 +000012933 # Double quotes because CXXCPP needs to be expanded
12934 for CXXCPP in "$CXX -E" "/lib/cpp"
12935 do
12936 ac_preproc_ok=false
12937for ac_cxx_preproc_warn_flag in '' yes
12938do
12939 # Use a header file that comes with gcc, so configuring glibc
12940 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12942 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012943 # On the NeXT, cc -E runs the code through the compiler's parser,
12944 # not just through cpp. "Syntax error" is here to catch this case.
12945 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012946/* confdefs.h. */
12947_ACEOF
12948cat confdefs.h >>conftest.$ac_ext
12949cat >>conftest.$ac_ext <<_ACEOF
12950/* end confdefs.h. */
12951#ifdef __STDC__
12952# include <limits.h>
12953#else
12954# include <assert.h>
12955#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012956 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012957_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012958if { (ac_try="$ac_cpp conftest.$ac_ext"
12959case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12962esac
12963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012965 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012966 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012967 rm -f conftest.er1
12968 cat conftest.err >&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012970 (exit $ac_status); } >/dev/null; then
12971 if test -s conftest.err; then
12972 ac_cpp_err=$ac_cxx_preproc_warn_flag
12973 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12974 else
12975 ac_cpp_err=
12976 fi
12977else
12978 ac_cpp_err=yes
12979fi
12980if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012981 :
12982else
12983 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012984sed 's/^/| /' conftest.$ac_ext >&5
12985
John Criswell47fdd832003-07-14 16:52:07 +000012986 # Broken: fails on valid input.
12987continue
12988fi
Reid Spencera773bd52006-08-04 18:18:08 +000012989
John Criswell47fdd832003-07-14 16:52:07 +000012990rm -f conftest.err conftest.$ac_ext
12991
Reid Spencera773bd52006-08-04 18:18:08 +000012992 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012993 # can be detected and how.
12994 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012995/* confdefs.h. */
12996_ACEOF
12997cat confdefs.h >>conftest.$ac_ext
12998cat >>conftest.$ac_ext <<_ACEOF
12999/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013000#include <ac_nonexistent.h>
13001_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013002if { (ac_try="$ac_cpp conftest.$ac_ext"
13003case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006esac
13007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013009 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013010 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013011 rm -f conftest.er1
13012 cat conftest.err >&5
13013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013014 (exit $ac_status); } >/dev/null; then
13015 if test -s conftest.err; then
13016 ac_cpp_err=$ac_cxx_preproc_warn_flag
13017 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13018 else
13019 ac_cpp_err=
13020 fi
13021else
13022 ac_cpp_err=yes
13023fi
13024if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013025 # Broken: success on invalid input.
13026continue
13027else
13028 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013029sed 's/^/| /' conftest.$ac_ext >&5
13030
John Criswell47fdd832003-07-14 16:52:07 +000013031 # Passes both tests.
13032ac_preproc_ok=:
13033break
13034fi
Reid Spencera773bd52006-08-04 18:18:08 +000013035
John Criswell47fdd832003-07-14 16:52:07 +000013036rm -f conftest.err conftest.$ac_ext
13037
13038done
13039# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13040rm -f conftest.err conftest.$ac_ext
13041if $ac_preproc_ok; then
13042 break
John Criswell7a73b802003-06-30 21:59:07 +000013043fi
13044
John Criswell47fdd832003-07-14 16:52:07 +000013045 done
13046 ac_cv_prog_CXXCPP=$CXXCPP
13047
13048fi
13049 CXXCPP=$ac_cv_prog_CXXCPP
13050else
13051 ac_cv_prog_CXXCPP=$CXXCPP
13052fi
Reid Spencera773bd52006-08-04 18:18:08 +000013053{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13054echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013055ac_preproc_ok=false
13056for ac_cxx_preproc_warn_flag in '' yes
13057do
13058 # Use a header file that comes with gcc, so configuring glibc
13059 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013060 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13061 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013062 # On the NeXT, cc -E runs the code through the compiler's parser,
13063 # not just through cpp. "Syntax error" is here to catch this case.
13064 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013065/* confdefs.h. */
13066_ACEOF
13067cat confdefs.h >>conftest.$ac_ext
13068cat >>conftest.$ac_ext <<_ACEOF
13069/* end confdefs.h. */
13070#ifdef __STDC__
13071# include <limits.h>
13072#else
13073# include <assert.h>
13074#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013075 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013076_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013077if { (ac_try="$ac_cpp conftest.$ac_ext"
13078case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13081esac
13082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013084 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013085 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013089 (exit $ac_status); } >/dev/null; then
13090 if test -s conftest.err; then
13091 ac_cpp_err=$ac_cxx_preproc_warn_flag
13092 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13093 else
13094 ac_cpp_err=
13095 fi
13096else
13097 ac_cpp_err=yes
13098fi
13099if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013100 :
13101else
13102 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013103sed 's/^/| /' conftest.$ac_ext >&5
13104
John Criswell47fdd832003-07-14 16:52:07 +000013105 # Broken: fails on valid input.
13106continue
13107fi
Reid Spencera773bd52006-08-04 18:18:08 +000013108
John Criswell47fdd832003-07-14 16:52:07 +000013109rm -f conftest.err conftest.$ac_ext
13110
Reid Spencera773bd52006-08-04 18:18:08 +000013111 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013112 # can be detected and how.
13113 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013114/* confdefs.h. */
13115_ACEOF
13116cat confdefs.h >>conftest.$ac_ext
13117cat >>conftest.$ac_ext <<_ACEOF
13118/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013119#include <ac_nonexistent.h>
13120_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013121if { (ac_try="$ac_cpp conftest.$ac_ext"
13122case "(($ac_try" in
13123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13124 *) ac_try_echo=$ac_try;;
13125esac
13126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013128 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013129 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013130 rm -f conftest.er1
13131 cat conftest.err >&5
13132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013133 (exit $ac_status); } >/dev/null; then
13134 if test -s conftest.err; then
13135 ac_cpp_err=$ac_cxx_preproc_warn_flag
13136 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13137 else
13138 ac_cpp_err=
13139 fi
13140else
13141 ac_cpp_err=yes
13142fi
13143if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013144 # Broken: success on invalid input.
13145continue
13146else
13147 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013148sed 's/^/| /' conftest.$ac_ext >&5
13149
John Criswell47fdd832003-07-14 16:52:07 +000013150 # Passes both tests.
13151ac_preproc_ok=:
13152break
13153fi
Reid Spencera773bd52006-08-04 18:18:08 +000013154
John Criswell47fdd832003-07-14 16:52:07 +000013155rm -f conftest.err conftest.$ac_ext
13156
13157done
13158# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13159rm -f conftest.err conftest.$ac_ext
13160if $ac_preproc_ok; then
13161 :
13162else
John Criswell0c38eaf2003-09-10 15:17:25 +000013163 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13164See \`config.log' for more details." >&5
13165echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13166See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013167 { (exit 1); exit 1; }; }
13168fi
13169
Reid Spencera773bd52006-08-04 18:18:08 +000013170ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013171ac_cpp='$CXXCPP $CPPFLAGS'
13172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13175
Reid Spencer2706f8c2004-09-19 23:53:36 +000013176fi
13177
John Criswell47fdd832003-07-14 16:52:07 +000013178
13179ac_ext=f
13180ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13181ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13182ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13183if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013184 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 +000013185 do
13186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13187set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013188{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013190if test "${ac_cv_prog_F77+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13192else
13193 if test -n "$F77"; then
13194 ac_cv_prog_F77="$F77" # Let the user override the test.
13195else
13196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197for as_dir in $PATH
13198do
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
13201 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013202 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 +000013203 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13205 break 2
13206 fi
13207done
13208done
Reid Spencera773bd52006-08-04 18:18:08 +000013209IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013210
13211fi
13212fi
13213F77=$ac_cv_prog_F77
13214if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013215 { echo "$as_me:$LINENO: result: $F77" >&5
13216echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013217else
Reid Spencera773bd52006-08-04 18:18:08 +000013218 { echo "$as_me:$LINENO: result: no" >&5
13219echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013220fi
13221
Reid Spencera773bd52006-08-04 18:18:08 +000013222
John Criswell47fdd832003-07-14 16:52:07 +000013223 test -n "$F77" && break
13224 done
13225fi
13226if test -z "$F77"; then
13227 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013228 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 +000013229do
13230 # Extract the first word of "$ac_prog", so it can be a program name with args.
13231set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013232{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013234if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13236else
13237 if test -n "$ac_ct_F77"; then
13238 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13239else
13240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13241for as_dir in $PATH
13242do
13243 IFS=$as_save_IFS
13244 test -z "$as_dir" && as_dir=.
13245 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013246 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 +000013247 ac_cv_prog_ac_ct_F77="$ac_prog"
13248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13249 break 2
13250 fi
13251done
13252done
Reid Spencera773bd52006-08-04 18:18:08 +000013253IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013254
13255fi
13256fi
13257ac_ct_F77=$ac_cv_prog_ac_ct_F77
13258if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013259 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13260echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013261else
Reid Spencera773bd52006-08-04 18:18:08 +000013262 { echo "$as_me:$LINENO: result: no" >&5
13263echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013264fi
13265
Reid Spencera773bd52006-08-04 18:18:08 +000013266
John Criswell47fdd832003-07-14 16:52:07 +000013267 test -n "$ac_ct_F77" && break
13268done
13269
Reid Spencera773bd52006-08-04 18:18:08 +000013270 if test "x$ac_ct_F77" = x; then
13271 F77=""
13272 else
13273 case $cross_compiling:$ac_tool_warned in
13274yes:)
13275{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13276whose name does not start with the host triplet. If you think this
13277configuration is useful to you, please write to autoconf@gnu.org." >&5
13278echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13279whose name does not start with the host triplet. If you think this
13280configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13281ac_tool_warned=yes ;;
13282esac
13283 F77=$ac_ct_F77
13284 fi
John Criswell47fdd832003-07-14 16:52:07 +000013285fi
13286
13287
13288# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013289echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013290ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013291{ (ac_try="$ac_compiler --version >&5"
13292case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13295esac
13296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013298 ac_status=$?
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013301{ (ac_try="$ac_compiler -v >&5"
13302case "(($ac_try" in
13303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13304 *) ac_try_echo=$ac_try;;
13305esac
13306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13307 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013311{ (ac_try="$ac_compiler -V >&5"
13312case "(($ac_try" in
13313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13314 *) ac_try_echo=$ac_try;;
13315esac
13316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13317 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013318 ac_status=$?
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013321rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013322
13323# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013324# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013325ac_save_ext=$ac_ext
13326ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013327{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13328echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013329if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13331else
13332 cat >conftest.$ac_ext <<_ACEOF
13333 program main
13334#ifndef __GNUC__
13335 choke me
13336#endif
13337
13338 end
13339_ACEOF
13340rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013341if { (ac_try="$ac_compile"
13342case "(($ac_try" in
13343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13344 *) ac_try_echo=$ac_try;;
13345esac
13346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13347 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013348 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013349 grep -v '^ *+' conftest.er1 >conftest.err
13350 rm -f conftest.er1
13351 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013353 (exit $ac_status); } &&
13354 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13355 { (case "(($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_try") 2>&5
13361 ac_status=$?
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; } &&
13364 { ac_try='test -s conftest.$ac_objext'
13365 { (case "(($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_try") 2>&5
13371 ac_status=$?
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013374 ac_compiler_gnu=yes
13375else
13376 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013377sed 's/^/| /' conftest.$ac_ext >&5
13378
Reid Spencera773bd52006-08-04 18:18:08 +000013379 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013380fi
Reid Spencera773bd52006-08-04 18:18:08 +000013381
13382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013383ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13384
13385fi
Reid Spencera773bd52006-08-04 18:18:08 +000013386{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13387echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013388ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013389ac_test_FFLAGS=${FFLAGS+set}
13390ac_save_FFLAGS=$FFLAGS
13391FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013392{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13393echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013394if test "${ac_cv_prog_f77_g+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13396else
13397 FFLAGS=-g
13398cat >conftest.$ac_ext <<_ACEOF
13399 program main
13400
13401 end
13402_ACEOF
13403rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013404if { (ac_try="$ac_compile"
13405case "(($ac_try" in
13406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13408esac
13409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013411 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013412 grep -v '^ *+' conftest.er1 >conftest.err
13413 rm -f conftest.er1
13414 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013416 (exit $ac_status); } &&
13417 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
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); }; } &&
13427 { ac_try='test -s conftest.$ac_objext'
13428 { (case "(($ac_try" in
13429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13431esac
13432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_try") 2>&5
13434 ac_status=$?
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013437 ac_cv_prog_f77_g=yes
13438else
13439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013440sed 's/^/| /' conftest.$ac_ext >&5
13441
Reid Spencera773bd52006-08-04 18:18:08 +000013442 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013443fi
Reid Spencera773bd52006-08-04 18:18:08 +000013444
13445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013446
13447fi
Reid Spencera773bd52006-08-04 18:18:08 +000013448{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13449echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013450if test "$ac_test_FFLAGS" = set; then
13451 FFLAGS=$ac_save_FFLAGS
13452elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013453 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013454 FFLAGS="-g -O2"
13455 else
13456 FFLAGS="-g"
13457 fi
13458else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013459 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013460 FFLAGS="-O2"
13461 else
13462 FFLAGS=
13463 fi
13464fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013465
13466G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013467ac_ext=c
13468ac_cpp='$CPP $CPPFLAGS'
13469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13471ac_compiler_gnu=$ac_cv_c_compiler_gnu
13472
13473
13474
13475# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13476
13477# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013478{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13479echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013480if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482else
13483 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013484 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013485
13486 case $build_os in
13487 msdosdjgpp*)
13488 # On DJGPP, this test can blow up pretty badly due to problems in libc
13489 # (any single argument exceeding 2000 bytes causes a buffer overrun
13490 # during glob expansion). Even if it were fixed, the result of this
13491 # check would be larger than it should be.
13492 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13493 ;;
13494
13495 gnu*)
13496 # Under GNU Hurd, this test is not required because there is
13497 # no limit to the length of command line arguments.
13498 # Libtool will interpret -1 as no limit whatsoever
13499 lt_cv_sys_max_cmd_len=-1;
13500 ;;
13501
13502 cygwin* | mingw*)
13503 # On Win9x/ME, this test blows up -- it succeeds, but takes
13504 # about 5 minutes as the teststring grows exponentially.
13505 # Worse, since 9x/ME are not pre-emptively multitasking,
13506 # you end up with a "frozen" computer, even though with patience
13507 # the test eventually succeeds (with a max line length of 256k).
13508 # Instead, let's just punt: use the minimum linelength reported by
13509 # all of the supported platforms: 8192 (on NT/2K/XP).
13510 lt_cv_sys_max_cmd_len=8192;
13511 ;;
13512
Reid Spencer2706f8c2004-09-19 23:53:36 +000013513 amigaos*)
13514 # On AmigaOS with pdksh, this test takes hours, literally.
13515 # So we just punt and use a minimum line length of 8192.
13516 lt_cv_sys_max_cmd_len=8192;
13517 ;;
13518
Reid Spencera773bd52006-08-04 18:18:08 +000013519 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013520 # This has been around since 386BSD, at least. Likely further.
13521 if test -x /sbin/sysctl; then
13522 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13523 elif test -x /usr/sbin/sysctl; then
13524 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13525 else
Reid Spencera773bd52006-08-04 18:18:08 +000013526 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013527 fi
13528 # And add a safety zone
13529 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013530 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013531 ;;
13532
Reid Spencera773bd52006-08-04 18:18:08 +000013533 interix*)
13534 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13535 lt_cv_sys_max_cmd_len=196608
13536 ;;
13537
13538 osf*)
13539 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13540 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13541 # nice to cause kernel panics so lets avoid the loop below.
13542 # First set a reasonable default.
13543 lt_cv_sys_max_cmd_len=16384
13544 #
13545 if test -x /sbin/sysconfig; then
13546 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13547 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13548 esac
13549 fi
13550 ;;
13551 sco3.2v5*)
13552 lt_cv_sys_max_cmd_len=102400
13553 ;;
13554 sysv5* | sco5v6* | sysv4.2uw2*)
13555 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13556 if test -n "$kargmax"; then
13557 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13558 else
13559 lt_cv_sys_max_cmd_len=32768
13560 fi
13561 ;;
13562 *)
John Criswell47fdd832003-07-14 16:52:07 +000013563 # If test is not a shell built-in, we'll probably end up computing a
13564 # maximum length that is only half of the actual maximum length, but
13565 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013566 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13567 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13568 = "XX$teststring") >/dev/null 2>&1 &&
13569 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013570 lt_cv_sys_max_cmd_len=$new_result &&
13571 test $i != 17 # 1/2 MB should be enough
13572 do
13573 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013574 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013575 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013576 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013577 # Add a significant safety factor because C++ compilers can tack on massive
13578 # amounts of additional arguments before passing them to the linker.
13579 # It appears as though 1/2 is a usable value.
13580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13581 ;;
13582 esac
13583
13584fi
13585
13586if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013587 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13588echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013589else
Reid Spencera773bd52006-08-04 18:18:08 +000013590 { echo "$as_me:$LINENO: result: none" >&5
13591echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013592fi
13593
13594
13595
13596
13597# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013598{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13599echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013600if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13602else
13603
13604# These are sane defaults that work on at least a few old systems.
13605# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13606
13607# Character class describing NM global symbol codes.
13608symcode='[BCDEGRST]'
13609
13610# Regexp to match symbols that can be accessed directly from C.
13611sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13612
John Criswell47fdd832003-07-14 16:52:07 +000013613# Transform an extracted symbol line into a proper C declaration
13614lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13615
13616# Transform an extracted symbol line into symbol name and symbol address
13617lt_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'"
13618
13619# Define system-specific variables.
13620case $host_os in
13621aix*)
13622 symcode='[BCDT]'
13623 ;;
13624cygwin* | mingw* | pw32*)
13625 symcode='[ABCDGISTW]'
13626 ;;
13627hpux*) # Its linker distinguishes data from code symbols
13628 if test "$host_cpu" = ia64; then
13629 symcode='[ABCDEGRST]'
13630 fi
13631 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13632 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'"
13633 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013634linux*)
13635 if test "$host_cpu" = ia64; then
13636 symcode='[ABCDGIRSTW]'
13637 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13638 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'"
13639 fi
13640 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013641irix* | nonstopux*)
13642 symcode='[BCDEGRST]'
13643 ;;
13644osf*)
13645 symcode='[BCDEGQRST]'
13646 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013647solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013648 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013649 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013650sco3.2v5*)
13651 symcode='[DT]'
13652 ;;
13653sysv4.2uw2*)
13654 symcode='[DT]'
13655 ;;
13656sysv5* | sco5v6* | unixware* | OpenUNIX*)
13657 symcode='[ABDT]'
13658 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013659sysv4)
13660 symcode='[DFNSTU]'
13661 ;;
13662esac
13663
13664# Handle CRLF in mingw tool chain
13665opt_cr=
13666case $build_os in
13667mingw*)
13668 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13669 ;;
13670esac
13671
13672# If we're using GNU nm, then use its standard symbol codes.
13673case `$NM -V 2>&1` in
13674*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013675 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013676esac
13677
13678# Try without a prefix undercore, then with it.
13679for ac_symprfx in "" "_"; do
13680
Reid Spencera773bd52006-08-04 18:18:08 +000013681 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13682 symxfrm="\\1 $ac_symprfx\\2 \\2"
13683
John Criswell47fdd832003-07-14 16:52:07 +000013684 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013685 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 +000013686
13687 # Check to see that the pipe works correctly.
13688 pipe_works=no
13689
13690 rm -f conftest*
13691 cat > conftest.$ac_ext <<EOF
13692#ifdef __cplusplus
13693extern "C" {
13694#endif
13695char nm_test_var;
13696void nm_test_func(){}
13697#ifdef __cplusplus
13698}
13699#endif
13700int main(){nm_test_var='a';nm_test_func();return(0);}
13701EOF
13702
13703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13704 (eval $ac_compile) 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; then
13708 # Now try to grab the symbols.
13709 nlist=conftest.nm
13710 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13711 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13712 ac_status=$?
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } && test -s "$nlist"; then
13715 # Try sorting and uniquifying the output.
13716 if sort "$nlist" | uniq > "$nlist"T; then
13717 mv -f "$nlist"T "$nlist"
13718 else
13719 rm -f "$nlist"T
13720 fi
13721
13722 # Make sure that we snagged all the symbols we need.
13723 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13724 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13725 cat <<EOF > conftest.$ac_ext
13726#ifdef __cplusplus
13727extern "C" {
13728#endif
13729
13730EOF
13731 # Now generate the symbol file.
13732 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13733
13734 cat <<EOF >> conftest.$ac_ext
13735#if defined (__STDC__) && __STDC__
13736# define lt_ptr_t void *
13737#else
13738# define lt_ptr_t char *
13739# define const
13740#endif
13741
13742/* The mapping between symbol names and symbols. */
13743const struct {
13744 const char *name;
13745 lt_ptr_t address;
13746}
13747lt_preloaded_symbols[] =
13748{
13749EOF
13750 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13751 cat <<\EOF >> conftest.$ac_ext
13752 {0, (lt_ptr_t) 0}
13753};
13754
13755#ifdef __cplusplus
13756}
13757#endif
13758EOF
13759 # Now try linking the two files.
13760 mv conftest.$ac_objext conftstm.$ac_objext
13761 lt_save_LIBS="$LIBS"
13762 lt_save_CFLAGS="$CFLAGS"
13763 LIBS="conftstm.$ac_objext"
13764 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13766 (eval $ac_link) 2>&5
13767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13770 pipe_works=yes
13771 fi
13772 LIBS="$lt_save_LIBS"
13773 CFLAGS="$lt_save_CFLAGS"
13774 else
13775 echo "cannot find nm_test_func in $nlist" >&5
13776 fi
13777 else
13778 echo "cannot find nm_test_var in $nlist" >&5
13779 fi
13780 else
13781 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13782 fi
13783 else
13784 echo "$progname: failed program was:" >&5
13785 cat conftest.$ac_ext >&5
13786 fi
13787 rm -f conftest* conftst*
13788
13789 # Do not use the global_symbol_pipe unless it works.
13790 if test "$pipe_works" = yes; then
13791 break
13792 else
13793 lt_cv_sys_global_symbol_pipe=
13794 fi
13795done
13796
13797fi
13798
13799if test -z "$lt_cv_sys_global_symbol_pipe"; then
13800 lt_cv_sys_global_symbol_to_cdecl=
13801fi
13802if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013803 { echo "$as_me:$LINENO: result: failed" >&5
13804echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013805else
Reid Spencera773bd52006-08-04 18:18:08 +000013806 { echo "$as_me:$LINENO: result: ok" >&5
13807echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013808fi
13809
Reid Spencera773bd52006-08-04 18:18:08 +000013810{ echo "$as_me:$LINENO: checking for objdir" >&5
13811echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013812if test "${lt_cv_objdir+set}" = set; then
13813 echo $ECHO_N "(cached) $ECHO_C" >&6
13814else
13815 rm -f .libs 2>/dev/null
13816mkdir .libs 2>/dev/null
13817if test -d .libs; then
13818 lt_cv_objdir=.libs
13819else
13820 # MS-DOS does not allow filenames that begin with a dot.
13821 lt_cv_objdir=_libs
13822fi
13823rmdir .libs 2>/dev/null
13824fi
Reid Spencera773bd52006-08-04 18:18:08 +000013825{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13826echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013827objdir=$lt_cv_objdir
13828
13829
13830
13831
13832
13833case $host_os in
13834aix3*)
13835 # AIX sometimes has problems with the GCC collect2 program. For some
13836 # reason, if we set the COLLECT_NAMES environment variable, the problems
13837 # vanish in a puff of smoke.
13838 if test "X${COLLECT_NAMES+set}" != Xset; then
13839 COLLECT_NAMES=
13840 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013841 fi
13842 ;;
13843esac
13844
John Criswell47fdd832003-07-14 16:52:07 +000013845# Sed substitution that helps us do robust quoting. It backslashifies
13846# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013847Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013848sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13849
13850# Same as above, but do not quote variable references.
13851double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13852
13853# Sed substitution to delay expansion of an escaped shell variable in a
13854# double_quote_subst'ed string.
13855delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13856
13857# Sed substitution to avoid accidental globbing in evaled expressions
13858no_glob_subst='s/\*/\\\*/g'
13859
13860# Constants:
13861rm="rm -f"
13862
13863# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013864default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013865can_build_shared=yes
13866
Reid Spencera773bd52006-08-04 18:18:08 +000013867# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013868# which needs '.lib').
13869libext=a
13870ltmain="$ac_aux_dir/ltmain.sh"
13871ofile="$default_ofile"
13872with_gnu_ld="$lt_cv_prog_gnu_ld"
13873
13874if test -n "$ac_tool_prefix"; then
13875 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13876set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013879if test "${ac_cv_prog_AR+set}" = set; then
13880 echo $ECHO_N "(cached) $ECHO_C" >&6
13881else
13882 if test -n "$AR"; then
13883 ac_cv_prog_AR="$AR" # Let the user override the test.
13884else
13885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13886for as_dir in $PATH
13887do
13888 IFS=$as_save_IFS
13889 test -z "$as_dir" && as_dir=.
13890 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013891 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 +000013892 ac_cv_prog_AR="${ac_tool_prefix}ar"
13893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13894 break 2
13895 fi
13896done
13897done
Reid Spencera773bd52006-08-04 18:18:08 +000013898IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013899
13900fi
13901fi
13902AR=$ac_cv_prog_AR
13903if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013904 { echo "$as_me:$LINENO: result: $AR" >&5
13905echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013906else
Reid Spencera773bd52006-08-04 18:18:08 +000013907 { echo "$as_me:$LINENO: result: no" >&5
13908echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013909fi
13910
Reid Spencera773bd52006-08-04 18:18:08 +000013911
John Criswell47fdd832003-07-14 16:52:07 +000013912fi
13913if test -z "$ac_cv_prog_AR"; then
13914 ac_ct_AR=$AR
13915 # Extract the first word of "ar", so it can be a program name with args.
13916set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013917{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013919if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13921else
13922 if test -n "$ac_ct_AR"; then
13923 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13924else
13925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13926for as_dir in $PATH
13927do
13928 IFS=$as_save_IFS
13929 test -z "$as_dir" && as_dir=.
13930 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013931 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 +000013932 ac_cv_prog_ac_ct_AR="ar"
13933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13934 break 2
13935 fi
13936done
13937done
Reid Spencera773bd52006-08-04 18:18:08 +000013938IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013939
John Criswell47fdd832003-07-14 16:52:07 +000013940fi
13941fi
13942ac_ct_AR=$ac_cv_prog_ac_ct_AR
13943if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013944 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13945echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013946else
Reid Spencera773bd52006-08-04 18:18:08 +000013947 { echo "$as_me:$LINENO: result: no" >&5
13948echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013949fi
13950
Reid Spencera773bd52006-08-04 18:18:08 +000013951 if test "x$ac_ct_AR" = x; then
13952 AR="false"
13953 else
13954 case $cross_compiling:$ac_tool_warned in
13955yes:)
13956{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13957whose name does not start with the host triplet. If you think this
13958configuration is useful to you, please write to autoconf@gnu.org." >&5
13959echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13960whose name does not start with the host triplet. If you think this
13961configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13962ac_tool_warned=yes ;;
13963esac
13964 AR=$ac_ct_AR
13965 fi
John Criswell47fdd832003-07-14 16:52:07 +000013966else
13967 AR="$ac_cv_prog_AR"
13968fi
13969
John Criswell7a73b802003-06-30 21:59:07 +000013970if test -n "$ac_tool_prefix"; then
13971 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13972set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013973{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013975if test "${ac_cv_prog_RANLIB+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13977else
13978 if test -n "$RANLIB"; then
13979 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13980else
13981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982for as_dir in $PATH
13983do
13984 IFS=$as_save_IFS
13985 test -z "$as_dir" && as_dir=.
13986 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013987 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 +000013988 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13990 break 2
13991 fi
13992done
13993done
Reid Spencera773bd52006-08-04 18:18:08 +000013994IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013995
13996fi
13997fi
13998RANLIB=$ac_cv_prog_RANLIB
13999if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014000 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14001echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014002else
Reid Spencera773bd52006-08-04 18:18:08 +000014003 { echo "$as_me:$LINENO: result: no" >&5
14004echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014005fi
14006
Reid Spencera773bd52006-08-04 18:18:08 +000014007
John Criswell7a73b802003-06-30 21:59:07 +000014008fi
14009if test -z "$ac_cv_prog_RANLIB"; then
14010 ac_ct_RANLIB=$RANLIB
14011 # Extract the first word of "ranlib", so it can be a program name with args.
14012set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014015if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14017else
14018 if test -n "$ac_ct_RANLIB"; then
14019 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14020else
14021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14022for as_dir in $PATH
14023do
14024 IFS=$as_save_IFS
14025 test -z "$as_dir" && as_dir=.
14026 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014027 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 +000014028 ac_cv_prog_ac_ct_RANLIB="ranlib"
14029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14030 break 2
14031 fi
14032done
14033done
Reid Spencera773bd52006-08-04 18:18:08 +000014034IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014035
John Criswell7a73b802003-06-30 21:59:07 +000014036fi
14037fi
14038ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14039if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014040 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14041echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014042else
Reid Spencera773bd52006-08-04 18:18:08 +000014043 { echo "$as_me:$LINENO: result: no" >&5
14044echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014045fi
14046
Reid Spencera773bd52006-08-04 18:18:08 +000014047 if test "x$ac_ct_RANLIB" = x; then
14048 RANLIB=":"
14049 else
14050 case $cross_compiling:$ac_tool_warned in
14051yes:)
14052{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14053whose name does not start with the host triplet. If you think this
14054configuration is useful to you, please write to autoconf@gnu.org." >&5
14055echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14056whose name does not start with the host triplet. If you think this
14057configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14058ac_tool_warned=yes ;;
14059esac
14060 RANLIB=$ac_ct_RANLIB
14061 fi
John Criswell7a73b802003-06-30 21:59:07 +000014062else
14063 RANLIB="$ac_cv_prog_RANLIB"
14064fi
14065
14066if test -n "$ac_tool_prefix"; then
14067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14068set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014069{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014071if test "${ac_cv_prog_STRIP+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
14074 if test -n "$STRIP"; then
14075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14076else
14077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078for as_dir in $PATH
14079do
14080 IFS=$as_save_IFS
14081 test -z "$as_dir" && as_dir=.
14082 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014083 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 +000014084 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14086 break 2
14087 fi
14088done
14089done
Reid Spencera773bd52006-08-04 18:18:08 +000014090IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014091
14092fi
14093fi
14094STRIP=$ac_cv_prog_STRIP
14095if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014096 { echo "$as_me:$LINENO: result: $STRIP" >&5
14097echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014098else
Reid Spencera773bd52006-08-04 18:18:08 +000014099 { echo "$as_me:$LINENO: result: no" >&5
14100echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014101fi
14102
Reid Spencera773bd52006-08-04 18:18:08 +000014103
John Criswell7a73b802003-06-30 21:59:07 +000014104fi
14105if test -z "$ac_cv_prog_STRIP"; then
14106 ac_ct_STRIP=$STRIP
14107 # Extract the first word of "strip", so it can be a program name with args.
14108set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014111if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14113else
14114 if test -n "$ac_ct_STRIP"; then
14115 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14116else
14117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14118for as_dir in $PATH
14119do
14120 IFS=$as_save_IFS
14121 test -z "$as_dir" && as_dir=.
14122 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014123 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 +000014124 ac_cv_prog_ac_ct_STRIP="strip"
14125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14126 break 2
14127 fi
14128done
14129done
Reid Spencera773bd52006-08-04 18:18:08 +000014130IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014131
John Criswell7a73b802003-06-30 21:59:07 +000014132fi
14133fi
14134ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14135if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014136 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14137echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014138else
Reid Spencera773bd52006-08-04 18:18:08 +000014139 { echo "$as_me:$LINENO: result: no" >&5
14140echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014141fi
14142
Reid Spencera773bd52006-08-04 18:18:08 +000014143 if test "x$ac_ct_STRIP" = x; then
14144 STRIP=":"
14145 else
14146 case $cross_compiling:$ac_tool_warned in
14147yes:)
14148{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14149whose name does not start with the host triplet. If you think this
14150configuration is useful to you, please write to autoconf@gnu.org." >&5
14151echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14152whose name does not start with the host triplet. If you think this
14153configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14154ac_tool_warned=yes ;;
14155esac
14156 STRIP=$ac_ct_STRIP
14157 fi
John Criswell7a73b802003-06-30 21:59:07 +000014158else
14159 STRIP="$ac_cv_prog_STRIP"
14160fi
14161
14162
John Criswell7a73b802003-06-30 21:59:07 +000014163old_CC="$CC"
14164old_CFLAGS="$CFLAGS"
14165
14166# Set sane defaults for various variables
14167test -z "$AR" && AR=ar
14168test -z "$AR_FLAGS" && AR_FLAGS=cru
14169test -z "$AS" && AS=as
14170test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014171test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014172test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014173test -z "$DLLTOOL" && DLLTOOL=dlltool
14174test -z "$LD" && LD=ld
14175test -z "$LN_S" && LN_S="ln -s"
14176test -z "$MAGIC_CMD" && MAGIC_CMD=file
14177test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014178test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014179test -z "$OBJDUMP" && OBJDUMP=objdump
14180test -z "$RANLIB" && RANLIB=:
14181test -z "$STRIP" && STRIP=:
14182test -z "$ac_objext" && ac_objext=o
14183
John Criswell7a73b802003-06-30 21:59:07 +000014184# Determine commands to create old-style static archives.
14185old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14186old_postinstall_cmds='chmod 644 $oldlib'
14187old_postuninstall_cmds=
14188
14189if test -n "$RANLIB"; then
14190 case $host_os in
14191 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014192 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014193 ;;
14194 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014195 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014196 ;;
14197 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014198 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014199fi
14200
Reid Spencera773bd52006-08-04 18:18:08 +000014201for cc_temp in $compiler""; do
14202 case $cc_temp in
14203 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14204 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14205 \-*) ;;
14206 *) break;;
14207 esac
14208done
14209cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14210
Reid Spencer2706f8c2004-09-19 23:53:36 +000014211
John Criswell47fdd832003-07-14 16:52:07 +000014212# Only perform the check for file, if the check method requires it
14213case $deplibs_check_method in
14214file_magic*)
14215 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014216 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14217echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014218if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14219 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014220else
John Criswell47fdd832003-07-14 16:52:07 +000014221 case $MAGIC_CMD in
14222[\\/*] | ?:[\\/]*)
14223 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14224 ;;
14225*)
14226 lt_save_MAGIC_CMD="$MAGIC_CMD"
14227 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14228 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14229 for ac_dir in $ac_dummy; do
14230 IFS="$lt_save_ifs"
14231 test -z "$ac_dir" && ac_dir=.
14232 if test -f $ac_dir/${ac_tool_prefix}file; then
14233 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14234 if test -n "$file_magic_test_file"; then
14235 case $deplibs_check_method in
14236 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014237 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14240 $EGREP "$file_magic_regex" > /dev/null; then
14241 :
14242 else
14243 cat <<EOF 1>&2
14244
14245*** Warning: the command libtool uses to detect shared libraries,
14246*** $file_magic_cmd, produces output that libtool cannot recognize.
14247*** The result is that libtool may fail to recognize shared libraries
14248*** as such. This will affect the creation of libtool libraries that
14249*** depend on shared libraries, but programs linked with such libtool
14250*** libraries will work regardless of this problem. Nevertheless, you
14251*** may want to report the problem to your system manager and/or to
14252*** bug-libtool@gnu.org
14253
14254EOF
14255 fi ;;
14256 esac
14257 fi
14258 break
14259 fi
14260 done
14261 IFS="$lt_save_ifs"
14262 MAGIC_CMD="$lt_save_MAGIC_CMD"
14263 ;;
14264esac
John Criswell7a73b802003-06-30 21:59:07 +000014265fi
John Criswell7a73b802003-06-30 21:59:07 +000014266
John Criswell47fdd832003-07-14 16:52:07 +000014267MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14268if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014269 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14270echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014271else
Reid Spencera773bd52006-08-04 18:18:08 +000014272 { echo "$as_me:$LINENO: result: no" >&5
14273echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014274fi
John Criswell7a73b802003-06-30 21:59:07 +000014275
John Criswell47fdd832003-07-14 16:52:07 +000014276if test -z "$lt_cv_path_MAGIC_CMD"; then
14277 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014278 { echo "$as_me:$LINENO: checking for file" >&5
14279echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014280if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14282else
14283 case $MAGIC_CMD in
14284[\\/*] | ?:[\\/]*)
14285 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14286 ;;
14287*)
14288 lt_save_MAGIC_CMD="$MAGIC_CMD"
14289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14290 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14291 for ac_dir in $ac_dummy; do
14292 IFS="$lt_save_ifs"
14293 test -z "$ac_dir" && ac_dir=.
14294 if test -f $ac_dir/file; then
14295 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14296 if test -n "$file_magic_test_file"; then
14297 case $deplibs_check_method in
14298 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014299 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14301 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14302 $EGREP "$file_magic_regex" > /dev/null; then
14303 :
14304 else
14305 cat <<EOF 1>&2
14306
14307*** Warning: the command libtool uses to detect shared libraries,
14308*** $file_magic_cmd, produces output that libtool cannot recognize.
14309*** The result is that libtool may fail to recognize shared libraries
14310*** as such. This will affect the creation of libtool libraries that
14311*** depend on shared libraries, but programs linked with such libtool
14312*** libraries will work regardless of this problem. Nevertheless, you
14313*** may want to report the problem to your system manager and/or to
14314*** bug-libtool@gnu.org
14315
14316EOF
14317 fi ;;
14318 esac
14319 fi
14320 break
14321 fi
14322 done
14323 IFS="$lt_save_ifs"
14324 MAGIC_CMD="$lt_save_MAGIC_CMD"
14325 ;;
14326esac
14327fi
14328
14329MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14330if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014331 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14332echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014333else
Reid Spencera773bd52006-08-04 18:18:08 +000014334 { echo "$as_me:$LINENO: result: no" >&5
14335echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014336fi
14337
14338 else
14339 MAGIC_CMD=:
14340 fi
14341fi
14342
14343 fi
14344 ;;
14345esac
14346
Reid Spencer17795972004-11-18 09:47:37 +000014347enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014348enable_win32_dll=no
14349
Reid Spencera773bd52006-08-04 18:18:08 +000014350# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014351if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014352 enableval=$enable_libtool_lock;
14353fi
John Criswell47fdd832003-07-14 16:52:07 +000014354
John Criswell47fdd832003-07-14 16:52:07 +000014355test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14356
John Criswell7a73b802003-06-30 21:59:07 +000014357
Reid Spencera773bd52006-08-04 18:18:08 +000014358# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014359if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014360 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014361else
14362 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014363fi
14364
John Criswell7a73b802003-06-30 21:59:07 +000014365test -z "$pic_mode" && pic_mode=default
14366
John Criswell47fdd832003-07-14 16:52:07 +000014367# Use C for the default configuration in the libtool script
14368tagname=
14369lt_save_CC="$CC"
14370ac_ext=c
14371ac_cpp='$CPP $CPPFLAGS'
14372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14374ac_compiler_gnu=$ac_cv_c_compiler_gnu
14375
14376
14377# Source file extension for C test sources.
14378ac_ext=c
14379
14380# Object file extension for compiled C test sources.
14381objext=o
14382objext=$objext
14383
14384# Code to be used in simple compile tests
14385lt_simple_compile_test_code="int some_variable = 0;\n"
14386
14387# Code to be used in simple link tests
14388lt_simple_link_test_code='int main(){return(0);}\n'
14389
14390
14391# If no C compiler was specified, use CC.
14392LTCC=${LTCC-"$CC"}
14393
Reid Spencera773bd52006-08-04 18:18:08 +000014394# If no C compiler flags were specified, use CFLAGS.
14395LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14396
John Criswell47fdd832003-07-14 16:52:07 +000014397# Allow CC to be a program name with arguments.
14398compiler=$CC
14399
14400
Reid Spencera773bd52006-08-04 18:18:08 +000014401# save warnings/boilerplate of simple test code
14402ac_outfile=conftest.$ac_objext
14403printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14404eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14405_lt_compiler_boilerplate=`cat conftest.err`
14406$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014407
Reid Spencera773bd52006-08-04 18:18:08 +000014408ac_outfile=conftest.$ac_objext
14409printf "$lt_simple_link_test_code" >conftest.$ac_ext
14410eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14411_lt_linker_boilerplate=`cat conftest.err`
14412$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014413
14414
John Criswell47fdd832003-07-14 16:52:07 +000014415
14416lt_prog_compiler_no_builtin_flag=
14417
14418if test "$GCC" = yes; then
14419 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14420
Reid Spencer2706f8c2004-09-19 23:53:36 +000014421
Reid Spencera773bd52006-08-04 18:18:08 +000014422{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14423echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014424if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426else
14427 lt_cv_prog_compiler_rtti_exceptions=no
14428 ac_outfile=conftest.$ac_objext
14429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14430 lt_compiler_flag="-fno-rtti -fno-exceptions"
14431 # Insert the option either (1) after the last *FLAGS variable, or
14432 # (2) before a word containing "conftest.", or (3) at the end.
14433 # Note that $ac_compile itself does not contain backslashes and begins
14434 # with a dollar sign (not a hyphen), so the echo should work correctly.
14435 # The option is referenced via a variable to avoid confusing sed.
14436 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14439 -e 's:$: $lt_compiler_flag:'`
Owen Andersona8603702009-05-19 22:18:56 +000014440 (eval echo "\"\$as_me:14440: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014441 (eval "$lt_compile" 2>conftest.err)
14442 ac_status=$?
14443 cat conftest.err >&5
Owen Andersona8603702009-05-19 22:18:56 +000014444 echo "$as_me:14444: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014445 if (exit $ac_status) && test -s "$ac_outfile"; then
14446 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014447 # So say no if there are warnings other than the usual output.
14448 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014451 lt_cv_prog_compiler_rtti_exceptions=yes
14452 fi
14453 fi
14454 $rm conftest*
14455
14456fi
Reid Spencera773bd52006-08-04 18:18:08 +000014457{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14458echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014459
14460if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14461 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14462else
14463 :
14464fi
14465
14466fi
14467
14468lt_prog_compiler_wl=
14469lt_prog_compiler_pic=
14470lt_prog_compiler_static=
14471
Reid Spencera773bd52006-08-04 18:18:08 +000014472{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14473echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014474
14475 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014476 lt_prog_compiler_wl='-Wl,'
14477 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014478
14479 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014480 aix*)
14481 # All AIX code is PIC.
14482 if test "$host_cpu" = ia64; then
14483 # AIX 5 now supports IA64 processor
14484 lt_prog_compiler_static='-Bstatic'
14485 fi
John Criswell7a73b802003-06-30 21:59:07 +000014486 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014487
John Criswell7a73b802003-06-30 21:59:07 +000014488 amigaos*)
14489 # FIXME: we need at least 68020 code to build shared libraries, but
14490 # adding the `-m68020' flag to GCC prevents building anything better,
14491 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014492 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014493 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014494
14495 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014496 # PIC is the default for these OSes.
14497 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014498
14499 mingw* | pw32* | os2*)
14500 # This hack is so that the source file can tell whether it is being
14501 # built for inclusion in a dll (and should export symbols for example).
14502 lt_prog_compiler_pic='-DDLL_EXPORT'
14503 ;;
14504
John Criswell7a73b802003-06-30 21:59:07 +000014505 darwin* | rhapsody*)
14506 # PIC is the default on this platform
14507 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014508 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014509 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014510
Reid Spencera773bd52006-08-04 18:18:08 +000014511 interix3*)
14512 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14513 # Instead, we relocate shared libraries at runtime.
14514 ;;
14515
John Criswell47fdd832003-07-14 16:52:07 +000014516 msdosdjgpp*)
14517 # Just because we use GCC doesn't mean we suddenly get shared libraries
14518 # on systems that don't support them.
14519 lt_prog_compiler_can_build_shared=no
14520 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014521 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014522
John Criswell7a73b802003-06-30 21:59:07 +000014523 sysv4*MP*)
14524 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014525 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014526 fi
14527 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014528
14529 hpux*)
14530 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14531 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014532 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014533 hppa*64*|ia64*)
14534 # +Z the default
14535 ;;
14536 *)
14537 lt_prog_compiler_pic='-fPIC'
14538 ;;
14539 esac
14540 ;;
14541
John Criswell7a73b802003-06-30 21:59:07 +000014542 *)
John Criswell47fdd832003-07-14 16:52:07 +000014543 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014544 ;;
14545 esac
14546 else
John Criswell47fdd832003-07-14 16:52:07 +000014547 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014548 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014549 aix*)
14550 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014551 if test "$host_cpu" = ia64; then
14552 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014553 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014554 else
John Criswell47fdd832003-07-14 16:52:07 +000014555 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014556 fi
14557 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014558 darwin*)
14559 # PIC is the default on this platform
14560 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014561 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014562 xlc*)
14563 lt_prog_compiler_pic='-qnocommon'
14564 lt_prog_compiler_wl='-Wl,'
14565 ;;
14566 esac
14567 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014568
John Criswell47fdd832003-07-14 16:52:07 +000014569 mingw* | pw32* | os2*)
14570 # This hack is so that the source file can tell whether it is being
14571 # built for inclusion in a dll (and should export symbols for example).
14572 lt_prog_compiler_pic='-DDLL_EXPORT'
14573 ;;
14574
John Criswell7a73b802003-06-30 21:59:07 +000014575 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014576 lt_prog_compiler_wl='-Wl,'
14577 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14578 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014579 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014580 hppa*64*|ia64*)
14581 # +Z the default
14582 ;;
14583 *)
14584 lt_prog_compiler_pic='+Z'
14585 ;;
14586 esac
14587 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14588 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014589 ;;
14590
John Criswell47fdd832003-07-14 16:52:07 +000014591 irix5* | irix6* | nonstopux*)
14592 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014593 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014594 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014595 ;;
14596
14597 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014598 lt_prog_compiler_pic='-KPIC'
14599 lt_prog_compiler_static='-Bstatic'
14600 ;;
14601
14602 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014603 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014604 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014605 lt_prog_compiler_wl='-Wl,'
14606 lt_prog_compiler_pic='-KPIC'
14607 lt_prog_compiler_static='-static'
14608 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014609 pgcc* | pgf77* | pgf90* | pgf95*)
14610 # Portland Group compilers (*not* the Pentium gcc compiler,
14611 # which looks to be a dead project)
14612 lt_prog_compiler_wl='-Wl,'
14613 lt_prog_compiler_pic='-fpic'
14614 lt_prog_compiler_static='-Bstatic'
14615 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014616 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014617 lt_prog_compiler_wl='-Wl,'
14618 # All Alpha code is PIC.
14619 lt_prog_compiler_static='-non_shared'
14620 ;;
14621 esac
John Criswell7a73b802003-06-30 21:59:07 +000014622 ;;
14623
14624 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014625 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014626 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014627 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014628 ;;
14629
John Criswell7a73b802003-06-30 21:59:07 +000014630 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014631 lt_prog_compiler_pic='-KPIC'
14632 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014633 case $cc_basename in
14634 f77* | f90* | f95*)
14635 lt_prog_compiler_wl='-Qoption ld ';;
14636 *)
14637 lt_prog_compiler_wl='-Wl,';;
14638 esac
John Criswell7a73b802003-06-30 21:59:07 +000014639 ;;
14640
14641 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014642 lt_prog_compiler_wl='-Qoption ld '
14643 lt_prog_compiler_pic='-PIC'
14644 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014645 ;;
14646
Reid Spencera773bd52006-08-04 18:18:08 +000014647 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014648 lt_prog_compiler_wl='-Wl,'
14649 lt_prog_compiler_pic='-KPIC'
14650 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014651 ;;
14652
14653 sysv4*MP*)
14654 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014655 lt_prog_compiler_pic='-Kconform_pic'
14656 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014657 fi
14658 ;;
14659
Reid Spencera773bd52006-08-04 18:18:08 +000014660 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14661 lt_prog_compiler_wl='-Wl,'
14662 lt_prog_compiler_pic='-KPIC'
14663 lt_prog_compiler_static='-Bstatic'
14664 ;;
14665
14666 unicos*)
14667 lt_prog_compiler_wl='-Wl,'
14668 lt_prog_compiler_can_build_shared=no
14669 ;;
14670
John Criswell47fdd832003-07-14 16:52:07 +000014671 uts4*)
14672 lt_prog_compiler_pic='-pic'
14673 lt_prog_compiler_static='-Bstatic'
14674 ;;
14675
John Criswell7a73b802003-06-30 21:59:07 +000014676 *)
John Criswell47fdd832003-07-14 16:52:07 +000014677 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014678 ;;
14679 esac
14680 fi
14681
Reid Spencera773bd52006-08-04 18:18:08 +000014682{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14683echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014684
John Criswell47fdd832003-07-14 16:52:07 +000014685#
14686# Check to make sure the PIC flag actually works.
14687#
14688if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014689
Reid Spencera773bd52006-08-04 18:18:08 +000014690{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14691echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014692if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014693 echo $ECHO_N "(cached) $ECHO_C" >&6
14694else
John Criswell47fdd832003-07-14 16:52:07 +000014695 lt_prog_compiler_pic_works=no
14696 ac_outfile=conftest.$ac_objext
14697 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14698 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14699 # Insert the option either (1) after the last *FLAGS variable, or
14700 # (2) before a word containing "conftest.", or (3) at the end.
14701 # Note that $ac_compile itself does not contain backslashes and begins
14702 # with a dollar sign (not a hyphen), so the echo should work correctly.
14703 # The option is referenced via a variable to avoid confusing sed.
14704 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14707 -e 's:$: $lt_compiler_flag:'`
Owen Andersona8603702009-05-19 22:18:56 +000014708 (eval echo "\"\$as_me:14708: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014709 (eval "$lt_compile" 2>conftest.err)
14710 ac_status=$?
14711 cat conftest.err >&5
Owen Andersona8603702009-05-19 22:18:56 +000014712 echo "$as_me:14712: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014713 if (exit $ac_status) && test -s "$ac_outfile"; then
14714 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014715 # So say no if there are warnings other than the usual output.
14716 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014719 lt_prog_compiler_pic_works=yes
14720 fi
14721 fi
14722 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014723
John Criswell47fdd832003-07-14 16:52:07 +000014724fi
Reid Spencera773bd52006-08-04 18:18:08 +000014725{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14726echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014727
John Criswell47fdd832003-07-14 16:52:07 +000014728if test x"$lt_prog_compiler_pic_works" = xyes; then
14729 case $lt_prog_compiler_pic in
14730 "" | " "*) ;;
14731 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14732 esac
John Criswell7a73b802003-06-30 21:59:07 +000014733else
John Criswell47fdd832003-07-14 16:52:07 +000014734 lt_prog_compiler_pic=
14735 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014736fi
14737
John Criswell7a73b802003-06-30 21:59:07 +000014738fi
Reid Spencera773bd52006-08-04 18:18:08 +000014739case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014740 # For platforms which do not support PIC, -DPIC is meaningless:
14741 *djgpp*)
14742 lt_prog_compiler_pic=
14743 ;;
14744 *)
14745 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14746 ;;
14747esac
John Criswell7a73b802003-06-30 21:59:07 +000014748
Reid Spencera773bd52006-08-04 18:18:08 +000014749#
14750# Check to make sure the static flag actually works.
14751#
14752wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14753{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14754echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14755if test "${lt_prog_compiler_static_works+set}" = set; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14757else
14758 lt_prog_compiler_static_works=no
14759 save_LDFLAGS="$LDFLAGS"
14760 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14761 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14762 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14763 # The linker can only warn and ignore the option if not recognized
14764 # So say no if there are warnings
14765 if test -s conftest.err; then
14766 # Append any errors to the config.log.
14767 cat conftest.err 1>&5
14768 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14769 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14770 if diff conftest.exp conftest.er2 >/dev/null; then
14771 lt_prog_compiler_static_works=yes
14772 fi
14773 else
14774 lt_prog_compiler_static_works=yes
14775 fi
14776 fi
14777 $rm conftest*
14778 LDFLAGS="$save_LDFLAGS"
14779
14780fi
14781{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14782echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14783
14784if test x"$lt_prog_compiler_static_works" = xyes; then
14785 :
14786else
14787 lt_prog_compiler_static=
14788fi
14789
14790
14791{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14792echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014793if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014794 echo $ECHO_N "(cached) $ECHO_C" >&6
14795else
John Criswell47fdd832003-07-14 16:52:07 +000014796 lt_cv_prog_compiler_c_o=no
14797 $rm -r conftest 2>/dev/null
14798 mkdir conftest
14799 cd conftest
14800 mkdir out
14801 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014802
John Criswell47fdd832003-07-14 16:52:07 +000014803 lt_compiler_flag="-o out/conftest2.$ac_objext"
14804 # Insert the option either (1) after the last *FLAGS variable, or
14805 # (2) before a word containing "conftest.", or (3) at the end.
14806 # Note that $ac_compile itself does not contain backslashes and begins
14807 # with a dollar sign (not a hyphen), so the echo should work correctly.
14808 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14811 -e 's:$: $lt_compiler_flag:'`
Owen Andersona8603702009-05-19 22:18:56 +000014812 (eval echo "\"\$as_me:14812: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014813 (eval "$lt_compile" 2>out/conftest.err)
14814 ac_status=$?
14815 cat out/conftest.err >&5
Owen Andersona8603702009-05-19 22:18:56 +000014816 echo "$as_me:14816: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014817 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14818 then
14819 # The compiler can only warn and ignore the option if not recognized
14820 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014821 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014824 lt_cv_prog_compiler_c_o=yes
14825 fi
14826 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014827 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014828 $rm conftest*
14829 # SGI C++ compiler will create directory out/ii_files/ for
14830 # template instantiation
14831 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14832 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014833 cd ..
14834 rmdir conftest
14835 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014836
14837fi
Reid Spencera773bd52006-08-04 18:18:08 +000014838{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14839echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014840
John Criswell7a73b802003-06-30 21:59:07 +000014841
John Criswell7a73b802003-06-30 21:59:07 +000014842hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014843if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014844 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014845 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14846echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014847 hard_links=yes
14848 $rm conftest*
14849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14850 touch conftest.a
14851 ln conftest.a conftest.b 2>&5 || hard_links=no
14852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014853 { echo "$as_me:$LINENO: result: $hard_links" >&5
14854echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014855 if test "$hard_links" = no; then
14856 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14857echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14858 need_locks=warn
14859 fi
14860else
14861 need_locks=no
14862fi
John Criswell7a73b802003-06-30 21:59:07 +000014863
Reid Spencera773bd52006-08-04 18:18:08 +000014864{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14865echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014866
14867 runpath_var=
14868 allow_undefined_flag=
14869 enable_shared_with_static_runtimes=no
14870 archive_cmds=
14871 archive_expsym_cmds=
14872 old_archive_From_new_cmds=
14873 old_archive_from_expsyms_cmds=
14874 export_dynamic_flag_spec=
14875 whole_archive_flag_spec=
14876 thread_safe_flag_spec=
14877 hardcode_libdir_flag_spec=
14878 hardcode_libdir_flag_spec_ld=
14879 hardcode_libdir_separator=
14880 hardcode_direct=no
14881 hardcode_minus_L=no
14882 hardcode_shlibpath_var=unsupported
14883 link_all_deplibs=unknown
14884 hardcode_automatic=no
14885 module_cmds=
14886 module_expsym_cmds=
14887 always_export_symbols=no
14888 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14889 # include_expsyms should be a list of space-separated symbols to be *always*
14890 # included in the symbol list
14891 include_expsyms=
14892 # exclude_expsyms can be an extended regexp of symbols to exclude
14893 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14894 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14895 # as well as any symbol that contains `d'.
14896 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14897 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14898 # platforms (ab)use it in PIC code, but their linkers get confused if
14899 # the symbol is explicitly referenced. Since portable code cannot
14900 # rely on this symbol name, it's probably fine to never include it in
14901 # preloaded symbol tables.
14902 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014903 # Just being paranoid about ensuring that cc_basename is set.
14904 for cc_temp in $compiler""; do
14905 case $cc_temp in
14906 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14907 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14908 \-*) ;;
14909 *) break;;
14910 esac
14911done
14912cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014913
14914 case $host_os in
14915 cygwin* | mingw* | pw32*)
14916 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14917 # When not using gcc, we currently assume that we are using
14918 # Microsoft Visual C++.
14919 if test "$GCC" != yes; then
14920 with_gnu_ld=no
14921 fi
14922 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014923 interix*)
14924 # we just hope/assume this is gcc and not c89 (= MSVC++)
14925 with_gnu_ld=yes
14926 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014927 openbsd*)
14928 with_gnu_ld=no
14929 ;;
14930 esac
14931
14932 ld_shlibs=yes
14933 if test "$with_gnu_ld" = yes; then
14934 # If archive_cmds runs LD, not CC, wlarc should be empty
14935 wlarc='${wl}'
14936
Reid Spencera773bd52006-08-04 18:18:08 +000014937 # Set some defaults for GNU ld with shared library support. These
14938 # are reset later if shared libraries are not supported. Putting them
14939 # here allows them to be overridden if necessary.
14940 runpath_var=LD_RUN_PATH
14941 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14942 export_dynamic_flag_spec='${wl}--export-dynamic'
14943 # ancient GNU ld didn't support --whole-archive et. al.
14944 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14945 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14946 else
14947 whole_archive_flag_spec=
14948 fi
14949 supports_anon_versioning=no
14950 case `$LD -v 2>/dev/null` in
14951 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14952 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14953 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14954 *\ 2.11.*) ;; # other 2.11 versions
14955 *) supports_anon_versioning=yes ;;
14956 esac
14957
John Criswell47fdd832003-07-14 16:52:07 +000014958 # See if GNU ld supports shared libraries.
14959 case $host_os in
14960 aix3* | aix4* | aix5*)
14961 # On AIX/PPC, the GNU linker is very broken
14962 if test "$host_cpu" != ia64; then
14963 ld_shlibs=no
14964 cat <<EOF 1>&2
14965
14966*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14967*** to be unable to reliably create shared libraries on AIX.
14968*** Therefore, libtool is disabling shared libraries support. If you
14969*** really care for shared libraries, you may want to modify your PATH
14970*** so that a non-GNU linker is found, and then restart.
14971
14972EOF
14973 fi
14974 ;;
14975
14976 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014977 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 +000014978 hardcode_libdir_flag_spec='-L$libdir'
14979 hardcode_minus_L=yes
14980
14981 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14982 # that the semantics of dynamic libraries on AmigaOS, at least up
14983 # to version 4, is to share data among multiple programs linked
14984 # with the same dynamic library. Since this doesn't match the
14985 # behavior of shared libraries on other platforms, we can't use
14986 # them.
14987 ld_shlibs=no
14988 ;;
14989
14990 beos*)
14991 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14992 allow_undefined_flag=unsupported
14993 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14994 # support --undefined. This deserves some investigation. FIXME
14995 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14996 else
14997 ld_shlibs=no
14998 fi
14999 ;;
15000
15001 cygwin* | mingw* | pw32*)
15002 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15003 # as there is no search path for DLLs.
15004 hardcode_libdir_flag_spec='-L$libdir'
15005 allow_undefined_flag=unsupported
15006 always_export_symbols=no
15007 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015008 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 +000015009
15010 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015011 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 +000015012 # If the export-symbols file already is a .def file (1st line
15013 # is EXPORTS), use it as is; otherwise, prepend...
15014 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15015 cp $export_symbols $output_objdir/$soname.def;
15016 else
15017 echo EXPORTS > $output_objdir/$soname.def;
15018 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015019 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015020 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15021 else
15022 ld_shlibs=no
15023 fi
15024 ;;
15025
15026 interix3*)
15027 hardcode_direct=no
15028 hardcode_shlibpath_var=no
15029 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15030 export_dynamic_flag_spec='${wl}-E'
15031 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15032 # Instead, shared libraries are loaded at an image base (0x10000000 by
15033 # default) and relocated if they conflict, which is a slow very memory
15034 # consuming and fragmenting process. To avoid this, we pick a random,
15035 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15036 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15037 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15038 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'
15039 ;;
15040
15041 linux*)
15042 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15043 tmp_addflag=
15044 case $cc_basename,$host_cpu in
15045 pgcc*) # Portland Group C compiler
15046 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'
15047 tmp_addflag=' $pic_flag'
15048 ;;
15049 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15050 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'
15051 tmp_addflag=' $pic_flag -Mnomain' ;;
15052 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15053 tmp_addflag=' -i_dynamic' ;;
15054 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15055 tmp_addflag=' -i_dynamic -nofor_main' ;;
15056 ifc* | ifort*) # Intel Fortran compiler
15057 tmp_addflag=' -nofor_main' ;;
15058 esac
15059 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15060
15061 if test $supports_anon_versioning = yes; then
15062 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15063 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15064 $echo "local: *; };" >> $output_objdir/$libname.ver~
15065 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15066 fi
John Criswell47fdd832003-07-14 16:52:07 +000015067 else
15068 ld_shlibs=no
15069 fi
15070 ;;
15071
15072 netbsd*)
15073 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15074 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15075 wlarc=
15076 else
15077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15078 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15079 fi
15080 ;;
15081
Reid Spencera773bd52006-08-04 18:18:08 +000015082 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015083 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15084 ld_shlibs=no
15085 cat <<EOF 1>&2
15086
15087*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15088*** create shared libraries on Solaris systems. Therefore, libtool
15089*** is disabling shared libraries support. We urge you to upgrade GNU
15090*** binutils to release 2.9.1 or newer. Another option is to modify
15091*** your PATH or compiler configuration so that the native linker is
15092*** used, and then restart.
15093
15094EOF
15095 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15098 else
15099 ld_shlibs=no
15100 fi
15101 ;;
15102
Reid Spencera773bd52006-08-04 18:18:08 +000015103 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15104 case `$LD -v 2>&1` in
15105 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15106 ld_shlibs=no
15107 cat <<_LT_EOF 1>&2
15108
15109*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15110*** reliably create shared libraries on SCO systems. Therefore, libtool
15111*** is disabling shared libraries support. We urge you to upgrade GNU
15112*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15113*** your PATH or compiler configuration so that the native linker is
15114*** used, and then restart.
15115
15116_LT_EOF
15117 ;;
15118 *)
15119 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15120 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15123 else
15124 ld_shlibs=no
15125 fi
15126 ;;
15127 esac
15128 ;;
15129
John Criswell47fdd832003-07-14 16:52:07 +000015130 sunos4*)
15131 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15132 wlarc=
15133 hardcode_direct=yes
15134 hardcode_shlibpath_var=no
15135 ;;
15136
15137 *)
15138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15140 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15141 else
15142 ld_shlibs=no
15143 fi
15144 ;;
15145 esac
15146
Reid Spencera773bd52006-08-04 18:18:08 +000015147 if test "$ld_shlibs" = no; then
15148 runpath_var=
15149 hardcode_libdir_flag_spec=
15150 export_dynamic_flag_spec=
15151 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015152 fi
15153 else
15154 # PORTME fill in a description of your system's linker (not GNU ld)
15155 case $host_os in
15156 aix3*)
15157 allow_undefined_flag=unsupported
15158 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015159 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 +000015160 # Note: this linker hardcodes the directories in LIBPATH if there
15161 # are no directories specified by -L.
15162 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015163 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015164 # Neither direct hardcoding nor static linking is supported with a
15165 # broken collect2.
15166 hardcode_direct=unsupported
15167 fi
15168 ;;
15169
15170 aix4* | aix5*)
15171 if test "$host_cpu" = ia64; then
15172 # On IA64, the linker does run time linking by default, so we don't
15173 # have to do anything special.
15174 aix_use_runtimelinking=no
15175 exp_sym_flag='-Bexport'
15176 no_entry_flag=""
15177 else
15178 # If we're using GNU nm, then we don't want the "-C" option.
15179 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15180 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15181 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'
15182 else
15183 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'
15184 fi
15185 aix_use_runtimelinking=no
15186
15187 # Test if we are trying to use run time linking or normal
15188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15189 # need to do runtime linking.
15190 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15191 for ld_flag in $LDFLAGS; do
15192 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15193 aix_use_runtimelinking=yes
15194 break
15195 fi
15196 done
Reid Spencera773bd52006-08-04 18:18:08 +000015197 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015198 esac
15199
15200 exp_sym_flag='-bexport'
15201 no_entry_flag='-bnoentry'
15202 fi
15203
15204 # When large executables or shared objects are built, AIX ld can
15205 # have problems creating the table of contents. If linking a library
15206 # or program results in "error TOC overflow" add -mminimal-toc to
15207 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15208 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15209
15210 archive_cmds=''
15211 hardcode_direct=yes
15212 hardcode_libdir_separator=':'
15213 link_all_deplibs=yes
15214
15215 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015216 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015217 # We only want to do this on AIX 4.2 and lower, the check
15218 # below for broken collect2 doesn't work under 4.3+
15219 collect2name=`${CC} -print-prog-name=collect2`
15220 if test -f "$collect2name" && \
15221 strings "$collect2name" | grep resolve_lib_name >/dev/null
15222 then
15223 # We have reworked collect2
15224 hardcode_direct=yes
15225 else
15226 # We have old collect2
15227 hardcode_direct=unsupported
15228 # It fails to find uninstalled libraries when the uninstalled
15229 # path is not listed in the libpath. Setting hardcode_minus_L
15230 # to unsupported forces relinking
15231 hardcode_minus_L=yes
15232 hardcode_libdir_flag_spec='-L$libdir'
15233 hardcode_libdir_separator=
15234 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015235 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015236 esac
15237 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015238 if test "$aix_use_runtimelinking" = yes; then
15239 shared_flag="$shared_flag "'${wl}-G'
15240 fi
John Criswell47fdd832003-07-14 16:52:07 +000015241 else
15242 # not using gcc
15243 if test "$host_cpu" = ia64; then
15244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15245 # chokes on -Wl,-G. The following line is correct:
15246 shared_flag='-G'
15247 else
Reid Spencera773bd52006-08-04 18:18:08 +000015248 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015249 shared_flag='${wl}-G'
15250 else
15251 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015252 fi
John Criswell47fdd832003-07-14 16:52:07 +000015253 fi
15254 fi
15255
15256 # It seems that -bexpall does not export symbols beginning with
15257 # underscore (_), so it is better to generate a list of symbols to export.
15258 always_export_symbols=yes
15259 if test "$aix_use_runtimelinking" = yes; then
15260 # Warning - without using the other runtime loading flags (-brtl),
15261 # -berok will link without error, but may produce a broken library.
15262 allow_undefined_flag='-berok'
15263 # Determine the default libpath from the value encoded in an empty executable.
15264 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015265/* confdefs.h. */
15266_ACEOF
15267cat confdefs.h >>conftest.$ac_ext
15268cat >>conftest.$ac_ext <<_ACEOF
15269/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015270
John Criswell7a73b802003-06-30 21:59:07 +000015271int
15272main ()
15273{
John Criswell47fdd832003-07-14 16:52:07 +000015274
John Criswell7a73b802003-06-30 21:59:07 +000015275 ;
15276 return 0;
15277}
15278_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015279rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015280if { (ac_try="$ac_link"
15281case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15284esac
15285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015287 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015292 (exit $ac_status); } &&
15293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15294 { (case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15297esac
15298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_try") 2>&5
15300 ac_status=$?
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); }; } &&
15303 { ac_try='test -s conftest$ac_exeext'
15304 { (case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15307esac
15308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_try") 2>&5
15310 ac_status=$?
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015313
John Criswell47fdd832003-07-14 16:52:07 +000015314aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15315}'`
15316# Check for a 64-bit object if we didn't find anything.
15317if 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; }
15318}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015319else
15320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015321sed 's/^/| /' conftest.$ac_ext >&5
15322
Reid Spencera773bd52006-08-04 18:18:08 +000015323
John Criswell7a73b802003-06-30 21:59:07 +000015324fi
Reid Spencera773bd52006-08-04 18:18:08 +000015325
Bill Wendlingebcceee2009-04-18 11:20:33 +000015326rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015327 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015329
John Criswell47fdd832003-07-14 16:52:07 +000015330 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015331 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 +000015332 else
15333 if test "$host_cpu" = ia64; then
15334 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15335 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015336 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 +000015337 else
15338 # Determine the default libpath from the value encoded in an empty executable.
15339 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015340/* confdefs.h. */
15341_ACEOF
15342cat confdefs.h >>conftest.$ac_ext
15343cat >>conftest.$ac_ext <<_ACEOF
15344/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015345
John Criswell47fdd832003-07-14 16:52:07 +000015346int
15347main ()
15348{
John Criswell7a73b802003-06-30 21:59:07 +000015349
John Criswell47fdd832003-07-14 16:52:07 +000015350 ;
15351 return 0;
15352}
15353_ACEOF
15354rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015355if { (ac_try="$ac_link"
15356case "(($ac_try" in
15357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15358 *) ac_try_echo=$ac_try;;
15359esac
15360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15361 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015362 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015363 grep -v '^ *+' conftest.er1 >conftest.err
15364 rm -f conftest.er1
15365 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015367 (exit $ac_status); } &&
15368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15369 { (case "(($ac_try" in
15370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371 *) ac_try_echo=$ac_try;;
15372esac
15373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15374 (eval "$ac_try") 2>&5
15375 ac_status=$?
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; } &&
15378 { ac_try='test -s conftest$ac_exeext'
15379 { (case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15382esac
15383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_try") 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015388
John Criswell47fdd832003-07-14 16:52:07 +000015389aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15390}'`
15391# Check for a 64-bit object if we didn't find anything.
15392if 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; }
15393}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015394else
John Criswell47fdd832003-07-14 16:52:07 +000015395 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015396sed 's/^/| /' conftest.$ac_ext >&5
15397
Reid Spencera773bd52006-08-04 18:18:08 +000015398
John Criswell47fdd832003-07-14 16:52:07 +000015399fi
Reid Spencera773bd52006-08-04 18:18:08 +000015400
Bill Wendlingebcceee2009-04-18 11:20:33 +000015401rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015402 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015403if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015404
John Criswell47fdd832003-07-14 16:52:07 +000015405 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15406 # Warning - without using the other run time loading flags,
15407 # -berok will link without error, but may produce a broken library.
15408 no_undefined_flag=' ${wl}-bernotok'
15409 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015410 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015411 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015412 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015413 # This is similar to how AIX traditionally builds its shared libraries.
15414 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 +000015415 fi
15416 fi
John Criswell7a73b802003-06-30 21:59:07 +000015417 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015418
15419 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015420 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 +000015421 hardcode_libdir_flag_spec='-L$libdir'
15422 hardcode_minus_L=yes
15423 # see comment about different semantics on the GNU ld section
15424 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015425 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015426
Reid Spencer2706f8c2004-09-19 23:53:36 +000015427 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015428 export_dynamic_flag_spec=-rdynamic
15429 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015430
John Criswell47fdd832003-07-14 16:52:07 +000015431 cygwin* | mingw* | pw32*)
15432 # When not using gcc, we currently assume that we are using
15433 # Microsoft Visual C++.
15434 # hardcode_libdir_flag_spec is actually meaningless, as there is
15435 # no search path for DLLs.
15436 hardcode_libdir_flag_spec=' '
15437 allow_undefined_flag=unsupported
15438 # Tell ltmain to make .lib files, not .a files.
15439 libext=lib
15440 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015441 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015442 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015443 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015444 # The linker will automatically build a .lib file if we build a DLL.
15445 old_archive_From_new_cmds='true'
15446 # FIXME: Should let the user specify the lib program.
15447 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15448 fix_srcfile_path='`cygpath -w "$srcfile"`'
15449 enable_shared_with_static_runtimes=yes
15450 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015451
John Criswell47fdd832003-07-14 16:52:07 +000015452 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015453 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015454 rhapsody* | darwin1.[012])
15455 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15456 ;;
15457 *) # Darwin 1.3 on
15458 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15459 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15460 else
15461 case ${MACOSX_DEPLOYMENT_TARGET} in
15462 10.[012])
15463 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15464 ;;
15465 10.*)
15466 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15467 ;;
15468 esac
15469 fi
15470 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015471 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015472 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015473 hardcode_direct=no
15474 hardcode_automatic=yes
15475 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015476 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015477 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015478 if test "$GCC" = yes ; then
15479 output_verbose_link_cmd='echo'
15480 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15481 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015482 # 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 +000015483 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}'
15484 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 +000015485 else
Reid Spencera773bd52006-08-04 18:18:08 +000015486 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015487 xlc*)
15488 output_verbose_link_cmd='echo'
15489 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15490 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015491 # 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 +000015492 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}'
15493 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 +000015494 ;;
15495 *)
15496 ld_shlibs=no
15497 ;;
15498 esac
John Criswell7a73b802003-06-30 21:59:07 +000015499 fi
John Criswell47fdd832003-07-14 16:52:07 +000015500 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015501
John Criswell47fdd832003-07-14 16:52:07 +000015502 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015504 hardcode_libdir_flag_spec='-L$libdir'
15505 hardcode_shlibpath_var=no
15506 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015507
John Criswell47fdd832003-07-14 16:52:07 +000015508 freebsd1*)
15509 ld_shlibs=no
15510 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015511
John Criswell47fdd832003-07-14 16:52:07 +000015512 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15513 # support. Future versions do this automatically, but an explicit c++rt0.o
15514 # does not break anything, and helps significantly (at the cost of a little
15515 # extra space).
15516 freebsd2.2*)
15517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15518 hardcode_libdir_flag_spec='-R$libdir'
15519 hardcode_direct=yes
15520 hardcode_shlibpath_var=no
15521 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015522
John Criswell47fdd832003-07-14 16:52:07 +000015523 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15524 freebsd2*)
15525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15526 hardcode_direct=yes
15527 hardcode_minus_L=yes
15528 hardcode_shlibpath_var=no
15529 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015530
John Criswell47fdd832003-07-14 16:52:07 +000015531 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015532 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015533 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15534 hardcode_libdir_flag_spec='-R$libdir'
15535 hardcode_direct=yes
15536 hardcode_shlibpath_var=no
15537 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015538
John Criswell47fdd832003-07-14 16:52:07 +000015539 hpux9*)
15540 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015541 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 +000015542 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015543 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 +000015544 fi
15545 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15546 hardcode_libdir_separator=:
15547 hardcode_direct=yes
15548
15549 # hardcode_minus_L: Not really in the search PATH,
15550 # but as the default location of the library.
15551 hardcode_minus_L=yes
15552 export_dynamic_flag_spec='${wl}-E'
15553 ;;
15554
Reid Spencera773bd52006-08-04 18:18:08 +000015555 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015556 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015557 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15558 else
15559 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15560 fi
15561 if test "$with_gnu_ld" = no; then
15562 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15563 hardcode_libdir_separator=:
15564
15565 hardcode_direct=yes
15566 export_dynamic_flag_spec='${wl}-E'
15567
15568 # hardcode_minus_L: Not really in the search PATH,
15569 # but as the default location of the library.
15570 hardcode_minus_L=yes
15571 fi
15572 ;;
15573
15574 hpux11*)
15575 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15576 case $host_cpu in
15577 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015578 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15579 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015580 ia64*)
15581 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15582 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015583 *)
15584 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15585 ;;
15586 esac
15587 else
Reid Spencera773bd52006-08-04 18:18:08 +000015588 case $host_cpu in
15589 hppa*64*)
15590 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15591 ;;
15592 ia64*)
15593 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015594 ;;
15595 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015596 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 +000015597 ;;
15598 esac
15599 fi
15600 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015601 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15602 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015603
Reid Spencera773bd52006-08-04 18:18:08 +000015604 case $host_cpu in
15605 hppa*64*|ia64*)
15606 hardcode_libdir_flag_spec_ld='+b $libdir'
15607 hardcode_direct=no
15608 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015609 ;;
15610 *)
John Criswell47fdd832003-07-14 16:52:07 +000015611 hardcode_direct=yes
15612 export_dynamic_flag_spec='${wl}-E'
15613
15614 # hardcode_minus_L: Not really in the search PATH,
15615 # but as the default location of the library.
15616 hardcode_minus_L=yes
15617 ;;
15618 esac
15619 fi
15620 ;;
15621
15622 irix5* | irix6* | nonstopux*)
15623 if test "$GCC" = yes; then
15624 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'
15625 else
15626 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'
15627 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15628 fi
15629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15630 hardcode_libdir_separator=:
15631 link_all_deplibs=yes
15632 ;;
15633
15634 netbsd*)
15635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15637 else
15638 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15639 fi
15640 hardcode_libdir_flag_spec='-R$libdir'
15641 hardcode_direct=yes
15642 hardcode_shlibpath_var=no
15643 ;;
15644
15645 newsos6)
15646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15647 hardcode_direct=yes
15648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15649 hardcode_libdir_separator=:
15650 hardcode_shlibpath_var=no
15651 ;;
15652
15653 openbsd*)
15654 hardcode_direct=yes
15655 hardcode_shlibpath_var=no
15656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15657 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015658 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 +000015659 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15660 export_dynamic_flag_spec='${wl}-E'
15661 else
15662 case $host_os in
15663 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15665 hardcode_libdir_flag_spec='-R$libdir'
15666 ;;
15667 *)
15668 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15670 ;;
15671 esac
15672 fi
15673 ;;
15674
15675 os2*)
15676 hardcode_libdir_flag_spec='-L$libdir'
15677 hardcode_minus_L=yes
15678 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015679 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 +000015680 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15681 ;;
15682
15683 osf3*)
15684 if test "$GCC" = yes; then
15685 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15686 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'
15687 else
15688 allow_undefined_flag=' -expect_unresolved \*'
15689 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'
15690 fi
15691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15692 hardcode_libdir_separator=:
15693 ;;
15694
15695 osf4* | osf5*) # as osf3* with the addition of -msym flag
15696 if test "$GCC" = yes; then
15697 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15698 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'
15699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15700 else
15701 allow_undefined_flag=' -expect_unresolved \*'
15702 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 +000015703 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 +000015704 $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 +000015705
John Criswell47fdd832003-07-14 16:52:07 +000015706 # Both c and cxx compiler support -rpath directly
15707 hardcode_libdir_flag_spec='-rpath $libdir'
15708 fi
15709 hardcode_libdir_separator=:
15710 ;;
15711
John Criswell47fdd832003-07-14 16:52:07 +000015712 solaris*)
15713 no_undefined_flag=' -z text'
15714 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015715 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015716 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015717 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15718 $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 +000015719 else
Reid Spencera773bd52006-08-04 18:18:08 +000015720 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015721 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015722 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15723 $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 +000015724 fi
15725 hardcode_libdir_flag_spec='-R$libdir'
15726 hardcode_shlibpath_var=no
15727 case $host_os in
15728 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015729 *)
15730 # The compiler driver will combine linker options so we
15731 # cannot just pass the convience library names through
15732 # without $wl, iff we do not link with $LD.
15733 # Luckily, gcc supports the same syntax we need for Sun Studio.
15734 # Supported since Solaris 2.6 (maybe 2.5.1?)
15735 case $wlarc in
15736 '')
15737 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15738 *)
15739 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' ;;
15740 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015741 esac
15742 link_all_deplibs=yes
15743 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015744
John Criswell47fdd832003-07-14 16:52:07 +000015745 sunos4*)
15746 if test "x$host_vendor" = xsequent; then
15747 # Use $CC to link under sequent, because it throws in some extra .o
15748 # files that make .init and .fini sections work.
15749 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15750 else
15751 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15752 fi
15753 hardcode_libdir_flag_spec='-L$libdir'
15754 hardcode_direct=yes
15755 hardcode_minus_L=yes
15756 hardcode_shlibpath_var=no
15757 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015758
John Criswell47fdd832003-07-14 16:52:07 +000015759 sysv4)
15760 case $host_vendor in
15761 sni)
15762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15763 hardcode_direct=yes # is this really true???
15764 ;;
15765 siemens)
15766 ## LD is ld it makes a PLAMLIB
15767 ## CC just makes a GrossModule.
15768 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15769 reload_cmds='$CC -r -o $output$reload_objs'
15770 hardcode_direct=no
15771 ;;
15772 motorola)
15773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15774 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15775 ;;
15776 esac
15777 runpath_var='LD_RUN_PATH'
15778 hardcode_shlibpath_var=no
15779 ;;
15780
15781 sysv4.3*)
15782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15783 hardcode_shlibpath_var=no
15784 export_dynamic_flag_spec='-Bexport'
15785 ;;
15786
15787 sysv4*MP*)
15788 if test -d /usr/nec; then
15789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15790 hardcode_shlibpath_var=no
15791 runpath_var=LD_RUN_PATH
15792 hardcode_runpath_var=yes
15793 ld_shlibs=yes
15794 fi
15795 ;;
15796
Reid Spencera773bd52006-08-04 18:18:08 +000015797 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15798 no_undefined_flag='${wl}-z,text'
15799 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015800 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015801 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015802
John Criswell47fdd832003-07-14 16:52:07 +000015803 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015804 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15805 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 +000015806 else
Reid Spencera773bd52006-08-04 18:18:08 +000015807 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15808 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 +000015809 fi
John Criswell47fdd832003-07-14 16:52:07 +000015810 ;;
15811
Reid Spencera773bd52006-08-04 18:18:08 +000015812 sysv5* | sco3.2v5* | sco5v6*)
15813 # Note: We can NOT use -z defs as we might desire, because we do not
15814 # link with -lc, and that would cause any symbols used from libc to
15815 # always be unresolved, which means just about no library would
15816 # ever link correctly. If we're not using GNU ld we use -z text
15817 # though, which does catch some bad symbols but isn't as heavy-handed
15818 # as -z defs.
15819 no_undefined_flag='${wl}-z,text'
15820 allow_undefined_flag='${wl}-z,nodefs'
15821 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015822 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015823 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15824 hardcode_libdir_separator=':'
15825 link_all_deplibs=yes
15826 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015827 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015828
15829 if test "$GCC" = yes; then
15830 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15831 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15832 else
15833 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15834 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15835 fi
John Criswell47fdd832003-07-14 16:52:07 +000015836 ;;
15837
15838 uts4*)
15839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15840 hardcode_libdir_flag_spec='-L$libdir'
15841 hardcode_shlibpath_var=no
15842 ;;
15843
15844 *)
15845 ld_shlibs=no
15846 ;;
15847 esac
15848 fi
15849
Reid Spencera773bd52006-08-04 18:18:08 +000015850{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15851echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015852test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015853
John Criswell47fdd832003-07-14 16:52:07 +000015854#
15855# Do we need to explicitly link libc?
15856#
15857case "x$archive_cmds_need_lc" in
15858x|xyes)
15859 # Assume -lc should be added
15860 archive_cmds_need_lc=yes
15861
15862 if test "$enable_shared" = yes && test "$GCC" = yes; then
15863 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015864 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015865 # FIXME: we may have to deal with multi-command sequences.
15866 ;;
15867 '$CC '*)
15868 # Test whether the compiler implicitly links with -lc since on some
15869 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15870 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015871 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15872echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015873 $rm conftest*
15874 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15875
15876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15877 (eval $ac_compile) 2>&5
15878 ac_status=$?
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } 2>conftest.err; then
15881 soname=conftest
15882 lib=conftest
15883 libobjs=conftest.$ac_objext
15884 deplibs=
15885 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015886 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015887 compiler_flags=-v
15888 linker_flags=-v
15889 verstring=
15890 output_objdir=.
15891 libname=conftest
15892 lt_save_allow_undefined_flag=$allow_undefined_flag
15893 allow_undefined_flag=
15894 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15895 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }
15899 then
15900 archive_cmds_need_lc=no
15901 else
15902 archive_cmds_need_lc=yes
15903 fi
15904 allow_undefined_flag=$lt_save_allow_undefined_flag
15905 else
15906 cat conftest.err 1>&5
15907 fi
15908 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015909 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15910echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015911 ;;
15912 esac
15913 fi
15914 ;;
15915esac
15916
Reid Spencera773bd52006-08-04 18:18:08 +000015917{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15918echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015919library_names_spec=
15920libname_spec='lib$name'
15921soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015922shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015923postinstall_cmds=
15924postuninstall_cmds=
15925finish_cmds=
15926finish_eval=
15927shlibpath_var=
15928shlibpath_overrides_runpath=unknown
15929version_type=none
15930dynamic_linker="$host_os ld.so"
15931sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015932if test "$GCC" = yes; then
15933 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15934 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15935 # if the path contains ";" then we assume it to be the separator
15936 # otherwise default to the standard path separator (i.e. ":") - it is
15937 # assumed that no part of a normal pathname contains ";" but that should
15938 # okay in the real world where ";" in dirpaths is itself problematic.
15939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15940 else
15941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15942 fi
15943else
15944 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15945fi
15946need_lib_prefix=unknown
15947hardcode_into_libs=no
15948
15949# when you set need_version to no, make sure it does not cause -set_version
15950# flags to be left without arguments
15951need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015952
15953case $host_os in
15954aix3*)
15955 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015957 shlibpath_var=LIBPATH
15958
John Criswell47fdd832003-07-14 16:52:07 +000015959 # AIX 3 has no versioning support, so we append a major version to the name.
15960 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015961 ;;
15962
15963aix4* | aix5*)
15964 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015965 need_lib_prefix=no
15966 need_version=no
15967 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015968 if test "$host_cpu" = ia64; then
15969 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015970 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015971 shlibpath_var=LD_LIBRARY_PATH
15972 else
15973 # With GCC up to 2.95.x, collect2 would create an import file
15974 # for dependence libraries. The import file would start with
15975 # the line `#! .'. This would cause the generated library to
15976 # depend on `.', always an invalid library. This was fixed in
15977 # development snapshots of GCC prior to 3.0.
15978 case $host_os in
15979 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015980 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15981 echo ' yes '
15982 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15983 :
15984 else
15985 can_build_shared=no
15986 fi
15987 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015988 esac
John Criswell47fdd832003-07-14 16:52:07 +000015989 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15990 # soname into executable. Probably we can add versioning support to
15991 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015992 if test "$aix_use_runtimelinking" = yes; then
15993 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15994 # instead of lib<name>.a to let people know that these are not
15995 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015997 else
15998 # We preserve .a as extension for shared libraries through AIX4.2
15999 # and later when we are not doing run time linking.
16000 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016001 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016002 fi
16003 shlibpath_var=LIBPATH
16004 fi
16005 ;;
16006
16007amigaos*)
16008 library_names_spec='$libname.ixlibrary $libname.a'
16009 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016010 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 +000016011 ;;
16012
16013beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016014 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016015 dynamic_linker="$host_os ld.so"
16016 shlibpath_var=LIBRARY_PATH
16017 ;;
16018
Reid Spencer2706f8c2004-09-19 23:53:36 +000016019bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016020 version_type=linux
16021 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16023 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016024 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16025 shlibpath_var=LD_LIBRARY_PATH
16026 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16027 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016028 # the default ld.so.conf also contains /usr/contrib/lib and
16029 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16030 # libtool to hard-code these into programs
16031 ;;
16032
16033cygwin* | mingw* | pw32*)
16034 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016035 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016036 need_version=no
16037 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016038
John Criswell7a73b802003-06-30 21:59:07 +000016039 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016040 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016041 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016042 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016043 postinstall_cmds='base_file=`basename \${file}`~
16044 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16045 dldir=$destdir/`dirname \$dlpath`~
16046 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016047 $install_prog $dir/$dlname \$dldir/$dlname~
16048 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016049 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16050 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016051 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016052 shlibpath_overrides_runpath=yes
16053
16054 case $host_os in
16055 cygwin*)
16056 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16057 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 +000016058 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016059 ;;
16060 mingw*)
16061 # MinGW DLLs use traditional 'lib' prefix
16062 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16063 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16064 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16065 # It is most probably a Windows format PATH printed by
16066 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16067 # path with ; separators, and with drive letters. We can handle the
16068 # drive letters (cygwin fileutils understands them), so leave them,
16069 # especially as we might pass files found there to a mingw objdump,
16070 # which wouldn't understand a cygwinified path. Ahh.
16071 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16072 else
16073 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16074 fi
16075 ;;
16076 pw32*)
16077 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016078 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 +000016079 ;;
16080 esac
John Criswell7a73b802003-06-30 21:59:07 +000016081 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016082
John Criswell7a73b802003-06-30 21:59:07 +000016083 *)
John Criswell47fdd832003-07-14 16:52:07 +000016084 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016085 ;;
16086 esac
16087 dynamic_linker='Win32 ld.exe'
16088 # FIXME: first we should search . and the directory the executable is in
16089 shlibpath_var=PATH
16090 ;;
16091
16092darwin* | rhapsody*)
16093 dynamic_linker="$host_os dyld"
16094 version_type=darwin
16095 need_lib_prefix=no
16096 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016097 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016098 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016099 shlibpath_overrides_runpath=yes
16100 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016101 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016102 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016103 if test "$GCC" = yes; then
16104 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"`
16105 else
16106 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016107 fi
16108 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16109 ;;
16110
16111dgux*)
16112 version_type=linux
16113 need_lib_prefix=no
16114 need_version=no
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016118 ;;
16119
16120freebsd1*)
16121 dynamic_linker=no
16122 ;;
16123
Reid Spencer2706f8c2004-09-19 23:53:36 +000016124kfreebsd*-gnu)
16125 version_type=linux
16126 need_lib_prefix=no
16127 need_version=no
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16129 soname_spec='${libname}${release}${shared_ext}$major'
16130 shlibpath_var=LD_LIBRARY_PATH
16131 shlibpath_overrides_runpath=no
16132 hardcode_into_libs=yes
16133 dynamic_linker='GNU ld.so'
16134 ;;
16135
Reid Spencera773bd52006-08-04 18:18:08 +000016136freebsd* | dragonfly*)
16137 # DragonFly does not have aout. When/if they implement a new
16138 # versioning mechanism, adjust this.
16139 if test -x /usr/bin/objformat; then
16140 objformat=`/usr/bin/objformat`
16141 else
16142 case $host_os in
16143 freebsd[123]*) objformat=aout ;;
16144 *) objformat=elf ;;
16145 esac
16146 fi
John Criswell7a73b802003-06-30 21:59:07 +000016147 version_type=freebsd-$objformat
16148 case $version_type in
16149 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016151 need_version=no
16152 need_lib_prefix=no
16153 ;;
16154 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016155 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016156 need_version=yes
16157 ;;
16158 esac
16159 shlibpath_var=LD_LIBRARY_PATH
16160 case $host_os in
16161 freebsd2*)
16162 shlibpath_overrides_runpath=yes
16163 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016164 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016165 shlibpath_overrides_runpath=yes
16166 hardcode_into_libs=yes
16167 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016168 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16169 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016170 shlibpath_overrides_runpath=no
16171 hardcode_into_libs=yes
16172 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016173 freebsd*) # from 4.6 on
16174 shlibpath_overrides_runpath=yes
16175 hardcode_into_libs=yes
16176 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016177 esac
16178 ;;
16179
16180gnu*)
16181 version_type=linux
16182 need_lib_prefix=no
16183 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16185 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016186 shlibpath_var=LD_LIBRARY_PATH
16187 hardcode_into_libs=yes
16188 ;;
16189
16190hpux9* | hpux10* | hpux11*)
16191 # Give a soname corresponding to the major version so that dld.sl refuses to
16192 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016193 version_type=sunos
16194 need_lib_prefix=no
16195 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016196 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016197 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016198 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016199 hardcode_into_libs=yes
16200 dynamic_linker="$host_os dld.so"
16201 shlibpath_var=LD_LIBRARY_PATH
16202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204 soname_spec='${libname}${release}${shared_ext}$major'
16205 if test "X$HPUX_IA64_MODE" = X32; then
16206 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16207 else
16208 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16209 fi
16210 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16211 ;;
16212 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016213 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016214 hardcode_into_libs=yes
16215 dynamic_linker="$host_os dld.sl"
16216 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16217 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16222 ;;
16223 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016224 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016225 dynamic_linker="$host_os dld.sl"
16226 shlibpath_var=SHLIB_PATH
16227 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 soname_spec='${libname}${release}${shared_ext}$major'
16230 ;;
16231 esac
John Criswell7a73b802003-06-30 21:59:07 +000016232 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16233 postinstall_cmds='chmod 555 $lib'
16234 ;;
16235
Reid Spencera773bd52006-08-04 18:18:08 +000016236interix3*)
16237 version_type=linux
16238 need_lib_prefix=no
16239 need_version=no
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16241 soname_spec='${libname}${release}${shared_ext}$major'
16242 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16243 shlibpath_var=LD_LIBRARY_PATH
16244 shlibpath_overrides_runpath=no
16245 hardcode_into_libs=yes
16246 ;;
16247
John Criswell47fdd832003-07-14 16:52:07 +000016248irix5* | irix6* | nonstopux*)
16249 case $host_os in
16250 nonstopux*) version_type=nonstopux ;;
16251 *)
16252 if test "$lt_cv_prog_gnu_ld" = yes; then
16253 version_type=linux
16254 else
16255 version_type=irix
16256 fi ;;
16257 esac
John Criswell7a73b802003-06-30 21:59:07 +000016258 need_lib_prefix=no
16259 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016260 soname_spec='${libname}${release}${shared_ext}$major'
16261 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 +000016262 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016263 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016264 libsuff= shlibsuff=
16265 ;;
16266 *)
16267 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016268 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16269 libsuff= shlibsuff= libmagic=32-bit;;
16270 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16271 libsuff=32 shlibsuff=N32 libmagic=N32;;
16272 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16273 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016274 *) libsuff= shlibsuff= libmagic=never-match;;
16275 esac
16276 ;;
16277 esac
16278 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16279 shlibpath_overrides_runpath=no
16280 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16281 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016282 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016283 ;;
16284
16285# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016286linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016287 dynamic_linker=no
16288 ;;
16289
16290# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016291linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016292 version_type=linux
16293 need_lib_prefix=no
16294 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16296 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16298 shlibpath_var=LD_LIBRARY_PATH
16299 shlibpath_overrides_runpath=no
16300 # This implies no fast_install, which is unacceptable.
16301 # Some rework will be needed to allow for fast_install
16302 # before this can be enabled.
16303 hardcode_into_libs=yes
16304
Reid Spencer2706f8c2004-09-19 23:53:36 +000016305 # Append ld.so.conf contents to the search path
16306 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016307 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 +000016308 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16309 fi
16310
John Criswell7a73b802003-06-30 21:59:07 +000016311 # We used to test for /lib/ld.so.1 and disable shared libraries on
16312 # powerpc, because MkLinux only supported shared libraries with the
16313 # GNU dynamic linker. Since this was broken with cross compilers,
16314 # most powerpc-linux boxes support dynamic linking these days and
16315 # people can always --disable-shared, the test was removed, and we
16316 # assume the GNU/Linux dynamic linker is in use.
16317 dynamic_linker='GNU/Linux ld.so'
16318 ;;
16319
Reid Spencer2706f8c2004-09-19 23:53:36 +000016320knetbsd*-gnu)
16321 version_type=linux
16322 need_lib_prefix=no
16323 need_version=no
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16325 soname_spec='${libname}${release}${shared_ext}$major'
16326 shlibpath_var=LD_LIBRARY_PATH
16327 shlibpath_overrides_runpath=no
16328 hardcode_into_libs=yes
16329 dynamic_linker='GNU ld.so'
16330 ;;
16331
John Criswell7a73b802003-06-30 21:59:07 +000016332netbsd*)
16333 version_type=sunos
16334 need_lib_prefix=no
16335 need_version=no
16336 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16339 dynamic_linker='NetBSD (a.out) ld.so'
16340 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016342 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016343 dynamic_linker='NetBSD ld.elf_so'
16344 fi
16345 shlibpath_var=LD_LIBRARY_PATH
16346 shlibpath_overrides_runpath=yes
16347 hardcode_into_libs=yes
16348 ;;
16349
16350newsos6)
16351 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16353 shlibpath_var=LD_LIBRARY_PATH
16354 shlibpath_overrides_runpath=yes
16355 ;;
16356
Reid Spencer2706f8c2004-09-19 23:53:36 +000016357nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016358 version_type=linux
16359 need_lib_prefix=no
16360 need_version=no
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016363 shlibpath_var=LD_LIBRARY_PATH
16364 shlibpath_overrides_runpath=yes
16365 ;;
16366
16367openbsd*)
16368 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016369 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016370 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016371 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16372 case $host_os in
16373 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16374 *) need_version=no ;;
16375 esac
John Criswell47fdd832003-07-14 16:52:07 +000016376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16378 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016379 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 +000016380 case $host_os in
16381 openbsd2.[89] | openbsd2.[89].*)
16382 shlibpath_overrides_runpath=no
16383 ;;
16384 *)
16385 shlibpath_overrides_runpath=yes
16386 ;;
16387 esac
John Criswell7a73b802003-06-30 21:59:07 +000016388 else
16389 shlibpath_overrides_runpath=yes
16390 fi
John Criswell7a73b802003-06-30 21:59:07 +000016391 ;;
16392
16393os2*)
16394 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016395 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016396 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016397 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016398 dynamic_linker='OS/2 ld.exe'
16399 shlibpath_var=LIBPATH
16400 ;;
16401
16402osf3* | osf4* | osf5*)
16403 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016404 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016405 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016406 soname_spec='${libname}${release}${shared_ext}$major'
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016408 shlibpath_var=LD_LIBRARY_PATH
16409 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16410 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16411 ;;
16412
John Criswell7a73b802003-06-30 21:59:07 +000016413solaris*)
16414 version_type=linux
16415 need_lib_prefix=no
16416 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=yes
16421 hardcode_into_libs=yes
16422 # ldd complains unless libraries are executable
16423 postinstall_cmds='chmod +x $lib'
16424 ;;
16425
16426sunos4*)
16427 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016429 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16430 shlibpath_var=LD_LIBRARY_PATH
16431 shlibpath_overrides_runpath=yes
16432 if test "$with_gnu_ld" = yes; then
16433 need_lib_prefix=no
16434 fi
16435 need_version=yes
16436 ;;
16437
Reid Spencera773bd52006-08-04 18:18:08 +000016438sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016439 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16441 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016442 shlibpath_var=LD_LIBRARY_PATH
16443 case $host_vendor in
16444 sni)
16445 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016446 need_lib_prefix=no
16447 export_dynamic_flag_spec='${wl}-Blargedynsym'
16448 runpath_var=LD_RUN_PATH
16449 ;;
16450 siemens)
16451 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016452 ;;
16453 motorola)
16454 need_lib_prefix=no
16455 need_version=no
16456 shlibpath_overrides_runpath=no
16457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16458 ;;
16459 esac
16460 ;;
16461
John Criswell7a73b802003-06-30 21:59:07 +000016462sysv4*MP*)
16463 if test -d /usr/nec ;then
16464 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016465 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16466 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016467 shlibpath_var=LD_LIBRARY_PATH
16468 fi
16469 ;;
16470
Reid Spencera773bd52006-08-04 18:18:08 +000016471sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16472 version_type=freebsd-elf
16473 need_lib_prefix=no
16474 need_version=no
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 shlibpath_var=LD_LIBRARY_PATH
16478 hardcode_into_libs=yes
16479 if test "$with_gnu_ld" = yes; then
16480 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16481 shlibpath_overrides_runpath=no
16482 else
16483 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16484 shlibpath_overrides_runpath=yes
16485 case $host_os in
16486 sco3.2v5*)
16487 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16488 ;;
16489 esac
16490 fi
16491 sys_lib_dlsearch_path_spec='/usr/lib'
16492 ;;
16493
John Criswell47fdd832003-07-14 16:52:07 +000016494uts4*)
16495 version_type=linux
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16497 soname_spec='${libname}${release}${shared_ext}$major'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 ;;
16500
John Criswell7a73b802003-06-30 21:59:07 +000016501*)
16502 dynamic_linker=no
16503 ;;
16504esac
Reid Spencera773bd52006-08-04 18:18:08 +000016505{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16506echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016507test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016508
Reid Spencera773bd52006-08-04 18:18:08 +000016509variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16510if test "$GCC" = yes; then
16511 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16512fi
16513
16514{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16515echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016516hardcode_action=
16517if test -n "$hardcode_libdir_flag_spec" || \
16518 test -n "$runpath_var" || \
16519 test "X$hardcode_automatic" = "Xyes" ; then
16520
16521 # We can hardcode non-existant directories.
16522 if test "$hardcode_direct" != no &&
16523 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16524 # have to relink, otherwise we might link with an installed library
16525 # when we should be linking with a yet-to-be-installed one
16526 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16527 test "$hardcode_minus_L" != no; then
16528 # Linking always hardcodes the temporary library directory.
16529 hardcode_action=relink
16530 else
16531 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16532 hardcode_action=immediate
16533 fi
16534else
16535 # We cannot hardcode anything, or else we can only hardcode existing
16536 # directories.
16537 hardcode_action=unsupported
16538fi
Reid Spencera773bd52006-08-04 18:18:08 +000016539{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16540echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016541
16542if test "$hardcode_action" = relink; then
16543 # Fast installation is not supported
16544 enable_fast_install=no
16545elif test "$shlibpath_overrides_runpath" = yes ||
16546 test "$enable_shared" = no; then
16547 # Fast installation is not necessary
16548 enable_fast_install=needless
16549fi
16550
16551striplib=
16552old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016553{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16554echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016555if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16556 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16557 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016558 { echo "$as_me:$LINENO: result: yes" >&5
16559echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016560else
16561# FIXME - insert some real tests, host_os isn't really good enough
16562 case $host_os in
16563 darwin*)
16564 if test -n "$STRIP" ; then
16565 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016566 { echo "$as_me:$LINENO: result: yes" >&5
16567echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016568 else
Reid Spencera773bd52006-08-04 18:18:08 +000016569 { echo "$as_me:$LINENO: result: no" >&5
16570echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016571fi
16572 ;;
16573 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016574 { echo "$as_me:$LINENO: result: no" >&5
16575echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016576 ;;
16577 esac
16578fi
16579
John Criswell7a73b802003-06-30 21:59:07 +000016580if test "x$enable_dlopen" != xyes; then
16581 enable_dlopen=unknown
16582 enable_dlopen_self=unknown
16583 enable_dlopen_self_static=unknown
16584else
16585 lt_cv_dlopen=no
16586 lt_cv_dlopen_libs=
16587
16588 case $host_os in
16589 beos*)
16590 lt_cv_dlopen="load_add_on"
16591 lt_cv_dlopen_libs=
16592 lt_cv_dlopen_self=yes
16593 ;;
16594
John Criswell47fdd832003-07-14 16:52:07 +000016595 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016596 lt_cv_dlopen="LoadLibrary"
16597 lt_cv_dlopen_libs=
16598 ;;
16599
John Criswell47fdd832003-07-14 16:52:07 +000016600 cygwin*)
16601 lt_cv_dlopen="dlopen"
16602 lt_cv_dlopen_libs=
16603 ;;
16604
16605 darwin*)
16606 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016607 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16608echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016609if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611else
16612 ac_check_lib_save_LIBS=$LIBS
16613LIBS="-ldl $LIBS"
16614cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016615/* confdefs.h. */
16616_ACEOF
16617cat confdefs.h >>conftest.$ac_ext
16618cat >>conftest.$ac_ext <<_ACEOF
16619/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016620
Reid Spencera773bd52006-08-04 18:18:08 +000016621/* Override any GCC internal prototype to avoid an error.
16622 Use char because int might match the return type of a GCC
16623 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016624#ifdef __cplusplus
16625extern "C"
16626#endif
John Criswell47fdd832003-07-14 16:52:07 +000016627char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016628int
16629main ()
16630{
Reid Spencera773bd52006-08-04 18:18:08 +000016631return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016632 ;
16633 return 0;
16634}
16635_ACEOF
16636rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016637if { (ac_try="$ac_link"
16638case "(($ac_try" in
16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640 *) ac_try_echo=$ac_try;;
16641esac
16642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016644 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016645 grep -v '^ *+' conftest.er1 >conftest.err
16646 rm -f conftest.er1
16647 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016649 (exit $ac_status); } &&
16650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16651 { (case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16654esac
16655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_try") 2>&5
16657 ac_status=$?
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); }; } &&
16660 { ac_try='test -s conftest$ac_exeext'
16661 { (case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16664esac
16665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_try") 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016670 ac_cv_lib_dl_dlopen=yes
16671else
16672 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016673sed 's/^/| /' conftest.$ac_ext >&5
16674
Reid Spencera773bd52006-08-04 18:18:08 +000016675 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016676fi
Reid Spencera773bd52006-08-04 18:18:08 +000016677
Bill Wendlingebcceee2009-04-18 11:20:33 +000016678rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016679 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016680LIBS=$ac_check_lib_save_LIBS
16681fi
Reid Spencera773bd52006-08-04 18:18:08 +000016682{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16683echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016684if test $ac_cv_lib_dl_dlopen = yes; then
16685 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16686else
16687
16688 lt_cv_dlopen="dyld"
16689 lt_cv_dlopen_libs=
16690 lt_cv_dlopen_self=yes
16691
16692fi
16693
16694 ;;
16695
John Criswell7a73b802003-06-30 21:59:07 +000016696 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016697 { echo "$as_me:$LINENO: checking for shl_load" >&5
16698echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016699if test "${ac_cv_func_shl_load+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16701else
16702 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016703/* confdefs.h. */
16704_ACEOF
16705cat confdefs.h >>conftest.$ac_ext
16706cat >>conftest.$ac_ext <<_ACEOF
16707/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016708/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16709 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16710#define shl_load innocuous_shl_load
16711
John Criswell7a73b802003-06-30 21:59:07 +000016712/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016713 which can conflict with char shl_load (); below.
16714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16715 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016716
John Criswell0c38eaf2003-09-10 15:17:25 +000016717#ifdef __STDC__
16718# include <limits.h>
16719#else
16720# include <assert.h>
16721#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016722
16723#undef shl_load
16724
Reid Spencera773bd52006-08-04 18:18:08 +000016725/* Override any GCC internal prototype to avoid an error.
16726 Use char because int might match the return type of a GCC
16727 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016728#ifdef __cplusplus
16729extern "C"
16730#endif
John Criswell7a73b802003-06-30 21:59:07 +000016731char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016732/* The GNU C library defines this for functions which it implements
16733 to always fail with ENOSYS. Some functions are actually named
16734 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016735#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016736choke me
John Criswell7a73b802003-06-30 21:59:07 +000016737#endif
16738
John Criswell0c38eaf2003-09-10 15:17:25 +000016739int
16740main ()
16741{
Reid Spencera773bd52006-08-04 18:18:08 +000016742return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016743 ;
16744 return 0;
16745}
16746_ACEOF
16747rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016748if { (ac_try="$ac_link"
16749case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16752esac
16753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016755 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016756 grep -v '^ *+' conftest.er1 >conftest.err
16757 rm -f conftest.er1
16758 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016760 (exit $ac_status); } &&
16761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765esac
16766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; } &&
16771 { ac_try='test -s conftest$ac_exeext'
16772 { (case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16775esac
16776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_try") 2>&5
16778 ac_status=$?
16779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016781 ac_cv_func_shl_load=yes
16782else
16783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016784sed 's/^/| /' conftest.$ac_ext >&5
16785
Reid Spencera773bd52006-08-04 18:18:08 +000016786 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016787fi
Reid Spencera773bd52006-08-04 18:18:08 +000016788
Bill Wendlingebcceee2009-04-18 11:20:33 +000016789rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016790 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016791fi
Reid Spencera773bd52006-08-04 18:18:08 +000016792{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16793echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016794if test $ac_cv_func_shl_load = yes; then
16795 lt_cv_dlopen="shl_load"
16796else
Reid Spencera773bd52006-08-04 18:18:08 +000016797 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16798echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016799if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16801else
16802 ac_check_lib_save_LIBS=$LIBS
16803LIBS="-ldld $LIBS"
16804cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016805/* confdefs.h. */
16806_ACEOF
16807cat confdefs.h >>conftest.$ac_ext
16808cat >>conftest.$ac_ext <<_ACEOF
16809/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016810
Reid Spencera773bd52006-08-04 18:18:08 +000016811/* Override any GCC internal prototype to avoid an error.
16812 Use char because int might match the return type of a GCC
16813 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016814#ifdef __cplusplus
16815extern "C"
16816#endif
John Criswell7a73b802003-06-30 21:59:07 +000016817char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016818int
16819main ()
16820{
Reid Spencera773bd52006-08-04 18:18:08 +000016821return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016822 ;
16823 return 0;
16824}
16825_ACEOF
16826rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016827if { (ac_try="$ac_link"
16828case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16831esac
16832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016834 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016839 (exit $ac_status); } &&
16840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16841 { (case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16844esac
16845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_try") 2>&5
16847 ac_status=$?
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; } &&
16850 { ac_try='test -s conftest$ac_exeext'
16851 { (case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16854esac
16855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_try") 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016860 ac_cv_lib_dld_shl_load=yes
16861else
16862 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016863sed 's/^/| /' conftest.$ac_ext >&5
16864
Reid Spencera773bd52006-08-04 18:18:08 +000016865 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016866fi
Reid Spencera773bd52006-08-04 18:18:08 +000016867
Bill Wendlingebcceee2009-04-18 11:20:33 +000016868rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016869 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016870LIBS=$ac_check_lib_save_LIBS
16871fi
Reid Spencera773bd52006-08-04 18:18:08 +000016872{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16873echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016874if test $ac_cv_lib_dld_shl_load = yes; then
16875 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16876else
Reid Spencera773bd52006-08-04 18:18:08 +000016877 { echo "$as_me:$LINENO: checking for dlopen" >&5
16878echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016879if test "${ac_cv_func_dlopen+set}" = set; then
16880 echo $ECHO_N "(cached) $ECHO_C" >&6
16881else
16882 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016883/* confdefs.h. */
16884_ACEOF
16885cat confdefs.h >>conftest.$ac_ext
16886cat >>conftest.$ac_ext <<_ACEOF
16887/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016888/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16890#define dlopen innocuous_dlopen
16891
John Criswell7a73b802003-06-30 21:59:07 +000016892/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016893 which can conflict with char dlopen (); below.
16894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16895 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016896
John Criswell0c38eaf2003-09-10 15:17:25 +000016897#ifdef __STDC__
16898# include <limits.h>
16899#else
16900# include <assert.h>
16901#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016902
16903#undef dlopen
16904
Reid Spencera773bd52006-08-04 18:18:08 +000016905/* Override any GCC internal prototype to avoid an error.
16906 Use char because int might match the return type of a GCC
16907 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016908#ifdef __cplusplus
16909extern "C"
16910#endif
John Criswell7a73b802003-06-30 21:59:07 +000016911char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016912/* The GNU C library defines this for functions which it implements
16913 to always fail with ENOSYS. Some functions are actually named
16914 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016915#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016916choke me
John Criswell7a73b802003-06-30 21:59:07 +000016917#endif
16918
John Criswell0c38eaf2003-09-10 15:17:25 +000016919int
16920main ()
16921{
Reid Spencera773bd52006-08-04 18:18:08 +000016922return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016923 ;
16924 return 0;
16925}
16926_ACEOF
16927rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016928if { (ac_try="$ac_link"
16929case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16932esac
16933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016935 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016940 (exit $ac_status); } &&
16941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16942 { (case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16945esac
16946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_try") 2>&5
16948 ac_status=$?
16949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950 (exit $ac_status); }; } &&
16951 { ac_try='test -s conftest$ac_exeext'
16952 { (case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16955esac
16956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16957 (eval "$ac_try") 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016961 ac_cv_func_dlopen=yes
16962else
16963 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016964sed 's/^/| /' conftest.$ac_ext >&5
16965
Reid Spencera773bd52006-08-04 18:18:08 +000016966 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016967fi
Reid Spencera773bd52006-08-04 18:18:08 +000016968
Bill Wendlingebcceee2009-04-18 11:20:33 +000016969rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016970 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016971fi
Reid Spencera773bd52006-08-04 18:18:08 +000016972{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16973echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016974if test $ac_cv_func_dlopen = yes; then
16975 lt_cv_dlopen="dlopen"
16976else
Reid Spencera773bd52006-08-04 18:18:08 +000016977 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16978echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016979if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981else
16982 ac_check_lib_save_LIBS=$LIBS
16983LIBS="-ldl $LIBS"
16984cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016985/* confdefs.h. */
16986_ACEOF
16987cat confdefs.h >>conftest.$ac_ext
16988cat >>conftest.$ac_ext <<_ACEOF
16989/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016990
Reid Spencera773bd52006-08-04 18:18:08 +000016991/* Override any GCC internal prototype to avoid an error.
16992 Use char because int might match the return type of a GCC
16993 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016994#ifdef __cplusplus
16995extern "C"
16996#endif
John Criswell7a73b802003-06-30 21:59:07 +000016997char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016998int
16999main ()
17000{
Reid Spencera773bd52006-08-04 18:18:08 +000017001return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017002 ;
17003 return 0;
17004}
17005_ACEOF
17006rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017007if { (ac_try="$ac_link"
17008case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17011esac
17012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017014 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017019 (exit $ac_status); } &&
17020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17021 { (case "(($ac_try" in
17022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17023 *) ac_try_echo=$ac_try;;
17024esac
17025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17026 (eval "$ac_try") 2>&5
17027 ac_status=$?
17028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17029 (exit $ac_status); }; } &&
17030 { ac_try='test -s conftest$ac_exeext'
17031 { (case "(($ac_try" in
17032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17033 *) ac_try_echo=$ac_try;;
17034esac
17035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17036 (eval "$ac_try") 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017040 ac_cv_lib_dl_dlopen=yes
17041else
17042 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017043sed 's/^/| /' conftest.$ac_ext >&5
17044
Reid Spencera773bd52006-08-04 18:18:08 +000017045 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017046fi
Reid Spencera773bd52006-08-04 18:18:08 +000017047
Bill Wendlingebcceee2009-04-18 11:20:33 +000017048rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017049 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017050LIBS=$ac_check_lib_save_LIBS
17051fi
Reid Spencera773bd52006-08-04 18:18:08 +000017052{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17053echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017054if test $ac_cv_lib_dl_dlopen = yes; then
17055 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17056else
Reid Spencera773bd52006-08-04 18:18:08 +000017057 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17058echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017059if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17060 echo $ECHO_N "(cached) $ECHO_C" >&6
17061else
17062 ac_check_lib_save_LIBS=$LIBS
17063LIBS="-lsvld $LIBS"
17064cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017065/* confdefs.h. */
17066_ACEOF
17067cat confdefs.h >>conftest.$ac_ext
17068cat >>conftest.$ac_ext <<_ACEOF
17069/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017070
Reid Spencera773bd52006-08-04 18:18:08 +000017071/* Override any GCC internal prototype to avoid an error.
17072 Use char because int might match the return type of a GCC
17073 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017074#ifdef __cplusplus
17075extern "C"
17076#endif
John Criswell7a73b802003-06-30 21:59:07 +000017077char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017078int
17079main ()
17080{
Reid Spencera773bd52006-08-04 18:18:08 +000017081return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017082 ;
17083 return 0;
17084}
17085_ACEOF
17086rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017087if { (ac_try="$ac_link"
17088case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17091esac
17092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017094 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017095 grep -v '^ *+' conftest.er1 >conftest.err
17096 rm -f conftest.er1
17097 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017099 (exit $ac_status); } &&
17100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17101 { (case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17104esac
17105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_try") 2>&5
17107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; } &&
17110 { ac_try='test -s conftest$ac_exeext'
17111 { (case "(($ac_try" in
17112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17114esac
17115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17116 (eval "$ac_try") 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017120 ac_cv_lib_svld_dlopen=yes
17121else
17122 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017123sed 's/^/| /' conftest.$ac_ext >&5
17124
Reid Spencera773bd52006-08-04 18:18:08 +000017125 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017126fi
Reid Spencera773bd52006-08-04 18:18:08 +000017127
Bill Wendlingebcceee2009-04-18 11:20:33 +000017128rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017129 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017130LIBS=$ac_check_lib_save_LIBS
17131fi
Reid Spencera773bd52006-08-04 18:18:08 +000017132{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17133echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017134if test $ac_cv_lib_svld_dlopen = yes; then
17135 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17136else
Reid Spencera773bd52006-08-04 18:18:08 +000017137 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17138echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017139if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17140 echo $ECHO_N "(cached) $ECHO_C" >&6
17141else
17142 ac_check_lib_save_LIBS=$LIBS
17143LIBS="-ldld $LIBS"
17144cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017145/* confdefs.h. */
17146_ACEOF
17147cat confdefs.h >>conftest.$ac_ext
17148cat >>conftest.$ac_ext <<_ACEOF
17149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017150
Reid Spencera773bd52006-08-04 18:18:08 +000017151/* Override any GCC internal prototype to avoid an error.
17152 Use char because int might match the return type of a GCC
17153 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017154#ifdef __cplusplus
17155extern "C"
17156#endif
John Criswell7a73b802003-06-30 21:59:07 +000017157char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017158int
17159main ()
17160{
Reid Spencera773bd52006-08-04 18:18:08 +000017161return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017162 ;
17163 return 0;
17164}
17165_ACEOF
17166rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017167if { (ac_try="$ac_link"
17168case "(($ac_try" in
17169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17170 *) ac_try_echo=$ac_try;;
17171esac
17172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17173 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017174 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017175 grep -v '^ *+' conftest.er1 >conftest.err
17176 rm -f conftest.er1
17177 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017179 (exit $ac_status); } &&
17180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17181 { (case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17184esac
17185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_try") 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest$ac_exeext'
17191 { (case "(($ac_try" in
17192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17193 *) ac_try_echo=$ac_try;;
17194esac
17195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17196 (eval "$ac_try") 2>&5
17197 ac_status=$?
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017200 ac_cv_lib_dld_dld_link=yes
17201else
17202 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017203sed 's/^/| /' conftest.$ac_ext >&5
17204
Reid Spencera773bd52006-08-04 18:18:08 +000017205 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017206fi
Reid Spencera773bd52006-08-04 18:18:08 +000017207
Bill Wendlingebcceee2009-04-18 11:20:33 +000017208rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017209 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017210LIBS=$ac_check_lib_save_LIBS
17211fi
Reid Spencera773bd52006-08-04 18:18:08 +000017212{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17213echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017214if test $ac_cv_lib_dld_dld_link = yes; then
17215 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17216fi
17217
17218
17219fi
17220
17221
17222fi
17223
17224
17225fi
17226
17227
17228fi
17229
17230
17231fi
17232
17233 ;;
17234 esac
17235
17236 if test "x$lt_cv_dlopen" != xno; then
17237 enable_dlopen=yes
17238 else
17239 enable_dlopen=no
17240 fi
17241
17242 case $lt_cv_dlopen in
17243 dlopen)
17244 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017245 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017246
17247 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017248 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017249
17250 save_LIBS="$LIBS"
17251 LIBS="$lt_cv_dlopen_libs $LIBS"
17252
Reid Spencera773bd52006-08-04 18:18:08 +000017253 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17254echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017255if test "${lt_cv_dlopen_self+set}" = set; then
17256 echo $ECHO_N "(cached) $ECHO_C" >&6
17257else
17258 if test "$cross_compiling" = yes; then :
17259 lt_cv_dlopen_self=cross
17260else
John Criswell47fdd832003-07-14 16:52:07 +000017261 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017262 lt_status=$lt_dlunknown
17263 cat > conftest.$ac_ext <<EOF
Owen Andersona8603702009-05-19 22:18:56 +000017264#line 17264 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017265#include "confdefs.h"
17266
17267#if HAVE_DLFCN_H
17268#include <dlfcn.h>
17269#endif
17270
17271#include <stdio.h>
17272
17273#ifdef RTLD_GLOBAL
17274# define LT_DLGLOBAL RTLD_GLOBAL
17275#else
17276# ifdef DL_GLOBAL
17277# define LT_DLGLOBAL DL_GLOBAL
17278# else
17279# define LT_DLGLOBAL 0
17280# endif
17281#endif
17282
17283/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17284 find out it does not work in some platform. */
17285#ifndef LT_DLLAZY_OR_NOW
17286# ifdef RTLD_LAZY
17287# define LT_DLLAZY_OR_NOW RTLD_LAZY
17288# else
17289# ifdef DL_LAZY
17290# define LT_DLLAZY_OR_NOW DL_LAZY
17291# else
17292# ifdef RTLD_NOW
17293# define LT_DLLAZY_OR_NOW RTLD_NOW
17294# else
17295# ifdef DL_NOW
17296# define LT_DLLAZY_OR_NOW DL_NOW
17297# else
17298# define LT_DLLAZY_OR_NOW 0
17299# endif
17300# endif
17301# endif
17302# endif
17303#endif
17304
17305#ifdef __cplusplus
17306extern "C" void exit (int);
17307#endif
17308
17309void fnord() { int i=42;}
17310int main ()
17311{
17312 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17313 int status = $lt_dlunknown;
17314
17315 if (self)
17316 {
17317 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17318 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17319 /* dlclose (self); */
17320 }
Reid Spencera773bd52006-08-04 18:18:08 +000017321 else
17322 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017323
17324 exit (status);
17325}
17326EOF
17327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17328 (eval $ac_link) 2>&5
17329 ac_status=$?
17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017332 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017333 lt_status=$?
17334 case x$lt_status in
17335 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17336 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017337 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017338 esac
17339 else :
17340 # compilation failed
17341 lt_cv_dlopen_self=no
17342 fi
17343fi
17344rm -fr conftest*
17345
17346
17347fi
Reid Spencera773bd52006-08-04 18:18:08 +000017348{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17349echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017350
17351 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017352 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17353 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17354echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017355if test "${lt_cv_dlopen_self_static+set}" = set; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17357else
17358 if test "$cross_compiling" = yes; then :
17359 lt_cv_dlopen_self_static=cross
17360else
John Criswell47fdd832003-07-14 16:52:07 +000017361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017362 lt_status=$lt_dlunknown
17363 cat > conftest.$ac_ext <<EOF
Owen Andersona8603702009-05-19 22:18:56 +000017364#line 17364 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017365#include "confdefs.h"
17366
17367#if HAVE_DLFCN_H
17368#include <dlfcn.h>
17369#endif
17370
17371#include <stdio.h>
17372
17373#ifdef RTLD_GLOBAL
17374# define LT_DLGLOBAL RTLD_GLOBAL
17375#else
17376# ifdef DL_GLOBAL
17377# define LT_DLGLOBAL DL_GLOBAL
17378# else
17379# define LT_DLGLOBAL 0
17380# endif
17381#endif
17382
17383/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17384 find out it does not work in some platform. */
17385#ifndef LT_DLLAZY_OR_NOW
17386# ifdef RTLD_LAZY
17387# define LT_DLLAZY_OR_NOW RTLD_LAZY
17388# else
17389# ifdef DL_LAZY
17390# define LT_DLLAZY_OR_NOW DL_LAZY
17391# else
17392# ifdef RTLD_NOW
17393# define LT_DLLAZY_OR_NOW RTLD_NOW
17394# else
17395# ifdef DL_NOW
17396# define LT_DLLAZY_OR_NOW DL_NOW
17397# else
17398# define LT_DLLAZY_OR_NOW 0
17399# endif
17400# endif
17401# endif
17402# endif
17403#endif
17404
17405#ifdef __cplusplus
17406extern "C" void exit (int);
17407#endif
17408
17409void fnord() { int i=42;}
17410int main ()
17411{
17412 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17413 int status = $lt_dlunknown;
17414
17415 if (self)
17416 {
17417 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17418 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17419 /* dlclose (self); */
17420 }
Reid Spencera773bd52006-08-04 18:18:08 +000017421 else
17422 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017423
17424 exit (status);
17425}
17426EOF
17427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17428 (eval $ac_link) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017432 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017433 lt_status=$?
17434 case x$lt_status in
17435 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17436 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017437 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017438 esac
17439 else :
17440 # compilation failed
17441 lt_cv_dlopen_self_static=no
17442 fi
17443fi
17444rm -fr conftest*
17445
17446
17447fi
Reid Spencera773bd52006-08-04 18:18:08 +000017448{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17449echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017450 fi
17451
17452 CPPFLAGS="$save_CPPFLAGS"
17453 LDFLAGS="$save_LDFLAGS"
17454 LIBS="$save_LIBS"
17455 ;;
17456 esac
17457
17458 case $lt_cv_dlopen_self in
17459 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17460 *) enable_dlopen_self=unknown ;;
17461 esac
17462
17463 case $lt_cv_dlopen_self_static in
17464 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17465 *) enable_dlopen_self_static=unknown ;;
17466 esac
17467fi
17468
17469
Reid Spencera773bd52006-08-04 18:18:08 +000017470# Report which library types will actually be built
17471{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17472echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17473{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17474echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017475
Reid Spencera773bd52006-08-04 18:18:08 +000017476{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17477echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017478test "$can_build_shared" = "no" && enable_shared=no
17479
17480# On AIX, shared libraries and static libraries use the same namespace, and
17481# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017482case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017483aix3*)
17484 test "$enable_shared" = yes && enable_static=no
17485 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017486 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017487 postinstall_cmds='$RANLIB $lib'
17488 fi
17489 ;;
17490
Reid Spencer2706f8c2004-09-19 23:53:36 +000017491aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017492 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17493 test "$enable_shared" = yes && enable_static=no
17494 fi
John Criswell7a73b802003-06-30 21:59:07 +000017495 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017496esac
Reid Spencera773bd52006-08-04 18:18:08 +000017497{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17498echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017499
Reid Spencera773bd52006-08-04 18:18:08 +000017500{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17501echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017502# Make sure either enable_shared or enable_static is yes.
17503test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017504{ echo "$as_me:$LINENO: result: $enable_static" >&5
17505echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017506
17507# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017508# libtool distribution, otherwise you forgot to ship ltmain.sh
17509# with your package, and you will get complaints that there are
17510# no rules to generate ltmain.sh.
17511if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017512 # See if we are running on zsh, and set the options which allow our commands through
17513 # without removal of \ escapes.
17514 if test -n "${ZSH_VERSION+set}" ; then
17515 setopt NO_GLOB_SUBST
17516 fi
John Criswell7a73b802003-06-30 21:59:07 +000017517 # Now quote all the things that may contain metacharacters while being
17518 # careful not to overquote the AC_SUBSTed values. We take copies of the
17519 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017520 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 +000017521 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017522 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17523 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17524 deplibs_check_method reload_flag reload_cmds need_locks \
17525 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17526 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017527 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017528 old_postinstall_cmds old_postuninstall_cmds \
17529 compiler \
17530 CC \
17531 LD \
17532 lt_prog_compiler_wl \
17533 lt_prog_compiler_pic \
17534 lt_prog_compiler_static \
17535 lt_prog_compiler_no_builtin_flag \
17536 export_dynamic_flag_spec \
17537 thread_safe_flag_spec \
17538 whole_archive_flag_spec \
17539 enable_shared_with_static_runtimes \
17540 old_archive_cmds \
17541 old_archive_from_new_cmds \
17542 predep_objects \
17543 postdep_objects \
17544 predeps \
17545 postdeps \
17546 compiler_lib_search_path \
17547 archive_cmds \
17548 archive_expsym_cmds \
17549 postinstall_cmds \
17550 postuninstall_cmds \
17551 old_archive_from_expsyms_cmds \
17552 allow_undefined_flag \
17553 no_undefined_flag \
17554 export_symbols_cmds \
17555 hardcode_libdir_flag_spec \
17556 hardcode_libdir_flag_spec_ld \
17557 hardcode_libdir_separator \
17558 hardcode_automatic \
17559 module_cmds \
17560 module_expsym_cmds \
17561 lt_cv_prog_compiler_c_o \
17562 exclude_expsyms \
17563 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017564
17565 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017566 old_archive_cmds | \
17567 old_archive_from_new_cmds | \
17568 archive_cmds | \
17569 archive_expsym_cmds | \
17570 module_cmds | \
17571 module_expsym_cmds | \
17572 old_archive_from_expsyms_cmds | \
17573 export_symbols_cmds | \
17574 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017575 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017576 old_postinstall_cmds | old_postuninstall_cmds | \
17577 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017578 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017579 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 +000017580 ;;
17581 *)
17582 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17583 ;;
17584 esac
17585 done
17586
John Criswell47fdd832003-07-14 16:52:07 +000017587 case $lt_echo in
17588 *'\$0 --fallback-echo"')
17589 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17590 ;;
17591 esac
17592
17593cfgfile="${ofile}T"
17594 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17595 $rm -f "$cfgfile"
17596 { echo "$as_me:$LINENO: creating $ofile" >&5
17597echo "$as_me: creating $ofile" >&6;}
17598
17599 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017600#! $SHELL
17601
John Criswell47fdd832003-07-14 16:52:07 +000017602# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017603# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17604# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17605#
John Criswell47fdd832003-07-14 16:52:07 +000017606# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17607# Free Software Foundation, Inc.
17608#
17609# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017610# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17611#
17612# This program is free software; you can redistribute it and/or modify
17613# it under the terms of the GNU General Public License as published by
17614# the Free Software Foundation; either version 2 of the License, or
17615# (at your option) any later version.
17616#
17617# This program is distributed in the hope that it will be useful, but
17618# WITHOUT ANY WARRANTY; without even the implied warranty of
17619# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17620# General Public License for more details.
17621#
17622# You should have received a copy of the GNU General Public License
17623# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017624# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017625#
17626# As a special exception to the GNU General Public License, if you
17627# distribute this file as part of a program that contains a
17628# configuration script generated by Autoconf, you may include it under
17629# the same distribution terms that you use for the rest of that program.
17630
John Criswell47fdd832003-07-14 16:52:07 +000017631# A sed program that does not truncate output.
17632SED=$lt_SED
17633
John Criswell7a73b802003-06-30 21:59:07 +000017634# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017635Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017636
17637# The HP-UX ksh and POSIX shell print the target directory to stdout
17638# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017639(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017640
John Criswell47fdd832003-07-14 16:52:07 +000017641# The names of the tagged configurations supported by this script.
17642available_tags=
17643
John Criswell7a73b802003-06-30 21:59:07 +000017644# ### BEGIN LIBTOOL CONFIG
17645
17646# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17647
17648# Shell to use when invoking shell scripts.
17649SHELL=$lt_SHELL
17650
17651# Whether or not to build shared libraries.
17652build_libtool_libs=$enable_shared
17653
17654# Whether or not to build static libraries.
17655build_old_libs=$enable_static
17656
17657# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017658build_libtool_need_lc=$archive_cmds_need_lc
17659
17660# Whether or not to disallow shared libs when runtime libs are static
17661allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017662
17663# Whether or not to optimize for fast installation.
17664fast_install=$enable_fast_install
17665
17666# The host system.
17667host_alias=$host_alias
17668host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017669host_os=$host_os
17670
17671# The build system.
17672build_alias=$build_alias
17673build=$build
17674build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017675
17676# An echo program that does not interpret backslashes.
17677echo=$lt_echo
17678
17679# The archiver.
17680AR=$lt_AR
17681AR_FLAGS=$lt_AR_FLAGS
17682
John Criswell47fdd832003-07-14 16:52:07 +000017683# A C compiler.
17684LTCC=$lt_LTCC
17685
Reid Spencera773bd52006-08-04 18:18:08 +000017686# LTCC compiler flags.
17687LTCFLAGS=$lt_LTCFLAGS
17688
John Criswell47fdd832003-07-14 16:52:07 +000017689# A language-specific compiler.
17690CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017691
17692# Is the compiler the GNU C compiler?
17693with_gcc=$GCC
17694
John Criswell47fdd832003-07-14 16:52:07 +000017695# An ERE matcher.
17696EGREP=$lt_EGREP
17697
John Criswell7a73b802003-06-30 21:59:07 +000017698# The linker used to build libraries.
17699LD=$lt_LD
17700
17701# Whether we need hard or soft links.
17702LN_S=$lt_LN_S
17703
17704# A BSD-compatible nm program.
17705NM=$lt_NM
17706
17707# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017708STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017709
17710# Used to examine libraries when file_magic_cmd begins "file"
17711MAGIC_CMD=$MAGIC_CMD
17712
17713# Used on cygwin: DLL creation program.
17714DLLTOOL="$DLLTOOL"
17715
17716# Used on cygwin: object dumper.
17717OBJDUMP="$OBJDUMP"
17718
17719# Used on cygwin: assembler.
17720AS="$AS"
17721
17722# The name of the directory that contains temporary libtool files.
17723objdir=$objdir
17724
17725# How to create reloadable object files.
17726reload_flag=$lt_reload_flag
17727reload_cmds=$lt_reload_cmds
17728
17729# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017730wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017731
17732# Object file suffix (normally "o").
17733objext="$ac_objext"
17734
17735# Old archive suffix (normally "a").
17736libext="$libext"
17737
John Criswell47fdd832003-07-14 16:52:07 +000017738# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017739shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017740
John Criswell7a73b802003-06-30 21:59:07 +000017741# Executable file suffix (normally "").
17742exeext="$exeext"
17743
17744# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017745pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017746pic_mode=$pic_mode
17747
John Criswell47fdd832003-07-14 16:52:07 +000017748# What is the maximum length of a command?
17749max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017750
John Criswell47fdd832003-07-14 16:52:07 +000017751# Does compiler simultaneously support -c and -o options?
17752compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017753
Reid Spencera773bd52006-08-04 18:18:08 +000017754# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017755need_locks=$lt_need_locks
17756
17757# Do we need the lib prefix for modules?
17758need_lib_prefix=$need_lib_prefix
17759
17760# Do we need a version for libraries?
17761need_version=$need_version
17762
17763# Whether dlopen is supported.
17764dlopen_support=$enable_dlopen
17765
17766# Whether dlopen of programs is supported.
17767dlopen_self=$enable_dlopen_self
17768
17769# Whether dlopen of statically linked programs is supported.
17770dlopen_self_static=$enable_dlopen_self_static
17771
17772# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017773link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017774
17775# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017776no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017777
17778# Compiler flag to allow reflexive dlopens.
17779export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17780
17781# Compiler flag to generate shared objects directly from archives.
17782whole_archive_flag_spec=$lt_whole_archive_flag_spec
17783
17784# Compiler flag to generate thread-safe objects.
17785thread_safe_flag_spec=$lt_thread_safe_flag_spec
17786
17787# Library versioning type.
17788version_type=$version_type
17789
17790# Format of library name prefix.
17791libname_spec=$lt_libname_spec
17792
17793# List of archive names. First name is the real one, the rest are links.
17794# The last name is the one that the linker finds with -lNAME.
17795library_names_spec=$lt_library_names_spec
17796
17797# The coded name of the library, if different from the real name.
17798soname_spec=$lt_soname_spec
17799
17800# Commands used to build and install an old-style archive.
17801RANLIB=$lt_RANLIB
17802old_archive_cmds=$lt_old_archive_cmds
17803old_postinstall_cmds=$lt_old_postinstall_cmds
17804old_postuninstall_cmds=$lt_old_postuninstall_cmds
17805
17806# Create an old-style archive from a shared archive.
17807old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17808
17809# Create a temporary old-style archive to link instead of a shared archive.
17810old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17811
17812# Commands used to build and install a shared archive.
17813archive_cmds=$lt_archive_cmds
17814archive_expsym_cmds=$lt_archive_expsym_cmds
17815postinstall_cmds=$lt_postinstall_cmds
17816postuninstall_cmds=$lt_postuninstall_cmds
17817
John Criswell47fdd832003-07-14 16:52:07 +000017818# Commands used to build a loadable module (assumed same as above if empty)
17819module_cmds=$lt_module_cmds
17820module_expsym_cmds=$lt_module_expsym_cmds
17821
John Criswell7a73b802003-06-30 21:59:07 +000017822# Commands to strip libraries.
17823old_striplib=$lt_old_striplib
17824striplib=$lt_striplib
17825
John Criswell47fdd832003-07-14 16:52:07 +000017826# Dependencies to place before the objects being linked to create a
17827# shared library.
17828predep_objects=$lt_predep_objects
17829
17830# Dependencies to place after the objects being linked to create a
17831# shared library.
17832postdep_objects=$lt_postdep_objects
17833
17834# Dependencies to place before the objects being linked to create a
17835# shared library.
17836predeps=$lt_predeps
17837
17838# Dependencies to place after the objects being linked to create a
17839# shared library.
17840postdeps=$lt_postdeps
17841
17842# The library search path used internally by the compiler when linking
17843# a shared library.
17844compiler_lib_search_path=$lt_compiler_lib_search_path
17845
John Criswell7a73b802003-06-30 21:59:07 +000017846# Method to check whether dependent libraries are shared objects.
17847deplibs_check_method=$lt_deplibs_check_method
17848
17849# Command to use when deplibs_check_method == file_magic.
17850file_magic_cmd=$lt_file_magic_cmd
17851
17852# Flag that allows shared libraries with undefined symbols to be built.
17853allow_undefined_flag=$lt_allow_undefined_flag
17854
17855# Flag that forces no undefined symbols.
17856no_undefined_flag=$lt_no_undefined_flag
17857
17858# Commands used to finish a libtool library installation in a directory.
17859finish_cmds=$lt_finish_cmds
17860
17861# Same as above, but a single script fragment to be evaled but not shown.
17862finish_eval=$lt_finish_eval
17863
17864# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017865global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017866
17867# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017868global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017869
17870# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017871global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017872
17873# This is the shared library runtime path variable.
17874runpath_var=$runpath_var
17875
17876# This is the shared library path variable.
17877shlibpath_var=$shlibpath_var
17878
17879# Is shlibpath searched before the hard-coded library search path?
17880shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17881
17882# How to hardcode a shared library path into an executable.
17883hardcode_action=$hardcode_action
17884
17885# Whether we should hardcode library paths into libraries.
17886hardcode_into_libs=$hardcode_into_libs
17887
17888# Flag to hardcode \$libdir into a binary during linking.
17889# This must work even if \$libdir does not exist.
17890hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17891
John Criswell47fdd832003-07-14 16:52:07 +000017892# If ld is used when linking, flag to hardcode \$libdir into
17893# a binary during linking. This must work even if \$libdir does
17894# not exist.
17895hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17896
John Criswell7a73b802003-06-30 21:59:07 +000017897# Whether we need a single -rpath flag with a separated argument.
17898hardcode_libdir_separator=$lt_hardcode_libdir_separator
17899
John Criswell47fdd832003-07-14 16:52:07 +000017900# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017901# resulting binary.
17902hardcode_direct=$hardcode_direct
17903
17904# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17905# resulting binary.
17906hardcode_minus_L=$hardcode_minus_L
17907
17908# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17909# the resulting binary.
17910hardcode_shlibpath_var=$hardcode_shlibpath_var
17911
John Criswell47fdd832003-07-14 16:52:07 +000017912# Set to yes if building a shared library automatically hardcodes DIR into the library
17913# and all subsequent libraries and executables linked against it.
17914hardcode_automatic=$hardcode_automatic
17915
John Criswell7a73b802003-06-30 21:59:07 +000017916# Variables whose values should be saved in libtool wrapper scripts and
17917# restored at relink time.
17918variables_saved_for_relink="$variables_saved_for_relink"
17919
17920# Whether libtool must link a program against all its dependency libraries.
17921link_all_deplibs=$link_all_deplibs
17922
17923# Compile-time system search path for libraries
17924sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17925
17926# Run-time system search path for libraries
17927sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17928
17929# Fix the shell variable \$srcfile for the compiler.
17930fix_srcfile_path="$fix_srcfile_path"
17931
17932# Set to yes if exported symbols are required.
17933always_export_symbols=$always_export_symbols
17934
17935# The commands to list exported symbols.
17936export_symbols_cmds=$lt_export_symbols_cmds
17937
17938# The commands to extract the exported symbol list from a shared archive.
17939extract_expsyms_cmds=$lt_extract_expsyms_cmds
17940
17941# Symbols that should not be listed in the preloaded symbols.
17942exclude_expsyms=$lt_exclude_expsyms
17943
17944# Symbols that must always be exported.
17945include_expsyms=$lt_include_expsyms
17946
17947# ### END LIBTOOL CONFIG
17948
17949__EOF__
17950
John Criswell47fdd832003-07-14 16:52:07 +000017951
John Criswell7a73b802003-06-30 21:59:07 +000017952 case $host_os in
17953 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017954 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017955
17956# AIX sometimes has problems with the GCC collect2 program. For some
17957# reason, if we set the COLLECT_NAMES environment variable, the problems
17958# vanish in a puff of smoke.
17959if test "X${COLLECT_NAMES+set}" != Xset; then
17960 COLLECT_NAMES=
17961 export COLLECT_NAMES
17962fi
17963EOF
17964 ;;
17965 esac
17966
John Criswell7a73b802003-06-30 21:59:07 +000017967 # We use sed instead of cat because bash on DJGPP gets confused if
17968 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17969 # text mode, it properly converts lines to CR/LF. This bash problem
17970 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017971 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017972
John Criswell47fdd832003-07-14 16:52:07 +000017973 mv -f "$cfgfile" "$ofile" || \
17974 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017975 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017976
17977else
17978 # If there is no Makefile yet, we rely on a make rule to execute
17979 # `config.status --recheck' to rerun these tests and create the
17980 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017981 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17982 if test -f "$ltmain_in"; then
17983 test -f Makefile && make "$ltmain"
17984 fi
John Criswell7a73b802003-06-30 21:59:07 +000017985fi
John Criswell7a73b802003-06-30 21:59:07 +000017986
17987
John Criswell47fdd832003-07-14 16:52:07 +000017988ac_ext=c
17989ac_cpp='$CPP $CPPFLAGS'
17990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17992ac_compiler_gnu=$ac_cv_c_compiler_gnu
17993
17994CC="$lt_save_CC"
17995
17996
Reid Spencera773bd52006-08-04 18:18:08 +000017997# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017998if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017999 withval=$with_tags; tagnames="$withval"
18000fi
18001
John Criswell47fdd832003-07-14 16:52:07 +000018002
18003if test -f "$ltmain" && test -n "$tagnames"; then
18004 if test ! -f "${ofile}"; then
18005 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18006echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18007 fi
18008
18009 if test -z "$LTCC"; then
18010 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18011 if test -z "$LTCC"; then
18012 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18013echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18014 else
18015 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18016echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18017 fi
18018 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018019 if test -z "$LTCFLAGS"; then
18020 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18021 fi
John Criswell47fdd832003-07-14 16:52:07 +000018022
18023 # Extract list of available tagged configurations in $ofile.
18024 # Note that this assumes the entire list is on one line.
18025 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18026
18027 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18028 for tagname in $tagnames; do
18029 IFS="$lt_save_ifs"
18030 # Check whether tagname contains only valid characters
18031 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18032 "") ;;
18033 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18034echo "$as_me: error: invalid tag name: $tagname" >&2;}
18035 { (exit 1); exit 1; }; }
18036 ;;
18037 esac
18038
18039 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18040 then
18041 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18042echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18043 { (exit 1); exit 1; }; }
18044 fi
18045
18046 # Update the list of available tags.
18047 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018048 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018049
18050 case $tagname in
18051 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018052 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18053 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18054 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018055 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018056ac_cpp='$CXXCPP $CPPFLAGS'
18057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18060
18061
18062
18063
18064archive_cmds_need_lc_CXX=no
18065allow_undefined_flag_CXX=
18066always_export_symbols_CXX=no
18067archive_expsym_cmds_CXX=
18068export_dynamic_flag_spec_CXX=
18069hardcode_direct_CXX=no
18070hardcode_libdir_flag_spec_CXX=
18071hardcode_libdir_flag_spec_ld_CXX=
18072hardcode_libdir_separator_CXX=
18073hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018074hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018075hardcode_automatic_CXX=no
18076module_cmds_CXX=
18077module_expsym_cmds_CXX=
18078link_all_deplibs_CXX=unknown
18079old_archive_cmds_CXX=$old_archive_cmds
18080no_undefined_flag_CXX=
18081whole_archive_flag_spec_CXX=
18082enable_shared_with_static_runtimes_CXX=no
18083
18084# Dependencies to place before and after the object being linked:
18085predep_objects_CXX=
18086postdep_objects_CXX=
18087predeps_CXX=
18088postdeps_CXX=
18089compiler_lib_search_path_CXX=
18090
18091# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018092ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018093
18094# Object file extension for compiled C++ test sources.
18095objext=o
18096objext_CXX=$objext
18097
18098# Code to be used in simple compile tests
18099lt_simple_compile_test_code="int some_variable = 0;\n"
18100
18101# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018102lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018103
18104# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18105
18106# If no C compiler was specified, use CC.
18107LTCC=${LTCC-"$CC"}
18108
Reid Spencera773bd52006-08-04 18:18:08 +000018109# If no C compiler flags were specified, use CFLAGS.
18110LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18111
John Criswell47fdd832003-07-14 16:52:07 +000018112# Allow CC to be a program name with arguments.
18113compiler=$CC
18114
18115
Reid Spencera773bd52006-08-04 18:18:08 +000018116# save warnings/boilerplate of simple test code
18117ac_outfile=conftest.$ac_objext
18118printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18119eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18120_lt_compiler_boilerplate=`cat conftest.err`
18121$rm conftest*
18122
18123ac_outfile=conftest.$ac_objext
18124printf "$lt_simple_link_test_code" >conftest.$ac_ext
18125eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18126_lt_linker_boilerplate=`cat conftest.err`
18127$rm conftest*
18128
18129
John Criswell47fdd832003-07-14 16:52:07 +000018130# Allow CC to be a program name with arguments.
18131lt_save_CC=$CC
18132lt_save_LD=$LD
18133lt_save_GCC=$GCC
18134GCC=$GXX
18135lt_save_with_gnu_ld=$with_gnu_ld
18136lt_save_path_LD=$lt_cv_path_LD
18137if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18138 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18139else
Reid Spencera773bd52006-08-04 18:18:08 +000018140 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018141fi
18142if test -n "${lt_cv_path_LDCXX+set}"; then
18143 lt_cv_path_LD=$lt_cv_path_LDCXX
18144else
Reid Spencera773bd52006-08-04 18:18:08 +000018145 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018146fi
18147test -z "${LDCXX+set}" || LD=$LDCXX
18148CC=${CXX-"c++"}
18149compiler=$CC
18150compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018151for cc_temp in $compiler""; do
18152 case $cc_temp in
18153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18155 \-*) ;;
18156 *) break;;
18157 esac
18158done
18159cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18160
John Criswell47fdd832003-07-14 16:52:07 +000018161
18162# We don't want -fno-exception wen compiling C++ code, so set the
18163# no_builtin_flag separately
18164if test "$GXX" = yes; then
18165 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18166else
18167 lt_prog_compiler_no_builtin_flag_CXX=
18168fi
18169
18170if test "$GXX" = yes; then
18171 # Set up default GNU C++ configuration
18172
18173
Reid Spencera773bd52006-08-04 18:18:08 +000018174# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018175if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018176 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018177else
18178 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018179fi
18180
John Criswell47fdd832003-07-14 16:52:07 +000018181ac_prog=ld
18182if test "$GCC" = yes; then
18183 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018184 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18185echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018186 case $host in
18187 *-*-mingw*)
18188 # gcc leaves a trailing carriage return which upsets mingw
18189 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18190 *)
18191 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18192 esac
18193 case $ac_prog in
18194 # Accept absolute paths.
18195 [\\/]* | ?:[\\/]*)
18196 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018197 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018198 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18199 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18200 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18201 done
18202 test -z "$LD" && LD="$ac_prog"
18203 ;;
18204 "")
18205 # If it fails, then pretend we aren't using GCC.
18206 ac_prog=ld
18207 ;;
18208 *)
18209 # If it is relative, then search for the first ld in PATH.
18210 with_gnu_ld=unknown
18211 ;;
18212 esac
18213elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018214 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18215echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018216else
Reid Spencera773bd52006-08-04 18:18:08 +000018217 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18218echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018219fi
18220if test "${lt_cv_path_LD+set}" = set; then
18221 echo $ECHO_N "(cached) $ECHO_C" >&6
18222else
18223 if test -z "$LD"; then
18224 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18225 for ac_dir in $PATH; do
18226 IFS="$lt_save_ifs"
18227 test -z "$ac_dir" && ac_dir=.
18228 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18229 lt_cv_path_LD="$ac_dir/$ac_prog"
18230 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018231 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018232 # Break only if it was the GNU/non-GNU ld that we prefer.
18233 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18234 *GNU* | *'with BFD'*)
18235 test "$with_gnu_ld" != no && break
18236 ;;
18237 *)
18238 test "$with_gnu_ld" != yes && break
18239 ;;
18240 esac
18241 fi
18242 done
18243 IFS="$lt_save_ifs"
18244else
18245 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18246fi
18247fi
18248
18249LD="$lt_cv_path_LD"
18250if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018251 { echo "$as_me:$LINENO: result: $LD" >&5
18252echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018253else
Reid Spencera773bd52006-08-04 18:18:08 +000018254 { echo "$as_me:$LINENO: result: no" >&5
18255echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018256fi
18257test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18258echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18259 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018260{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18261echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018262if test "${lt_cv_prog_gnu_ld+set}" = set; then
18263 echo $ECHO_N "(cached) $ECHO_C" >&6
18264else
Reid Spencera773bd52006-08-04 18:18:08 +000018265 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018266case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018267*GNU* | *'with BFD'*)
18268 lt_cv_prog_gnu_ld=yes
18269 ;;
18270*)
18271 lt_cv_prog_gnu_ld=no
18272 ;;
18273esac
18274fi
Reid Spencera773bd52006-08-04 18:18:08 +000018275{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18276echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018277with_gnu_ld=$lt_cv_prog_gnu_ld
18278
18279
18280
18281 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18282 # archiving commands below assume that GNU ld is being used.
18283 if test "$with_gnu_ld" = yes; then
18284 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18285 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'
18286
18287 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18288 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18289
18290 # If archive_cmds runs LD, not CC, wlarc should be empty
18291 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18292 # investigate it a little bit more. (MM)
18293 wlarc='${wl}'
18294
18295 # ancient GNU ld didn't support --whole-archive et. al.
18296 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18297 grep 'no-whole-archive' > /dev/null; then
18298 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18299 else
18300 whole_archive_flag_spec_CXX=
18301 fi
18302 else
18303 with_gnu_ld=no
18304 wlarc=
18305
18306 # A generic and very simple default shared library creation
18307 # command for GNU C++ for the case where it uses the native
18308 # linker, instead of GNU ld. If possible, this setting should
18309 # overridden to take advantage of the native linker features on
18310 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018311 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018312 fi
18313
18314 # Commands to make compiler produce verbose output that lists
18315 # what "hidden" libraries, object files and flags are used when
18316 # linking a shared library.
18317 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18318
18319else
18320 GXX=no
18321 with_gnu_ld=no
18322 wlarc=
18323fi
18324
18325# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018326{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18327echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018328ld_shlibs_CXX=yes
18329case $host_os in
18330 aix3*)
18331 # FIXME: insert proper C++ library support
18332 ld_shlibs_CXX=no
18333 ;;
18334 aix4* | aix5*)
18335 if test "$host_cpu" = ia64; then
18336 # On IA64, the linker does run time linking by default, so we don't
18337 # have to do anything special.
18338 aix_use_runtimelinking=no
18339 exp_sym_flag='-Bexport'
18340 no_entry_flag=""
18341 else
18342 aix_use_runtimelinking=no
18343
18344 # Test if we are trying to use run time linking or normal
18345 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18346 # need to do runtime linking.
18347 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18348 for ld_flag in $LDFLAGS; do
18349 case $ld_flag in
18350 *-brtl*)
18351 aix_use_runtimelinking=yes
18352 break
18353 ;;
18354 esac
18355 done
Reid Spencera773bd52006-08-04 18:18:08 +000018356 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018357 esac
18358
18359 exp_sym_flag='-bexport'
18360 no_entry_flag='-bnoentry'
18361 fi
18362
18363 # When large executables or shared objects are built, AIX ld can
18364 # have problems creating the table of contents. If linking a library
18365 # or program results in "error TOC overflow" add -mminimal-toc to
18366 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18367 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18368
18369 archive_cmds_CXX=''
18370 hardcode_direct_CXX=yes
18371 hardcode_libdir_separator_CXX=':'
18372 link_all_deplibs_CXX=yes
18373
18374 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018375 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018376 # We only want to do this on AIX 4.2 and lower, the check
18377 # below for broken collect2 doesn't work under 4.3+
18378 collect2name=`${CC} -print-prog-name=collect2`
18379 if test -f "$collect2name" && \
18380 strings "$collect2name" | grep resolve_lib_name >/dev/null
18381 then
18382 # We have reworked collect2
18383 hardcode_direct_CXX=yes
18384 else
18385 # We have old collect2
18386 hardcode_direct_CXX=unsupported
18387 # It fails to find uninstalled libraries when the uninstalled
18388 # path is not listed in the libpath. Setting hardcode_minus_L
18389 # to unsupported forces relinking
18390 hardcode_minus_L_CXX=yes
18391 hardcode_libdir_flag_spec_CXX='-L$libdir'
18392 hardcode_libdir_separator_CXX=
18393 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018394 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018395 esac
18396 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018397 if test "$aix_use_runtimelinking" = yes; then
18398 shared_flag="$shared_flag "'${wl}-G'
18399 fi
John Criswell47fdd832003-07-14 16:52:07 +000018400 else
18401 # not using gcc
18402 if test "$host_cpu" = ia64; then
18403 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18404 # chokes on -Wl,-G. The following line is correct:
18405 shared_flag='-G'
18406 else
18407 if test "$aix_use_runtimelinking" = yes; then
18408 shared_flag='${wl}-G'
18409 else
18410 shared_flag='${wl}-bM:SRE'
18411 fi
18412 fi
18413 fi
18414
18415 # It seems that -bexpall does not export symbols beginning with
18416 # underscore (_), so it is better to generate a list of symbols to export.
18417 always_export_symbols_CXX=yes
18418 if test "$aix_use_runtimelinking" = yes; then
18419 # Warning - without using the other runtime loading flags (-brtl),
18420 # -berok will link without error, but may produce a broken library.
18421 allow_undefined_flag_CXX='-berok'
18422 # Determine the default libpath from the value encoded in an empty executable.
18423 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018424/* confdefs.h. */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018429
John Criswell47fdd832003-07-14 16:52:07 +000018430int
18431main ()
18432{
18433
18434 ;
18435 return 0;
18436}
18437_ACEOF
18438rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018439if { (ac_try="$ac_link"
18440case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18443esac
18444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018446 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018447 grep -v '^ *+' conftest.er1 >conftest.err
18448 rm -f conftest.er1
18449 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018451 (exit $ac_status); } &&
18452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18453 { (case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18456esac
18457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_try") 2>&5
18459 ac_status=$?
18460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461 (exit $ac_status); }; } &&
18462 { ac_try='test -s conftest$ac_exeext'
18463 { (case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18466esac
18467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_try") 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018472
18473aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18474}'`
18475# Check for a 64-bit object if we didn't find anything.
18476if 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; }
18477}'`; fi
18478else
18479 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018480sed 's/^/| /' conftest.$ac_ext >&5
18481
Reid Spencera773bd52006-08-04 18:18:08 +000018482
John Criswell47fdd832003-07-14 16:52:07 +000018483fi
Reid Spencera773bd52006-08-04 18:18:08 +000018484
Bill Wendlingebcceee2009-04-18 11:20:33 +000018485rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018486 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018487if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18488
18489 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18490
Reid Spencera773bd52006-08-04 18:18:08 +000018491 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 +000018492 else
18493 if test "$host_cpu" = ia64; then
18494 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18495 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018496 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 +000018497 else
18498 # Determine the default libpath from the value encoded in an empty executable.
18499 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018500/* confdefs.h. */
18501_ACEOF
18502cat confdefs.h >>conftest.$ac_ext
18503cat >>conftest.$ac_ext <<_ACEOF
18504/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018505
John Criswell47fdd832003-07-14 16:52:07 +000018506int
18507main ()
18508{
18509
18510 ;
18511 return 0;
18512}
18513_ACEOF
18514rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018515if { (ac_try="$ac_link"
18516case "(($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_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018522 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018523 grep -v '^ *+' conftest.er1 >conftest.err
18524 rm -f conftest.er1
18525 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018527 (exit $ac_status); } &&
18528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18529 { (case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18532esac
18533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_try") 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; } &&
18538 { ac_try='test -s conftest$ac_exeext'
18539 { (case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18542esac
18543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_try") 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018548
18549aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18550}'`
18551# Check for a 64-bit object if we didn't find anything.
18552if 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; }
18553}'`; fi
18554else
18555 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018556sed 's/^/| /' conftest.$ac_ext >&5
18557
Reid Spencera773bd52006-08-04 18:18:08 +000018558
John Criswell47fdd832003-07-14 16:52:07 +000018559fi
Reid Spencera773bd52006-08-04 18:18:08 +000018560
Bill Wendlingebcceee2009-04-18 11:20:33 +000018561rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018562 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018563if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18564
18565 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18566 # Warning - without using the other run time loading flags,
18567 # -berok will link without error, but may produce a broken library.
18568 no_undefined_flag_CXX=' ${wl}-bernotok'
18569 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018570 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018571 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018572 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018573 # This is similar to how AIX traditionally builds its shared libraries.
18574 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 +000018575 fi
18576 fi
18577 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018578
18579 beos*)
18580 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18581 allow_undefined_flag_CXX=unsupported
18582 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18583 # support --undefined. This deserves some investigation. FIXME
18584 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18585 else
18586 ld_shlibs_CXX=no
18587 fi
18588 ;;
18589
John Criswell47fdd832003-07-14 16:52:07 +000018590 chorus*)
18591 case $cc_basename in
18592 *)
18593 # FIXME: insert proper C++ library support
18594 ld_shlibs_CXX=no
18595 ;;
18596 esac
18597 ;;
18598
18599 cygwin* | mingw* | pw32*)
18600 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18601 # as there is no search path for DLLs.
18602 hardcode_libdir_flag_spec_CXX='-L$libdir'
18603 allow_undefined_flag_CXX=unsupported
18604 always_export_symbols_CXX=no
18605 enable_shared_with_static_runtimes_CXX=yes
18606
18607 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018608 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 +000018609 # If the export-symbols file already is a .def file (1st line
18610 # is EXPORTS), use it as is; otherwise, prepend...
18611 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18612 cp $export_symbols $output_objdir/$soname.def;
18613 else
18614 echo EXPORTS > $output_objdir/$soname.def;
18615 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018616 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018617 $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 +000018618 else
18619 ld_shlibs_CXX=no
18620 fi
18621 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018622 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018623 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018624 rhapsody* | darwin1.[012])
18625 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18626 ;;
18627 *) # Darwin 1.3 on
18628 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18629 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18630 else
18631 case ${MACOSX_DEPLOYMENT_TARGET} in
18632 10.[012])
18633 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18634 ;;
18635 10.*)
18636 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18637 ;;
18638 esac
18639 fi
18640 ;;
18641 esac
18642 archive_cmds_need_lc_CXX=no
18643 hardcode_direct_CXX=no
18644 hardcode_automatic_CXX=yes
18645 hardcode_shlibpath_var_CXX=unsupported
18646 whole_archive_flag_spec_CXX=''
18647 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018648
Reid Spencer2706f8c2004-09-19 23:53:36 +000018649 if test "$GXX" = yes ; then
18650 lt_int_apple_cc_single_mod=no
18651 output_verbose_link_cmd='echo'
18652 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18653 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018654 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018655 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018656 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 +000018657 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018658 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 +000018659 fi
18660 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018661 # 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 +000018662 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018663 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 +000018664 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018665 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 +000018666 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018667 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 +000018668 else
Reid Spencera773bd52006-08-04 18:18:08 +000018669 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018670 xlc*)
18671 output_verbose_link_cmd='echo'
18672 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'
18673 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018674 # 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 +000018675 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}'
18676 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 +000018677 ;;
18678 *)
18679 ld_shlibs_CXX=no
18680 ;;
18681 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018682 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018683 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018684
18685 dgux*)
18686 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018687 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018688 # FIXME: insert proper C++ library support
18689 ld_shlibs_CXX=no
18690 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018691 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018692 # Green Hills C++ Compiler
18693 # FIXME: insert proper C++ library support
18694 ld_shlibs_CXX=no
18695 ;;
18696 *)
18697 # FIXME: insert proper C++ library support
18698 ld_shlibs_CXX=no
18699 ;;
18700 esac
18701 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018702 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018703 # C++ shared libraries reported to be fairly broken before switch to ELF
18704 ld_shlibs_CXX=no
18705 ;;
18706 freebsd-elf*)
18707 archive_cmds_need_lc_CXX=no
18708 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018709 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018710 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18711 # conventions
18712 ld_shlibs_CXX=yes
18713 ;;
18714 gnu*)
18715 ;;
18716 hpux9*)
18717 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18718 hardcode_libdir_separator_CXX=:
18719 export_dynamic_flag_spec_CXX='${wl}-E'
18720 hardcode_direct_CXX=yes
18721 hardcode_minus_L_CXX=yes # Not in the search PATH,
18722 # but as the default
18723 # location of the library.
18724
18725 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018726 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018727 # FIXME: insert proper C++ library support
18728 ld_shlibs_CXX=no
18729 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018730 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018731 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 +000018732 # Commands to make compiler produce verbose output that lists
18733 # what "hidden" libraries, object files and flags are used when
18734 # linking a shared library.
18735 #
18736 # There doesn't appear to be a way to prevent this compiler from
18737 # explicitly linking system object files so we need to strip them
18738 # from the output so that they don't get included in the library
18739 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018740 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 +000018741 ;;
18742 *)
18743 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018744 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 +000018745 else
18746 # FIXME: insert proper C++ library support
18747 ld_shlibs_CXX=no
18748 fi
18749 ;;
18750 esac
18751 ;;
18752 hpux10*|hpux11*)
18753 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018754 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18755 hardcode_libdir_separator_CXX=:
18756
18757 case $host_cpu in
18758 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018759 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018760 ;;
18761 *)
John Criswell47fdd832003-07-14 16:52:07 +000018762 export_dynamic_flag_spec_CXX='${wl}-E'
18763 ;;
18764 esac
18765 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018766 case $host_cpu in
18767 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018768 hardcode_direct_CXX=no
18769 hardcode_shlibpath_var_CXX=no
18770 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018771 *)
18772 hardcode_direct_CXX=yes
18773 hardcode_minus_L_CXX=yes # Not in the search PATH,
18774 # but as the default
18775 # location of the library.
18776 ;;
18777 esac
18778
18779 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018780 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018781 # FIXME: insert proper C++ library support
18782 ld_shlibs_CXX=no
18783 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018784 aCC*)
18785 case $host_cpu in
18786 hppa*64*)
18787 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18788 ;;
18789 ia64*)
18790 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 +000018791 ;;
18792 *)
18793 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18794 ;;
18795 esac
18796 # Commands to make compiler produce verbose output that lists
18797 # what "hidden" libraries, object files and flags are used when
18798 # linking a shared library.
18799 #
18800 # There doesn't appear to be a way to prevent this compiler from
18801 # explicitly linking system object files so we need to strip them
18802 # from the output so that they don't get included in the library
18803 # dependencies.
18804 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'
18805 ;;
18806 *)
18807 if test "$GXX" = yes; then
18808 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018809 case $host_cpu in
18810 hppa*64*)
18811 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18812 ;;
18813 ia64*)
18814 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 +000018815 ;;
18816 *)
18817 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'
18818 ;;
18819 esac
18820 fi
18821 else
18822 # FIXME: insert proper C++ library support
18823 ld_shlibs_CXX=no
18824 fi
18825 ;;
18826 esac
18827 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018828 interix3*)
18829 hardcode_direct_CXX=no
18830 hardcode_shlibpath_var_CXX=no
18831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18832 export_dynamic_flag_spec_CXX='${wl}-E'
18833 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18834 # Instead, shared libraries are loaded at an image base (0x10000000 by
18835 # default) and relocated if they conflict, which is a slow very memory
18836 # consuming and fragmenting process. To avoid this, we pick a random,
18837 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18838 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18839 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'
18840 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'
18841 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018842 irix5* | irix6*)
18843 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018844 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018845 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018846 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 +000018847
18848 # Archives containing C++ object files must be created using
18849 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18850 # necessary to make sure instantiated templates are included
18851 # in the archive.
18852 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18853 ;;
18854 *)
18855 if test "$GXX" = yes; then
18856 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018857 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 +000018858 else
18859 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'
18860 fi
18861 fi
18862 link_all_deplibs_CXX=yes
18863 ;;
18864 esac
18865 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18866 hardcode_libdir_separator_CXX=:
18867 ;;
18868 linux*)
18869 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018870 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018871 # Kuck and Associates, Inc. (KAI) C++ Compiler
18872
18873 # KCC will only create a shared library if the output file
18874 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18875 # to its proper name (with version) after linking.
18876 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'
18877 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'
18878 # Commands to make compiler produce verbose output that lists
18879 # what "hidden" libraries, object files and flags are used when
18880 # linking a shared library.
18881 #
18882 # There doesn't appear to be a way to prevent this compiler from
18883 # explicitly linking system object files so we need to strip them
18884 # from the output so that they don't get included in the library
18885 # dependencies.
18886 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'
18887
18888 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18890
18891 # Archives containing C++ object files must be created using
18892 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18893 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18894 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018895 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018896 # Intel C++
18897 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018898 # version 8.0 and above of icpc choke on multiply defined symbols
18899 # if we add $predep_objects and $postdep_objects, however 7.1 and
18900 # earlier do not add the objects themselves.
18901 case `$CC -V 2>&1` in
18902 *"Version 7."*)
18903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18904 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'
18905 ;;
18906 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018907 tmp_idyn=
18908 case $host_cpu in
18909 ia64*) tmp_idyn=' -i_dynamic';;
18910 esac
18911 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18912 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 +000018913 ;;
18914 esac
John Criswell47fdd832003-07-14 16:52:07 +000018915 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018916 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18917 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18918 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18919 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018920 pgCC*)
18921 # Portland Group C++ compiler
18922 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18923 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'
18924
18925 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18926 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18927 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'
18928 ;;
18929 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018930 # Compaq C++
18931 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18932 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'
18933
18934 runpath_var=LD_RUN_PATH
18935 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18936 hardcode_libdir_separator_CXX=:
18937
18938 # Commands to make compiler produce verbose output that lists
18939 # what "hidden" libraries, object files and flags are used when
18940 # linking a shared library.
18941 #
18942 # There doesn't appear to be a way to prevent this compiler from
18943 # explicitly linking system object files so we need to strip them
18944 # from the output so that they don't get included in the library
18945 # dependencies.
18946 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'
18947 ;;
18948 esac
18949 ;;
18950 lynxos*)
18951 # FIXME: insert proper C++ library support
18952 ld_shlibs_CXX=no
18953 ;;
18954 m88k*)
18955 # FIXME: insert proper C++ library support
18956 ld_shlibs_CXX=no
18957 ;;
18958 mvs*)
18959 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018960 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018961 # FIXME: insert proper C++ library support
18962 ld_shlibs_CXX=no
18963 ;;
18964 *)
18965 # FIXME: insert proper C++ library support
18966 ld_shlibs_CXX=no
18967 ;;
18968 esac
18969 ;;
18970 netbsd*)
18971 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18972 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18973 wlarc=
18974 hardcode_libdir_flag_spec_CXX='-R$libdir'
18975 hardcode_direct_CXX=yes
18976 hardcode_shlibpath_var_CXX=no
18977 fi
18978 # Workaround some broken pre-1.5 toolchains
18979 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18980 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018981 openbsd2*)
18982 # C++ shared libraries are fairly broken
18983 ld_shlibs_CXX=no
18984 ;;
18985 openbsd*)
18986 hardcode_direct_CXX=yes
18987 hardcode_shlibpath_var_CXX=no
18988 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18989 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18991 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18992 export_dynamic_flag_spec_CXX='${wl}-E'
18993 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18994 fi
18995 output_verbose_link_cmd='echo'
18996 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018997 osf3*)
18998 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018999 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019000 # Kuck and Associates, Inc. (KAI) C++ Compiler
19001
19002 # KCC will only create a shared library if the output file
19003 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19004 # to its proper name (with version) after linking.
19005 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'
19006
19007 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19008 hardcode_libdir_separator_CXX=:
19009
19010 # Archives containing C++ object files must be created using
19011 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19012 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19013
19014 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019015 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019016 # Rational C++ 2.4.1
19017 # FIXME: insert proper C++ library support
19018 ld_shlibs_CXX=no
19019 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019020 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019021 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019022 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 +000019023
19024 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19025 hardcode_libdir_separator_CXX=:
19026
19027 # Commands to make compiler produce verbose output that lists
19028 # what "hidden" libraries, object files and flags are used when
19029 # linking a shared library.
19030 #
19031 # There doesn't appear to be a way to prevent this compiler from
19032 # explicitly linking system object files so we need to strip them
19033 # from the output so that they don't get included in the library
19034 # dependencies.
19035 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'
19036 ;;
19037 *)
19038 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19039 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019040 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 +000019041
19042 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19043 hardcode_libdir_separator_CXX=:
19044
19045 # Commands to make compiler produce verbose output that lists
19046 # what "hidden" libraries, object files and flags are used when
19047 # linking a shared library.
19048 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19049
19050 else
19051 # FIXME: insert proper C++ library support
19052 ld_shlibs_CXX=no
19053 fi
19054 ;;
19055 esac
19056 ;;
19057 osf4* | osf5*)
19058 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019059 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019060 # Kuck and Associates, Inc. (KAI) C++ Compiler
19061
19062 # KCC will only create a shared library if the output file
19063 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19064 # to its proper name (with version) after linking.
19065 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'
19066
19067 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19068 hardcode_libdir_separator_CXX=:
19069
19070 # Archives containing C++ object files must be created using
19071 # the KAI C++ compiler.
19072 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19073 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019074 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019075 # Rational C++ 2.4.1
19076 # FIXME: insert proper C++ library support
19077 ld_shlibs_CXX=no
19078 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019079 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019080 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019081 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 +000019082 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19083 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019084 $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 +000019085 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019086
19087 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19088 hardcode_libdir_separator_CXX=:
19089
19090 # Commands to make compiler produce verbose output that lists
19091 # what "hidden" libraries, object files and flags are used when
19092 # linking a shared library.
19093 #
19094 # There doesn't appear to be a way to prevent this compiler from
19095 # explicitly linking system object files so we need to strip them
19096 # from the output so that they don't get included in the library
19097 # dependencies.
19098 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'
19099 ;;
19100 *)
19101 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19102 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019103 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 +000019104
19105 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19106 hardcode_libdir_separator_CXX=:
19107
19108 # Commands to make compiler produce verbose output that lists
19109 # what "hidden" libraries, object files and flags are used when
19110 # linking a shared library.
19111 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19112
19113 else
19114 # FIXME: insert proper C++ library support
19115 ld_shlibs_CXX=no
19116 fi
19117 ;;
19118 esac
19119 ;;
19120 psos*)
19121 # FIXME: insert proper C++ library support
19122 ld_shlibs_CXX=no
19123 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019124 sunos4*)
19125 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019126 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019127 # Sun C++ 4.x
19128 # FIXME: insert proper C++ library support
19129 ld_shlibs_CXX=no
19130 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019131 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019132 # Lucid
19133 # FIXME: insert proper C++ library support
19134 ld_shlibs_CXX=no
19135 ;;
19136 *)
19137 # FIXME: insert proper C++ library support
19138 ld_shlibs_CXX=no
19139 ;;
19140 esac
19141 ;;
19142 solaris*)
19143 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019144 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019145 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019146 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019147 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019148 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 +000019149 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 +000019150 $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 +000019151
19152 hardcode_libdir_flag_spec_CXX='-R$libdir'
19153 hardcode_shlibpath_var_CXX=no
19154 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019155 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019156 *)
19157 # The C++ compiler is used as linker so we must use $wl
19158 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019159 # linker. We must also pass each convience library through
19160 # to the system linker between allextract/defaultextract.
19161 # The C++ compiler will combine linker options so we
19162 # cannot just pass the convience library names through
19163 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019164 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019165 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 +000019166 ;;
19167 esac
19168 link_all_deplibs_CXX=yes
19169
Reid Spencera773bd52006-08-04 18:18:08 +000019170 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019171
19172 # Archives containing C++ object files must be created using
19173 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19174 # necessary to make sure instantiated templates are included
19175 # in the archive.
19176 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19177 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019178 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019179 # Green Hills C++ Compiler
19180 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19181
19182 # The C++ compiler must be used to create the archive.
19183 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19184 ;;
19185 *)
19186 # GNU C++ compiler with Solaris linker
19187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19188 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19189 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019190 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 +000019191 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19192 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19193
John Criswell47fdd832003-07-14 16:52:07 +000019194 # Commands to make compiler produce verbose output that lists
19195 # what "hidden" libraries, object files and flags are used when
19196 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019197 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019198 else
19199 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19200 # platform.
19201 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 +000019202 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19203 $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 +000019204
19205 # Commands to make compiler produce verbose output that lists
19206 # what "hidden" libraries, object files and flags are used when
19207 # linking a shared library.
19208 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19209 fi
19210
19211 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19212 fi
19213 ;;
19214 esac
19215 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019216 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19217 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019218 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019219 hardcode_shlibpath_var_CXX=no
19220 runpath_var='LD_RUN_PATH'
19221
19222 case $cc_basename in
19223 CC*)
19224 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19225 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19226 ;;
19227 *)
19228 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19229 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19230 ;;
19231 esac
19232 ;;
19233 sysv5* | sco3.2v5* | sco5v6*)
19234 # Note: We can NOT use -z defs as we might desire, because we do not
19235 # link with -lc, and that would cause any symbols used from libc to
19236 # always be unresolved, which means just about no library would
19237 # ever link correctly. If we're not using GNU ld we use -z text
19238 # though, which does catch some bad symbols but isn't as heavy-handed
19239 # as -z defs.
19240 # For security reasons, it is highly recommended that you always
19241 # use absolute paths for naming shared libraries, and exclude the
19242 # DT_RUNPATH tag from executables and libraries. But doing so
19243 # requires that you compile everything twice, which is a pain.
19244 # So that behaviour is only enabled if SCOABSPATH is set to a
19245 # non-empty value in the environment. Most likely only useful for
19246 # creating official distributions of packages.
19247 # This is a hack until libtool officially supports absolute path
19248 # names for shared libraries.
19249 no_undefined_flag_CXX='${wl}-z,text'
19250 allow_undefined_flag_CXX='${wl}-z,nodefs'
19251 archive_cmds_need_lc_CXX=no
19252 hardcode_shlibpath_var_CXX=no
19253 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19254 hardcode_libdir_separator_CXX=':'
19255 link_all_deplibs_CXX=yes
19256 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19257 runpath_var='LD_RUN_PATH'
19258
19259 case $cc_basename in
19260 CC*)
19261 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19262 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19263 ;;
19264 *)
19265 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19266 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19267 ;;
19268 esac
John Criswell47fdd832003-07-14 16:52:07 +000019269 ;;
19270 tandem*)
19271 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019272 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019273 # NonStop-UX NCC 3.20
19274 # FIXME: insert proper C++ library support
19275 ld_shlibs_CXX=no
19276 ;;
19277 *)
19278 # FIXME: insert proper C++ library support
19279 ld_shlibs_CXX=no
19280 ;;
19281 esac
19282 ;;
19283 vxworks*)
19284 # FIXME: insert proper C++ library support
19285 ld_shlibs_CXX=no
19286 ;;
19287 *)
19288 # FIXME: insert proper C++ library support
19289 ld_shlibs_CXX=no
19290 ;;
19291esac
Reid Spencera773bd52006-08-04 18:18:08 +000019292{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19293echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019294test "$ld_shlibs_CXX" = no && can_build_shared=no
19295
19296GCC_CXX="$GXX"
19297LD_CXX="$LD"
19298
John Criswell47fdd832003-07-14 16:52:07 +000019299
19300cat > conftest.$ac_ext <<EOF
19301class Foo
19302{
19303public:
19304 Foo (void) { a = 0; }
19305private:
19306 int a;
19307};
19308EOF
19309
19310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19311 (eval $ac_compile) 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; then
19315 # Parse the compiler output and extract the necessary
19316 # objects, libraries and library flags.
19317
19318 # Sentinel used to keep track of whether or not we are before
19319 # the conftest object file.
19320 pre_test_object_deps_done=no
19321
19322 # The `*' in the case matches for architectures that use `case' in
19323 # $output_verbose_cmd can trigger glob expansion during the loop
19324 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019325 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019326
19327 for p in `eval $output_verbose_link_cmd`; do
19328 case $p in
19329
19330 -L* | -R* | -l*)
19331 # Some compilers place space between "-{L,R}" and the path.
19332 # Remove the space.
19333 if test $p = "-L" \
19334 || test $p = "-R"; then
19335 prev=$p
19336 continue
19337 else
19338 prev=
19339 fi
19340
19341 if test "$pre_test_object_deps_done" = no; then
19342 case $p in
19343 -L* | -R*)
19344 # Internal compiler library paths should come after those
19345 # provided the user. The postdeps already come after the
19346 # user supplied libs so there is no need to process them.
19347 if test -z "$compiler_lib_search_path_CXX"; then
19348 compiler_lib_search_path_CXX="${prev}${p}"
19349 else
19350 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19351 fi
19352 ;;
19353 # The "-l" case would never come before the object being
19354 # linked, so don't bother handling this case.
19355 esac
19356 else
19357 if test -z "$postdeps_CXX"; then
19358 postdeps_CXX="${prev}${p}"
19359 else
19360 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19361 fi
19362 fi
19363 ;;
19364
19365 *.$objext)
19366 # This assumes that the test object file only shows up
19367 # once in the compiler output.
19368 if test "$p" = "conftest.$objext"; then
19369 pre_test_object_deps_done=yes
19370 continue
19371 fi
19372
19373 if test "$pre_test_object_deps_done" = no; then
19374 if test -z "$predep_objects_CXX"; then
19375 predep_objects_CXX="$p"
19376 else
19377 predep_objects_CXX="$predep_objects_CXX $p"
19378 fi
19379 else
19380 if test -z "$postdep_objects_CXX"; then
19381 postdep_objects_CXX="$p"
19382 else
19383 postdep_objects_CXX="$postdep_objects_CXX $p"
19384 fi
19385 fi
19386 ;;
19387
19388 *) ;; # Ignore the rest.
19389
19390 esac
19391 done
19392
19393 # Clean up.
19394 rm -f a.out a.exe
19395else
19396 echo "libtool.m4: error: problem compiling CXX test program"
19397fi
19398
19399$rm -f confest.$objext
19400
Reid Spencera773bd52006-08-04 18:18:08 +000019401# PORTME: override above test on systems where it is broken
19402case $host_os in
19403interix3*)
19404 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19405 # hack all around it, let's just trust "g++" to DTRT.
19406 predep_objects_CXX=
19407 postdep_objects_CXX=
19408 postdeps_CXX=
19409 ;;
19410
19411solaris*)
19412 case $cc_basename in
19413 CC*)
19414 # Adding this requires a known-good setup of shared libraries for
19415 # Sun compiler versions before 5.6, else PIC objects from an old
19416 # archive will be linked into the output, leading to subtle bugs.
19417 postdeps_CXX='-lCstd -lCrun'
19418 ;;
19419 esac
19420 ;;
19421esac
19422
19423
John Criswell47fdd832003-07-14 16:52:07 +000019424case " $postdeps_CXX " in
19425*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19426esac
19427
19428lt_prog_compiler_wl_CXX=
19429lt_prog_compiler_pic_CXX=
19430lt_prog_compiler_static_CXX=
19431
Reid Spencera773bd52006-08-04 18:18:08 +000019432{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19433echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019434
19435 # C++ specific cases for pic, static, wl, etc.
19436 if test "$GXX" = yes; then
19437 lt_prog_compiler_wl_CXX='-Wl,'
19438 lt_prog_compiler_static_CXX='-static'
19439
19440 case $host_os in
19441 aix*)
19442 # All AIX code is PIC.
19443 if test "$host_cpu" = ia64; then
19444 # AIX 5 now supports IA64 processor
19445 lt_prog_compiler_static_CXX='-Bstatic'
19446 fi
19447 ;;
19448 amigaos*)
19449 # FIXME: we need at least 68020 code to build shared libraries, but
19450 # adding the `-m68020' flag to GCC prevents building anything better,
19451 # like `-m68040'.
19452 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19453 ;;
19454 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19455 # PIC is the default for these OSes.
19456 ;;
19457 mingw* | os2* | pw32*)
19458 # This hack is so that the source file can tell whether it is being
19459 # built for inclusion in a dll (and should export symbols for example).
19460 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19461 ;;
19462 darwin* | rhapsody*)
19463 # PIC is the default on this platform
19464 # Common symbols not allowed in MH_DYLIB files
19465 lt_prog_compiler_pic_CXX='-fno-common'
19466 ;;
19467 *djgpp*)
19468 # DJGPP does not support shared libraries at all
19469 lt_prog_compiler_pic_CXX=
19470 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019471 interix3*)
19472 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19473 # Instead, we relocate shared libraries at runtime.
19474 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019475 sysv4*MP*)
19476 if test -d /usr/nec; then
19477 lt_prog_compiler_pic_CXX=-Kconform_pic
19478 fi
19479 ;;
19480 hpux*)
19481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19482 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019483 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019484 hppa*64*|ia64*)
19485 ;;
19486 *)
19487 lt_prog_compiler_pic_CXX='-fPIC'
19488 ;;
19489 esac
19490 ;;
19491 *)
19492 lt_prog_compiler_pic_CXX='-fPIC'
19493 ;;
19494 esac
19495 else
19496 case $host_os in
19497 aix4* | aix5*)
19498 # All AIX code is PIC.
19499 if test "$host_cpu" = ia64; then
19500 # AIX 5 now supports IA64 processor
19501 lt_prog_compiler_static_CXX='-Bstatic'
19502 else
19503 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19504 fi
19505 ;;
19506 chorus*)
19507 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019508 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019509 # Green Hills C++ Compiler
19510 # _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"
19511 ;;
19512 esac
19513 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019514 darwin*)
19515 # PIC is the default on this platform
19516 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019517 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019518 xlc*)
19519 lt_prog_compiler_pic_CXX='-qnocommon'
19520 lt_prog_compiler_wl_CXX='-Wl,'
19521 ;;
19522 esac
19523 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019524 dgux*)
19525 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019526 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019527 lt_prog_compiler_pic_CXX='-KPIC'
19528 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019529 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019530 # Green Hills C++ Compiler
19531 lt_prog_compiler_pic_CXX='-pic'
19532 ;;
19533 *)
19534 ;;
19535 esac
19536 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019537 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019538 # FreeBSD uses GNU C++
19539 ;;
19540 hpux9* | hpux10* | hpux11*)
19541 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019542 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019543 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019544 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019545 if test "$host_cpu" != ia64; then
19546 lt_prog_compiler_pic_CXX='+Z'
19547 fi
19548 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019549 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019550 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019551 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19552 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019553 hppa*64*|ia64*)
19554 # +Z the default
19555 ;;
19556 *)
19557 lt_prog_compiler_pic_CXX='+Z'
19558 ;;
19559 esac
19560 ;;
19561 *)
19562 ;;
19563 esac
19564 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019565 interix*)
19566 # This is c89, which is MS Visual C++ (no shared libs)
19567 # Anyone wants to do a port?
19568 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019569 irix5* | irix6* | nonstopux*)
19570 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019571 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019572 lt_prog_compiler_wl_CXX='-Wl,'
19573 lt_prog_compiler_static_CXX='-non_shared'
19574 # CC pic flag -KPIC is the default.
19575 ;;
19576 *)
19577 ;;
19578 esac
19579 ;;
19580 linux*)
19581 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019582 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019583 # KAI C++ Compiler
19584 lt_prog_compiler_wl_CXX='--backend -Wl,'
19585 lt_prog_compiler_pic_CXX='-fPIC'
19586 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019587 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019588 # Intel C++
19589 lt_prog_compiler_wl_CXX='-Wl,'
19590 lt_prog_compiler_pic_CXX='-KPIC'
19591 lt_prog_compiler_static_CXX='-static'
19592 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019593 pgCC*)
19594 # Portland Group C++ compiler.
19595 lt_prog_compiler_wl_CXX='-Wl,'
19596 lt_prog_compiler_pic_CXX='-fpic'
19597 lt_prog_compiler_static_CXX='-Bstatic'
19598 ;;
19599 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019600 # Compaq C++
19601 # Make sure the PIC flag is empty. It appears that all Alpha
19602 # Linux and Compaq Tru64 Unix objects are PIC.
19603 lt_prog_compiler_pic_CXX=
19604 lt_prog_compiler_static_CXX='-non_shared'
19605 ;;
19606 *)
19607 ;;
19608 esac
19609 ;;
19610 lynxos*)
19611 ;;
19612 m88k*)
19613 ;;
19614 mvs*)
19615 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019616 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019617 lt_prog_compiler_pic_CXX='-W c,exportall'
19618 ;;
19619 *)
19620 ;;
19621 esac
19622 ;;
19623 netbsd*)
19624 ;;
19625 osf3* | osf4* | osf5*)
19626 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019627 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019628 lt_prog_compiler_wl_CXX='--backend -Wl,'
19629 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019630 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019631 # Rational C++ 2.4.1
19632 lt_prog_compiler_pic_CXX='-pic'
19633 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019634 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019635 # Digital/Compaq C++
19636 lt_prog_compiler_wl_CXX='-Wl,'
19637 # Make sure the PIC flag is empty. It appears that all Alpha
19638 # Linux and Compaq Tru64 Unix objects are PIC.
19639 lt_prog_compiler_pic_CXX=
19640 lt_prog_compiler_static_CXX='-non_shared'
19641 ;;
19642 *)
19643 ;;
19644 esac
19645 ;;
19646 psos*)
19647 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019648 solaris*)
19649 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019650 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019651 # Sun C++ 4.2, 5.x and Centerline C++
19652 lt_prog_compiler_pic_CXX='-KPIC'
19653 lt_prog_compiler_static_CXX='-Bstatic'
19654 lt_prog_compiler_wl_CXX='-Qoption ld '
19655 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019656 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019657 # Green Hills C++ Compiler
19658 lt_prog_compiler_pic_CXX='-PIC'
19659 ;;
19660 *)
19661 ;;
19662 esac
19663 ;;
19664 sunos4*)
19665 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019666 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019667 # Sun C++ 4.x
19668 lt_prog_compiler_pic_CXX='-pic'
19669 lt_prog_compiler_static_CXX='-Bstatic'
19670 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019671 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019672 # Lucid
19673 lt_prog_compiler_pic_CXX='-pic'
19674 ;;
19675 *)
19676 ;;
19677 esac
19678 ;;
19679 tandem*)
19680 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019681 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019682 # NonStop-UX NCC 3.20
19683 lt_prog_compiler_pic_CXX='-KPIC'
19684 ;;
19685 *)
19686 ;;
19687 esac
19688 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019689 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19690 case $cc_basename in
19691 CC*)
19692 lt_prog_compiler_wl_CXX='-Wl,'
19693 lt_prog_compiler_pic_CXX='-KPIC'
19694 lt_prog_compiler_static_CXX='-Bstatic'
19695 ;;
19696 esac
John Criswell47fdd832003-07-14 16:52:07 +000019697 ;;
19698 vxworks*)
19699 ;;
19700 *)
19701 lt_prog_compiler_can_build_shared_CXX=no
19702 ;;
19703 esac
19704 fi
19705
Reid Spencera773bd52006-08-04 18:18:08 +000019706{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19707echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019708
19709#
19710# Check to make sure the PIC flag actually works.
19711#
19712if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019713
Reid Spencera773bd52006-08-04 18:18:08 +000019714{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19715echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019716if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
19718else
19719 lt_prog_compiler_pic_works_CXX=no
19720 ac_outfile=conftest.$ac_objext
19721 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19722 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19723 # Insert the option either (1) after the last *FLAGS variable, or
19724 # (2) before a word containing "conftest.", or (3) at the end.
19725 # Note that $ac_compile itself does not contain backslashes and begins
19726 # with a dollar sign (not a hyphen), so the echo should work correctly.
19727 # The option is referenced via a variable to avoid confusing sed.
19728 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19731 -e 's:$: $lt_compiler_flag:'`
Owen Andersona8603702009-05-19 22:18:56 +000019732 (eval echo "\"\$as_me:19732: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019733 (eval "$lt_compile" 2>conftest.err)
19734 ac_status=$?
19735 cat conftest.err >&5
Owen Andersona8603702009-05-19 22:18:56 +000019736 echo "$as_me:19736: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019737 if (exit $ac_status) && test -s "$ac_outfile"; then
19738 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019739 # So say no if there are warnings other than the usual output.
19740 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19742 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019743 lt_prog_compiler_pic_works_CXX=yes
19744 fi
19745 fi
19746 $rm conftest*
19747
19748fi
Reid Spencera773bd52006-08-04 18:18:08 +000019749{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19750echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019751
19752if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19753 case $lt_prog_compiler_pic_CXX in
19754 "" | " "*) ;;
19755 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19756 esac
19757else
19758 lt_prog_compiler_pic_CXX=
19759 lt_prog_compiler_can_build_shared_CXX=no
19760fi
19761
19762fi
Reid Spencera773bd52006-08-04 18:18:08 +000019763case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019764 # For platforms which do not support PIC, -DPIC is meaningless:
19765 *djgpp*)
19766 lt_prog_compiler_pic_CXX=
19767 ;;
19768 *)
19769 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19770 ;;
19771esac
19772
Reid Spencera773bd52006-08-04 18:18:08 +000019773#
19774# Check to make sure the static flag actually works.
19775#
19776wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19777{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19778echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19779if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19781else
19782 lt_prog_compiler_static_works_CXX=no
19783 save_LDFLAGS="$LDFLAGS"
19784 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19785 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19786 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19787 # The linker can only warn and ignore the option if not recognized
19788 # So say no if there are warnings
19789 if test -s conftest.err; then
19790 # Append any errors to the config.log.
19791 cat conftest.err 1>&5
19792 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19794 if diff conftest.exp conftest.er2 >/dev/null; then
19795 lt_prog_compiler_static_works_CXX=yes
19796 fi
19797 else
19798 lt_prog_compiler_static_works_CXX=yes
19799 fi
19800 fi
19801 $rm conftest*
19802 LDFLAGS="$save_LDFLAGS"
19803
19804fi
19805{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19806echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19807
19808if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19809 :
19810else
19811 lt_prog_compiler_static_CXX=
19812fi
19813
19814
19815{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19816echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019817if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19818 echo $ECHO_N "(cached) $ECHO_C" >&6
19819else
19820 lt_cv_prog_compiler_c_o_CXX=no
19821 $rm -r conftest 2>/dev/null
19822 mkdir conftest
19823 cd conftest
19824 mkdir out
19825 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19826
John Criswell47fdd832003-07-14 16:52:07 +000019827 lt_compiler_flag="-o out/conftest2.$ac_objext"
19828 # Insert the option either (1) after the last *FLAGS variable, or
19829 # (2) before a word containing "conftest.", or (3) at the end.
19830 # Note that $ac_compile itself does not contain backslashes and begins
19831 # with a dollar sign (not a hyphen), so the echo should work correctly.
19832 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019833 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019834 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19835 -e 's:$: $lt_compiler_flag:'`
Owen Andersona8603702009-05-19 22:18:56 +000019836 (eval echo "\"\$as_me:19836: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019837 (eval "$lt_compile" 2>out/conftest.err)
19838 ac_status=$?
19839 cat out/conftest.err >&5
Owen Andersona8603702009-05-19 22:18:56 +000019840 echo "$as_me:19840: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019841 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19842 then
19843 # The compiler can only warn and ignore the option if not recognized
19844 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019845 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19846 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19847 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019848 lt_cv_prog_compiler_c_o_CXX=yes
19849 fi
19850 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019851 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019852 $rm conftest*
19853 # SGI C++ compiler will create directory out/ii_files/ for
19854 # template instantiation
19855 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19856 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019857 cd ..
19858 rmdir conftest
19859 $rm conftest*
19860
19861fi
Reid Spencera773bd52006-08-04 18:18:08 +000019862{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19863echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019864
19865
19866hard_links="nottested"
19867if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19868 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019869 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19870echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019871 hard_links=yes
19872 $rm conftest*
19873 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19874 touch conftest.a
19875 ln conftest.a conftest.b 2>&5 || hard_links=no
19876 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019877 { echo "$as_me:$LINENO: result: $hard_links" >&5
19878echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019879 if test "$hard_links" = no; then
19880 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19881echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19882 need_locks=warn
19883 fi
19884else
19885 need_locks=no
19886fi
19887
Reid Spencera773bd52006-08-04 18:18:08 +000019888{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19889echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019890
19891 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19892 case $host_os in
19893 aix4* | aix5*)
19894 # If we're using GNU nm, then we don't want the "-C" option.
19895 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19896 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19897 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'
19898 else
19899 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'
19900 fi
19901 ;;
19902 pw32*)
19903 export_symbols_cmds_CXX="$ltdll_cmds"
19904 ;;
19905 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019906 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 +000019907 ;;
19908 *)
19909 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19910 ;;
19911 esac
19912
Reid Spencera773bd52006-08-04 18:18:08 +000019913{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19914echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019915test "$ld_shlibs_CXX" = no && can_build_shared=no
19916
John Criswell47fdd832003-07-14 16:52:07 +000019917#
19918# Do we need to explicitly link libc?
19919#
19920case "x$archive_cmds_need_lc_CXX" in
19921x|xyes)
19922 # Assume -lc should be added
19923 archive_cmds_need_lc_CXX=yes
19924
19925 if test "$enable_shared" = yes && test "$GCC" = yes; then
19926 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019927 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019928 # FIXME: we may have to deal with multi-command sequences.
19929 ;;
19930 '$CC '*)
19931 # Test whether the compiler implicitly links with -lc since on some
19932 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19933 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019934 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19935echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019936 $rm conftest*
19937 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19938
19939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19940 (eval $ac_compile) 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } 2>conftest.err; then
19944 soname=conftest
19945 lib=conftest
19946 libobjs=conftest.$ac_objext
19947 deplibs=
19948 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019949 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019950 compiler_flags=-v
19951 linker_flags=-v
19952 verstring=
19953 output_objdir=.
19954 libname=conftest
19955 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19956 allow_undefined_flag_CXX=
19957 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19958 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19959 ac_status=$?
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }
19962 then
19963 archive_cmds_need_lc_CXX=no
19964 else
19965 archive_cmds_need_lc_CXX=yes
19966 fi
19967 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19968 else
19969 cat conftest.err 1>&5
19970 fi
19971 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019972 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19973echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019974 ;;
19975 esac
19976 fi
19977 ;;
19978esac
19979
Reid Spencera773bd52006-08-04 18:18:08 +000019980{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19981echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019982library_names_spec=
19983libname_spec='lib$name'
19984soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019985shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019986postinstall_cmds=
19987postuninstall_cmds=
19988finish_cmds=
19989finish_eval=
19990shlibpath_var=
19991shlibpath_overrides_runpath=unknown
19992version_type=none
19993dynamic_linker="$host_os ld.so"
19994sys_lib_dlsearch_path_spec="/lib /usr/lib"
19995if test "$GCC" = yes; then
19996 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19997 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19998 # if the path contains ";" then we assume it to be the separator
19999 # otherwise default to the standard path separator (i.e. ":") - it is
20000 # assumed that no part of a normal pathname contains ";" but that should
20001 # okay in the real world where ";" in dirpaths is itself problematic.
20002 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20003 else
20004 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20005 fi
20006else
20007 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20008fi
20009need_lib_prefix=unknown
20010hardcode_into_libs=no
20011
20012# when you set need_version to no, make sure it does not cause -set_version
20013# flags to be left without arguments
20014need_version=unknown
20015
20016case $host_os in
20017aix3*)
20018 version_type=linux
20019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20020 shlibpath_var=LIBPATH
20021
20022 # AIX 3 has no versioning support, so we append a major version to the name.
20023 soname_spec='${libname}${release}${shared_ext}$major'
20024 ;;
20025
20026aix4* | aix5*)
20027 version_type=linux
20028 need_lib_prefix=no
20029 need_version=no
20030 hardcode_into_libs=yes
20031 if test "$host_cpu" = ia64; then
20032 # AIX 5 supports IA64
20033 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20034 shlibpath_var=LD_LIBRARY_PATH
20035 else
20036 # With GCC up to 2.95.x, collect2 would create an import file
20037 # for dependence libraries. The import file would start with
20038 # the line `#! .'. This would cause the generated library to
20039 # depend on `.', always an invalid library. This was fixed in
20040 # development snapshots of GCC prior to 3.0.
20041 case $host_os in
20042 aix4 | aix4.[01] | aix4.[01].*)
20043 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20044 echo ' yes '
20045 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20046 :
20047 else
20048 can_build_shared=no
20049 fi
20050 ;;
20051 esac
20052 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20053 # soname into executable. Probably we can add versioning support to
20054 # collect2, so additional links can be useful in future.
20055 if test "$aix_use_runtimelinking" = yes; then
20056 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20057 # instead of lib<name>.a to let people know that these are not
20058 # typical AIX shared libraries.
20059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20060 else
20061 # We preserve .a as extension for shared libraries through AIX4.2
20062 # and later when we are not doing run time linking.
20063 library_names_spec='${libname}${release}.a $libname.a'
20064 soname_spec='${libname}${release}${shared_ext}$major'
20065 fi
20066 shlibpath_var=LIBPATH
20067 fi
20068 ;;
20069
20070amigaos*)
20071 library_names_spec='$libname.ixlibrary $libname.a'
20072 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020073 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 +000020074 ;;
20075
20076beos*)
20077 library_names_spec='${libname}${shared_ext}'
20078 dynamic_linker="$host_os ld.so"
20079 shlibpath_var=LIBRARY_PATH
20080 ;;
20081
Reid Spencer2706f8c2004-09-19 23:53:36 +000020082bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020083 version_type=linux
20084 need_version=no
20085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20086 soname_spec='${libname}${release}${shared_ext}$major'
20087 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20088 shlibpath_var=LD_LIBRARY_PATH
20089 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20090 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20091 # the default ld.so.conf also contains /usr/contrib/lib and
20092 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20093 # libtool to hard-code these into programs
20094 ;;
20095
20096cygwin* | mingw* | pw32*)
20097 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020098 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020099 need_version=no
20100 need_lib_prefix=no
20101
20102 case $GCC,$host_os in
20103 yes,cygwin* | yes,mingw* | yes,pw32*)
20104 library_names_spec='$libname.dll.a'
20105 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020106 postinstall_cmds='base_file=`basename \${file}`~
20107 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20108 dldir=$destdir/`dirname \$dlpath`~
20109 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020110 $install_prog $dir/$dlname \$dldir/$dlname~
20111 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20113 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020114 $rm \$dlpath'
20115 shlibpath_overrides_runpath=yes
20116
20117 case $host_os in
20118 cygwin*)
20119 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20120 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 +000020121 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020122 ;;
20123 mingw*)
20124 # MinGW DLLs use traditional 'lib' prefix
20125 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20126 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20127 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20128 # It is most probably a Windows format PATH printed by
20129 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20130 # path with ; separators, and with drive letters. We can handle the
20131 # drive letters (cygwin fileutils understands them), so leave them,
20132 # especially as we might pass files found there to a mingw objdump,
20133 # which wouldn't understand a cygwinified path. Ahh.
20134 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20135 else
20136 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20137 fi
20138 ;;
20139 pw32*)
20140 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020141 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 +000020142 ;;
20143 esac
20144 ;;
20145
20146 *)
20147 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20148 ;;
20149 esac
20150 dynamic_linker='Win32 ld.exe'
20151 # FIXME: first we should search . and the directory the executable is in
20152 shlibpath_var=PATH
20153 ;;
20154
20155darwin* | rhapsody*)
20156 dynamic_linker="$host_os dyld"
20157 version_type=darwin
20158 need_lib_prefix=no
20159 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020160 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020161 soname_spec='${libname}${release}${major}$shared_ext'
20162 shlibpath_overrides_runpath=yes
20163 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020164 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020165 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020166 if test "$GCC" = yes; then
20167 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"`
20168 else
20169 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020170 fi
20171 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20172 ;;
20173
20174dgux*)
20175 version_type=linux
20176 need_lib_prefix=no
20177 need_version=no
20178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 shlibpath_var=LD_LIBRARY_PATH
20181 ;;
20182
20183freebsd1*)
20184 dynamic_linker=no
20185 ;;
20186
Reid Spencer2706f8c2004-09-19 23:53:36 +000020187kfreebsd*-gnu)
20188 version_type=linux
20189 need_lib_prefix=no
20190 need_version=no
20191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20192 soname_spec='${libname}${release}${shared_ext}$major'
20193 shlibpath_var=LD_LIBRARY_PATH
20194 shlibpath_overrides_runpath=no
20195 hardcode_into_libs=yes
20196 dynamic_linker='GNU ld.so'
20197 ;;
20198
Reid Spencera773bd52006-08-04 18:18:08 +000020199freebsd* | dragonfly*)
20200 # DragonFly does not have aout. When/if they implement a new
20201 # versioning mechanism, adjust this.
20202 if test -x /usr/bin/objformat; then
20203 objformat=`/usr/bin/objformat`
20204 else
20205 case $host_os in
20206 freebsd[123]*) objformat=aout ;;
20207 *) objformat=elf ;;
20208 esac
20209 fi
John Criswell47fdd832003-07-14 16:52:07 +000020210 version_type=freebsd-$objformat
20211 case $version_type in
20212 freebsd-elf*)
20213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20214 need_version=no
20215 need_lib_prefix=no
20216 ;;
20217 freebsd-*)
20218 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20219 need_version=yes
20220 ;;
20221 esac
20222 shlibpath_var=LD_LIBRARY_PATH
20223 case $host_os in
20224 freebsd2*)
20225 shlibpath_overrides_runpath=yes
20226 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020227 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020228 shlibpath_overrides_runpath=yes
20229 hardcode_into_libs=yes
20230 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020231 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20232 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020233 shlibpath_overrides_runpath=no
20234 hardcode_into_libs=yes
20235 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020236 freebsd*) # from 4.6 on
20237 shlibpath_overrides_runpath=yes
20238 hardcode_into_libs=yes
20239 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020240 esac
20241 ;;
20242
20243gnu*)
20244 version_type=linux
20245 need_lib_prefix=no
20246 need_version=no
20247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20248 soname_spec='${libname}${release}${shared_ext}$major'
20249 shlibpath_var=LD_LIBRARY_PATH
20250 hardcode_into_libs=yes
20251 ;;
20252
20253hpux9* | hpux10* | hpux11*)
20254 # Give a soname corresponding to the major version so that dld.sl refuses to
20255 # link against other versions.
20256 version_type=sunos
20257 need_lib_prefix=no
20258 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020259 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020260 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020261 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020262 hardcode_into_libs=yes
20263 dynamic_linker="$host_os dld.so"
20264 shlibpath_var=LD_LIBRARY_PATH
20265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20267 soname_spec='${libname}${release}${shared_ext}$major'
20268 if test "X$HPUX_IA64_MODE" = X32; then
20269 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20270 else
20271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20272 fi
20273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20274 ;;
20275 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020276 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020277 hardcode_into_libs=yes
20278 dynamic_linker="$host_os dld.sl"
20279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20282 soname_spec='${libname}${release}${shared_ext}$major'
20283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20285 ;;
20286 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020287 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020288 dynamic_linker="$host_os dld.sl"
20289 shlibpath_var=SHLIB_PATH
20290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20292 soname_spec='${libname}${release}${shared_ext}$major'
20293 ;;
20294 esac
20295 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20296 postinstall_cmds='chmod 555 $lib'
20297 ;;
20298
Reid Spencera773bd52006-08-04 18:18:08 +000020299interix3*)
20300 version_type=linux
20301 need_lib_prefix=no
20302 need_version=no
20303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20304 soname_spec='${libname}${release}${shared_ext}$major'
20305 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20306 shlibpath_var=LD_LIBRARY_PATH
20307 shlibpath_overrides_runpath=no
20308 hardcode_into_libs=yes
20309 ;;
20310
John Criswell47fdd832003-07-14 16:52:07 +000020311irix5* | irix6* | nonstopux*)
20312 case $host_os in
20313 nonstopux*) version_type=nonstopux ;;
20314 *)
20315 if test "$lt_cv_prog_gnu_ld" = yes; then
20316 version_type=linux
20317 else
20318 version_type=irix
20319 fi ;;
20320 esac
20321 need_lib_prefix=no
20322 need_version=no
20323 soname_spec='${libname}${release}${shared_ext}$major'
20324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20325 case $host_os in
20326 irix5* | nonstopux*)
20327 libsuff= shlibsuff=
20328 ;;
20329 *)
20330 case $LD in # libtool.m4 will add one of these switches to LD
20331 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20332 libsuff= shlibsuff= libmagic=32-bit;;
20333 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20334 libsuff=32 shlibsuff=N32 libmagic=N32;;
20335 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20336 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20337 *) libsuff= shlibsuff= libmagic=never-match;;
20338 esac
20339 ;;
20340 esac
20341 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20342 shlibpath_overrides_runpath=no
20343 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20344 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20345 hardcode_into_libs=yes
20346 ;;
20347
20348# No shared lib support for Linux oldld, aout, or coff.
20349linux*oldld* | linux*aout* | linux*coff*)
20350 dynamic_linker=no
20351 ;;
20352
20353# This must be Linux ELF.
20354linux*)
20355 version_type=linux
20356 need_lib_prefix=no
20357 need_version=no
20358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20359 soname_spec='${libname}${release}${shared_ext}$major'
20360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20361 shlibpath_var=LD_LIBRARY_PATH
20362 shlibpath_overrides_runpath=no
20363 # This implies no fast_install, which is unacceptable.
20364 # Some rework will be needed to allow for fast_install
20365 # before this can be enabled.
20366 hardcode_into_libs=yes
20367
Reid Spencer2706f8c2004-09-19 23:53:36 +000020368 # Append ld.so.conf contents to the search path
20369 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020370 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 +000020371 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20372 fi
20373
John Criswell47fdd832003-07-14 16:52:07 +000020374 # We used to test for /lib/ld.so.1 and disable shared libraries on
20375 # powerpc, because MkLinux only supported shared libraries with the
20376 # GNU dynamic linker. Since this was broken with cross compilers,
20377 # most powerpc-linux boxes support dynamic linking these days and
20378 # people can always --disable-shared, the test was removed, and we
20379 # assume the GNU/Linux dynamic linker is in use.
20380 dynamic_linker='GNU/Linux ld.so'
20381 ;;
20382
Reid Spencer2706f8c2004-09-19 23:53:36 +000020383knetbsd*-gnu)
20384 version_type=linux
20385 need_lib_prefix=no
20386 need_version=no
20387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20388 soname_spec='${libname}${release}${shared_ext}$major'
20389 shlibpath_var=LD_LIBRARY_PATH
20390 shlibpath_overrides_runpath=no
20391 hardcode_into_libs=yes
20392 dynamic_linker='GNU ld.so'
20393 ;;
20394
John Criswell47fdd832003-07-14 16:52:07 +000020395netbsd*)
20396 version_type=sunos
20397 need_lib_prefix=no
20398 need_version=no
20399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20402 dynamic_linker='NetBSD (a.out) ld.so'
20403 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020405 soname_spec='${libname}${release}${shared_ext}$major'
20406 dynamic_linker='NetBSD ld.elf_so'
20407 fi
20408 shlibpath_var=LD_LIBRARY_PATH
20409 shlibpath_overrides_runpath=yes
20410 hardcode_into_libs=yes
20411 ;;
20412
20413newsos6)
20414 version_type=linux
20415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20416 shlibpath_var=LD_LIBRARY_PATH
20417 shlibpath_overrides_runpath=yes
20418 ;;
20419
Reid Spencer2706f8c2004-09-19 23:53:36 +000020420nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020421 version_type=linux
20422 need_lib_prefix=no
20423 need_version=no
20424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20425 soname_spec='${libname}${release}${shared_ext}$major'
20426 shlibpath_var=LD_LIBRARY_PATH
20427 shlibpath_overrides_runpath=yes
20428 ;;
20429
20430openbsd*)
20431 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020432 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020433 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020434 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20435 case $host_os in
20436 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20437 *) need_version=no ;;
20438 esac
John Criswell47fdd832003-07-14 16:52:07 +000020439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20441 shlibpath_var=LD_LIBRARY_PATH
20442 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20443 case $host_os in
20444 openbsd2.[89] | openbsd2.[89].*)
20445 shlibpath_overrides_runpath=no
20446 ;;
20447 *)
20448 shlibpath_overrides_runpath=yes
20449 ;;
20450 esac
20451 else
20452 shlibpath_overrides_runpath=yes
20453 fi
20454 ;;
20455
20456os2*)
20457 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020458 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020459 need_lib_prefix=no
20460 library_names_spec='$libname${shared_ext} $libname.a'
20461 dynamic_linker='OS/2 ld.exe'
20462 shlibpath_var=LIBPATH
20463 ;;
20464
20465osf3* | osf4* | osf5*)
20466 version_type=osf
20467 need_lib_prefix=no
20468 need_version=no
20469 soname_spec='${libname}${release}${shared_ext}$major'
20470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20471 shlibpath_var=LD_LIBRARY_PATH
20472 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20473 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20474 ;;
20475
John Criswell47fdd832003-07-14 16:52:07 +000020476solaris*)
20477 version_type=linux
20478 need_lib_prefix=no
20479 need_version=no
20480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20481 soname_spec='${libname}${release}${shared_ext}$major'
20482 shlibpath_var=LD_LIBRARY_PATH
20483 shlibpath_overrides_runpath=yes
20484 hardcode_into_libs=yes
20485 # ldd complains unless libraries are executable
20486 postinstall_cmds='chmod +x $lib'
20487 ;;
20488
20489sunos4*)
20490 version_type=sunos
20491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20492 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20493 shlibpath_var=LD_LIBRARY_PATH
20494 shlibpath_overrides_runpath=yes
20495 if test "$with_gnu_ld" = yes; then
20496 need_lib_prefix=no
20497 fi
20498 need_version=yes
20499 ;;
20500
Reid Spencera773bd52006-08-04 18:18:08 +000020501sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020502 version_type=linux
20503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20504 soname_spec='${libname}${release}${shared_ext}$major'
20505 shlibpath_var=LD_LIBRARY_PATH
20506 case $host_vendor in
20507 sni)
20508 shlibpath_overrides_runpath=no
20509 need_lib_prefix=no
20510 export_dynamic_flag_spec='${wl}-Blargedynsym'
20511 runpath_var=LD_RUN_PATH
20512 ;;
20513 siemens)
20514 need_lib_prefix=no
20515 ;;
20516 motorola)
20517 need_lib_prefix=no
20518 need_version=no
20519 shlibpath_overrides_runpath=no
20520 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20521 ;;
20522 esac
20523 ;;
20524
20525sysv4*MP*)
20526 if test -d /usr/nec ;then
20527 version_type=linux
20528 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20529 soname_spec='$libname${shared_ext}.$major'
20530 shlibpath_var=LD_LIBRARY_PATH
20531 fi
20532 ;;
20533
Reid Spencera773bd52006-08-04 18:18:08 +000020534sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20535 version_type=freebsd-elf
20536 need_lib_prefix=no
20537 need_version=no
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20539 soname_spec='${libname}${release}${shared_ext}$major'
20540 shlibpath_var=LD_LIBRARY_PATH
20541 hardcode_into_libs=yes
20542 if test "$with_gnu_ld" = yes; then
20543 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20544 shlibpath_overrides_runpath=no
20545 else
20546 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20547 shlibpath_overrides_runpath=yes
20548 case $host_os in
20549 sco3.2v5*)
20550 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20551 ;;
20552 esac
20553 fi
20554 sys_lib_dlsearch_path_spec='/usr/lib'
20555 ;;
20556
John Criswell47fdd832003-07-14 16:52:07 +000020557uts4*)
20558 version_type=linux
20559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20560 soname_spec='${libname}${release}${shared_ext}$major'
20561 shlibpath_var=LD_LIBRARY_PATH
20562 ;;
20563
20564*)
20565 dynamic_linker=no
20566 ;;
20567esac
Reid Spencera773bd52006-08-04 18:18:08 +000020568{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20569echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020570test "$dynamic_linker" = no && can_build_shared=no
20571
Reid Spencera773bd52006-08-04 18:18:08 +000020572variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20573if test "$GCC" = yes; then
20574 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20575fi
20576
20577{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20578echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020579hardcode_action_CXX=
20580if test -n "$hardcode_libdir_flag_spec_CXX" || \
20581 test -n "$runpath_var_CXX" || \
20582 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20583
20584 # We can hardcode non-existant directories.
20585 if test "$hardcode_direct_CXX" != no &&
20586 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20587 # have to relink, otherwise we might link with an installed library
20588 # when we should be linking with a yet-to-be-installed one
20589 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20590 test "$hardcode_minus_L_CXX" != no; then
20591 # Linking always hardcodes the temporary library directory.
20592 hardcode_action_CXX=relink
20593 else
20594 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20595 hardcode_action_CXX=immediate
20596 fi
20597else
20598 # We cannot hardcode anything, or else we can only hardcode existing
20599 # directories.
20600 hardcode_action_CXX=unsupported
20601fi
Reid Spencera773bd52006-08-04 18:18:08 +000020602{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20603echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020604
20605if test "$hardcode_action_CXX" = relink; then
20606 # Fast installation is not supported
20607 enable_fast_install=no
20608elif test "$shlibpath_overrides_runpath" = yes ||
20609 test "$enable_shared" = no; then
20610 # Fast installation is not necessary
20611 enable_fast_install=needless
20612fi
20613
John Criswell47fdd832003-07-14 16:52:07 +000020614
20615# The else clause should only fire when bootstrapping the
20616# libtool distribution, otherwise you forgot to ship ltmain.sh
20617# with your package, and you will get complaints that there are
20618# no rules to generate ltmain.sh.
20619if test -f "$ltmain"; then
20620 # See if we are running on zsh, and set the options which allow our commands through
20621 # without removal of \ escapes.
20622 if test -n "${ZSH_VERSION+set}" ; then
20623 setopt NO_GLOB_SUBST
20624 fi
20625 # Now quote all the things that may contain metacharacters while being
20626 # careful not to overquote the AC_SUBSTed values. We take copies of the
20627 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020628 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 +000020629 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020630 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20631 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20632 deplibs_check_method reload_flag reload_cmds need_locks \
20633 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20634 lt_cv_sys_global_symbol_to_c_name_address \
20635 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20636 old_postinstall_cmds old_postuninstall_cmds \
20637 compiler_CXX \
20638 CC_CXX \
20639 LD_CXX \
20640 lt_prog_compiler_wl_CXX \
20641 lt_prog_compiler_pic_CXX \
20642 lt_prog_compiler_static_CXX \
20643 lt_prog_compiler_no_builtin_flag_CXX \
20644 export_dynamic_flag_spec_CXX \
20645 thread_safe_flag_spec_CXX \
20646 whole_archive_flag_spec_CXX \
20647 enable_shared_with_static_runtimes_CXX \
20648 old_archive_cmds_CXX \
20649 old_archive_from_new_cmds_CXX \
20650 predep_objects_CXX \
20651 postdep_objects_CXX \
20652 predeps_CXX \
20653 postdeps_CXX \
20654 compiler_lib_search_path_CXX \
20655 archive_cmds_CXX \
20656 archive_expsym_cmds_CXX \
20657 postinstall_cmds_CXX \
20658 postuninstall_cmds_CXX \
20659 old_archive_from_expsyms_cmds_CXX \
20660 allow_undefined_flag_CXX \
20661 no_undefined_flag_CXX \
20662 export_symbols_cmds_CXX \
20663 hardcode_libdir_flag_spec_CXX \
20664 hardcode_libdir_flag_spec_ld_CXX \
20665 hardcode_libdir_separator_CXX \
20666 hardcode_automatic_CXX \
20667 module_cmds_CXX \
20668 module_expsym_cmds_CXX \
20669 lt_cv_prog_compiler_c_o_CXX \
20670 exclude_expsyms_CXX \
20671 include_expsyms_CXX; do
20672
20673 case $var in
20674 old_archive_cmds_CXX | \
20675 old_archive_from_new_cmds_CXX | \
20676 archive_cmds_CXX | \
20677 archive_expsym_cmds_CXX | \
20678 module_cmds_CXX | \
20679 module_expsym_cmds_CXX | \
20680 old_archive_from_expsyms_cmds_CXX | \
20681 export_symbols_cmds_CXX | \
20682 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20683 postinstall_cmds | postuninstall_cmds | \
20684 old_postinstall_cmds | old_postuninstall_cmds | \
20685 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20686 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020687 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 +000020688 ;;
20689 *)
20690 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20691 ;;
20692 esac
20693 done
20694
20695 case $lt_echo in
20696 *'\$0 --fallback-echo"')
20697 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20698 ;;
20699 esac
20700
20701cfgfile="$ofile"
20702
20703 cat <<__EOF__ >> "$cfgfile"
20704# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20705
20706# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20707
20708# Shell to use when invoking shell scripts.
20709SHELL=$lt_SHELL
20710
20711# Whether or not to build shared libraries.
20712build_libtool_libs=$enable_shared
20713
20714# Whether or not to build static libraries.
20715build_old_libs=$enable_static
20716
20717# Whether or not to add -lc for building shared libraries.
20718build_libtool_need_lc=$archive_cmds_need_lc_CXX
20719
20720# Whether or not to disallow shared libs when runtime libs are static
20721allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20722
20723# Whether or not to optimize for fast installation.
20724fast_install=$enable_fast_install
20725
20726# The host system.
20727host_alias=$host_alias
20728host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020729host_os=$host_os
20730
20731# The build system.
20732build_alias=$build_alias
20733build=$build
20734build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020735
20736# An echo program that does not interpret backslashes.
20737echo=$lt_echo
20738
20739# The archiver.
20740AR=$lt_AR
20741AR_FLAGS=$lt_AR_FLAGS
20742
20743# A C compiler.
20744LTCC=$lt_LTCC
20745
Reid Spencera773bd52006-08-04 18:18:08 +000020746# LTCC compiler flags.
20747LTCFLAGS=$lt_LTCFLAGS
20748
John Criswell47fdd832003-07-14 16:52:07 +000020749# A language-specific compiler.
20750CC=$lt_compiler_CXX
20751
20752# Is the compiler the GNU C compiler?
20753with_gcc=$GCC_CXX
20754
20755# An ERE matcher.
20756EGREP=$lt_EGREP
20757
20758# The linker used to build libraries.
20759LD=$lt_LD_CXX
20760
20761# Whether we need hard or soft links.
20762LN_S=$lt_LN_S
20763
20764# A BSD-compatible nm program.
20765NM=$lt_NM
20766
20767# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020768STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020769
20770# Used to examine libraries when file_magic_cmd begins "file"
20771MAGIC_CMD=$MAGIC_CMD
20772
20773# Used on cygwin: DLL creation program.
20774DLLTOOL="$DLLTOOL"
20775
20776# Used on cygwin: object dumper.
20777OBJDUMP="$OBJDUMP"
20778
20779# Used on cygwin: assembler.
20780AS="$AS"
20781
20782# The name of the directory that contains temporary libtool files.
20783objdir=$objdir
20784
20785# How to create reloadable object files.
20786reload_flag=$lt_reload_flag
20787reload_cmds=$lt_reload_cmds
20788
20789# How to pass a linker flag through the compiler.
20790wl=$lt_lt_prog_compiler_wl_CXX
20791
20792# Object file suffix (normally "o").
20793objext="$ac_objext"
20794
20795# Old archive suffix (normally "a").
20796libext="$libext"
20797
20798# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020799shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020800
20801# Executable file suffix (normally "").
20802exeext="$exeext"
20803
20804# Additional compiler flags for building library objects.
20805pic_flag=$lt_lt_prog_compiler_pic_CXX
20806pic_mode=$pic_mode
20807
20808# What is the maximum length of a command?
20809max_cmd_len=$lt_cv_sys_max_cmd_len
20810
20811# Does compiler simultaneously support -c and -o options?
20812compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20813
Reid Spencera773bd52006-08-04 18:18:08 +000020814# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020815need_locks=$lt_need_locks
20816
20817# Do we need the lib prefix for modules?
20818need_lib_prefix=$need_lib_prefix
20819
20820# Do we need a version for libraries?
20821need_version=$need_version
20822
20823# Whether dlopen is supported.
20824dlopen_support=$enable_dlopen
20825
20826# Whether dlopen of programs is supported.
20827dlopen_self=$enable_dlopen_self
20828
20829# Whether dlopen of statically linked programs is supported.
20830dlopen_self_static=$enable_dlopen_self_static
20831
20832# Compiler flag to prevent dynamic linking.
20833link_static_flag=$lt_lt_prog_compiler_static_CXX
20834
20835# Compiler flag to turn off builtin functions.
20836no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20837
20838# Compiler flag to allow reflexive dlopens.
20839export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20840
20841# Compiler flag to generate shared objects directly from archives.
20842whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20843
20844# Compiler flag to generate thread-safe objects.
20845thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20846
20847# Library versioning type.
20848version_type=$version_type
20849
20850# Format of library name prefix.
20851libname_spec=$lt_libname_spec
20852
20853# List of archive names. First name is the real one, the rest are links.
20854# The last name is the one that the linker finds with -lNAME.
20855library_names_spec=$lt_library_names_spec
20856
20857# The coded name of the library, if different from the real name.
20858soname_spec=$lt_soname_spec
20859
20860# Commands used to build and install an old-style archive.
20861RANLIB=$lt_RANLIB
20862old_archive_cmds=$lt_old_archive_cmds_CXX
20863old_postinstall_cmds=$lt_old_postinstall_cmds
20864old_postuninstall_cmds=$lt_old_postuninstall_cmds
20865
20866# Create an old-style archive from a shared archive.
20867old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20868
20869# Create a temporary old-style archive to link instead of a shared archive.
20870old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20871
20872# Commands used to build and install a shared archive.
20873archive_cmds=$lt_archive_cmds_CXX
20874archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20875postinstall_cmds=$lt_postinstall_cmds
20876postuninstall_cmds=$lt_postuninstall_cmds
20877
20878# Commands used to build a loadable module (assumed same as above if empty)
20879module_cmds=$lt_module_cmds_CXX
20880module_expsym_cmds=$lt_module_expsym_cmds_CXX
20881
20882# Commands to strip libraries.
20883old_striplib=$lt_old_striplib
20884striplib=$lt_striplib
20885
20886# Dependencies to place before the objects being linked to create a
20887# shared library.
20888predep_objects=$lt_predep_objects_CXX
20889
20890# Dependencies to place after the objects being linked to create a
20891# shared library.
20892postdep_objects=$lt_postdep_objects_CXX
20893
20894# Dependencies to place before the objects being linked to create a
20895# shared library.
20896predeps=$lt_predeps_CXX
20897
20898# Dependencies to place after the objects being linked to create a
20899# shared library.
20900postdeps=$lt_postdeps_CXX
20901
20902# The library search path used internally by the compiler when linking
20903# a shared library.
20904compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20905
20906# Method to check whether dependent libraries are shared objects.
20907deplibs_check_method=$lt_deplibs_check_method
20908
20909# Command to use when deplibs_check_method == file_magic.
20910file_magic_cmd=$lt_file_magic_cmd
20911
20912# Flag that allows shared libraries with undefined symbols to be built.
20913allow_undefined_flag=$lt_allow_undefined_flag_CXX
20914
20915# Flag that forces no undefined symbols.
20916no_undefined_flag=$lt_no_undefined_flag_CXX
20917
20918# Commands used to finish a libtool library installation in a directory.
20919finish_cmds=$lt_finish_cmds
20920
20921# Same as above, but a single script fragment to be evaled but not shown.
20922finish_eval=$lt_finish_eval
20923
20924# Take the output of nm and produce a listing of raw symbols and C names.
20925global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20926
20927# Transform the output of nm in a proper C declaration
20928global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20929
20930# Transform the output of nm in a C name address pair
20931global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20932
20933# This is the shared library runtime path variable.
20934runpath_var=$runpath_var
20935
20936# This is the shared library path variable.
20937shlibpath_var=$shlibpath_var
20938
20939# Is shlibpath searched before the hard-coded library search path?
20940shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20941
20942# How to hardcode a shared library path into an executable.
20943hardcode_action=$hardcode_action_CXX
20944
20945# Whether we should hardcode library paths into libraries.
20946hardcode_into_libs=$hardcode_into_libs
20947
20948# Flag to hardcode \$libdir into a binary during linking.
20949# This must work even if \$libdir does not exist.
20950hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20951
20952# If ld is used when linking, flag to hardcode \$libdir into
20953# a binary during linking. This must work even if \$libdir does
20954# not exist.
20955hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20956
20957# Whether we need a single -rpath flag with a separated argument.
20958hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20959
20960# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20961# resulting binary.
20962hardcode_direct=$hardcode_direct_CXX
20963
20964# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20965# resulting binary.
20966hardcode_minus_L=$hardcode_minus_L_CXX
20967
20968# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20969# the resulting binary.
20970hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20971
20972# Set to yes if building a shared library automatically hardcodes DIR into the library
20973# and all subsequent libraries and executables linked against it.
20974hardcode_automatic=$hardcode_automatic_CXX
20975
20976# Variables whose values should be saved in libtool wrapper scripts and
20977# restored at relink time.
20978variables_saved_for_relink="$variables_saved_for_relink"
20979
20980# Whether libtool must link a program against all its dependency libraries.
20981link_all_deplibs=$link_all_deplibs_CXX
20982
20983# Compile-time system search path for libraries
20984sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20985
20986# Run-time system search path for libraries
20987sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20988
20989# Fix the shell variable \$srcfile for the compiler.
20990fix_srcfile_path="$fix_srcfile_path_CXX"
20991
20992# Set to yes if exported symbols are required.
20993always_export_symbols=$always_export_symbols_CXX
20994
20995# The commands to list exported symbols.
20996export_symbols_cmds=$lt_export_symbols_cmds_CXX
20997
20998# The commands to extract the exported symbol list from a shared archive.
20999extract_expsyms_cmds=$lt_extract_expsyms_cmds
21000
21001# Symbols that should not be listed in the preloaded symbols.
21002exclude_expsyms=$lt_exclude_expsyms_CXX
21003
21004# Symbols that must always be exported.
21005include_expsyms=$lt_include_expsyms_CXX
21006
21007# ### END LIBTOOL TAG CONFIG: $tagname
21008
21009__EOF__
21010
21011
21012else
21013 # If there is no Makefile yet, we rely on a make rule to execute
21014 # `config.status --recheck' to rerun these tests and create the
21015 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021016 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21017 if test -f "$ltmain_in"; then
21018 test -f Makefile && make "$ltmain"
21019 fi
John Criswell47fdd832003-07-14 16:52:07 +000021020fi
21021
21022
21023ac_ext=c
21024ac_cpp='$CPP $CPPFLAGS'
21025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21027ac_compiler_gnu=$ac_cv_c_compiler_gnu
21028
21029CC=$lt_save_CC
21030LDCXX=$LD
21031LD=$lt_save_LD
21032GCC=$lt_save_GCC
21033with_gnu_ldcxx=$with_gnu_ld
21034with_gnu_ld=$lt_save_with_gnu_ld
21035lt_cv_path_LDCXX=$lt_cv_path_LD
21036lt_cv_path_LD=$lt_save_path_LD
21037lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21038lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21039
21040 else
21041 tagname=""
21042 fi
21043 ;;
21044
21045 F77)
21046 if test -n "$F77" && test "X$F77" != "Xno"; then
21047
21048ac_ext=f
21049ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21050ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21051ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21052
21053
21054archive_cmds_need_lc_F77=no
21055allow_undefined_flag_F77=
21056always_export_symbols_F77=no
21057archive_expsym_cmds_F77=
21058export_dynamic_flag_spec_F77=
21059hardcode_direct_F77=no
21060hardcode_libdir_flag_spec_F77=
21061hardcode_libdir_flag_spec_ld_F77=
21062hardcode_libdir_separator_F77=
21063hardcode_minus_L_F77=no
21064hardcode_automatic_F77=no
21065module_cmds_F77=
21066module_expsym_cmds_F77=
21067link_all_deplibs_F77=unknown
21068old_archive_cmds_F77=$old_archive_cmds
21069no_undefined_flag_F77=
21070whole_archive_flag_spec_F77=
21071enable_shared_with_static_runtimes_F77=no
21072
21073# Source file extension for f77 test sources.
21074ac_ext=f
21075
21076# Object file extension for compiled f77 test sources.
21077objext=o
21078objext_F77=$objext
21079
21080# Code to be used in simple compile tests
21081lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21082
21083# Code to be used in simple link tests
21084lt_simple_link_test_code=" program t\n end\n"
21085
21086# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21087
21088# If no C compiler was specified, use CC.
21089LTCC=${LTCC-"$CC"}
21090
Reid Spencera773bd52006-08-04 18:18:08 +000021091# If no C compiler flags were specified, use CFLAGS.
21092LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21093
John Criswell47fdd832003-07-14 16:52:07 +000021094# Allow CC to be a program name with arguments.
21095compiler=$CC
21096
21097
Reid Spencera773bd52006-08-04 18:18:08 +000021098# save warnings/boilerplate of simple test code
21099ac_outfile=conftest.$ac_objext
21100printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21101eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21102_lt_compiler_boilerplate=`cat conftest.err`
21103$rm conftest*
21104
21105ac_outfile=conftest.$ac_objext
21106printf "$lt_simple_link_test_code" >conftest.$ac_ext
21107eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21108_lt_linker_boilerplate=`cat conftest.err`
21109$rm conftest*
21110
21111
John Criswell47fdd832003-07-14 16:52:07 +000021112# Allow CC to be a program name with arguments.
21113lt_save_CC="$CC"
21114CC=${F77-"f77"}
21115compiler=$CC
21116compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021117for cc_temp in $compiler""; do
21118 case $cc_temp in
21119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21121 \-*) ;;
21122 *) break;;
21123 esac
21124done
21125cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021126
John Criswell47fdd832003-07-14 16:52:07 +000021127
Reid Spencera773bd52006-08-04 18:18:08 +000021128{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21129echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21130{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21131echo "${ECHO_T}$can_build_shared" >&6; }
21132
21133{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21134echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021135test "$can_build_shared" = "no" && enable_shared=no
21136
21137# On AIX, shared libraries and static libraries use the same namespace, and
21138# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021139case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021140aix3*)
21141 test "$enable_shared" = yes && enable_static=no
21142 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021143 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021144 postinstall_cmds='$RANLIB $lib'
21145 fi
21146 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021147aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021148 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21149 test "$enable_shared" = yes && enable_static=no
21150 fi
John Criswell47fdd832003-07-14 16:52:07 +000021151 ;;
21152esac
Reid Spencera773bd52006-08-04 18:18:08 +000021153{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21154echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021155
Reid Spencera773bd52006-08-04 18:18:08 +000021156{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21157echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021158# Make sure either enable_shared or enable_static is yes.
21159test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021160{ echo "$as_me:$LINENO: result: $enable_static" >&5
21161echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021162
21163GCC_F77="$G77"
21164LD_F77="$LD"
21165
21166lt_prog_compiler_wl_F77=
21167lt_prog_compiler_pic_F77=
21168lt_prog_compiler_static_F77=
21169
Reid Spencera773bd52006-08-04 18:18:08 +000021170{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21171echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021172
21173 if test "$GCC" = yes; then
21174 lt_prog_compiler_wl_F77='-Wl,'
21175 lt_prog_compiler_static_F77='-static'
21176
21177 case $host_os in
21178 aix*)
21179 # All AIX code is PIC.
21180 if test "$host_cpu" = ia64; then
21181 # AIX 5 now supports IA64 processor
21182 lt_prog_compiler_static_F77='-Bstatic'
21183 fi
21184 ;;
21185
21186 amigaos*)
21187 # FIXME: we need at least 68020 code to build shared libraries, but
21188 # adding the `-m68020' flag to GCC prevents building anything better,
21189 # like `-m68040'.
21190 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21191 ;;
21192
21193 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21194 # PIC is the default for these OSes.
21195 ;;
21196
21197 mingw* | pw32* | os2*)
21198 # This hack is so that the source file can tell whether it is being
21199 # built for inclusion in a dll (and should export symbols for example).
21200 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21201 ;;
21202
21203 darwin* | rhapsody*)
21204 # PIC is the default on this platform
21205 # Common symbols not allowed in MH_DYLIB files
21206 lt_prog_compiler_pic_F77='-fno-common'
21207 ;;
21208
Reid Spencera773bd52006-08-04 18:18:08 +000021209 interix3*)
21210 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21211 # Instead, we relocate shared libraries at runtime.
21212 ;;
21213
John Criswell47fdd832003-07-14 16:52:07 +000021214 msdosdjgpp*)
21215 # Just because we use GCC doesn't mean we suddenly get shared libraries
21216 # on systems that don't support them.
21217 lt_prog_compiler_can_build_shared_F77=no
21218 enable_shared=no
21219 ;;
21220
21221 sysv4*MP*)
21222 if test -d /usr/nec; then
21223 lt_prog_compiler_pic_F77=-Kconform_pic
21224 fi
21225 ;;
21226
21227 hpux*)
21228 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21229 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021230 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021231 hppa*64*|ia64*)
21232 # +Z the default
21233 ;;
21234 *)
21235 lt_prog_compiler_pic_F77='-fPIC'
21236 ;;
21237 esac
21238 ;;
21239
21240 *)
21241 lt_prog_compiler_pic_F77='-fPIC'
21242 ;;
21243 esac
21244 else
21245 # PORTME Check for flag to pass linker flags through the system compiler.
21246 case $host_os in
21247 aix*)
21248 lt_prog_compiler_wl_F77='-Wl,'
21249 if test "$host_cpu" = ia64; then
21250 # AIX 5 now supports IA64 processor
21251 lt_prog_compiler_static_F77='-Bstatic'
21252 else
21253 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21254 fi
21255 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021256 darwin*)
21257 # PIC is the default on this platform
21258 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021259 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021260 xlc*)
21261 lt_prog_compiler_pic_F77='-qnocommon'
21262 lt_prog_compiler_wl_F77='-Wl,'
21263 ;;
21264 esac
21265 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021266
21267 mingw* | pw32* | os2*)
21268 # This hack is so that the source file can tell whether it is being
21269 # built for inclusion in a dll (and should export symbols for example).
21270 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21271 ;;
21272
21273 hpux9* | hpux10* | hpux11*)
21274 lt_prog_compiler_wl_F77='-Wl,'
21275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21276 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021277 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021278 hppa*64*|ia64*)
21279 # +Z the default
21280 ;;
21281 *)
21282 lt_prog_compiler_pic_F77='+Z'
21283 ;;
21284 esac
21285 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21286 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21287 ;;
21288
21289 irix5* | irix6* | nonstopux*)
21290 lt_prog_compiler_wl_F77='-Wl,'
21291 # PIC (with -KPIC) is the default.
21292 lt_prog_compiler_static_F77='-non_shared'
21293 ;;
21294
21295 newsos6)
21296 lt_prog_compiler_pic_F77='-KPIC'
21297 lt_prog_compiler_static_F77='-Bstatic'
21298 ;;
21299
21300 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021301 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021302 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021303 lt_prog_compiler_wl_F77='-Wl,'
21304 lt_prog_compiler_pic_F77='-KPIC'
21305 lt_prog_compiler_static_F77='-static'
21306 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021307 pgcc* | pgf77* | pgf90* | pgf95*)
21308 # Portland Group compilers (*not* the Pentium gcc compiler,
21309 # which looks to be a dead project)
21310 lt_prog_compiler_wl_F77='-Wl,'
21311 lt_prog_compiler_pic_F77='-fpic'
21312 lt_prog_compiler_static_F77='-Bstatic'
21313 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021314 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021315 lt_prog_compiler_wl_F77='-Wl,'
21316 # All Alpha code is PIC.
21317 lt_prog_compiler_static_F77='-non_shared'
21318 ;;
21319 esac
21320 ;;
21321
21322 osf3* | osf4* | osf5*)
21323 lt_prog_compiler_wl_F77='-Wl,'
21324 # All OSF/1 code is PIC.
21325 lt_prog_compiler_static_F77='-non_shared'
21326 ;;
21327
John Criswell47fdd832003-07-14 16:52:07 +000021328 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021329 lt_prog_compiler_pic_F77='-KPIC'
21330 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021331 case $cc_basename in
21332 f77* | f90* | f95*)
21333 lt_prog_compiler_wl_F77='-Qoption ld ';;
21334 *)
21335 lt_prog_compiler_wl_F77='-Wl,';;
21336 esac
John Criswell47fdd832003-07-14 16:52:07 +000021337 ;;
21338
21339 sunos4*)
21340 lt_prog_compiler_wl_F77='-Qoption ld '
21341 lt_prog_compiler_pic_F77='-PIC'
21342 lt_prog_compiler_static_F77='-Bstatic'
21343 ;;
21344
Reid Spencera773bd52006-08-04 18:18:08 +000021345 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021346 lt_prog_compiler_wl_F77='-Wl,'
21347 lt_prog_compiler_pic_F77='-KPIC'
21348 lt_prog_compiler_static_F77='-Bstatic'
21349 ;;
21350
21351 sysv4*MP*)
21352 if test -d /usr/nec ;then
21353 lt_prog_compiler_pic_F77='-Kconform_pic'
21354 lt_prog_compiler_static_F77='-Bstatic'
21355 fi
21356 ;;
21357
Reid Spencera773bd52006-08-04 18:18:08 +000021358 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21359 lt_prog_compiler_wl_F77='-Wl,'
21360 lt_prog_compiler_pic_F77='-KPIC'
21361 lt_prog_compiler_static_F77='-Bstatic'
21362 ;;
21363
21364 unicos*)
21365 lt_prog_compiler_wl_F77='-Wl,'
21366 lt_prog_compiler_can_build_shared_F77=no
21367 ;;
21368
John Criswell47fdd832003-07-14 16:52:07 +000021369 uts4*)
21370 lt_prog_compiler_pic_F77='-pic'
21371 lt_prog_compiler_static_F77='-Bstatic'
21372 ;;
21373
21374 *)
21375 lt_prog_compiler_can_build_shared_F77=no
21376 ;;
21377 esac
21378 fi
21379
Reid Spencera773bd52006-08-04 18:18:08 +000021380{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21381echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021382
21383#
21384# Check to make sure the PIC flag actually works.
21385#
21386if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021387
Reid Spencera773bd52006-08-04 18:18:08 +000021388{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21389echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021390if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21391 echo $ECHO_N "(cached) $ECHO_C" >&6
21392else
21393 lt_prog_compiler_pic_works_F77=no
21394 ac_outfile=conftest.$ac_objext
21395 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21396 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21397 # Insert the option either (1) after the last *FLAGS variable, or
21398 # (2) before a word containing "conftest.", or (3) at the end.
21399 # Note that $ac_compile itself does not contain backslashes and begins
21400 # with a dollar sign (not a hyphen), so the echo should work correctly.
21401 # The option is referenced via a variable to avoid confusing sed.
21402 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021403 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021404 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21405 -e 's:$: $lt_compiler_flag:'`
Owen Andersona8603702009-05-19 22:18:56 +000021406 (eval echo "\"\$as_me:21406: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021407 (eval "$lt_compile" 2>conftest.err)
21408 ac_status=$?
21409 cat conftest.err >&5
Owen Andersona8603702009-05-19 22:18:56 +000021410 echo "$as_me:21410: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021411 if (exit $ac_status) && test -s "$ac_outfile"; then
21412 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021413 # So say no if there are warnings other than the usual output.
21414 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21415 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21416 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021417 lt_prog_compiler_pic_works_F77=yes
21418 fi
21419 fi
21420 $rm conftest*
21421
21422fi
Reid Spencera773bd52006-08-04 18:18:08 +000021423{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21424echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021425
21426if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21427 case $lt_prog_compiler_pic_F77 in
21428 "" | " "*) ;;
21429 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21430 esac
21431else
21432 lt_prog_compiler_pic_F77=
21433 lt_prog_compiler_can_build_shared_F77=no
21434fi
21435
21436fi
Reid Spencera773bd52006-08-04 18:18:08 +000021437case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021438 # For platforms which do not support PIC, -DPIC is meaningless:
21439 *djgpp*)
21440 lt_prog_compiler_pic_F77=
21441 ;;
21442 *)
21443 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21444 ;;
21445esac
21446
Reid Spencera773bd52006-08-04 18:18:08 +000021447#
21448# Check to make sure the static flag actually works.
21449#
21450wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21451{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21452echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21453if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21454 echo $ECHO_N "(cached) $ECHO_C" >&6
21455else
21456 lt_prog_compiler_static_works_F77=no
21457 save_LDFLAGS="$LDFLAGS"
21458 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21459 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21460 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21461 # The linker can only warn and ignore the option if not recognized
21462 # So say no if there are warnings
21463 if test -s conftest.err; then
21464 # Append any errors to the config.log.
21465 cat conftest.err 1>&5
21466 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21468 if diff conftest.exp conftest.er2 >/dev/null; then
21469 lt_prog_compiler_static_works_F77=yes
21470 fi
21471 else
21472 lt_prog_compiler_static_works_F77=yes
21473 fi
21474 fi
21475 $rm conftest*
21476 LDFLAGS="$save_LDFLAGS"
21477
21478fi
21479{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21480echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21481
21482if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21483 :
21484else
21485 lt_prog_compiler_static_F77=
21486fi
21487
21488
21489{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21490echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021491if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21492 echo $ECHO_N "(cached) $ECHO_C" >&6
21493else
21494 lt_cv_prog_compiler_c_o_F77=no
21495 $rm -r conftest 2>/dev/null
21496 mkdir conftest
21497 cd conftest
21498 mkdir out
21499 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21500
John Criswell47fdd832003-07-14 16:52:07 +000021501 lt_compiler_flag="-o out/conftest2.$ac_objext"
21502 # Insert the option either (1) after the last *FLAGS variable, or
21503 # (2) before a word containing "conftest.", or (3) at the end.
21504 # Note that $ac_compile itself does not contain backslashes and begins
21505 # with a dollar sign (not a hyphen), so the echo should work correctly.
21506 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021507 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021508 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21509 -e 's:$: $lt_compiler_flag:'`
Owen Andersona8603702009-05-19 22:18:56 +000021510 (eval echo "\"\$as_me:21510: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021511 (eval "$lt_compile" 2>out/conftest.err)
21512 ac_status=$?
21513 cat out/conftest.err >&5
Owen Andersona8603702009-05-19 22:18:56 +000021514 echo "$as_me:21514: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021515 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21516 then
21517 # The compiler can only warn and ignore the option if not recognized
21518 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021519 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21520 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21521 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021522 lt_cv_prog_compiler_c_o_F77=yes
21523 fi
21524 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021525 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021526 $rm conftest*
21527 # SGI C++ compiler will create directory out/ii_files/ for
21528 # template instantiation
21529 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21530 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021531 cd ..
21532 rmdir conftest
21533 $rm conftest*
21534
21535fi
Reid Spencera773bd52006-08-04 18:18:08 +000021536{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21537echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021538
21539
21540hard_links="nottested"
21541if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21542 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021543 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21544echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021545 hard_links=yes
21546 $rm conftest*
21547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21548 touch conftest.a
21549 ln conftest.a conftest.b 2>&5 || hard_links=no
21550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021551 { echo "$as_me:$LINENO: result: $hard_links" >&5
21552echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021553 if test "$hard_links" = no; then
21554 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21555echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21556 need_locks=warn
21557 fi
21558else
21559 need_locks=no
21560fi
21561
Reid Spencera773bd52006-08-04 18:18:08 +000021562{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21563echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021564
21565 runpath_var=
21566 allow_undefined_flag_F77=
21567 enable_shared_with_static_runtimes_F77=no
21568 archive_cmds_F77=
21569 archive_expsym_cmds_F77=
21570 old_archive_From_new_cmds_F77=
21571 old_archive_from_expsyms_cmds_F77=
21572 export_dynamic_flag_spec_F77=
21573 whole_archive_flag_spec_F77=
21574 thread_safe_flag_spec_F77=
21575 hardcode_libdir_flag_spec_F77=
21576 hardcode_libdir_flag_spec_ld_F77=
21577 hardcode_libdir_separator_F77=
21578 hardcode_direct_F77=no
21579 hardcode_minus_L_F77=no
21580 hardcode_shlibpath_var_F77=unsupported
21581 link_all_deplibs_F77=unknown
21582 hardcode_automatic_F77=no
21583 module_cmds_F77=
21584 module_expsym_cmds_F77=
21585 always_export_symbols_F77=no
21586 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21587 # include_expsyms should be a list of space-separated symbols to be *always*
21588 # included in the symbol list
21589 include_expsyms_F77=
21590 # exclude_expsyms can be an extended regexp of symbols to exclude
21591 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21593 # as well as any symbol that contains `d'.
21594 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21596 # platforms (ab)use it in PIC code, but their linkers get confused if
21597 # the symbol is explicitly referenced. Since portable code cannot
21598 # rely on this symbol name, it's probably fine to never include it in
21599 # preloaded symbol tables.
21600 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021601 # Just being paranoid about ensuring that cc_basename is set.
21602 for cc_temp in $compiler""; do
21603 case $cc_temp in
21604 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21605 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21606 \-*) ;;
21607 *) break;;
21608 esac
21609done
21610cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021611
21612 case $host_os in
21613 cygwin* | mingw* | pw32*)
21614 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21615 # When not using gcc, we currently assume that we are using
21616 # Microsoft Visual C++.
21617 if test "$GCC" != yes; then
21618 with_gnu_ld=no
21619 fi
21620 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021621 interix*)
21622 # we just hope/assume this is gcc and not c89 (= MSVC++)
21623 with_gnu_ld=yes
21624 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021625 openbsd*)
21626 with_gnu_ld=no
21627 ;;
21628 esac
21629
21630 ld_shlibs_F77=yes
21631 if test "$with_gnu_ld" = yes; then
21632 # If archive_cmds runs LD, not CC, wlarc should be empty
21633 wlarc='${wl}'
21634
Reid Spencera773bd52006-08-04 18:18:08 +000021635 # Set some defaults for GNU ld with shared library support. These
21636 # are reset later if shared libraries are not supported. Putting them
21637 # here allows them to be overridden if necessary.
21638 runpath_var=LD_RUN_PATH
21639 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21640 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21641 # ancient GNU ld didn't support --whole-archive et. al.
21642 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21643 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21644 else
21645 whole_archive_flag_spec_F77=
21646 fi
21647 supports_anon_versioning=no
21648 case `$LD -v 2>/dev/null` in
21649 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21650 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21651 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21652 *\ 2.11.*) ;; # other 2.11 versions
21653 *) supports_anon_versioning=yes ;;
21654 esac
21655
John Criswell47fdd832003-07-14 16:52:07 +000021656 # See if GNU ld supports shared libraries.
21657 case $host_os in
21658 aix3* | aix4* | aix5*)
21659 # On AIX/PPC, the GNU linker is very broken
21660 if test "$host_cpu" != ia64; then
21661 ld_shlibs_F77=no
21662 cat <<EOF 1>&2
21663
21664*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21665*** to be unable to reliably create shared libraries on AIX.
21666*** Therefore, libtool is disabling shared libraries support. If you
21667*** really care for shared libraries, you may want to modify your PATH
21668*** so that a non-GNU linker is found, and then restart.
21669
21670EOF
21671 fi
21672 ;;
21673
21674 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021675 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 +000021676 hardcode_libdir_flag_spec_F77='-L$libdir'
21677 hardcode_minus_L_F77=yes
21678
21679 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21680 # that the semantics of dynamic libraries on AmigaOS, at least up
21681 # to version 4, is to share data among multiple programs linked
21682 # with the same dynamic library. Since this doesn't match the
21683 # behavior of shared libraries on other platforms, we can't use
21684 # them.
21685 ld_shlibs_F77=no
21686 ;;
21687
21688 beos*)
21689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21690 allow_undefined_flag_F77=unsupported
21691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21692 # support --undefined. This deserves some investigation. FIXME
21693 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21694 else
21695 ld_shlibs_F77=no
21696 fi
21697 ;;
21698
21699 cygwin* | mingw* | pw32*)
21700 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21701 # as there is no search path for DLLs.
21702 hardcode_libdir_flag_spec_F77='-L$libdir'
21703 allow_undefined_flag_F77=unsupported
21704 always_export_symbols_F77=no
21705 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021706 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 +000021707
21708 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021709 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 +000021710 # If the export-symbols file already is a .def file (1st line
21711 # is EXPORTS), use it as is; otherwise, prepend...
21712 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21713 cp $export_symbols $output_objdir/$soname.def;
21714 else
21715 echo EXPORTS > $output_objdir/$soname.def;
21716 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021717 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021718 $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 +000021719 else
Reid Spencera773bd52006-08-04 18:18:08 +000021720 ld_shlibs_F77=no
21721 fi
21722 ;;
21723
21724 interix3*)
21725 hardcode_direct_F77=no
21726 hardcode_shlibpath_var_F77=no
21727 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21728 export_dynamic_flag_spec_F77='${wl}-E'
21729 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21730 # Instead, shared libraries are loaded at an image base (0x10000000 by
21731 # default) and relocated if they conflict, which is a slow very memory
21732 # consuming and fragmenting process. To avoid this, we pick a random,
21733 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21734 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21735 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'
21736 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'
21737 ;;
21738
21739 linux*)
21740 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21741 tmp_addflag=
21742 case $cc_basename,$host_cpu in
21743 pgcc*) # Portland Group C compiler
21744 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'
21745 tmp_addflag=' $pic_flag'
21746 ;;
21747 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21748 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'
21749 tmp_addflag=' $pic_flag -Mnomain' ;;
21750 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21751 tmp_addflag=' -i_dynamic' ;;
21752 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21753 tmp_addflag=' -i_dynamic -nofor_main' ;;
21754 ifc* | ifort*) # Intel Fortran compiler
21755 tmp_addflag=' -nofor_main' ;;
21756 esac
21757 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21758
21759 if test $supports_anon_versioning = yes; then
21760 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21761 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21762 $echo "local: *; };" >> $output_objdir/$libname.ver~
21763 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21764 fi
21765 else
21766 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021767 fi
21768 ;;
21769
21770 netbsd*)
21771 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21772 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21773 wlarc=
21774 else
21775 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21776 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21777 fi
21778 ;;
21779
Reid Spencera773bd52006-08-04 18:18:08 +000021780 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021781 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21782 ld_shlibs_F77=no
21783 cat <<EOF 1>&2
21784
21785*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21786*** create shared libraries on Solaris systems. Therefore, libtool
21787*** is disabling shared libraries support. We urge you to upgrade GNU
21788*** binutils to release 2.9.1 or newer. Another option is to modify
21789*** your PATH or compiler configuration so that the native linker is
21790*** used, and then restart.
21791
21792EOF
21793 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21794 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21795 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21796 else
21797 ld_shlibs_F77=no
21798 fi
21799 ;;
21800
Reid Spencera773bd52006-08-04 18:18:08 +000021801 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21802 case `$LD -v 2>&1` in
21803 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21804 ld_shlibs_F77=no
21805 cat <<_LT_EOF 1>&2
21806
21807*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21808*** reliably create shared libraries on SCO systems. Therefore, libtool
21809*** is disabling shared libraries support. We urge you to upgrade GNU
21810*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21811*** your PATH or compiler configuration so that the native linker is
21812*** used, and then restart.
21813
21814_LT_EOF
21815 ;;
21816 *)
21817 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21818 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21819 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21820 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21821 else
21822 ld_shlibs_F77=no
21823 fi
21824 ;;
21825 esac
21826 ;;
21827
John Criswell47fdd832003-07-14 16:52:07 +000021828 sunos4*)
21829 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21830 wlarc=
21831 hardcode_direct_F77=yes
21832 hardcode_shlibpath_var_F77=no
21833 ;;
21834
21835 *)
21836 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21837 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21838 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21839 else
21840 ld_shlibs_F77=no
21841 fi
21842 ;;
21843 esac
21844
Reid Spencera773bd52006-08-04 18:18:08 +000021845 if test "$ld_shlibs_F77" = no; then
21846 runpath_var=
21847 hardcode_libdir_flag_spec_F77=
21848 export_dynamic_flag_spec_F77=
21849 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021850 fi
21851 else
21852 # PORTME fill in a description of your system's linker (not GNU ld)
21853 case $host_os in
21854 aix3*)
21855 allow_undefined_flag_F77=unsupported
21856 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021857 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 +000021858 # Note: this linker hardcodes the directories in LIBPATH if there
21859 # are no directories specified by -L.
21860 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021861 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021862 # Neither direct hardcoding nor static linking is supported with a
21863 # broken collect2.
21864 hardcode_direct_F77=unsupported
21865 fi
21866 ;;
21867
21868 aix4* | aix5*)
21869 if test "$host_cpu" = ia64; then
21870 # On IA64, the linker does run time linking by default, so we don't
21871 # have to do anything special.
21872 aix_use_runtimelinking=no
21873 exp_sym_flag='-Bexport'
21874 no_entry_flag=""
21875 else
21876 # If we're using GNU nm, then we don't want the "-C" option.
21877 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21878 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21879 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'
21880 else
21881 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'
21882 fi
21883 aix_use_runtimelinking=no
21884
21885 # Test if we are trying to use run time linking or normal
21886 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21887 # need to do runtime linking.
21888 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21889 for ld_flag in $LDFLAGS; do
21890 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21891 aix_use_runtimelinking=yes
21892 break
21893 fi
21894 done
Reid Spencera773bd52006-08-04 18:18:08 +000021895 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021896 esac
21897
21898 exp_sym_flag='-bexport'
21899 no_entry_flag='-bnoentry'
21900 fi
21901
21902 # When large executables or shared objects are built, AIX ld can
21903 # have problems creating the table of contents. If linking a library
21904 # or program results in "error TOC overflow" add -mminimal-toc to
21905 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21906 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21907
21908 archive_cmds_F77=''
21909 hardcode_direct_F77=yes
21910 hardcode_libdir_separator_F77=':'
21911 link_all_deplibs_F77=yes
21912
21913 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021914 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021915 # We only want to do this on AIX 4.2 and lower, the check
21916 # below for broken collect2 doesn't work under 4.3+
21917 collect2name=`${CC} -print-prog-name=collect2`
21918 if test -f "$collect2name" && \
21919 strings "$collect2name" | grep resolve_lib_name >/dev/null
21920 then
21921 # We have reworked collect2
21922 hardcode_direct_F77=yes
21923 else
21924 # We have old collect2
21925 hardcode_direct_F77=unsupported
21926 # It fails to find uninstalled libraries when the uninstalled
21927 # path is not listed in the libpath. Setting hardcode_minus_L
21928 # to unsupported forces relinking
21929 hardcode_minus_L_F77=yes
21930 hardcode_libdir_flag_spec_F77='-L$libdir'
21931 hardcode_libdir_separator_F77=
21932 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021933 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021934 esac
21935 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021936 if test "$aix_use_runtimelinking" = yes; then
21937 shared_flag="$shared_flag "'${wl}-G'
21938 fi
John Criswell47fdd832003-07-14 16:52:07 +000021939 else
21940 # not using gcc
21941 if test "$host_cpu" = ia64; then
21942 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21943 # chokes on -Wl,-G. The following line is correct:
21944 shared_flag='-G'
21945 else
Reid Spencera773bd52006-08-04 18:18:08 +000021946 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021947 shared_flag='${wl}-G'
21948 else
21949 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021950 fi
John Criswell47fdd832003-07-14 16:52:07 +000021951 fi
21952 fi
21953
21954 # It seems that -bexpall does not export symbols beginning with
21955 # underscore (_), so it is better to generate a list of symbols to export.
21956 always_export_symbols_F77=yes
21957 if test "$aix_use_runtimelinking" = yes; then
21958 # Warning - without using the other runtime loading flags (-brtl),
21959 # -berok will link without error, but may produce a broken library.
21960 allow_undefined_flag_F77='-berok'
21961 # Determine the default libpath from the value encoded in an empty executable.
21962 cat >conftest.$ac_ext <<_ACEOF
21963 program main
21964
21965 end
21966_ACEOF
21967rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021968if { (ac_try="$ac_link"
21969case "(($ac_try" in
21970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21971 *) ac_try_echo=$ac_try;;
21972esac
21973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21974 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021975 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021976 grep -v '^ *+' conftest.er1 >conftest.err
21977 rm -f conftest.er1
21978 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000021980 (exit $ac_status); } &&
21981 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21982 { (case "(($ac_try" in
21983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984 *) ac_try_echo=$ac_try;;
21985esac
21986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987 (eval "$ac_try") 2>&5
21988 ac_status=$?
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); }; } &&
21991 { ac_try='test -s conftest$ac_exeext'
21992 { (case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21995esac
21996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997 (eval "$ac_try") 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022001
22002aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22003}'`
22004# Check for a 64-bit object if we didn't find anything.
22005if 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; }
22006}'`; fi
22007else
22008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022009sed 's/^/| /' conftest.$ac_ext >&5
22010
Reid Spencera773bd52006-08-04 18:18:08 +000022011
John Criswell47fdd832003-07-14 16:52:07 +000022012fi
Reid Spencera773bd52006-08-04 18:18:08 +000022013
Bill Wendlingebcceee2009-04-18 11:20:33 +000022014rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022015 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022016if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22017
22018 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022019 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 +000022020 else
22021 if test "$host_cpu" = ia64; then
22022 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22023 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022024 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 +000022025 else
22026 # Determine the default libpath from the value encoded in an empty executable.
22027 cat >conftest.$ac_ext <<_ACEOF
22028 program main
22029
22030 end
22031_ACEOF
22032rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022033if { (ac_try="$ac_link"
22034case "(($ac_try" in
22035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22037esac
22038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022040 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022041 grep -v '^ *+' conftest.er1 >conftest.err
22042 rm -f conftest.er1
22043 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022045 (exit $ac_status); } &&
22046 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22047 { (case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22050esac
22051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_try") 2>&5
22053 ac_status=$?
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; } &&
22056 { ac_try='test -s conftest$ac_exeext'
22057 { (case "(($ac_try" in
22058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22059 *) ac_try_echo=$ac_try;;
22060esac
22061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22062 (eval "$ac_try") 2>&5
22063 ac_status=$?
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022066
22067aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22068}'`
22069# Check for a 64-bit object if we didn't find anything.
22070if 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; }
22071}'`; fi
22072else
22073 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022074sed 's/^/| /' conftest.$ac_ext >&5
22075
Reid Spencera773bd52006-08-04 18:18:08 +000022076
John Criswell47fdd832003-07-14 16:52:07 +000022077fi
Reid Spencera773bd52006-08-04 18:18:08 +000022078
Bill Wendlingebcceee2009-04-18 11:20:33 +000022079rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022080 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022081if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22082
22083 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22084 # Warning - without using the other run time loading flags,
22085 # -berok will link without error, but may produce a broken library.
22086 no_undefined_flag_F77=' ${wl}-bernotok'
22087 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022088 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022089 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022090 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022091 # This is similar to how AIX traditionally builds its shared libraries.
22092 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 +000022093 fi
22094 fi
22095 ;;
22096
22097 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022098 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 +000022099 hardcode_libdir_flag_spec_F77='-L$libdir'
22100 hardcode_minus_L_F77=yes
22101 # see comment about different semantics on the GNU ld section
22102 ld_shlibs_F77=no
22103 ;;
22104
Reid Spencer2706f8c2004-09-19 23:53:36 +000022105 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022106 export_dynamic_flag_spec_F77=-rdynamic
22107 ;;
22108
22109 cygwin* | mingw* | pw32*)
22110 # When not using gcc, we currently assume that we are using
22111 # Microsoft Visual C++.
22112 # hardcode_libdir_flag_spec is actually meaningless, as there is
22113 # no search path for DLLs.
22114 hardcode_libdir_flag_spec_F77=' '
22115 allow_undefined_flag_F77=unsupported
22116 # Tell ltmain to make .lib files, not .a files.
22117 libext=lib
22118 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022119 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022120 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022121 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 +000022122 # The linker will automatically build a .lib file if we build a DLL.
22123 old_archive_From_new_cmds_F77='true'
22124 # FIXME: Should let the user specify the lib program.
22125 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022126 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022127 enable_shared_with_static_runtimes_F77=yes
22128 ;;
22129
22130 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022131 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022132 rhapsody* | darwin1.[012])
22133 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22134 ;;
22135 *) # Darwin 1.3 on
22136 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22137 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22138 else
22139 case ${MACOSX_DEPLOYMENT_TARGET} in
22140 10.[012])
22141 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22142 ;;
22143 10.*)
22144 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22145 ;;
22146 esac
22147 fi
22148 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022149 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022150 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022151 hardcode_direct_F77=no
22152 hardcode_automatic_F77=yes
22153 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022154 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022155 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022156 if test "$GCC" = yes ; then
22157 output_verbose_link_cmd='echo'
22158 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22159 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022160 # 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 +000022161 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}'
22162 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 +000022163 else
Reid Spencera773bd52006-08-04 18:18:08 +000022164 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022165 xlc*)
22166 output_verbose_link_cmd='echo'
22167 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22168 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022169 # 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 +000022170 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}'
22171 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 +000022172 ;;
22173 *)
22174 ld_shlibs_F77=no
22175 ;;
22176 esac
John Criswell47fdd832003-07-14 16:52:07 +000022177 fi
22178 ;;
22179
22180 dgux*)
22181 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22182 hardcode_libdir_flag_spec_F77='-L$libdir'
22183 hardcode_shlibpath_var_F77=no
22184 ;;
22185
22186 freebsd1*)
22187 ld_shlibs_F77=no
22188 ;;
22189
22190 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22191 # support. Future versions do this automatically, but an explicit c++rt0.o
22192 # does not break anything, and helps significantly (at the cost of a little
22193 # extra space).
22194 freebsd2.2*)
22195 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22196 hardcode_libdir_flag_spec_F77='-R$libdir'
22197 hardcode_direct_F77=yes
22198 hardcode_shlibpath_var_F77=no
22199 ;;
22200
22201 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22202 freebsd2*)
22203 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22204 hardcode_direct_F77=yes
22205 hardcode_minus_L_F77=yes
22206 hardcode_shlibpath_var_F77=no
22207 ;;
22208
22209 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022210 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022211 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22212 hardcode_libdir_flag_spec_F77='-R$libdir'
22213 hardcode_direct_F77=yes
22214 hardcode_shlibpath_var_F77=no
22215 ;;
22216
22217 hpux9*)
22218 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022219 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 +000022220 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022221 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 +000022222 fi
22223 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22224 hardcode_libdir_separator_F77=:
22225 hardcode_direct_F77=yes
22226
22227 # hardcode_minus_L: Not really in the search PATH,
22228 # but as the default location of the library.
22229 hardcode_minus_L_F77=yes
22230 export_dynamic_flag_spec_F77='${wl}-E'
22231 ;;
22232
Reid Spencera773bd52006-08-04 18:18:08 +000022233 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022234 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022235 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22236 else
22237 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22238 fi
22239 if test "$with_gnu_ld" = no; then
22240 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22241 hardcode_libdir_separator_F77=:
22242
22243 hardcode_direct_F77=yes
22244 export_dynamic_flag_spec_F77='${wl}-E'
22245
22246 # hardcode_minus_L: Not really in the search PATH,
22247 # but as the default location of the library.
22248 hardcode_minus_L_F77=yes
22249 fi
22250 ;;
22251
22252 hpux11*)
22253 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22254 case $host_cpu in
22255 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022256 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22257 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022258 ia64*)
22259 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22260 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022261 *)
22262 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22263 ;;
22264 esac
22265 else
Reid Spencera773bd52006-08-04 18:18:08 +000022266 case $host_cpu in
22267 hppa*64*)
22268 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22269 ;;
22270 ia64*)
22271 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022272 ;;
22273 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022274 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 +000022275 ;;
22276 esac
22277 fi
22278 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022279 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22280 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022281
Reid Spencera773bd52006-08-04 18:18:08 +000022282 case $host_cpu in
22283 hppa*64*|ia64*)
22284 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22285 hardcode_direct_F77=no
22286 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022287 ;;
22288 *)
John Criswell47fdd832003-07-14 16:52:07 +000022289 hardcode_direct_F77=yes
22290 export_dynamic_flag_spec_F77='${wl}-E'
22291
22292 # hardcode_minus_L: Not really in the search PATH,
22293 # but as the default location of the library.
22294 hardcode_minus_L_F77=yes
22295 ;;
22296 esac
22297 fi
22298 ;;
22299
22300 irix5* | irix6* | nonstopux*)
22301 if test "$GCC" = yes; then
22302 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'
22303 else
22304 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'
22305 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22306 fi
22307 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22308 hardcode_libdir_separator_F77=:
22309 link_all_deplibs_F77=yes
22310 ;;
22311
22312 netbsd*)
22313 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22314 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22315 else
22316 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22317 fi
22318 hardcode_libdir_flag_spec_F77='-R$libdir'
22319 hardcode_direct_F77=yes
22320 hardcode_shlibpath_var_F77=no
22321 ;;
22322
22323 newsos6)
22324 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22325 hardcode_direct_F77=yes
22326 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22327 hardcode_libdir_separator_F77=:
22328 hardcode_shlibpath_var_F77=no
22329 ;;
22330
22331 openbsd*)
22332 hardcode_direct_F77=yes
22333 hardcode_shlibpath_var_F77=no
22334 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22335 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022336 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 +000022337 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22338 export_dynamic_flag_spec_F77='${wl}-E'
22339 else
22340 case $host_os in
22341 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22342 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22343 hardcode_libdir_flag_spec_F77='-R$libdir'
22344 ;;
22345 *)
22346 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22347 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22348 ;;
22349 esac
22350 fi
22351 ;;
22352
22353 os2*)
22354 hardcode_libdir_flag_spec_F77='-L$libdir'
22355 hardcode_minus_L_F77=yes
22356 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022357 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 +000022358 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22359 ;;
22360
22361 osf3*)
22362 if test "$GCC" = yes; then
22363 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22364 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'
22365 else
22366 allow_undefined_flag_F77=' -expect_unresolved \*'
22367 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'
22368 fi
22369 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22370 hardcode_libdir_separator_F77=:
22371 ;;
22372
22373 osf4* | osf5*) # as osf3* with the addition of -msym flag
22374 if test "$GCC" = yes; then
22375 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22376 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'
22377 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22378 else
22379 allow_undefined_flag_F77=' -expect_unresolved \*'
22380 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 +000022381 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 +000022382 $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 +000022383
John Criswell47fdd832003-07-14 16:52:07 +000022384 # Both c and cxx compiler support -rpath directly
22385 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22386 fi
22387 hardcode_libdir_separator_F77=:
22388 ;;
22389
John Criswell47fdd832003-07-14 16:52:07 +000022390 solaris*)
22391 no_undefined_flag_F77=' -z text'
22392 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022393 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022394 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022395 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22396 $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 +000022397 else
Reid Spencera773bd52006-08-04 18:18:08 +000022398 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022399 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022400 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22401 $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 +000022402 fi
22403 hardcode_libdir_flag_spec_F77='-R$libdir'
22404 hardcode_shlibpath_var_F77=no
22405 case $host_os in
22406 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022407 *)
22408 # The compiler driver will combine linker options so we
22409 # cannot just pass the convience library names through
22410 # without $wl, iff we do not link with $LD.
22411 # Luckily, gcc supports the same syntax we need for Sun Studio.
22412 # Supported since Solaris 2.6 (maybe 2.5.1?)
22413 case $wlarc in
22414 '')
22415 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22416 *)
22417 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' ;;
22418 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022419 esac
22420 link_all_deplibs_F77=yes
22421 ;;
22422
22423 sunos4*)
22424 if test "x$host_vendor" = xsequent; then
22425 # Use $CC to link under sequent, because it throws in some extra .o
22426 # files that make .init and .fini sections work.
22427 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22428 else
22429 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22430 fi
22431 hardcode_libdir_flag_spec_F77='-L$libdir'
22432 hardcode_direct_F77=yes
22433 hardcode_minus_L_F77=yes
22434 hardcode_shlibpath_var_F77=no
22435 ;;
22436
22437 sysv4)
22438 case $host_vendor in
22439 sni)
22440 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22441 hardcode_direct_F77=yes # is this really true???
22442 ;;
22443 siemens)
22444 ## LD is ld it makes a PLAMLIB
22445 ## CC just makes a GrossModule.
22446 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22447 reload_cmds_F77='$CC -r -o $output$reload_objs'
22448 hardcode_direct_F77=no
22449 ;;
22450 motorola)
22451 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22452 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22453 ;;
22454 esac
22455 runpath_var='LD_RUN_PATH'
22456 hardcode_shlibpath_var_F77=no
22457 ;;
22458
22459 sysv4.3*)
22460 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22461 hardcode_shlibpath_var_F77=no
22462 export_dynamic_flag_spec_F77='-Bexport'
22463 ;;
22464
22465 sysv4*MP*)
22466 if test -d /usr/nec; then
22467 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22468 hardcode_shlibpath_var_F77=no
22469 runpath_var=LD_RUN_PATH
22470 hardcode_runpath_var=yes
22471 ld_shlibs_F77=yes
22472 fi
22473 ;;
22474
Reid Spencera773bd52006-08-04 18:18:08 +000022475 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22476 no_undefined_flag_F77='${wl}-z,text'
22477 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022478 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022479 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022480
John Criswell47fdd832003-07-14 16:52:07 +000022481 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022482 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22483 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 +000022484 else
Reid Spencera773bd52006-08-04 18:18:08 +000022485 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22486 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 +000022487 fi
John Criswell47fdd832003-07-14 16:52:07 +000022488 ;;
22489
Reid Spencera773bd52006-08-04 18:18:08 +000022490 sysv5* | sco3.2v5* | sco5v6*)
22491 # Note: We can NOT use -z defs as we might desire, because we do not
22492 # link with -lc, and that would cause any symbols used from libc to
22493 # always be unresolved, which means just about no library would
22494 # ever link correctly. If we're not using GNU ld we use -z text
22495 # though, which does catch some bad symbols but isn't as heavy-handed
22496 # as -z defs.
22497 no_undefined_flag_F77='${wl}-z,text'
22498 allow_undefined_flag_F77='${wl}-z,nodefs'
22499 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022500 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022501 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22502 hardcode_libdir_separator_F77=':'
22503 link_all_deplibs_F77=yes
22504 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022505 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022506
22507 if test "$GCC" = yes; then
22508 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22509 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22510 else
22511 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22512 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22513 fi
John Criswell47fdd832003-07-14 16:52:07 +000022514 ;;
22515
22516 uts4*)
22517 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22518 hardcode_libdir_flag_spec_F77='-L$libdir'
22519 hardcode_shlibpath_var_F77=no
22520 ;;
22521
22522 *)
22523 ld_shlibs_F77=no
22524 ;;
22525 esac
22526 fi
22527
Reid Spencera773bd52006-08-04 18:18:08 +000022528{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22529echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022530test "$ld_shlibs_F77" = no && can_build_shared=no
22531
John Criswell47fdd832003-07-14 16:52:07 +000022532#
22533# Do we need to explicitly link libc?
22534#
22535case "x$archive_cmds_need_lc_F77" in
22536x|xyes)
22537 # Assume -lc should be added
22538 archive_cmds_need_lc_F77=yes
22539
22540 if test "$enable_shared" = yes && test "$GCC" = yes; then
22541 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022542 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022543 # FIXME: we may have to deal with multi-command sequences.
22544 ;;
22545 '$CC '*)
22546 # Test whether the compiler implicitly links with -lc since on some
22547 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22548 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022549 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22550echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022551 $rm conftest*
22552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22553
22554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22555 (eval $ac_compile) 2>&5
22556 ac_status=$?
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); } 2>conftest.err; then
22559 soname=conftest
22560 lib=conftest
22561 libobjs=conftest.$ac_objext
22562 deplibs=
22563 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022564 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022565 compiler_flags=-v
22566 linker_flags=-v
22567 verstring=
22568 output_objdir=.
22569 libname=conftest
22570 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22571 allow_undefined_flag_F77=
22572 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22573 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22574 ac_status=$?
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); }
22577 then
22578 archive_cmds_need_lc_F77=no
22579 else
22580 archive_cmds_need_lc_F77=yes
22581 fi
22582 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22583 else
22584 cat conftest.err 1>&5
22585 fi
22586 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022587 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22588echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022589 ;;
22590 esac
22591 fi
22592 ;;
22593esac
22594
Reid Spencera773bd52006-08-04 18:18:08 +000022595{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22596echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022597library_names_spec=
22598libname_spec='lib$name'
22599soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022600shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022601postinstall_cmds=
22602postuninstall_cmds=
22603finish_cmds=
22604finish_eval=
22605shlibpath_var=
22606shlibpath_overrides_runpath=unknown
22607version_type=none
22608dynamic_linker="$host_os ld.so"
22609sys_lib_dlsearch_path_spec="/lib /usr/lib"
22610if test "$GCC" = yes; then
22611 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22612 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22613 # if the path contains ";" then we assume it to be the separator
22614 # otherwise default to the standard path separator (i.e. ":") - it is
22615 # assumed that no part of a normal pathname contains ";" but that should
22616 # okay in the real world where ";" in dirpaths is itself problematic.
22617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22618 else
22619 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22620 fi
22621else
22622 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22623fi
22624need_lib_prefix=unknown
22625hardcode_into_libs=no
22626
22627# when you set need_version to no, make sure it does not cause -set_version
22628# flags to be left without arguments
22629need_version=unknown
22630
22631case $host_os in
22632aix3*)
22633 version_type=linux
22634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22635 shlibpath_var=LIBPATH
22636
22637 # AIX 3 has no versioning support, so we append a major version to the name.
22638 soname_spec='${libname}${release}${shared_ext}$major'
22639 ;;
22640
22641aix4* | aix5*)
22642 version_type=linux
22643 need_lib_prefix=no
22644 need_version=no
22645 hardcode_into_libs=yes
22646 if test "$host_cpu" = ia64; then
22647 # AIX 5 supports IA64
22648 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22649 shlibpath_var=LD_LIBRARY_PATH
22650 else
22651 # With GCC up to 2.95.x, collect2 would create an import file
22652 # for dependence libraries. The import file would start with
22653 # the line `#! .'. This would cause the generated library to
22654 # depend on `.', always an invalid library. This was fixed in
22655 # development snapshots of GCC prior to 3.0.
22656 case $host_os in
22657 aix4 | aix4.[01] | aix4.[01].*)
22658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22659 echo ' yes '
22660 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22661 :
22662 else
22663 can_build_shared=no
22664 fi
22665 ;;
22666 esac
22667 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22668 # soname into executable. Probably we can add versioning support to
22669 # collect2, so additional links can be useful in future.
22670 if test "$aix_use_runtimelinking" = yes; then
22671 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22672 # instead of lib<name>.a to let people know that these are not
22673 # typical AIX shared libraries.
22674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22675 else
22676 # We preserve .a as extension for shared libraries through AIX4.2
22677 # and later when we are not doing run time linking.
22678 library_names_spec='${libname}${release}.a $libname.a'
22679 soname_spec='${libname}${release}${shared_ext}$major'
22680 fi
22681 shlibpath_var=LIBPATH
22682 fi
22683 ;;
22684
22685amigaos*)
22686 library_names_spec='$libname.ixlibrary $libname.a'
22687 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022688 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 +000022689 ;;
22690
22691beos*)
22692 library_names_spec='${libname}${shared_ext}'
22693 dynamic_linker="$host_os ld.so"
22694 shlibpath_var=LIBRARY_PATH
22695 ;;
22696
Reid Spencer2706f8c2004-09-19 23:53:36 +000022697bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022698 version_type=linux
22699 need_version=no
22700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22701 soname_spec='${libname}${release}${shared_ext}$major'
22702 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22703 shlibpath_var=LD_LIBRARY_PATH
22704 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22705 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22706 # the default ld.so.conf also contains /usr/contrib/lib and
22707 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22708 # libtool to hard-code these into programs
22709 ;;
22710
22711cygwin* | mingw* | pw32*)
22712 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022713 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022714 need_version=no
22715 need_lib_prefix=no
22716
22717 case $GCC,$host_os in
22718 yes,cygwin* | yes,mingw* | yes,pw32*)
22719 library_names_spec='$libname.dll.a'
22720 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022721 postinstall_cmds='base_file=`basename \${file}`~
22722 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22723 dldir=$destdir/`dirname \$dlpath`~
22724 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022725 $install_prog $dir/$dlname \$dldir/$dlname~
22726 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022727 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22728 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022729 $rm \$dlpath'
22730 shlibpath_overrides_runpath=yes
22731
22732 case $host_os in
22733 cygwin*)
22734 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22735 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 +000022736 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022737 ;;
22738 mingw*)
22739 # MinGW DLLs use traditional 'lib' prefix
22740 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22741 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22742 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22743 # It is most probably a Windows format PATH printed by
22744 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22745 # path with ; separators, and with drive letters. We can handle the
22746 # drive letters (cygwin fileutils understands them), so leave them,
22747 # especially as we might pass files found there to a mingw objdump,
22748 # which wouldn't understand a cygwinified path. Ahh.
22749 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22750 else
22751 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22752 fi
22753 ;;
22754 pw32*)
22755 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022756 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 +000022757 ;;
22758 esac
22759 ;;
22760
22761 *)
22762 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22763 ;;
22764 esac
22765 dynamic_linker='Win32 ld.exe'
22766 # FIXME: first we should search . and the directory the executable is in
22767 shlibpath_var=PATH
22768 ;;
22769
22770darwin* | rhapsody*)
22771 dynamic_linker="$host_os dyld"
22772 version_type=darwin
22773 need_lib_prefix=no
22774 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022775 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022776 soname_spec='${libname}${release}${major}$shared_ext'
22777 shlibpath_overrides_runpath=yes
22778 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022779 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022780 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022781 if test "$GCC" = yes; then
22782 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"`
22783 else
22784 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022785 fi
22786 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22787 ;;
22788
22789dgux*)
22790 version_type=linux
22791 need_lib_prefix=no
22792 need_version=no
22793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22794 soname_spec='${libname}${release}${shared_ext}$major'
22795 shlibpath_var=LD_LIBRARY_PATH
22796 ;;
22797
22798freebsd1*)
22799 dynamic_linker=no
22800 ;;
22801
Reid Spencer2706f8c2004-09-19 23:53:36 +000022802kfreebsd*-gnu)
22803 version_type=linux
22804 need_lib_prefix=no
22805 need_version=no
22806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22807 soname_spec='${libname}${release}${shared_ext}$major'
22808 shlibpath_var=LD_LIBRARY_PATH
22809 shlibpath_overrides_runpath=no
22810 hardcode_into_libs=yes
22811 dynamic_linker='GNU ld.so'
22812 ;;
22813
Reid Spencera773bd52006-08-04 18:18:08 +000022814freebsd* | dragonfly*)
22815 # DragonFly does not have aout. When/if they implement a new
22816 # versioning mechanism, adjust this.
22817 if test -x /usr/bin/objformat; then
22818 objformat=`/usr/bin/objformat`
22819 else
22820 case $host_os in
22821 freebsd[123]*) objformat=aout ;;
22822 *) objformat=elf ;;
22823 esac
22824 fi
John Criswell47fdd832003-07-14 16:52:07 +000022825 version_type=freebsd-$objformat
22826 case $version_type in
22827 freebsd-elf*)
22828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22829 need_version=no
22830 need_lib_prefix=no
22831 ;;
22832 freebsd-*)
22833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22834 need_version=yes
22835 ;;
22836 esac
22837 shlibpath_var=LD_LIBRARY_PATH
22838 case $host_os in
22839 freebsd2*)
22840 shlibpath_overrides_runpath=yes
22841 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022842 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022843 shlibpath_overrides_runpath=yes
22844 hardcode_into_libs=yes
22845 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022846 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22847 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022848 shlibpath_overrides_runpath=no
22849 hardcode_into_libs=yes
22850 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022851 freebsd*) # from 4.6 on
22852 shlibpath_overrides_runpath=yes
22853 hardcode_into_libs=yes
22854 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022855 esac
22856 ;;
22857
22858gnu*)
22859 version_type=linux
22860 need_lib_prefix=no
22861 need_version=no
22862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22863 soname_spec='${libname}${release}${shared_ext}$major'
22864 shlibpath_var=LD_LIBRARY_PATH
22865 hardcode_into_libs=yes
22866 ;;
22867
22868hpux9* | hpux10* | hpux11*)
22869 # Give a soname corresponding to the major version so that dld.sl refuses to
22870 # link against other versions.
22871 version_type=sunos
22872 need_lib_prefix=no
22873 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022874 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022875 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022876 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022877 hardcode_into_libs=yes
22878 dynamic_linker="$host_os dld.so"
22879 shlibpath_var=LD_LIBRARY_PATH
22880 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22882 soname_spec='${libname}${release}${shared_ext}$major'
22883 if test "X$HPUX_IA64_MODE" = X32; then
22884 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22885 else
22886 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22887 fi
22888 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22889 ;;
22890 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022891 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022892 hardcode_into_libs=yes
22893 dynamic_linker="$host_os dld.sl"
22894 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22895 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22897 soname_spec='${libname}${release}${shared_ext}$major'
22898 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22900 ;;
22901 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022902 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022903 dynamic_linker="$host_os dld.sl"
22904 shlibpath_var=SHLIB_PATH
22905 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22907 soname_spec='${libname}${release}${shared_ext}$major'
22908 ;;
22909 esac
22910 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22911 postinstall_cmds='chmod 555 $lib'
22912 ;;
22913
Reid Spencera773bd52006-08-04 18:18:08 +000022914interix3*)
22915 version_type=linux
22916 need_lib_prefix=no
22917 need_version=no
22918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22919 soname_spec='${libname}${release}${shared_ext}$major'
22920 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22921 shlibpath_var=LD_LIBRARY_PATH
22922 shlibpath_overrides_runpath=no
22923 hardcode_into_libs=yes
22924 ;;
22925
John Criswell47fdd832003-07-14 16:52:07 +000022926irix5* | irix6* | nonstopux*)
22927 case $host_os in
22928 nonstopux*) version_type=nonstopux ;;
22929 *)
22930 if test "$lt_cv_prog_gnu_ld" = yes; then
22931 version_type=linux
22932 else
22933 version_type=irix
22934 fi ;;
22935 esac
22936 need_lib_prefix=no
22937 need_version=no
22938 soname_spec='${libname}${release}${shared_ext}$major'
22939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22940 case $host_os in
22941 irix5* | nonstopux*)
22942 libsuff= shlibsuff=
22943 ;;
22944 *)
22945 case $LD in # libtool.m4 will add one of these switches to LD
22946 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22947 libsuff= shlibsuff= libmagic=32-bit;;
22948 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22949 libsuff=32 shlibsuff=N32 libmagic=N32;;
22950 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22951 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22952 *) libsuff= shlibsuff= libmagic=never-match;;
22953 esac
22954 ;;
22955 esac
22956 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22957 shlibpath_overrides_runpath=no
22958 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22959 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22960 hardcode_into_libs=yes
22961 ;;
22962
22963# No shared lib support for Linux oldld, aout, or coff.
22964linux*oldld* | linux*aout* | linux*coff*)
22965 dynamic_linker=no
22966 ;;
22967
22968# This must be Linux ELF.
22969linux*)
22970 version_type=linux
22971 need_lib_prefix=no
22972 need_version=no
22973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22974 soname_spec='${libname}${release}${shared_ext}$major'
22975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22976 shlibpath_var=LD_LIBRARY_PATH
22977 shlibpath_overrides_runpath=no
22978 # This implies no fast_install, which is unacceptable.
22979 # Some rework will be needed to allow for fast_install
22980 # before this can be enabled.
22981 hardcode_into_libs=yes
22982
Reid Spencer2706f8c2004-09-19 23:53:36 +000022983 # Append ld.so.conf contents to the search path
22984 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022985 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 +000022986 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22987 fi
22988
John Criswell47fdd832003-07-14 16:52:07 +000022989 # We used to test for /lib/ld.so.1 and disable shared libraries on
22990 # powerpc, because MkLinux only supported shared libraries with the
22991 # GNU dynamic linker. Since this was broken with cross compilers,
22992 # most powerpc-linux boxes support dynamic linking these days and
22993 # people can always --disable-shared, the test was removed, and we
22994 # assume the GNU/Linux dynamic linker is in use.
22995 dynamic_linker='GNU/Linux ld.so'
22996 ;;
22997
Reid Spencer2706f8c2004-09-19 23:53:36 +000022998knetbsd*-gnu)
22999 version_type=linux
23000 need_lib_prefix=no
23001 need_version=no
23002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23003 soname_spec='${libname}${release}${shared_ext}$major'
23004 shlibpath_var=LD_LIBRARY_PATH
23005 shlibpath_overrides_runpath=no
23006 hardcode_into_libs=yes
23007 dynamic_linker='GNU ld.so'
23008 ;;
23009
John Criswell47fdd832003-07-14 16:52:07 +000023010netbsd*)
23011 version_type=sunos
23012 need_lib_prefix=no
23013 need_version=no
23014 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23017 dynamic_linker='NetBSD (a.out) ld.so'
23018 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023020 soname_spec='${libname}${release}${shared_ext}$major'
23021 dynamic_linker='NetBSD ld.elf_so'
23022 fi
23023 shlibpath_var=LD_LIBRARY_PATH
23024 shlibpath_overrides_runpath=yes
23025 hardcode_into_libs=yes
23026 ;;
23027
23028newsos6)
23029 version_type=linux
23030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23031 shlibpath_var=LD_LIBRARY_PATH
23032 shlibpath_overrides_runpath=yes
23033 ;;
23034
Reid Spencer2706f8c2004-09-19 23:53:36 +000023035nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023036 version_type=linux
23037 need_lib_prefix=no
23038 need_version=no
23039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040 soname_spec='${libname}${release}${shared_ext}$major'
23041 shlibpath_var=LD_LIBRARY_PATH
23042 shlibpath_overrides_runpath=yes
23043 ;;
23044
23045openbsd*)
23046 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023047 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023048 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023049 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23050 case $host_os in
23051 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23052 *) need_version=no ;;
23053 esac
John Criswell47fdd832003-07-14 16:52:07 +000023054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23056 shlibpath_var=LD_LIBRARY_PATH
23057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23058 case $host_os in
23059 openbsd2.[89] | openbsd2.[89].*)
23060 shlibpath_overrides_runpath=no
23061 ;;
23062 *)
23063 shlibpath_overrides_runpath=yes
23064 ;;
23065 esac
23066 else
23067 shlibpath_overrides_runpath=yes
23068 fi
23069 ;;
23070
23071os2*)
23072 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023073 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023074 need_lib_prefix=no
23075 library_names_spec='$libname${shared_ext} $libname.a'
23076 dynamic_linker='OS/2 ld.exe'
23077 shlibpath_var=LIBPATH
23078 ;;
23079
23080osf3* | osf4* | osf5*)
23081 version_type=osf
23082 need_lib_prefix=no
23083 need_version=no
23084 soname_spec='${libname}${release}${shared_ext}$major'
23085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23086 shlibpath_var=LD_LIBRARY_PATH
23087 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23088 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23089 ;;
23090
John Criswell47fdd832003-07-14 16:52:07 +000023091solaris*)
23092 version_type=linux
23093 need_lib_prefix=no
23094 need_version=no
23095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23096 soname_spec='${libname}${release}${shared_ext}$major'
23097 shlibpath_var=LD_LIBRARY_PATH
23098 shlibpath_overrides_runpath=yes
23099 hardcode_into_libs=yes
23100 # ldd complains unless libraries are executable
23101 postinstall_cmds='chmod +x $lib'
23102 ;;
23103
23104sunos4*)
23105 version_type=sunos
23106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23107 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23108 shlibpath_var=LD_LIBRARY_PATH
23109 shlibpath_overrides_runpath=yes
23110 if test "$with_gnu_ld" = yes; then
23111 need_lib_prefix=no
23112 fi
23113 need_version=yes
23114 ;;
23115
Reid Spencera773bd52006-08-04 18:18:08 +000023116sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023117 version_type=linux
23118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23119 soname_spec='${libname}${release}${shared_ext}$major'
23120 shlibpath_var=LD_LIBRARY_PATH
23121 case $host_vendor in
23122 sni)
23123 shlibpath_overrides_runpath=no
23124 need_lib_prefix=no
23125 export_dynamic_flag_spec='${wl}-Blargedynsym'
23126 runpath_var=LD_RUN_PATH
23127 ;;
23128 siemens)
23129 need_lib_prefix=no
23130 ;;
23131 motorola)
23132 need_lib_prefix=no
23133 need_version=no
23134 shlibpath_overrides_runpath=no
23135 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23136 ;;
23137 esac
23138 ;;
23139
23140sysv4*MP*)
23141 if test -d /usr/nec ;then
23142 version_type=linux
23143 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23144 soname_spec='$libname${shared_ext}.$major'
23145 shlibpath_var=LD_LIBRARY_PATH
23146 fi
23147 ;;
23148
Reid Spencera773bd52006-08-04 18:18:08 +000023149sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23150 version_type=freebsd-elf
23151 need_lib_prefix=no
23152 need_version=no
23153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23154 soname_spec='${libname}${release}${shared_ext}$major'
23155 shlibpath_var=LD_LIBRARY_PATH
23156 hardcode_into_libs=yes
23157 if test "$with_gnu_ld" = yes; then
23158 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23159 shlibpath_overrides_runpath=no
23160 else
23161 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23162 shlibpath_overrides_runpath=yes
23163 case $host_os in
23164 sco3.2v5*)
23165 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23166 ;;
23167 esac
23168 fi
23169 sys_lib_dlsearch_path_spec='/usr/lib'
23170 ;;
23171
John Criswell47fdd832003-07-14 16:52:07 +000023172uts4*)
23173 version_type=linux
23174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23175 soname_spec='${libname}${release}${shared_ext}$major'
23176 shlibpath_var=LD_LIBRARY_PATH
23177 ;;
23178
23179*)
23180 dynamic_linker=no
23181 ;;
23182esac
Reid Spencera773bd52006-08-04 18:18:08 +000023183{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23184echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023185test "$dynamic_linker" = no && can_build_shared=no
23186
Reid Spencera773bd52006-08-04 18:18:08 +000023187variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23188if test "$GCC" = yes; then
23189 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23190fi
23191
23192{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23193echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023194hardcode_action_F77=
23195if test -n "$hardcode_libdir_flag_spec_F77" || \
23196 test -n "$runpath_var_F77" || \
23197 test "X$hardcode_automatic_F77" = "Xyes" ; then
23198
23199 # We can hardcode non-existant directories.
23200 if test "$hardcode_direct_F77" != no &&
23201 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23202 # have to relink, otherwise we might link with an installed library
23203 # when we should be linking with a yet-to-be-installed one
23204 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23205 test "$hardcode_minus_L_F77" != no; then
23206 # Linking always hardcodes the temporary library directory.
23207 hardcode_action_F77=relink
23208 else
23209 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23210 hardcode_action_F77=immediate
23211 fi
23212else
23213 # We cannot hardcode anything, or else we can only hardcode existing
23214 # directories.
23215 hardcode_action_F77=unsupported
23216fi
Reid Spencera773bd52006-08-04 18:18:08 +000023217{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23218echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023219
23220if test "$hardcode_action_F77" = relink; then
23221 # Fast installation is not supported
23222 enable_fast_install=no
23223elif test "$shlibpath_overrides_runpath" = yes ||
23224 test "$enable_shared" = no; then
23225 # Fast installation is not necessary
23226 enable_fast_install=needless
23227fi
23228
John Criswell47fdd832003-07-14 16:52:07 +000023229
23230# The else clause should only fire when bootstrapping the
23231# libtool distribution, otherwise you forgot to ship ltmain.sh
23232# with your package, and you will get complaints that there are
23233# no rules to generate ltmain.sh.
23234if test -f "$ltmain"; then
23235 # See if we are running on zsh, and set the options which allow our commands through
23236 # without removal of \ escapes.
23237 if test -n "${ZSH_VERSION+set}" ; then
23238 setopt NO_GLOB_SUBST
23239 fi
23240 # Now quote all the things that may contain metacharacters while being
23241 # careful not to overquote the AC_SUBSTed values. We take copies of the
23242 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023243 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 +000023244 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023245 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23246 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23247 deplibs_check_method reload_flag reload_cmds need_locks \
23248 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23249 lt_cv_sys_global_symbol_to_c_name_address \
23250 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23251 old_postinstall_cmds old_postuninstall_cmds \
23252 compiler_F77 \
23253 CC_F77 \
23254 LD_F77 \
23255 lt_prog_compiler_wl_F77 \
23256 lt_prog_compiler_pic_F77 \
23257 lt_prog_compiler_static_F77 \
23258 lt_prog_compiler_no_builtin_flag_F77 \
23259 export_dynamic_flag_spec_F77 \
23260 thread_safe_flag_spec_F77 \
23261 whole_archive_flag_spec_F77 \
23262 enable_shared_with_static_runtimes_F77 \
23263 old_archive_cmds_F77 \
23264 old_archive_from_new_cmds_F77 \
23265 predep_objects_F77 \
23266 postdep_objects_F77 \
23267 predeps_F77 \
23268 postdeps_F77 \
23269 compiler_lib_search_path_F77 \
23270 archive_cmds_F77 \
23271 archive_expsym_cmds_F77 \
23272 postinstall_cmds_F77 \
23273 postuninstall_cmds_F77 \
23274 old_archive_from_expsyms_cmds_F77 \
23275 allow_undefined_flag_F77 \
23276 no_undefined_flag_F77 \
23277 export_symbols_cmds_F77 \
23278 hardcode_libdir_flag_spec_F77 \
23279 hardcode_libdir_flag_spec_ld_F77 \
23280 hardcode_libdir_separator_F77 \
23281 hardcode_automatic_F77 \
23282 module_cmds_F77 \
23283 module_expsym_cmds_F77 \
23284 lt_cv_prog_compiler_c_o_F77 \
23285 exclude_expsyms_F77 \
23286 include_expsyms_F77; do
23287
23288 case $var in
23289 old_archive_cmds_F77 | \
23290 old_archive_from_new_cmds_F77 | \
23291 archive_cmds_F77 | \
23292 archive_expsym_cmds_F77 | \
23293 module_cmds_F77 | \
23294 module_expsym_cmds_F77 | \
23295 old_archive_from_expsyms_cmds_F77 | \
23296 export_symbols_cmds_F77 | \
23297 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23298 postinstall_cmds | postuninstall_cmds | \
23299 old_postinstall_cmds | old_postuninstall_cmds | \
23300 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23301 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023302 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 +000023303 ;;
23304 *)
23305 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23306 ;;
23307 esac
23308 done
23309
23310 case $lt_echo in
23311 *'\$0 --fallback-echo"')
23312 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23313 ;;
23314 esac
23315
23316cfgfile="$ofile"
23317
23318 cat <<__EOF__ >> "$cfgfile"
23319# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23320
23321# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23322
23323# Shell to use when invoking shell scripts.
23324SHELL=$lt_SHELL
23325
23326# Whether or not to build shared libraries.
23327build_libtool_libs=$enable_shared
23328
23329# Whether or not to build static libraries.
23330build_old_libs=$enable_static
23331
23332# Whether or not to add -lc for building shared libraries.
23333build_libtool_need_lc=$archive_cmds_need_lc_F77
23334
23335# Whether or not to disallow shared libs when runtime libs are static
23336allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23337
23338# Whether or not to optimize for fast installation.
23339fast_install=$enable_fast_install
23340
23341# The host system.
23342host_alias=$host_alias
23343host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023344host_os=$host_os
23345
23346# The build system.
23347build_alias=$build_alias
23348build=$build
23349build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023350
23351# An echo program that does not interpret backslashes.
23352echo=$lt_echo
23353
23354# The archiver.
23355AR=$lt_AR
23356AR_FLAGS=$lt_AR_FLAGS
23357
23358# A C compiler.
23359LTCC=$lt_LTCC
23360
Reid Spencera773bd52006-08-04 18:18:08 +000023361# LTCC compiler flags.
23362LTCFLAGS=$lt_LTCFLAGS
23363
John Criswell47fdd832003-07-14 16:52:07 +000023364# A language-specific compiler.
23365CC=$lt_compiler_F77
23366
23367# Is the compiler the GNU C compiler?
23368with_gcc=$GCC_F77
23369
23370# An ERE matcher.
23371EGREP=$lt_EGREP
23372
23373# The linker used to build libraries.
23374LD=$lt_LD_F77
23375
23376# Whether we need hard or soft links.
23377LN_S=$lt_LN_S
23378
23379# A BSD-compatible nm program.
23380NM=$lt_NM
23381
23382# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023383STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023384
23385# Used to examine libraries when file_magic_cmd begins "file"
23386MAGIC_CMD=$MAGIC_CMD
23387
23388# Used on cygwin: DLL creation program.
23389DLLTOOL="$DLLTOOL"
23390
23391# Used on cygwin: object dumper.
23392OBJDUMP="$OBJDUMP"
23393
23394# Used on cygwin: assembler.
23395AS="$AS"
23396
23397# The name of the directory that contains temporary libtool files.
23398objdir=$objdir
23399
23400# How to create reloadable object files.
23401reload_flag=$lt_reload_flag
23402reload_cmds=$lt_reload_cmds
23403
23404# How to pass a linker flag through the compiler.
23405wl=$lt_lt_prog_compiler_wl_F77
23406
23407# Object file suffix (normally "o").
23408objext="$ac_objext"
23409
23410# Old archive suffix (normally "a").
23411libext="$libext"
23412
23413# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023414shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023415
23416# Executable file suffix (normally "").
23417exeext="$exeext"
23418
23419# Additional compiler flags for building library objects.
23420pic_flag=$lt_lt_prog_compiler_pic_F77
23421pic_mode=$pic_mode
23422
23423# What is the maximum length of a command?
23424max_cmd_len=$lt_cv_sys_max_cmd_len
23425
23426# Does compiler simultaneously support -c and -o options?
23427compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23428
Reid Spencera773bd52006-08-04 18:18:08 +000023429# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023430need_locks=$lt_need_locks
23431
23432# Do we need the lib prefix for modules?
23433need_lib_prefix=$need_lib_prefix
23434
23435# Do we need a version for libraries?
23436need_version=$need_version
23437
23438# Whether dlopen is supported.
23439dlopen_support=$enable_dlopen
23440
23441# Whether dlopen of programs is supported.
23442dlopen_self=$enable_dlopen_self
23443
23444# Whether dlopen of statically linked programs is supported.
23445dlopen_self_static=$enable_dlopen_self_static
23446
23447# Compiler flag to prevent dynamic linking.
23448link_static_flag=$lt_lt_prog_compiler_static_F77
23449
23450# Compiler flag to turn off builtin functions.
23451no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23452
23453# Compiler flag to allow reflexive dlopens.
23454export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23455
23456# Compiler flag to generate shared objects directly from archives.
23457whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23458
23459# Compiler flag to generate thread-safe objects.
23460thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23461
23462# Library versioning type.
23463version_type=$version_type
23464
23465# Format of library name prefix.
23466libname_spec=$lt_libname_spec
23467
23468# List of archive names. First name is the real one, the rest are links.
23469# The last name is the one that the linker finds with -lNAME.
23470library_names_spec=$lt_library_names_spec
23471
23472# The coded name of the library, if different from the real name.
23473soname_spec=$lt_soname_spec
23474
23475# Commands used to build and install an old-style archive.
23476RANLIB=$lt_RANLIB
23477old_archive_cmds=$lt_old_archive_cmds_F77
23478old_postinstall_cmds=$lt_old_postinstall_cmds
23479old_postuninstall_cmds=$lt_old_postuninstall_cmds
23480
23481# Create an old-style archive from a shared archive.
23482old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23483
23484# Create a temporary old-style archive to link instead of a shared archive.
23485old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23486
23487# Commands used to build and install a shared archive.
23488archive_cmds=$lt_archive_cmds_F77
23489archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23490postinstall_cmds=$lt_postinstall_cmds
23491postuninstall_cmds=$lt_postuninstall_cmds
23492
23493# Commands used to build a loadable module (assumed same as above if empty)
23494module_cmds=$lt_module_cmds_F77
23495module_expsym_cmds=$lt_module_expsym_cmds_F77
23496
23497# Commands to strip libraries.
23498old_striplib=$lt_old_striplib
23499striplib=$lt_striplib
23500
23501# Dependencies to place before the objects being linked to create a
23502# shared library.
23503predep_objects=$lt_predep_objects_F77
23504
23505# Dependencies to place after the objects being linked to create a
23506# shared library.
23507postdep_objects=$lt_postdep_objects_F77
23508
23509# Dependencies to place before the objects being linked to create a
23510# shared library.
23511predeps=$lt_predeps_F77
23512
23513# Dependencies to place after the objects being linked to create a
23514# shared library.
23515postdeps=$lt_postdeps_F77
23516
23517# The library search path used internally by the compiler when linking
23518# a shared library.
23519compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23520
23521# Method to check whether dependent libraries are shared objects.
23522deplibs_check_method=$lt_deplibs_check_method
23523
23524# Command to use when deplibs_check_method == file_magic.
23525file_magic_cmd=$lt_file_magic_cmd
23526
23527# Flag that allows shared libraries with undefined symbols to be built.
23528allow_undefined_flag=$lt_allow_undefined_flag_F77
23529
23530# Flag that forces no undefined symbols.
23531no_undefined_flag=$lt_no_undefined_flag_F77
23532
23533# Commands used to finish a libtool library installation in a directory.
23534finish_cmds=$lt_finish_cmds
23535
23536# Same as above, but a single script fragment to be evaled but not shown.
23537finish_eval=$lt_finish_eval
23538
23539# Take the output of nm and produce a listing of raw symbols and C names.
23540global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23541
23542# Transform the output of nm in a proper C declaration
23543global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23544
23545# Transform the output of nm in a C name address pair
23546global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23547
23548# This is the shared library runtime path variable.
23549runpath_var=$runpath_var
23550
23551# This is the shared library path variable.
23552shlibpath_var=$shlibpath_var
23553
23554# Is shlibpath searched before the hard-coded library search path?
23555shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23556
23557# How to hardcode a shared library path into an executable.
23558hardcode_action=$hardcode_action_F77
23559
23560# Whether we should hardcode library paths into libraries.
23561hardcode_into_libs=$hardcode_into_libs
23562
23563# Flag to hardcode \$libdir into a binary during linking.
23564# This must work even if \$libdir does not exist.
23565hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23566
23567# If ld is used when linking, flag to hardcode \$libdir into
23568# a binary during linking. This must work even if \$libdir does
23569# not exist.
23570hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23571
23572# Whether we need a single -rpath flag with a separated argument.
23573hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23574
23575# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23576# resulting binary.
23577hardcode_direct=$hardcode_direct_F77
23578
23579# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23580# resulting binary.
23581hardcode_minus_L=$hardcode_minus_L_F77
23582
23583# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23584# the resulting binary.
23585hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23586
23587# Set to yes if building a shared library automatically hardcodes DIR into the library
23588# and all subsequent libraries and executables linked against it.
23589hardcode_automatic=$hardcode_automatic_F77
23590
23591# Variables whose values should be saved in libtool wrapper scripts and
23592# restored at relink time.
23593variables_saved_for_relink="$variables_saved_for_relink"
23594
23595# Whether libtool must link a program against all its dependency libraries.
23596link_all_deplibs=$link_all_deplibs_F77
23597
23598# Compile-time system search path for libraries
23599sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23600
23601# Run-time system search path for libraries
23602sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23603
23604# Fix the shell variable \$srcfile for the compiler.
23605fix_srcfile_path="$fix_srcfile_path_F77"
23606
23607# Set to yes if exported symbols are required.
23608always_export_symbols=$always_export_symbols_F77
23609
23610# The commands to list exported symbols.
23611export_symbols_cmds=$lt_export_symbols_cmds_F77
23612
23613# The commands to extract the exported symbol list from a shared archive.
23614extract_expsyms_cmds=$lt_extract_expsyms_cmds
23615
23616# Symbols that should not be listed in the preloaded symbols.
23617exclude_expsyms=$lt_exclude_expsyms_F77
23618
23619# Symbols that must always be exported.
23620include_expsyms=$lt_include_expsyms_F77
23621
23622# ### END LIBTOOL TAG CONFIG: $tagname
23623
23624__EOF__
23625
23626
23627else
23628 # If there is no Makefile yet, we rely on a make rule to execute
23629 # `config.status --recheck' to rerun these tests and create the
23630 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023631 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23632 if test -f "$ltmain_in"; then
23633 test -f Makefile && make "$ltmain"
23634 fi
John Criswell47fdd832003-07-14 16:52:07 +000023635fi
23636
23637
23638ac_ext=c
23639ac_cpp='$CPP $CPPFLAGS'
23640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23642ac_compiler_gnu=$ac_cv_c_compiler_gnu
23643
23644CC="$lt_save_CC"
23645
23646 else
23647 tagname=""
23648 fi
23649 ;;
23650
23651 GCJ)
23652 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023653 ac_ext=c
23654ac_cpp='$CPP $CPPFLAGS'
23655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23657ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023658
23659
23660# Source file extension for Java test sources.
23661ac_ext=java
23662
23663# Object file extension for compiled Java test sources.
23664objext=o
23665objext_GCJ=$objext
23666
23667# Code to be used in simple compile tests
23668lt_simple_compile_test_code="class foo {}\n"
23669
23670# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023671lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023672
23673# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23674
23675# If no C compiler was specified, use CC.
23676LTCC=${LTCC-"$CC"}
23677
Reid Spencera773bd52006-08-04 18:18:08 +000023678# If no C compiler flags were specified, use CFLAGS.
23679LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23680
John Criswell47fdd832003-07-14 16:52:07 +000023681# Allow CC to be a program name with arguments.
23682compiler=$CC
23683
23684
Reid Spencera773bd52006-08-04 18:18:08 +000023685# save warnings/boilerplate of simple test code
23686ac_outfile=conftest.$ac_objext
23687printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23688eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23689_lt_compiler_boilerplate=`cat conftest.err`
23690$rm conftest*
23691
23692ac_outfile=conftest.$ac_objext
23693printf "$lt_simple_link_test_code" >conftest.$ac_ext
23694eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23695_lt_linker_boilerplate=`cat conftest.err`
23696$rm conftest*
23697
23698
John Criswell47fdd832003-07-14 16:52:07 +000023699# Allow CC to be a program name with arguments.
23700lt_save_CC="$CC"
23701CC=${GCJ-"gcj"}
23702compiler=$CC
23703compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023704for cc_temp in $compiler""; do
23705 case $cc_temp in
23706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23708 \-*) ;;
23709 *) break;;
23710 esac
23711done
23712cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23713
John Criswell47fdd832003-07-14 16:52:07 +000023714
23715# GCJ did not exist at the time GCC didn't implicitly link libc in.
23716archive_cmds_need_lc_GCJ=no
23717
Reid Spencera773bd52006-08-04 18:18:08 +000023718old_archive_cmds_GCJ=$old_archive_cmds
23719
John Criswell47fdd832003-07-14 16:52:07 +000023720
23721lt_prog_compiler_no_builtin_flag_GCJ=
23722
23723if test "$GCC" = yes; then
23724 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23725
Reid Spencer2706f8c2004-09-19 23:53:36 +000023726
Reid Spencera773bd52006-08-04 18:18:08 +000023727{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23728echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023729if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23731else
23732 lt_cv_prog_compiler_rtti_exceptions=no
23733 ac_outfile=conftest.$ac_objext
23734 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23735 lt_compiler_flag="-fno-rtti -fno-exceptions"
23736 # Insert the option either (1) after the last *FLAGS variable, or
23737 # (2) before a word containing "conftest.", or (3) at the end.
23738 # Note that $ac_compile itself does not contain backslashes and begins
23739 # with a dollar sign (not a hyphen), so the echo should work correctly.
23740 # The option is referenced via a variable to avoid confusing sed.
23741 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023742 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23744 -e 's:$: $lt_compiler_flag:'`
Owen Andersona8603702009-05-19 22:18:56 +000023745 (eval echo "\"\$as_me:23745: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023746 (eval "$lt_compile" 2>conftest.err)
23747 ac_status=$?
23748 cat conftest.err >&5
Owen Andersona8603702009-05-19 22:18:56 +000023749 echo "$as_me:23749: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023750 if (exit $ac_status) && test -s "$ac_outfile"; then
23751 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023752 # So say no if there are warnings other than the usual output.
23753 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23754 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23755 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023756 lt_cv_prog_compiler_rtti_exceptions=yes
23757 fi
23758 fi
23759 $rm conftest*
23760
23761fi
Reid Spencera773bd52006-08-04 18:18:08 +000023762{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23763echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023764
23765if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23766 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23767else
23768 :
23769fi
23770
23771fi
23772
23773lt_prog_compiler_wl_GCJ=
23774lt_prog_compiler_pic_GCJ=
23775lt_prog_compiler_static_GCJ=
23776
Reid Spencera773bd52006-08-04 18:18:08 +000023777{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23778echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023779
23780 if test "$GCC" = yes; then
23781 lt_prog_compiler_wl_GCJ='-Wl,'
23782 lt_prog_compiler_static_GCJ='-static'
23783
23784 case $host_os in
23785 aix*)
23786 # All AIX code is PIC.
23787 if test "$host_cpu" = ia64; then
23788 # AIX 5 now supports IA64 processor
23789 lt_prog_compiler_static_GCJ='-Bstatic'
23790 fi
23791 ;;
23792
23793 amigaos*)
23794 # FIXME: we need at least 68020 code to build shared libraries, but
23795 # adding the `-m68020' flag to GCC prevents building anything better,
23796 # like `-m68040'.
23797 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23798 ;;
23799
23800 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23801 # PIC is the default for these OSes.
23802 ;;
23803
23804 mingw* | pw32* | os2*)
23805 # This hack is so that the source file can tell whether it is being
23806 # built for inclusion in a dll (and should export symbols for example).
23807 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23808 ;;
23809
23810 darwin* | rhapsody*)
23811 # PIC is the default on this platform
23812 # Common symbols not allowed in MH_DYLIB files
23813 lt_prog_compiler_pic_GCJ='-fno-common'
23814 ;;
23815
Reid Spencera773bd52006-08-04 18:18:08 +000023816 interix3*)
23817 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23818 # Instead, we relocate shared libraries at runtime.
23819 ;;
23820
John Criswell47fdd832003-07-14 16:52:07 +000023821 msdosdjgpp*)
23822 # Just because we use GCC doesn't mean we suddenly get shared libraries
23823 # on systems that don't support them.
23824 lt_prog_compiler_can_build_shared_GCJ=no
23825 enable_shared=no
23826 ;;
23827
23828 sysv4*MP*)
23829 if test -d /usr/nec; then
23830 lt_prog_compiler_pic_GCJ=-Kconform_pic
23831 fi
23832 ;;
23833
23834 hpux*)
23835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23836 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023837 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023838 hppa*64*|ia64*)
23839 # +Z the default
23840 ;;
23841 *)
23842 lt_prog_compiler_pic_GCJ='-fPIC'
23843 ;;
23844 esac
23845 ;;
23846
23847 *)
23848 lt_prog_compiler_pic_GCJ='-fPIC'
23849 ;;
23850 esac
23851 else
23852 # PORTME Check for flag to pass linker flags through the system compiler.
23853 case $host_os in
23854 aix*)
23855 lt_prog_compiler_wl_GCJ='-Wl,'
23856 if test "$host_cpu" = ia64; then
23857 # AIX 5 now supports IA64 processor
23858 lt_prog_compiler_static_GCJ='-Bstatic'
23859 else
23860 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23861 fi
23862 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023863 darwin*)
23864 # PIC is the default on this platform
23865 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023866 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023867 xlc*)
23868 lt_prog_compiler_pic_GCJ='-qnocommon'
23869 lt_prog_compiler_wl_GCJ='-Wl,'
23870 ;;
23871 esac
23872 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023873
23874 mingw* | pw32* | os2*)
23875 # This hack is so that the source file can tell whether it is being
23876 # built for inclusion in a dll (and should export symbols for example).
23877 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23878 ;;
23879
23880 hpux9* | hpux10* | hpux11*)
23881 lt_prog_compiler_wl_GCJ='-Wl,'
23882 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23883 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023884 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023885 hppa*64*|ia64*)
23886 # +Z the default
23887 ;;
23888 *)
23889 lt_prog_compiler_pic_GCJ='+Z'
23890 ;;
23891 esac
23892 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23893 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23894 ;;
23895
23896 irix5* | irix6* | nonstopux*)
23897 lt_prog_compiler_wl_GCJ='-Wl,'
23898 # PIC (with -KPIC) is the default.
23899 lt_prog_compiler_static_GCJ='-non_shared'
23900 ;;
23901
23902 newsos6)
23903 lt_prog_compiler_pic_GCJ='-KPIC'
23904 lt_prog_compiler_static_GCJ='-Bstatic'
23905 ;;
23906
23907 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023908 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023909 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023910 lt_prog_compiler_wl_GCJ='-Wl,'
23911 lt_prog_compiler_pic_GCJ='-KPIC'
23912 lt_prog_compiler_static_GCJ='-static'
23913 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023914 pgcc* | pgf77* | pgf90* | pgf95*)
23915 # Portland Group compilers (*not* the Pentium gcc compiler,
23916 # which looks to be a dead project)
23917 lt_prog_compiler_wl_GCJ='-Wl,'
23918 lt_prog_compiler_pic_GCJ='-fpic'
23919 lt_prog_compiler_static_GCJ='-Bstatic'
23920 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023921 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023922 lt_prog_compiler_wl_GCJ='-Wl,'
23923 # All Alpha code is PIC.
23924 lt_prog_compiler_static_GCJ='-non_shared'
23925 ;;
23926 esac
23927 ;;
23928
23929 osf3* | osf4* | osf5*)
23930 lt_prog_compiler_wl_GCJ='-Wl,'
23931 # All OSF/1 code is PIC.
23932 lt_prog_compiler_static_GCJ='-non_shared'
23933 ;;
23934
John Criswell47fdd832003-07-14 16:52:07 +000023935 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023936 lt_prog_compiler_pic_GCJ='-KPIC'
23937 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023938 case $cc_basename in
23939 f77* | f90* | f95*)
23940 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23941 *)
23942 lt_prog_compiler_wl_GCJ='-Wl,';;
23943 esac
John Criswell47fdd832003-07-14 16:52:07 +000023944 ;;
23945
23946 sunos4*)
23947 lt_prog_compiler_wl_GCJ='-Qoption ld '
23948 lt_prog_compiler_pic_GCJ='-PIC'
23949 lt_prog_compiler_static_GCJ='-Bstatic'
23950 ;;
23951
Reid Spencera773bd52006-08-04 18:18:08 +000023952 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023953 lt_prog_compiler_wl_GCJ='-Wl,'
23954 lt_prog_compiler_pic_GCJ='-KPIC'
23955 lt_prog_compiler_static_GCJ='-Bstatic'
23956 ;;
23957
23958 sysv4*MP*)
23959 if test -d /usr/nec ;then
23960 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23961 lt_prog_compiler_static_GCJ='-Bstatic'
23962 fi
23963 ;;
23964
Reid Spencera773bd52006-08-04 18:18:08 +000023965 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23966 lt_prog_compiler_wl_GCJ='-Wl,'
23967 lt_prog_compiler_pic_GCJ='-KPIC'
23968 lt_prog_compiler_static_GCJ='-Bstatic'
23969 ;;
23970
23971 unicos*)
23972 lt_prog_compiler_wl_GCJ='-Wl,'
23973 lt_prog_compiler_can_build_shared_GCJ=no
23974 ;;
23975
John Criswell47fdd832003-07-14 16:52:07 +000023976 uts4*)
23977 lt_prog_compiler_pic_GCJ='-pic'
23978 lt_prog_compiler_static_GCJ='-Bstatic'
23979 ;;
23980
23981 *)
23982 lt_prog_compiler_can_build_shared_GCJ=no
23983 ;;
23984 esac
23985 fi
23986
Reid Spencera773bd52006-08-04 18:18:08 +000023987{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23988echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023989
23990#
23991# Check to make sure the PIC flag actually works.
23992#
23993if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023994
Reid Spencera773bd52006-08-04 18:18:08 +000023995{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23996echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023997if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23998 echo $ECHO_N "(cached) $ECHO_C" >&6
23999else
24000 lt_prog_compiler_pic_works_GCJ=no
24001 ac_outfile=conftest.$ac_objext
24002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24003 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24004 # Insert the option either (1) after the last *FLAGS variable, or
24005 # (2) before a word containing "conftest.", or (3) at the end.
24006 # Note that $ac_compile itself does not contain backslashes and begins
24007 # with a dollar sign (not a hyphen), so the echo should work correctly.
24008 # The option is referenced via a variable to avoid confusing sed.
24009 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24012 -e 's:$: $lt_compiler_flag:'`
Owen Andersona8603702009-05-19 22:18:56 +000024013 (eval echo "\"\$as_me:24013: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024014 (eval "$lt_compile" 2>conftest.err)
24015 ac_status=$?
24016 cat conftest.err >&5
Owen Andersona8603702009-05-19 22:18:56 +000024017 echo "$as_me:24017: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024018 if (exit $ac_status) && test -s "$ac_outfile"; then
24019 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024020 # So say no if there are warnings other than the usual output.
24021 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024024 lt_prog_compiler_pic_works_GCJ=yes
24025 fi
24026 fi
24027 $rm conftest*
24028
24029fi
Reid Spencera773bd52006-08-04 18:18:08 +000024030{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24031echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024032
24033if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24034 case $lt_prog_compiler_pic_GCJ in
24035 "" | " "*) ;;
24036 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24037 esac
24038else
24039 lt_prog_compiler_pic_GCJ=
24040 lt_prog_compiler_can_build_shared_GCJ=no
24041fi
24042
24043fi
Reid Spencera773bd52006-08-04 18:18:08 +000024044case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024045 # For platforms which do not support PIC, -DPIC is meaningless:
24046 *djgpp*)
24047 lt_prog_compiler_pic_GCJ=
24048 ;;
24049 *)
24050 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24051 ;;
24052esac
24053
Reid Spencera773bd52006-08-04 18:18:08 +000024054#
24055# Check to make sure the static flag actually works.
24056#
24057wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24058{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24059echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24060if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24061 echo $ECHO_N "(cached) $ECHO_C" >&6
24062else
24063 lt_prog_compiler_static_works_GCJ=no
24064 save_LDFLAGS="$LDFLAGS"
24065 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24066 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24068 # The linker can only warn and ignore the option if not recognized
24069 # So say no if there are warnings
24070 if test -s conftest.err; then
24071 # Append any errors to the config.log.
24072 cat conftest.err 1>&5
24073 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24075 if diff conftest.exp conftest.er2 >/dev/null; then
24076 lt_prog_compiler_static_works_GCJ=yes
24077 fi
24078 else
24079 lt_prog_compiler_static_works_GCJ=yes
24080 fi
24081 fi
24082 $rm conftest*
24083 LDFLAGS="$save_LDFLAGS"
24084
24085fi
24086{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24087echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24088
24089if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24090 :
24091else
24092 lt_prog_compiler_static_GCJ=
24093fi
24094
24095
24096{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24097echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024098if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24099 echo $ECHO_N "(cached) $ECHO_C" >&6
24100else
24101 lt_cv_prog_compiler_c_o_GCJ=no
24102 $rm -r conftest 2>/dev/null
24103 mkdir conftest
24104 cd conftest
24105 mkdir out
24106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24107
John Criswell47fdd832003-07-14 16:52:07 +000024108 lt_compiler_flag="-o out/conftest2.$ac_objext"
24109 # Insert the option either (1) after the last *FLAGS variable, or
24110 # (2) before a word containing "conftest.", or (3) at the end.
24111 # Note that $ac_compile itself does not contain backslashes and begins
24112 # with a dollar sign (not a hyphen), so the echo should work correctly.
24113 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24116 -e 's:$: $lt_compiler_flag:'`
Owen Andersona8603702009-05-19 22:18:56 +000024117 (eval echo "\"\$as_me:24117: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024118 (eval "$lt_compile" 2>out/conftest.err)
24119 ac_status=$?
24120 cat out/conftest.err >&5
Owen Andersona8603702009-05-19 22:18:56 +000024121 echo "$as_me:24121: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024122 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24123 then
24124 # The compiler can only warn and ignore the option if not recognized
24125 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024126 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24127 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24128 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024129 lt_cv_prog_compiler_c_o_GCJ=yes
24130 fi
24131 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024132 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024133 $rm conftest*
24134 # SGI C++ compiler will create directory out/ii_files/ for
24135 # template instantiation
24136 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24137 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024138 cd ..
24139 rmdir conftest
24140 $rm conftest*
24141
24142fi
Reid Spencera773bd52006-08-04 18:18:08 +000024143{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24144echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024145
24146
24147hard_links="nottested"
24148if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24149 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024150 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24151echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024152 hard_links=yes
24153 $rm conftest*
24154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24155 touch conftest.a
24156 ln conftest.a conftest.b 2>&5 || hard_links=no
24157 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024158 { echo "$as_me:$LINENO: result: $hard_links" >&5
24159echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024160 if test "$hard_links" = no; then
24161 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24162echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24163 need_locks=warn
24164 fi
24165else
24166 need_locks=no
24167fi
24168
Reid Spencera773bd52006-08-04 18:18:08 +000024169{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24170echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024171
24172 runpath_var=
24173 allow_undefined_flag_GCJ=
24174 enable_shared_with_static_runtimes_GCJ=no
24175 archive_cmds_GCJ=
24176 archive_expsym_cmds_GCJ=
24177 old_archive_From_new_cmds_GCJ=
24178 old_archive_from_expsyms_cmds_GCJ=
24179 export_dynamic_flag_spec_GCJ=
24180 whole_archive_flag_spec_GCJ=
24181 thread_safe_flag_spec_GCJ=
24182 hardcode_libdir_flag_spec_GCJ=
24183 hardcode_libdir_flag_spec_ld_GCJ=
24184 hardcode_libdir_separator_GCJ=
24185 hardcode_direct_GCJ=no
24186 hardcode_minus_L_GCJ=no
24187 hardcode_shlibpath_var_GCJ=unsupported
24188 link_all_deplibs_GCJ=unknown
24189 hardcode_automatic_GCJ=no
24190 module_cmds_GCJ=
24191 module_expsym_cmds_GCJ=
24192 always_export_symbols_GCJ=no
24193 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24194 # include_expsyms should be a list of space-separated symbols to be *always*
24195 # included in the symbol list
24196 include_expsyms_GCJ=
24197 # exclude_expsyms can be an extended regexp of symbols to exclude
24198 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24199 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24200 # as well as any symbol that contains `d'.
24201 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24202 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24203 # platforms (ab)use it in PIC code, but their linkers get confused if
24204 # the symbol is explicitly referenced. Since portable code cannot
24205 # rely on this symbol name, it's probably fine to never include it in
24206 # preloaded symbol tables.
24207 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024208 # Just being paranoid about ensuring that cc_basename is set.
24209 for cc_temp in $compiler""; do
24210 case $cc_temp in
24211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24213 \-*) ;;
24214 *) break;;
24215 esac
24216done
24217cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024218
24219 case $host_os in
24220 cygwin* | mingw* | pw32*)
24221 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24222 # When not using gcc, we currently assume that we are using
24223 # Microsoft Visual C++.
24224 if test "$GCC" != yes; then
24225 with_gnu_ld=no
24226 fi
24227 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024228 interix*)
24229 # we just hope/assume this is gcc and not c89 (= MSVC++)
24230 with_gnu_ld=yes
24231 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024232 openbsd*)
24233 with_gnu_ld=no
24234 ;;
24235 esac
24236
24237 ld_shlibs_GCJ=yes
24238 if test "$with_gnu_ld" = yes; then
24239 # If archive_cmds runs LD, not CC, wlarc should be empty
24240 wlarc='${wl}'
24241
Reid Spencera773bd52006-08-04 18:18:08 +000024242 # Set some defaults for GNU ld with shared library support. These
24243 # are reset later if shared libraries are not supported. Putting them
24244 # here allows them to be overridden if necessary.
24245 runpath_var=LD_RUN_PATH
24246 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24247 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24248 # ancient GNU ld didn't support --whole-archive et. al.
24249 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24250 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24251 else
24252 whole_archive_flag_spec_GCJ=
24253 fi
24254 supports_anon_versioning=no
24255 case `$LD -v 2>/dev/null` in
24256 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24257 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24258 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24259 *\ 2.11.*) ;; # other 2.11 versions
24260 *) supports_anon_versioning=yes ;;
24261 esac
24262
John Criswell47fdd832003-07-14 16:52:07 +000024263 # See if GNU ld supports shared libraries.
24264 case $host_os in
24265 aix3* | aix4* | aix5*)
24266 # On AIX/PPC, the GNU linker is very broken
24267 if test "$host_cpu" != ia64; then
24268 ld_shlibs_GCJ=no
24269 cat <<EOF 1>&2
24270
24271*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24272*** to be unable to reliably create shared libraries on AIX.
24273*** Therefore, libtool is disabling shared libraries support. If you
24274*** really care for shared libraries, you may want to modify your PATH
24275*** so that a non-GNU linker is found, and then restart.
24276
24277EOF
24278 fi
24279 ;;
24280
24281 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024282 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 +000024283 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24284 hardcode_minus_L_GCJ=yes
24285
24286 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24287 # that the semantics of dynamic libraries on AmigaOS, at least up
24288 # to version 4, is to share data among multiple programs linked
24289 # with the same dynamic library. Since this doesn't match the
24290 # behavior of shared libraries on other platforms, we can't use
24291 # them.
24292 ld_shlibs_GCJ=no
24293 ;;
24294
24295 beos*)
24296 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24297 allow_undefined_flag_GCJ=unsupported
24298 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24299 # support --undefined. This deserves some investigation. FIXME
24300 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24301 else
24302 ld_shlibs_GCJ=no
24303 fi
24304 ;;
24305
24306 cygwin* | mingw* | pw32*)
24307 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24308 # as there is no search path for DLLs.
24309 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24310 allow_undefined_flag_GCJ=unsupported
24311 always_export_symbols_GCJ=no
24312 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024313 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 +000024314
24315 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024316 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 +000024317 # If the export-symbols file already is a .def file (1st line
24318 # is EXPORTS), use it as is; otherwise, prepend...
24319 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24320 cp $export_symbols $output_objdir/$soname.def;
24321 else
24322 echo EXPORTS > $output_objdir/$soname.def;
24323 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024324 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024325 $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 +000024326 else
Reid Spencera773bd52006-08-04 18:18:08 +000024327 ld_shlibs_GCJ=no
24328 fi
24329 ;;
24330
24331 interix3*)
24332 hardcode_direct_GCJ=no
24333 hardcode_shlibpath_var_GCJ=no
24334 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24335 export_dynamic_flag_spec_GCJ='${wl}-E'
24336 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24337 # Instead, shared libraries are loaded at an image base (0x10000000 by
24338 # default) and relocated if they conflict, which is a slow very memory
24339 # consuming and fragmenting process. To avoid this, we pick a random,
24340 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24341 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24342 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'
24343 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'
24344 ;;
24345
24346 linux*)
24347 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24348 tmp_addflag=
24349 case $cc_basename,$host_cpu in
24350 pgcc*) # Portland Group C compiler
24351 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'
24352 tmp_addflag=' $pic_flag'
24353 ;;
24354 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24355 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'
24356 tmp_addflag=' $pic_flag -Mnomain' ;;
24357 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24358 tmp_addflag=' -i_dynamic' ;;
24359 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24360 tmp_addflag=' -i_dynamic -nofor_main' ;;
24361 ifc* | ifort*) # Intel Fortran compiler
24362 tmp_addflag=' -nofor_main' ;;
24363 esac
24364 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24365
24366 if test $supports_anon_versioning = yes; then
24367 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24368 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24369 $echo "local: *; };" >> $output_objdir/$libname.ver~
24370 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24371 fi
24372 else
24373 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024374 fi
24375 ;;
24376
24377 netbsd*)
24378 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24379 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24380 wlarc=
24381 else
24382 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24383 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24384 fi
24385 ;;
24386
Reid Spencera773bd52006-08-04 18:18:08 +000024387 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024388 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24389 ld_shlibs_GCJ=no
24390 cat <<EOF 1>&2
24391
24392*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24393*** create shared libraries on Solaris systems. Therefore, libtool
24394*** is disabling shared libraries support. We urge you to upgrade GNU
24395*** binutils to release 2.9.1 or newer. Another option is to modify
24396*** your PATH or compiler configuration so that the native linker is
24397*** used, and then restart.
24398
24399EOF
24400 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24401 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24402 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24403 else
24404 ld_shlibs_GCJ=no
24405 fi
24406 ;;
24407
Reid Spencera773bd52006-08-04 18:18:08 +000024408 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24409 case `$LD -v 2>&1` in
24410 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24411 ld_shlibs_GCJ=no
24412 cat <<_LT_EOF 1>&2
24413
24414*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24415*** reliably create shared libraries on SCO systems. Therefore, libtool
24416*** is disabling shared libraries support. We urge you to upgrade GNU
24417*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24418*** your PATH or compiler configuration so that the native linker is
24419*** used, and then restart.
24420
24421_LT_EOF
24422 ;;
24423 *)
24424 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24425 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24426 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24427 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24428 else
24429 ld_shlibs_GCJ=no
24430 fi
24431 ;;
24432 esac
24433 ;;
24434
John Criswell47fdd832003-07-14 16:52:07 +000024435 sunos4*)
24436 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24437 wlarc=
24438 hardcode_direct_GCJ=yes
24439 hardcode_shlibpath_var_GCJ=no
24440 ;;
24441
24442 *)
24443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24444 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24445 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24446 else
24447 ld_shlibs_GCJ=no
24448 fi
24449 ;;
24450 esac
24451
Reid Spencera773bd52006-08-04 18:18:08 +000024452 if test "$ld_shlibs_GCJ" = no; then
24453 runpath_var=
24454 hardcode_libdir_flag_spec_GCJ=
24455 export_dynamic_flag_spec_GCJ=
24456 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024457 fi
24458 else
24459 # PORTME fill in a description of your system's linker (not GNU ld)
24460 case $host_os in
24461 aix3*)
24462 allow_undefined_flag_GCJ=unsupported
24463 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024464 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 +000024465 # Note: this linker hardcodes the directories in LIBPATH if there
24466 # are no directories specified by -L.
24467 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024468 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024469 # Neither direct hardcoding nor static linking is supported with a
24470 # broken collect2.
24471 hardcode_direct_GCJ=unsupported
24472 fi
24473 ;;
24474
24475 aix4* | aix5*)
24476 if test "$host_cpu" = ia64; then
24477 # On IA64, the linker does run time linking by default, so we don't
24478 # have to do anything special.
24479 aix_use_runtimelinking=no
24480 exp_sym_flag='-Bexport'
24481 no_entry_flag=""
24482 else
24483 # If we're using GNU nm, then we don't want the "-C" option.
24484 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24485 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24486 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'
24487 else
24488 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'
24489 fi
24490 aix_use_runtimelinking=no
24491
24492 # Test if we are trying to use run time linking or normal
24493 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24494 # need to do runtime linking.
24495 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24496 for ld_flag in $LDFLAGS; do
24497 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24498 aix_use_runtimelinking=yes
24499 break
24500 fi
24501 done
Reid Spencera773bd52006-08-04 18:18:08 +000024502 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024503 esac
24504
24505 exp_sym_flag='-bexport'
24506 no_entry_flag='-bnoentry'
24507 fi
24508
24509 # When large executables or shared objects are built, AIX ld can
24510 # have problems creating the table of contents. If linking a library
24511 # or program results in "error TOC overflow" add -mminimal-toc to
24512 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24514
24515 archive_cmds_GCJ=''
24516 hardcode_direct_GCJ=yes
24517 hardcode_libdir_separator_GCJ=':'
24518 link_all_deplibs_GCJ=yes
24519
24520 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024521 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024522 # We only want to do this on AIX 4.2 and lower, the check
24523 # below for broken collect2 doesn't work under 4.3+
24524 collect2name=`${CC} -print-prog-name=collect2`
24525 if test -f "$collect2name" && \
24526 strings "$collect2name" | grep resolve_lib_name >/dev/null
24527 then
24528 # We have reworked collect2
24529 hardcode_direct_GCJ=yes
24530 else
24531 # We have old collect2
24532 hardcode_direct_GCJ=unsupported
24533 # It fails to find uninstalled libraries when the uninstalled
24534 # path is not listed in the libpath. Setting hardcode_minus_L
24535 # to unsupported forces relinking
24536 hardcode_minus_L_GCJ=yes
24537 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24538 hardcode_libdir_separator_GCJ=
24539 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024540 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024541 esac
24542 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024543 if test "$aix_use_runtimelinking" = yes; then
24544 shared_flag="$shared_flag "'${wl}-G'
24545 fi
John Criswell47fdd832003-07-14 16:52:07 +000024546 else
24547 # not using gcc
24548 if test "$host_cpu" = ia64; then
24549 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24550 # chokes on -Wl,-G. The following line is correct:
24551 shared_flag='-G'
24552 else
Reid Spencera773bd52006-08-04 18:18:08 +000024553 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024554 shared_flag='${wl}-G'
24555 else
24556 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024557 fi
John Criswell47fdd832003-07-14 16:52:07 +000024558 fi
24559 fi
24560
24561 # It seems that -bexpall does not export symbols beginning with
24562 # underscore (_), so it is better to generate a list of symbols to export.
24563 always_export_symbols_GCJ=yes
24564 if test "$aix_use_runtimelinking" = yes; then
24565 # Warning - without using the other runtime loading flags (-brtl),
24566 # -berok will link without error, but may produce a broken library.
24567 allow_undefined_flag_GCJ='-berok'
24568 # Determine the default libpath from the value encoded in an empty executable.
24569 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024570/* confdefs.h. */
24571_ACEOF
24572cat confdefs.h >>conftest.$ac_ext
24573cat >>conftest.$ac_ext <<_ACEOF
24574/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024575
John Criswell47fdd832003-07-14 16:52:07 +000024576int
24577main ()
24578{
24579
24580 ;
24581 return 0;
24582}
24583_ACEOF
24584rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024585if { (ac_try="$ac_link"
24586case "(($ac_try" in
24587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588 *) ac_try_echo=$ac_try;;
24589esac
24590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024592 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024593 grep -v '^ *+' conftest.er1 >conftest.err
24594 rm -f conftest.er1
24595 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024597 (exit $ac_status); } &&
24598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24599 { (case "(($ac_try" in
24600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601 *) ac_try_echo=$ac_try;;
24602esac
24603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24604 (eval "$ac_try") 2>&5
24605 ac_status=$?
24606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607 (exit $ac_status); }; } &&
24608 { ac_try='test -s conftest$ac_exeext'
24609 { (case "(($ac_try" in
24610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24611 *) ac_try_echo=$ac_try;;
24612esac
24613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24614 (eval "$ac_try") 2>&5
24615 ac_status=$?
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024618
24619aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24620}'`
24621# Check for a 64-bit object if we didn't find anything.
24622if 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; }
24623}'`; fi
24624else
24625 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024626sed 's/^/| /' conftest.$ac_ext >&5
24627
Reid Spencera773bd52006-08-04 18:18:08 +000024628
John Criswell47fdd832003-07-14 16:52:07 +000024629fi
Reid Spencera773bd52006-08-04 18:18:08 +000024630
Bill Wendlingebcceee2009-04-18 11:20:33 +000024631rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024632 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024633if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24634
24635 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024636 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 +000024637 else
24638 if test "$host_cpu" = ia64; then
24639 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24640 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024641 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 +000024642 else
24643 # Determine the default libpath from the value encoded in an empty executable.
24644 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024645/* confdefs.h. */
24646_ACEOF
24647cat confdefs.h >>conftest.$ac_ext
24648cat >>conftest.$ac_ext <<_ACEOF
24649/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024650
John Criswell47fdd832003-07-14 16:52:07 +000024651int
24652main ()
24653{
24654
24655 ;
24656 return 0;
24657}
24658_ACEOF
24659rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024660if { (ac_try="$ac_link"
24661case "(($ac_try" in
24662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24663 *) ac_try_echo=$ac_try;;
24664esac
24665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24666 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024667 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024668 grep -v '^ *+' conftest.er1 >conftest.err
24669 rm -f conftest.er1
24670 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024672 (exit $ac_status); } &&
24673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24674 { (case "(($ac_try" in
24675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676 *) ac_try_echo=$ac_try;;
24677esac
24678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679 (eval "$ac_try") 2>&5
24680 ac_status=$?
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); }; } &&
24683 { ac_try='test -s conftest$ac_exeext'
24684 { (case "(($ac_try" in
24685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24686 *) ac_try_echo=$ac_try;;
24687esac
24688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24689 (eval "$ac_try") 2>&5
24690 ac_status=$?
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024693
24694aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24695}'`
24696# Check for a 64-bit object if we didn't find anything.
24697if 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; }
24698}'`; fi
24699else
24700 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024701sed 's/^/| /' conftest.$ac_ext >&5
24702
Reid Spencera773bd52006-08-04 18:18:08 +000024703
John Criswell47fdd832003-07-14 16:52:07 +000024704fi
Reid Spencera773bd52006-08-04 18:18:08 +000024705
Bill Wendlingebcceee2009-04-18 11:20:33 +000024706rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024707 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024708if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24709
24710 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24711 # Warning - without using the other run time loading flags,
24712 # -berok will link without error, but may produce a broken library.
24713 no_undefined_flag_GCJ=' ${wl}-bernotok'
24714 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024715 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024716 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024717 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024718 # This is similar to how AIX traditionally builds its shared libraries.
24719 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 +000024720 fi
24721 fi
24722 ;;
24723
24724 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024725 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 +000024726 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24727 hardcode_minus_L_GCJ=yes
24728 # see comment about different semantics on the GNU ld section
24729 ld_shlibs_GCJ=no
24730 ;;
24731
Reid Spencer2706f8c2004-09-19 23:53:36 +000024732 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024733 export_dynamic_flag_spec_GCJ=-rdynamic
24734 ;;
24735
24736 cygwin* | mingw* | pw32*)
24737 # When not using gcc, we currently assume that we are using
24738 # Microsoft Visual C++.
24739 # hardcode_libdir_flag_spec is actually meaningless, as there is
24740 # no search path for DLLs.
24741 hardcode_libdir_flag_spec_GCJ=' '
24742 allow_undefined_flag_GCJ=unsupported
24743 # Tell ltmain to make .lib files, not .a files.
24744 libext=lib
24745 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024746 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024747 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024748 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 +000024749 # The linker will automatically build a .lib file if we build a DLL.
24750 old_archive_From_new_cmds_GCJ='true'
24751 # FIXME: Should let the user specify the lib program.
24752 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024753 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024754 enable_shared_with_static_runtimes_GCJ=yes
24755 ;;
24756
24757 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024758 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024759 rhapsody* | darwin1.[012])
24760 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24761 ;;
24762 *) # Darwin 1.3 on
24763 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24764 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24765 else
24766 case ${MACOSX_DEPLOYMENT_TARGET} in
24767 10.[012])
24768 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24769 ;;
24770 10.*)
24771 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24772 ;;
24773 esac
24774 fi
24775 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024776 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024777 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024778 hardcode_direct_GCJ=no
24779 hardcode_automatic_GCJ=yes
24780 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024781 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024782 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024783 if test "$GCC" = yes ; then
24784 output_verbose_link_cmd='echo'
24785 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24786 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024787 # 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 +000024788 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}'
24789 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 +000024790 else
Reid Spencera773bd52006-08-04 18:18:08 +000024791 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024792 xlc*)
24793 output_verbose_link_cmd='echo'
24794 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24795 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024796 # 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 +000024797 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}'
24798 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 +000024799 ;;
24800 *)
24801 ld_shlibs_GCJ=no
24802 ;;
24803 esac
John Criswell47fdd832003-07-14 16:52:07 +000024804 fi
24805 ;;
24806
24807 dgux*)
24808 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24809 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24810 hardcode_shlibpath_var_GCJ=no
24811 ;;
24812
24813 freebsd1*)
24814 ld_shlibs_GCJ=no
24815 ;;
24816
24817 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24818 # support. Future versions do this automatically, but an explicit c++rt0.o
24819 # does not break anything, and helps significantly (at the cost of a little
24820 # extra space).
24821 freebsd2.2*)
24822 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24823 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24824 hardcode_direct_GCJ=yes
24825 hardcode_shlibpath_var_GCJ=no
24826 ;;
24827
24828 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24829 freebsd2*)
24830 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24831 hardcode_direct_GCJ=yes
24832 hardcode_minus_L_GCJ=yes
24833 hardcode_shlibpath_var_GCJ=no
24834 ;;
24835
24836 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024837 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024838 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24839 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24840 hardcode_direct_GCJ=yes
24841 hardcode_shlibpath_var_GCJ=no
24842 ;;
24843
24844 hpux9*)
24845 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024846 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 +000024847 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024848 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 +000024849 fi
24850 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24851 hardcode_libdir_separator_GCJ=:
24852 hardcode_direct_GCJ=yes
24853
24854 # hardcode_minus_L: Not really in the search PATH,
24855 # but as the default location of the library.
24856 hardcode_minus_L_GCJ=yes
24857 export_dynamic_flag_spec_GCJ='${wl}-E'
24858 ;;
24859
Reid Spencera773bd52006-08-04 18:18:08 +000024860 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024861 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024862 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24863 else
24864 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24865 fi
24866 if test "$with_gnu_ld" = no; then
24867 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24868 hardcode_libdir_separator_GCJ=:
24869
24870 hardcode_direct_GCJ=yes
24871 export_dynamic_flag_spec_GCJ='${wl}-E'
24872
24873 # hardcode_minus_L: Not really in the search PATH,
24874 # but as the default location of the library.
24875 hardcode_minus_L_GCJ=yes
24876 fi
24877 ;;
24878
24879 hpux11*)
24880 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24881 case $host_cpu in
24882 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024883 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24884 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024885 ia64*)
24886 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24887 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024888 *)
24889 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24890 ;;
24891 esac
24892 else
Reid Spencera773bd52006-08-04 18:18:08 +000024893 case $host_cpu in
24894 hppa*64*)
24895 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24896 ;;
24897 ia64*)
24898 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024899 ;;
24900 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024901 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 +000024902 ;;
24903 esac
24904 fi
24905 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024906 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24907 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024908
Reid Spencera773bd52006-08-04 18:18:08 +000024909 case $host_cpu in
24910 hppa*64*|ia64*)
24911 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24912 hardcode_direct_GCJ=no
24913 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024914 ;;
24915 *)
John Criswell47fdd832003-07-14 16:52:07 +000024916 hardcode_direct_GCJ=yes
24917 export_dynamic_flag_spec_GCJ='${wl}-E'
24918
24919 # hardcode_minus_L: Not really in the search PATH,
24920 # but as the default location of the library.
24921 hardcode_minus_L_GCJ=yes
24922 ;;
24923 esac
24924 fi
24925 ;;
24926
24927 irix5* | irix6* | nonstopux*)
24928 if test "$GCC" = yes; then
24929 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'
24930 else
24931 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'
24932 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24933 fi
24934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24935 hardcode_libdir_separator_GCJ=:
24936 link_all_deplibs_GCJ=yes
24937 ;;
24938
24939 netbsd*)
24940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24941 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24942 else
24943 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24944 fi
24945 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24946 hardcode_direct_GCJ=yes
24947 hardcode_shlibpath_var_GCJ=no
24948 ;;
24949
24950 newsos6)
24951 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24952 hardcode_direct_GCJ=yes
24953 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24954 hardcode_libdir_separator_GCJ=:
24955 hardcode_shlibpath_var_GCJ=no
24956 ;;
24957
24958 openbsd*)
24959 hardcode_direct_GCJ=yes
24960 hardcode_shlibpath_var_GCJ=no
24961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24962 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024963 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 +000024964 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24965 export_dynamic_flag_spec_GCJ='${wl}-E'
24966 else
24967 case $host_os in
24968 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24969 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24970 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24971 ;;
24972 *)
24973 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24975 ;;
24976 esac
24977 fi
24978 ;;
24979
24980 os2*)
24981 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24982 hardcode_minus_L_GCJ=yes
24983 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024984 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 +000024985 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24986 ;;
24987
24988 osf3*)
24989 if test "$GCC" = yes; then
24990 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24991 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'
24992 else
24993 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24994 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'
24995 fi
24996 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24997 hardcode_libdir_separator_GCJ=:
24998 ;;
24999
25000 osf4* | osf5*) # as osf3* with the addition of -msym flag
25001 if test "$GCC" = yes; then
25002 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25003 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'
25004 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25005 else
25006 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25007 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 +000025008 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 +000025009 $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 +000025010
John Criswell47fdd832003-07-14 16:52:07 +000025011 # Both c and cxx compiler support -rpath directly
25012 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25013 fi
25014 hardcode_libdir_separator_GCJ=:
25015 ;;
25016
John Criswell47fdd832003-07-14 16:52:07 +000025017 solaris*)
25018 no_undefined_flag_GCJ=' -z text'
25019 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025020 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025021 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025022 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25023 $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 +000025024 else
Reid Spencera773bd52006-08-04 18:18:08 +000025025 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025026 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025027 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25028 $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 +000025029 fi
25030 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25031 hardcode_shlibpath_var_GCJ=no
25032 case $host_os in
25033 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025034 *)
25035 # The compiler driver will combine linker options so we
25036 # cannot just pass the convience library names through
25037 # without $wl, iff we do not link with $LD.
25038 # Luckily, gcc supports the same syntax we need for Sun Studio.
25039 # Supported since Solaris 2.6 (maybe 2.5.1?)
25040 case $wlarc in
25041 '')
25042 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25043 *)
25044 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' ;;
25045 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025046 esac
25047 link_all_deplibs_GCJ=yes
25048 ;;
25049
25050 sunos4*)
25051 if test "x$host_vendor" = xsequent; then
25052 # Use $CC to link under sequent, because it throws in some extra .o
25053 # files that make .init and .fini sections work.
25054 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25055 else
25056 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25057 fi
25058 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25059 hardcode_direct_GCJ=yes
25060 hardcode_minus_L_GCJ=yes
25061 hardcode_shlibpath_var_GCJ=no
25062 ;;
25063
25064 sysv4)
25065 case $host_vendor in
25066 sni)
25067 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25068 hardcode_direct_GCJ=yes # is this really true???
25069 ;;
25070 siemens)
25071 ## LD is ld it makes a PLAMLIB
25072 ## CC just makes a GrossModule.
25073 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25074 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25075 hardcode_direct_GCJ=no
25076 ;;
25077 motorola)
25078 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25079 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25080 ;;
25081 esac
25082 runpath_var='LD_RUN_PATH'
25083 hardcode_shlibpath_var_GCJ=no
25084 ;;
25085
25086 sysv4.3*)
25087 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25088 hardcode_shlibpath_var_GCJ=no
25089 export_dynamic_flag_spec_GCJ='-Bexport'
25090 ;;
25091
25092 sysv4*MP*)
25093 if test -d /usr/nec; then
25094 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25095 hardcode_shlibpath_var_GCJ=no
25096 runpath_var=LD_RUN_PATH
25097 hardcode_runpath_var=yes
25098 ld_shlibs_GCJ=yes
25099 fi
25100 ;;
25101
Reid Spencera773bd52006-08-04 18:18:08 +000025102 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25103 no_undefined_flag_GCJ='${wl}-z,text'
25104 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025105 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025106 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025107
John Criswell47fdd832003-07-14 16:52:07 +000025108 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025109 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25110 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 +000025111 else
Reid Spencera773bd52006-08-04 18:18:08 +000025112 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25113 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 +000025114 fi
John Criswell47fdd832003-07-14 16:52:07 +000025115 ;;
25116
Reid Spencera773bd52006-08-04 18:18:08 +000025117 sysv5* | sco3.2v5* | sco5v6*)
25118 # Note: We can NOT use -z defs as we might desire, because we do not
25119 # link with -lc, and that would cause any symbols used from libc to
25120 # always be unresolved, which means just about no library would
25121 # ever link correctly. If we're not using GNU ld we use -z text
25122 # though, which does catch some bad symbols but isn't as heavy-handed
25123 # as -z defs.
25124 no_undefined_flag_GCJ='${wl}-z,text'
25125 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25126 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025127 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025128 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25129 hardcode_libdir_separator_GCJ=':'
25130 link_all_deplibs_GCJ=yes
25131 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025132 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025133
25134 if test "$GCC" = yes; then
25135 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25136 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25137 else
25138 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25139 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25140 fi
John Criswell47fdd832003-07-14 16:52:07 +000025141 ;;
25142
25143 uts4*)
25144 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25145 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25146 hardcode_shlibpath_var_GCJ=no
25147 ;;
25148
25149 *)
25150 ld_shlibs_GCJ=no
25151 ;;
25152 esac
25153 fi
25154
Reid Spencera773bd52006-08-04 18:18:08 +000025155{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25156echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025157test "$ld_shlibs_GCJ" = no && can_build_shared=no
25158
John Criswell47fdd832003-07-14 16:52:07 +000025159#
25160# Do we need to explicitly link libc?
25161#
25162case "x$archive_cmds_need_lc_GCJ" in
25163x|xyes)
25164 # Assume -lc should be added
25165 archive_cmds_need_lc_GCJ=yes
25166
25167 if test "$enable_shared" = yes && test "$GCC" = yes; then
25168 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025169 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025170 # FIXME: we may have to deal with multi-command sequences.
25171 ;;
25172 '$CC '*)
25173 # Test whether the compiler implicitly links with -lc since on some
25174 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25175 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025176 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25177echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025178 $rm conftest*
25179 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25180
25181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25182 (eval $ac_compile) 2>&5
25183 ac_status=$?
25184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } 2>conftest.err; then
25186 soname=conftest
25187 lib=conftest
25188 libobjs=conftest.$ac_objext
25189 deplibs=
25190 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025191 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025192 compiler_flags=-v
25193 linker_flags=-v
25194 verstring=
25195 output_objdir=.
25196 libname=conftest
25197 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25198 allow_undefined_flag_GCJ=
25199 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25200 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25201 ac_status=$?
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); }
25204 then
25205 archive_cmds_need_lc_GCJ=no
25206 else
25207 archive_cmds_need_lc_GCJ=yes
25208 fi
25209 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25210 else
25211 cat conftest.err 1>&5
25212 fi
25213 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025214 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25215echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025216 ;;
25217 esac
25218 fi
25219 ;;
25220esac
25221
Reid Spencera773bd52006-08-04 18:18:08 +000025222{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25223echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025224library_names_spec=
25225libname_spec='lib$name'
25226soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025227shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025228postinstall_cmds=
25229postuninstall_cmds=
25230finish_cmds=
25231finish_eval=
25232shlibpath_var=
25233shlibpath_overrides_runpath=unknown
25234version_type=none
25235dynamic_linker="$host_os ld.so"
25236sys_lib_dlsearch_path_spec="/lib /usr/lib"
25237if test "$GCC" = yes; then
25238 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25239 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25240 # if the path contains ";" then we assume it to be the separator
25241 # otherwise default to the standard path separator (i.e. ":") - it is
25242 # assumed that no part of a normal pathname contains ";" but that should
25243 # okay in the real world where ";" in dirpaths is itself problematic.
25244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25245 else
25246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25247 fi
25248else
25249 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25250fi
25251need_lib_prefix=unknown
25252hardcode_into_libs=no
25253
25254# when you set need_version to no, make sure it does not cause -set_version
25255# flags to be left without arguments
25256need_version=unknown
25257
25258case $host_os in
25259aix3*)
25260 version_type=linux
25261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25262 shlibpath_var=LIBPATH
25263
25264 # AIX 3 has no versioning support, so we append a major version to the name.
25265 soname_spec='${libname}${release}${shared_ext}$major'
25266 ;;
25267
25268aix4* | aix5*)
25269 version_type=linux
25270 need_lib_prefix=no
25271 need_version=no
25272 hardcode_into_libs=yes
25273 if test "$host_cpu" = ia64; then
25274 # AIX 5 supports IA64
25275 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25276 shlibpath_var=LD_LIBRARY_PATH
25277 else
25278 # With GCC up to 2.95.x, collect2 would create an import file
25279 # for dependence libraries. The import file would start with
25280 # the line `#! .'. This would cause the generated library to
25281 # depend on `.', always an invalid library. This was fixed in
25282 # development snapshots of GCC prior to 3.0.
25283 case $host_os in
25284 aix4 | aix4.[01] | aix4.[01].*)
25285 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25286 echo ' yes '
25287 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25288 :
25289 else
25290 can_build_shared=no
25291 fi
25292 ;;
25293 esac
25294 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25295 # soname into executable. Probably we can add versioning support to
25296 # collect2, so additional links can be useful in future.
25297 if test "$aix_use_runtimelinking" = yes; then
25298 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25299 # instead of lib<name>.a to let people know that these are not
25300 # typical AIX shared libraries.
25301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25302 else
25303 # We preserve .a as extension for shared libraries through AIX4.2
25304 # and later when we are not doing run time linking.
25305 library_names_spec='${libname}${release}.a $libname.a'
25306 soname_spec='${libname}${release}${shared_ext}$major'
25307 fi
25308 shlibpath_var=LIBPATH
25309 fi
25310 ;;
25311
25312amigaos*)
25313 library_names_spec='$libname.ixlibrary $libname.a'
25314 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025315 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 +000025316 ;;
25317
25318beos*)
25319 library_names_spec='${libname}${shared_ext}'
25320 dynamic_linker="$host_os ld.so"
25321 shlibpath_var=LIBRARY_PATH
25322 ;;
25323
Reid Spencer2706f8c2004-09-19 23:53:36 +000025324bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025325 version_type=linux
25326 need_version=no
25327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25328 soname_spec='${libname}${release}${shared_ext}$major'
25329 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25330 shlibpath_var=LD_LIBRARY_PATH
25331 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25332 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25333 # the default ld.so.conf also contains /usr/contrib/lib and
25334 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25335 # libtool to hard-code these into programs
25336 ;;
25337
25338cygwin* | mingw* | pw32*)
25339 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025340 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025341 need_version=no
25342 need_lib_prefix=no
25343
25344 case $GCC,$host_os in
25345 yes,cygwin* | yes,mingw* | yes,pw32*)
25346 library_names_spec='$libname.dll.a'
25347 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025348 postinstall_cmds='base_file=`basename \${file}`~
25349 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25350 dldir=$destdir/`dirname \$dlpath`~
25351 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025352 $install_prog $dir/$dlname \$dldir/$dlname~
25353 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025354 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25355 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025356 $rm \$dlpath'
25357 shlibpath_overrides_runpath=yes
25358
25359 case $host_os in
25360 cygwin*)
25361 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25362 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 +000025363 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025364 ;;
25365 mingw*)
25366 # MinGW DLLs use traditional 'lib' prefix
25367 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25368 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25369 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25370 # It is most probably a Windows format PATH printed by
25371 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25372 # path with ; separators, and with drive letters. We can handle the
25373 # drive letters (cygwin fileutils understands them), so leave them,
25374 # especially as we might pass files found there to a mingw objdump,
25375 # which wouldn't understand a cygwinified path. Ahh.
25376 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25377 else
25378 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25379 fi
25380 ;;
25381 pw32*)
25382 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025383 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 +000025384 ;;
25385 esac
25386 ;;
25387
25388 *)
25389 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25390 ;;
25391 esac
25392 dynamic_linker='Win32 ld.exe'
25393 # FIXME: first we should search . and the directory the executable is in
25394 shlibpath_var=PATH
25395 ;;
25396
25397darwin* | rhapsody*)
25398 dynamic_linker="$host_os dyld"
25399 version_type=darwin
25400 need_lib_prefix=no
25401 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025402 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025403 soname_spec='${libname}${release}${major}$shared_ext'
25404 shlibpath_overrides_runpath=yes
25405 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025406 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025407 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025408 if test "$GCC" = yes; then
25409 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"`
25410 else
25411 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025412 fi
25413 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25414 ;;
25415
25416dgux*)
25417 version_type=linux
25418 need_lib_prefix=no
25419 need_version=no
25420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25421 soname_spec='${libname}${release}${shared_ext}$major'
25422 shlibpath_var=LD_LIBRARY_PATH
25423 ;;
25424
25425freebsd1*)
25426 dynamic_linker=no
25427 ;;
25428
Reid Spencer2706f8c2004-09-19 23:53:36 +000025429kfreebsd*-gnu)
25430 version_type=linux
25431 need_lib_prefix=no
25432 need_version=no
25433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25434 soname_spec='${libname}${release}${shared_ext}$major'
25435 shlibpath_var=LD_LIBRARY_PATH
25436 shlibpath_overrides_runpath=no
25437 hardcode_into_libs=yes
25438 dynamic_linker='GNU ld.so'
25439 ;;
25440
Reid Spencera773bd52006-08-04 18:18:08 +000025441freebsd* | dragonfly*)
25442 # DragonFly does not have aout. When/if they implement a new
25443 # versioning mechanism, adjust this.
25444 if test -x /usr/bin/objformat; then
25445 objformat=`/usr/bin/objformat`
25446 else
25447 case $host_os in
25448 freebsd[123]*) objformat=aout ;;
25449 *) objformat=elf ;;
25450 esac
25451 fi
John Criswell47fdd832003-07-14 16:52:07 +000025452 version_type=freebsd-$objformat
25453 case $version_type in
25454 freebsd-elf*)
25455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25456 need_version=no
25457 need_lib_prefix=no
25458 ;;
25459 freebsd-*)
25460 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25461 need_version=yes
25462 ;;
25463 esac
25464 shlibpath_var=LD_LIBRARY_PATH
25465 case $host_os in
25466 freebsd2*)
25467 shlibpath_overrides_runpath=yes
25468 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025469 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025470 shlibpath_overrides_runpath=yes
25471 hardcode_into_libs=yes
25472 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025473 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25474 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025475 shlibpath_overrides_runpath=no
25476 hardcode_into_libs=yes
25477 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025478 freebsd*) # from 4.6 on
25479 shlibpath_overrides_runpath=yes
25480 hardcode_into_libs=yes
25481 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025482 esac
25483 ;;
25484
25485gnu*)
25486 version_type=linux
25487 need_lib_prefix=no
25488 need_version=no
25489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25490 soname_spec='${libname}${release}${shared_ext}$major'
25491 shlibpath_var=LD_LIBRARY_PATH
25492 hardcode_into_libs=yes
25493 ;;
25494
25495hpux9* | hpux10* | hpux11*)
25496 # Give a soname corresponding to the major version so that dld.sl refuses to
25497 # link against other versions.
25498 version_type=sunos
25499 need_lib_prefix=no
25500 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025501 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025502 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025503 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025504 hardcode_into_libs=yes
25505 dynamic_linker="$host_os dld.so"
25506 shlibpath_var=LD_LIBRARY_PATH
25507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25509 soname_spec='${libname}${release}${shared_ext}$major'
25510 if test "X$HPUX_IA64_MODE" = X32; then
25511 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25512 else
25513 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25514 fi
25515 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25516 ;;
25517 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025518 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025519 hardcode_into_libs=yes
25520 dynamic_linker="$host_os dld.sl"
25521 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25524 soname_spec='${libname}${release}${shared_ext}$major'
25525 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25527 ;;
25528 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025529 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025530 dynamic_linker="$host_os dld.sl"
25531 shlibpath_var=SHLIB_PATH
25532 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25534 soname_spec='${libname}${release}${shared_ext}$major'
25535 ;;
25536 esac
25537 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25538 postinstall_cmds='chmod 555 $lib'
25539 ;;
25540
Reid Spencera773bd52006-08-04 18:18:08 +000025541interix3*)
25542 version_type=linux
25543 need_lib_prefix=no
25544 need_version=no
25545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25546 soname_spec='${libname}${release}${shared_ext}$major'
25547 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25548 shlibpath_var=LD_LIBRARY_PATH
25549 shlibpath_overrides_runpath=no
25550 hardcode_into_libs=yes
25551 ;;
25552
John Criswell47fdd832003-07-14 16:52:07 +000025553irix5* | irix6* | nonstopux*)
25554 case $host_os in
25555 nonstopux*) version_type=nonstopux ;;
25556 *)
25557 if test "$lt_cv_prog_gnu_ld" = yes; then
25558 version_type=linux
25559 else
25560 version_type=irix
25561 fi ;;
25562 esac
25563 need_lib_prefix=no
25564 need_version=no
25565 soname_spec='${libname}${release}${shared_ext}$major'
25566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25567 case $host_os in
25568 irix5* | nonstopux*)
25569 libsuff= shlibsuff=
25570 ;;
25571 *)
25572 case $LD in # libtool.m4 will add one of these switches to LD
25573 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25574 libsuff= shlibsuff= libmagic=32-bit;;
25575 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25576 libsuff=32 shlibsuff=N32 libmagic=N32;;
25577 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25578 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25579 *) libsuff= shlibsuff= libmagic=never-match;;
25580 esac
25581 ;;
25582 esac
25583 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25584 shlibpath_overrides_runpath=no
25585 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25586 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25587 hardcode_into_libs=yes
25588 ;;
25589
25590# No shared lib support for Linux oldld, aout, or coff.
25591linux*oldld* | linux*aout* | linux*coff*)
25592 dynamic_linker=no
25593 ;;
25594
25595# This must be Linux ELF.
25596linux*)
25597 version_type=linux
25598 need_lib_prefix=no
25599 need_version=no
25600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25601 soname_spec='${libname}${release}${shared_ext}$major'
25602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25603 shlibpath_var=LD_LIBRARY_PATH
25604 shlibpath_overrides_runpath=no
25605 # This implies no fast_install, which is unacceptable.
25606 # Some rework will be needed to allow for fast_install
25607 # before this can be enabled.
25608 hardcode_into_libs=yes
25609
Reid Spencer2706f8c2004-09-19 23:53:36 +000025610 # Append ld.so.conf contents to the search path
25611 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025612 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 +000025613 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25614 fi
25615
John Criswell47fdd832003-07-14 16:52:07 +000025616 # We used to test for /lib/ld.so.1 and disable shared libraries on
25617 # powerpc, because MkLinux only supported shared libraries with the
25618 # GNU dynamic linker. Since this was broken with cross compilers,
25619 # most powerpc-linux boxes support dynamic linking these days and
25620 # people can always --disable-shared, the test was removed, and we
25621 # assume the GNU/Linux dynamic linker is in use.
25622 dynamic_linker='GNU/Linux ld.so'
25623 ;;
25624
Reid Spencer2706f8c2004-09-19 23:53:36 +000025625knetbsd*-gnu)
25626 version_type=linux
25627 need_lib_prefix=no
25628 need_version=no
25629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25630 soname_spec='${libname}${release}${shared_ext}$major'
25631 shlibpath_var=LD_LIBRARY_PATH
25632 shlibpath_overrides_runpath=no
25633 hardcode_into_libs=yes
25634 dynamic_linker='GNU ld.so'
25635 ;;
25636
John Criswell47fdd832003-07-14 16:52:07 +000025637netbsd*)
25638 version_type=sunos
25639 need_lib_prefix=no
25640 need_version=no
25641 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25644 dynamic_linker='NetBSD (a.out) ld.so'
25645 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025647 soname_spec='${libname}${release}${shared_ext}$major'
25648 dynamic_linker='NetBSD ld.elf_so'
25649 fi
25650 shlibpath_var=LD_LIBRARY_PATH
25651 shlibpath_overrides_runpath=yes
25652 hardcode_into_libs=yes
25653 ;;
25654
25655newsos6)
25656 version_type=linux
25657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25658 shlibpath_var=LD_LIBRARY_PATH
25659 shlibpath_overrides_runpath=yes
25660 ;;
25661
Reid Spencer2706f8c2004-09-19 23:53:36 +000025662nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025663 version_type=linux
25664 need_lib_prefix=no
25665 need_version=no
25666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25667 soname_spec='${libname}${release}${shared_ext}$major'
25668 shlibpath_var=LD_LIBRARY_PATH
25669 shlibpath_overrides_runpath=yes
25670 ;;
25671
25672openbsd*)
25673 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025674 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025675 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025676 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25677 case $host_os in
25678 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25679 *) need_version=no ;;
25680 esac
John Criswell47fdd832003-07-14 16:52:07 +000025681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25682 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25683 shlibpath_var=LD_LIBRARY_PATH
25684 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25685 case $host_os in
25686 openbsd2.[89] | openbsd2.[89].*)
25687 shlibpath_overrides_runpath=no
25688 ;;
25689 *)
25690 shlibpath_overrides_runpath=yes
25691 ;;
25692 esac
25693 else
25694 shlibpath_overrides_runpath=yes
25695 fi
25696 ;;
25697
25698os2*)
25699 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025700 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025701 need_lib_prefix=no
25702 library_names_spec='$libname${shared_ext} $libname.a'
25703 dynamic_linker='OS/2 ld.exe'
25704 shlibpath_var=LIBPATH
25705 ;;
25706
25707osf3* | osf4* | osf5*)
25708 version_type=osf
25709 need_lib_prefix=no
25710 need_version=no
25711 soname_spec='${libname}${release}${shared_ext}$major'
25712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25713 shlibpath_var=LD_LIBRARY_PATH
25714 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25715 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25716 ;;
25717
John Criswell47fdd832003-07-14 16:52:07 +000025718solaris*)
25719 version_type=linux
25720 need_lib_prefix=no
25721 need_version=no
25722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25723 soname_spec='${libname}${release}${shared_ext}$major'
25724 shlibpath_var=LD_LIBRARY_PATH
25725 shlibpath_overrides_runpath=yes
25726 hardcode_into_libs=yes
25727 # ldd complains unless libraries are executable
25728 postinstall_cmds='chmod +x $lib'
25729 ;;
25730
25731sunos4*)
25732 version_type=sunos
25733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25734 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25735 shlibpath_var=LD_LIBRARY_PATH
25736 shlibpath_overrides_runpath=yes
25737 if test "$with_gnu_ld" = yes; then
25738 need_lib_prefix=no
25739 fi
25740 need_version=yes
25741 ;;
25742
Reid Spencera773bd52006-08-04 18:18:08 +000025743sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025744 version_type=linux
25745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25746 soname_spec='${libname}${release}${shared_ext}$major'
25747 shlibpath_var=LD_LIBRARY_PATH
25748 case $host_vendor in
25749 sni)
25750 shlibpath_overrides_runpath=no
25751 need_lib_prefix=no
25752 export_dynamic_flag_spec='${wl}-Blargedynsym'
25753 runpath_var=LD_RUN_PATH
25754 ;;
25755 siemens)
25756 need_lib_prefix=no
25757 ;;
25758 motorola)
25759 need_lib_prefix=no
25760 need_version=no
25761 shlibpath_overrides_runpath=no
25762 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25763 ;;
25764 esac
25765 ;;
25766
25767sysv4*MP*)
25768 if test -d /usr/nec ;then
25769 version_type=linux
25770 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25771 soname_spec='$libname${shared_ext}.$major'
25772 shlibpath_var=LD_LIBRARY_PATH
25773 fi
25774 ;;
25775
Reid Spencera773bd52006-08-04 18:18:08 +000025776sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25777 version_type=freebsd-elf
25778 need_lib_prefix=no
25779 need_version=no
25780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25781 soname_spec='${libname}${release}${shared_ext}$major'
25782 shlibpath_var=LD_LIBRARY_PATH
25783 hardcode_into_libs=yes
25784 if test "$with_gnu_ld" = yes; then
25785 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25786 shlibpath_overrides_runpath=no
25787 else
25788 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25789 shlibpath_overrides_runpath=yes
25790 case $host_os in
25791 sco3.2v5*)
25792 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25793 ;;
25794 esac
25795 fi
25796 sys_lib_dlsearch_path_spec='/usr/lib'
25797 ;;
25798
John Criswell47fdd832003-07-14 16:52:07 +000025799uts4*)
25800 version_type=linux
25801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25802 soname_spec='${libname}${release}${shared_ext}$major'
25803 shlibpath_var=LD_LIBRARY_PATH
25804 ;;
25805
25806*)
25807 dynamic_linker=no
25808 ;;
25809esac
Reid Spencera773bd52006-08-04 18:18:08 +000025810{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25811echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025812test "$dynamic_linker" = no && can_build_shared=no
25813
Reid Spencera773bd52006-08-04 18:18:08 +000025814variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25815if test "$GCC" = yes; then
25816 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25817fi
25818
25819{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25820echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025821hardcode_action_GCJ=
25822if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25823 test -n "$runpath_var_GCJ" || \
25824 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25825
25826 # We can hardcode non-existant directories.
25827 if test "$hardcode_direct_GCJ" != no &&
25828 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25829 # have to relink, otherwise we might link with an installed library
25830 # when we should be linking with a yet-to-be-installed one
25831 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25832 test "$hardcode_minus_L_GCJ" != no; then
25833 # Linking always hardcodes the temporary library directory.
25834 hardcode_action_GCJ=relink
25835 else
25836 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25837 hardcode_action_GCJ=immediate
25838 fi
25839else
25840 # We cannot hardcode anything, or else we can only hardcode existing
25841 # directories.
25842 hardcode_action_GCJ=unsupported
25843fi
Reid Spencera773bd52006-08-04 18:18:08 +000025844{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25845echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025846
25847if test "$hardcode_action_GCJ" = relink; then
25848 # Fast installation is not supported
25849 enable_fast_install=no
25850elif test "$shlibpath_overrides_runpath" = yes ||
25851 test "$enable_shared" = no; then
25852 # Fast installation is not necessary
25853 enable_fast_install=needless
25854fi
25855
John Criswell47fdd832003-07-14 16:52:07 +000025856
25857# The else clause should only fire when bootstrapping the
25858# libtool distribution, otherwise you forgot to ship ltmain.sh
25859# with your package, and you will get complaints that there are
25860# no rules to generate ltmain.sh.
25861if test -f "$ltmain"; then
25862 # See if we are running on zsh, and set the options which allow our commands through
25863 # without removal of \ escapes.
25864 if test -n "${ZSH_VERSION+set}" ; then
25865 setopt NO_GLOB_SUBST
25866 fi
25867 # Now quote all the things that may contain metacharacters while being
25868 # careful not to overquote the AC_SUBSTed values. We take copies of the
25869 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025870 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 +000025871 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025872 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25873 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25874 deplibs_check_method reload_flag reload_cmds need_locks \
25875 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25876 lt_cv_sys_global_symbol_to_c_name_address \
25877 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25878 old_postinstall_cmds old_postuninstall_cmds \
25879 compiler_GCJ \
25880 CC_GCJ \
25881 LD_GCJ \
25882 lt_prog_compiler_wl_GCJ \
25883 lt_prog_compiler_pic_GCJ \
25884 lt_prog_compiler_static_GCJ \
25885 lt_prog_compiler_no_builtin_flag_GCJ \
25886 export_dynamic_flag_spec_GCJ \
25887 thread_safe_flag_spec_GCJ \
25888 whole_archive_flag_spec_GCJ \
25889 enable_shared_with_static_runtimes_GCJ \
25890 old_archive_cmds_GCJ \
25891 old_archive_from_new_cmds_GCJ \
25892 predep_objects_GCJ \
25893 postdep_objects_GCJ \
25894 predeps_GCJ \
25895 postdeps_GCJ \
25896 compiler_lib_search_path_GCJ \
25897 archive_cmds_GCJ \
25898 archive_expsym_cmds_GCJ \
25899 postinstall_cmds_GCJ \
25900 postuninstall_cmds_GCJ \
25901 old_archive_from_expsyms_cmds_GCJ \
25902 allow_undefined_flag_GCJ \
25903 no_undefined_flag_GCJ \
25904 export_symbols_cmds_GCJ \
25905 hardcode_libdir_flag_spec_GCJ \
25906 hardcode_libdir_flag_spec_ld_GCJ \
25907 hardcode_libdir_separator_GCJ \
25908 hardcode_automatic_GCJ \
25909 module_cmds_GCJ \
25910 module_expsym_cmds_GCJ \
25911 lt_cv_prog_compiler_c_o_GCJ \
25912 exclude_expsyms_GCJ \
25913 include_expsyms_GCJ; do
25914
25915 case $var in
25916 old_archive_cmds_GCJ | \
25917 old_archive_from_new_cmds_GCJ | \
25918 archive_cmds_GCJ | \
25919 archive_expsym_cmds_GCJ | \
25920 module_cmds_GCJ | \
25921 module_expsym_cmds_GCJ | \
25922 old_archive_from_expsyms_cmds_GCJ | \
25923 export_symbols_cmds_GCJ | \
25924 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25925 postinstall_cmds | postuninstall_cmds | \
25926 old_postinstall_cmds | old_postuninstall_cmds | \
25927 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25928 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025929 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 +000025930 ;;
25931 *)
25932 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25933 ;;
25934 esac
25935 done
25936
25937 case $lt_echo in
25938 *'\$0 --fallback-echo"')
25939 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25940 ;;
25941 esac
25942
25943cfgfile="$ofile"
25944
25945 cat <<__EOF__ >> "$cfgfile"
25946# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25947
25948# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25949
25950# Shell to use when invoking shell scripts.
25951SHELL=$lt_SHELL
25952
25953# Whether or not to build shared libraries.
25954build_libtool_libs=$enable_shared
25955
25956# Whether or not to build static libraries.
25957build_old_libs=$enable_static
25958
25959# Whether or not to add -lc for building shared libraries.
25960build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25961
25962# Whether or not to disallow shared libs when runtime libs are static
25963allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25964
25965# Whether or not to optimize for fast installation.
25966fast_install=$enable_fast_install
25967
25968# The host system.
25969host_alias=$host_alias
25970host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025971host_os=$host_os
25972
25973# The build system.
25974build_alias=$build_alias
25975build=$build
25976build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025977
25978# An echo program that does not interpret backslashes.
25979echo=$lt_echo
25980
25981# The archiver.
25982AR=$lt_AR
25983AR_FLAGS=$lt_AR_FLAGS
25984
25985# A C compiler.
25986LTCC=$lt_LTCC
25987
Reid Spencera773bd52006-08-04 18:18:08 +000025988# LTCC compiler flags.
25989LTCFLAGS=$lt_LTCFLAGS
25990
John Criswell47fdd832003-07-14 16:52:07 +000025991# A language-specific compiler.
25992CC=$lt_compiler_GCJ
25993
25994# Is the compiler the GNU C compiler?
25995with_gcc=$GCC_GCJ
25996
25997# An ERE matcher.
25998EGREP=$lt_EGREP
25999
26000# The linker used to build libraries.
26001LD=$lt_LD_GCJ
26002
26003# Whether we need hard or soft links.
26004LN_S=$lt_LN_S
26005
26006# A BSD-compatible nm program.
26007NM=$lt_NM
26008
26009# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026010STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026011
26012# Used to examine libraries when file_magic_cmd begins "file"
26013MAGIC_CMD=$MAGIC_CMD
26014
26015# Used on cygwin: DLL creation program.
26016DLLTOOL="$DLLTOOL"
26017
26018# Used on cygwin: object dumper.
26019OBJDUMP="$OBJDUMP"
26020
26021# Used on cygwin: assembler.
26022AS="$AS"
26023
26024# The name of the directory that contains temporary libtool files.
26025objdir=$objdir
26026
26027# How to create reloadable object files.
26028reload_flag=$lt_reload_flag
26029reload_cmds=$lt_reload_cmds
26030
26031# How to pass a linker flag through the compiler.
26032wl=$lt_lt_prog_compiler_wl_GCJ
26033
26034# Object file suffix (normally "o").
26035objext="$ac_objext"
26036
26037# Old archive suffix (normally "a").
26038libext="$libext"
26039
26040# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026041shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026042
26043# Executable file suffix (normally "").
26044exeext="$exeext"
26045
26046# Additional compiler flags for building library objects.
26047pic_flag=$lt_lt_prog_compiler_pic_GCJ
26048pic_mode=$pic_mode
26049
26050# What is the maximum length of a command?
26051max_cmd_len=$lt_cv_sys_max_cmd_len
26052
26053# Does compiler simultaneously support -c and -o options?
26054compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26055
Reid Spencera773bd52006-08-04 18:18:08 +000026056# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026057need_locks=$lt_need_locks
26058
26059# Do we need the lib prefix for modules?
26060need_lib_prefix=$need_lib_prefix
26061
26062# Do we need a version for libraries?
26063need_version=$need_version
26064
26065# Whether dlopen is supported.
26066dlopen_support=$enable_dlopen
26067
26068# Whether dlopen of programs is supported.
26069dlopen_self=$enable_dlopen_self
26070
26071# Whether dlopen of statically linked programs is supported.
26072dlopen_self_static=$enable_dlopen_self_static
26073
26074# Compiler flag to prevent dynamic linking.
26075link_static_flag=$lt_lt_prog_compiler_static_GCJ
26076
26077# Compiler flag to turn off builtin functions.
26078no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26079
26080# Compiler flag to allow reflexive dlopens.
26081export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26082
26083# Compiler flag to generate shared objects directly from archives.
26084whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26085
26086# Compiler flag to generate thread-safe objects.
26087thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26088
26089# Library versioning type.
26090version_type=$version_type
26091
26092# Format of library name prefix.
26093libname_spec=$lt_libname_spec
26094
26095# List of archive names. First name is the real one, the rest are links.
26096# The last name is the one that the linker finds with -lNAME.
26097library_names_spec=$lt_library_names_spec
26098
26099# The coded name of the library, if different from the real name.
26100soname_spec=$lt_soname_spec
26101
26102# Commands used to build and install an old-style archive.
26103RANLIB=$lt_RANLIB
26104old_archive_cmds=$lt_old_archive_cmds_GCJ
26105old_postinstall_cmds=$lt_old_postinstall_cmds
26106old_postuninstall_cmds=$lt_old_postuninstall_cmds
26107
26108# Create an old-style archive from a shared archive.
26109old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26110
26111# Create a temporary old-style archive to link instead of a shared archive.
26112old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26113
26114# Commands used to build and install a shared archive.
26115archive_cmds=$lt_archive_cmds_GCJ
26116archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26117postinstall_cmds=$lt_postinstall_cmds
26118postuninstall_cmds=$lt_postuninstall_cmds
26119
26120# Commands used to build a loadable module (assumed same as above if empty)
26121module_cmds=$lt_module_cmds_GCJ
26122module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26123
26124# Commands to strip libraries.
26125old_striplib=$lt_old_striplib
26126striplib=$lt_striplib
26127
26128# Dependencies to place before the objects being linked to create a
26129# shared library.
26130predep_objects=$lt_predep_objects_GCJ
26131
26132# Dependencies to place after the objects being linked to create a
26133# shared library.
26134postdep_objects=$lt_postdep_objects_GCJ
26135
26136# Dependencies to place before the objects being linked to create a
26137# shared library.
26138predeps=$lt_predeps_GCJ
26139
26140# Dependencies to place after the objects being linked to create a
26141# shared library.
26142postdeps=$lt_postdeps_GCJ
26143
26144# The library search path used internally by the compiler when linking
26145# a shared library.
26146compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26147
26148# Method to check whether dependent libraries are shared objects.
26149deplibs_check_method=$lt_deplibs_check_method
26150
26151# Command to use when deplibs_check_method == file_magic.
26152file_magic_cmd=$lt_file_magic_cmd
26153
26154# Flag that allows shared libraries with undefined symbols to be built.
26155allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26156
26157# Flag that forces no undefined symbols.
26158no_undefined_flag=$lt_no_undefined_flag_GCJ
26159
26160# Commands used to finish a libtool library installation in a directory.
26161finish_cmds=$lt_finish_cmds
26162
26163# Same as above, but a single script fragment to be evaled but not shown.
26164finish_eval=$lt_finish_eval
26165
26166# Take the output of nm and produce a listing of raw symbols and C names.
26167global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26168
26169# Transform the output of nm in a proper C declaration
26170global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26171
26172# Transform the output of nm in a C name address pair
26173global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26174
26175# This is the shared library runtime path variable.
26176runpath_var=$runpath_var
26177
26178# This is the shared library path variable.
26179shlibpath_var=$shlibpath_var
26180
26181# Is shlibpath searched before the hard-coded library search path?
26182shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26183
26184# How to hardcode a shared library path into an executable.
26185hardcode_action=$hardcode_action_GCJ
26186
26187# Whether we should hardcode library paths into libraries.
26188hardcode_into_libs=$hardcode_into_libs
26189
26190# Flag to hardcode \$libdir into a binary during linking.
26191# This must work even if \$libdir does not exist.
26192hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26193
26194# If ld is used when linking, flag to hardcode \$libdir into
26195# a binary during linking. This must work even if \$libdir does
26196# not exist.
26197hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26198
26199# Whether we need a single -rpath flag with a separated argument.
26200hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26201
26202# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26203# resulting binary.
26204hardcode_direct=$hardcode_direct_GCJ
26205
26206# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26207# resulting binary.
26208hardcode_minus_L=$hardcode_minus_L_GCJ
26209
26210# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26211# the resulting binary.
26212hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26213
26214# Set to yes if building a shared library automatically hardcodes DIR into the library
26215# and all subsequent libraries and executables linked against it.
26216hardcode_automatic=$hardcode_automatic_GCJ
26217
26218# Variables whose values should be saved in libtool wrapper scripts and
26219# restored at relink time.
26220variables_saved_for_relink="$variables_saved_for_relink"
26221
26222# Whether libtool must link a program against all its dependency libraries.
26223link_all_deplibs=$link_all_deplibs_GCJ
26224
26225# Compile-time system search path for libraries
26226sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26227
26228# Run-time system search path for libraries
26229sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26230
26231# Fix the shell variable \$srcfile for the compiler.
26232fix_srcfile_path="$fix_srcfile_path_GCJ"
26233
26234# Set to yes if exported symbols are required.
26235always_export_symbols=$always_export_symbols_GCJ
26236
26237# The commands to list exported symbols.
26238export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26239
26240# The commands to extract the exported symbol list from a shared archive.
26241extract_expsyms_cmds=$lt_extract_expsyms_cmds
26242
26243# Symbols that should not be listed in the preloaded symbols.
26244exclude_expsyms=$lt_exclude_expsyms_GCJ
26245
26246# Symbols that must always be exported.
26247include_expsyms=$lt_include_expsyms_GCJ
26248
26249# ### END LIBTOOL TAG CONFIG: $tagname
26250
26251__EOF__
26252
26253
26254else
26255 # If there is no Makefile yet, we rely on a make rule to execute
26256 # `config.status --recheck' to rerun these tests and create the
26257 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026258 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26259 if test -f "$ltmain_in"; then
26260 test -f Makefile && make "$ltmain"
26261 fi
John Criswell47fdd832003-07-14 16:52:07 +000026262fi
26263
26264
26265ac_ext=c
26266ac_cpp='$CPP $CPPFLAGS'
26267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26269ac_compiler_gnu=$ac_cv_c_compiler_gnu
26270
26271CC="$lt_save_CC"
26272
26273 else
26274 tagname=""
26275 fi
26276 ;;
26277
26278 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026279 ac_ext=c
26280ac_cpp='$CPP $CPPFLAGS'
26281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26283ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026284
26285
26286# Source file extension for RC test sources.
26287ac_ext=rc
26288
26289# Object file extension for compiled RC test sources.
26290objext=o
26291objext_RC=$objext
26292
26293# Code to be used in simple compile tests
26294lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26295
26296# Code to be used in simple link tests
26297lt_simple_link_test_code="$lt_simple_compile_test_code"
26298
26299# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26300
26301# If no C compiler was specified, use CC.
26302LTCC=${LTCC-"$CC"}
26303
Reid Spencera773bd52006-08-04 18:18:08 +000026304# If no C compiler flags were specified, use CFLAGS.
26305LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26306
John Criswell47fdd832003-07-14 16:52:07 +000026307# Allow CC to be a program name with arguments.
26308compiler=$CC
26309
26310
Reid Spencera773bd52006-08-04 18:18:08 +000026311# save warnings/boilerplate of simple test code
26312ac_outfile=conftest.$ac_objext
26313printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26314eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26315_lt_compiler_boilerplate=`cat conftest.err`
26316$rm conftest*
26317
26318ac_outfile=conftest.$ac_objext
26319printf "$lt_simple_link_test_code" >conftest.$ac_ext
26320eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26321_lt_linker_boilerplate=`cat conftest.err`
26322$rm conftest*
26323
26324
John Criswell47fdd832003-07-14 16:52:07 +000026325# Allow CC to be a program name with arguments.
26326lt_save_CC="$CC"
26327CC=${RC-"windres"}
26328compiler=$CC
26329compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026330for cc_temp in $compiler""; do
26331 case $cc_temp in
26332 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26333 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26334 \-*) ;;
26335 *) break;;
26336 esac
26337done
26338cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26339
John Criswell47fdd832003-07-14 16:52:07 +000026340lt_cv_prog_compiler_c_o_RC=yes
26341
26342# The else clause should only fire when bootstrapping the
26343# libtool distribution, otherwise you forgot to ship ltmain.sh
26344# with your package, and you will get complaints that there are
26345# no rules to generate ltmain.sh.
26346if test -f "$ltmain"; then
26347 # See if we are running on zsh, and set the options which allow our commands through
26348 # without removal of \ escapes.
26349 if test -n "${ZSH_VERSION+set}" ; then
26350 setopt NO_GLOB_SUBST
26351 fi
26352 # Now quote all the things that may contain metacharacters while being
26353 # careful not to overquote the AC_SUBSTed values. We take copies of the
26354 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026355 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 +000026356 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026357 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26358 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26359 deplibs_check_method reload_flag reload_cmds need_locks \
26360 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26361 lt_cv_sys_global_symbol_to_c_name_address \
26362 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26363 old_postinstall_cmds old_postuninstall_cmds \
26364 compiler_RC \
26365 CC_RC \
26366 LD_RC \
26367 lt_prog_compiler_wl_RC \
26368 lt_prog_compiler_pic_RC \
26369 lt_prog_compiler_static_RC \
26370 lt_prog_compiler_no_builtin_flag_RC \
26371 export_dynamic_flag_spec_RC \
26372 thread_safe_flag_spec_RC \
26373 whole_archive_flag_spec_RC \
26374 enable_shared_with_static_runtimes_RC \
26375 old_archive_cmds_RC \
26376 old_archive_from_new_cmds_RC \
26377 predep_objects_RC \
26378 postdep_objects_RC \
26379 predeps_RC \
26380 postdeps_RC \
26381 compiler_lib_search_path_RC \
26382 archive_cmds_RC \
26383 archive_expsym_cmds_RC \
26384 postinstall_cmds_RC \
26385 postuninstall_cmds_RC \
26386 old_archive_from_expsyms_cmds_RC \
26387 allow_undefined_flag_RC \
26388 no_undefined_flag_RC \
26389 export_symbols_cmds_RC \
26390 hardcode_libdir_flag_spec_RC \
26391 hardcode_libdir_flag_spec_ld_RC \
26392 hardcode_libdir_separator_RC \
26393 hardcode_automatic_RC \
26394 module_cmds_RC \
26395 module_expsym_cmds_RC \
26396 lt_cv_prog_compiler_c_o_RC \
26397 exclude_expsyms_RC \
26398 include_expsyms_RC; do
26399
26400 case $var in
26401 old_archive_cmds_RC | \
26402 old_archive_from_new_cmds_RC | \
26403 archive_cmds_RC | \
26404 archive_expsym_cmds_RC | \
26405 module_cmds_RC | \
26406 module_expsym_cmds_RC | \
26407 old_archive_from_expsyms_cmds_RC | \
26408 export_symbols_cmds_RC | \
26409 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26410 postinstall_cmds | postuninstall_cmds | \
26411 old_postinstall_cmds | old_postuninstall_cmds | \
26412 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26413 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026414 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 +000026415 ;;
26416 *)
26417 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26418 ;;
26419 esac
26420 done
26421
26422 case $lt_echo in
26423 *'\$0 --fallback-echo"')
26424 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26425 ;;
26426 esac
26427
26428cfgfile="$ofile"
26429
26430 cat <<__EOF__ >> "$cfgfile"
26431# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26432
26433# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26434
26435# Shell to use when invoking shell scripts.
26436SHELL=$lt_SHELL
26437
26438# Whether or not to build shared libraries.
26439build_libtool_libs=$enable_shared
26440
26441# Whether or not to build static libraries.
26442build_old_libs=$enable_static
26443
26444# Whether or not to add -lc for building shared libraries.
26445build_libtool_need_lc=$archive_cmds_need_lc_RC
26446
26447# Whether or not to disallow shared libs when runtime libs are static
26448allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26449
26450# Whether or not to optimize for fast installation.
26451fast_install=$enable_fast_install
26452
26453# The host system.
26454host_alias=$host_alias
26455host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026456host_os=$host_os
26457
26458# The build system.
26459build_alias=$build_alias
26460build=$build
26461build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026462
26463# An echo program that does not interpret backslashes.
26464echo=$lt_echo
26465
26466# The archiver.
26467AR=$lt_AR
26468AR_FLAGS=$lt_AR_FLAGS
26469
26470# A C compiler.
26471LTCC=$lt_LTCC
26472
Reid Spencera773bd52006-08-04 18:18:08 +000026473# LTCC compiler flags.
26474LTCFLAGS=$lt_LTCFLAGS
26475
John Criswell47fdd832003-07-14 16:52:07 +000026476# A language-specific compiler.
26477CC=$lt_compiler_RC
26478
26479# Is the compiler the GNU C compiler?
26480with_gcc=$GCC_RC
26481
26482# An ERE matcher.
26483EGREP=$lt_EGREP
26484
26485# The linker used to build libraries.
26486LD=$lt_LD_RC
26487
26488# Whether we need hard or soft links.
26489LN_S=$lt_LN_S
26490
26491# A BSD-compatible nm program.
26492NM=$lt_NM
26493
26494# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026495STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026496
26497# Used to examine libraries when file_magic_cmd begins "file"
26498MAGIC_CMD=$MAGIC_CMD
26499
26500# Used on cygwin: DLL creation program.
26501DLLTOOL="$DLLTOOL"
26502
26503# Used on cygwin: object dumper.
26504OBJDUMP="$OBJDUMP"
26505
26506# Used on cygwin: assembler.
26507AS="$AS"
26508
26509# The name of the directory that contains temporary libtool files.
26510objdir=$objdir
26511
26512# How to create reloadable object files.
26513reload_flag=$lt_reload_flag
26514reload_cmds=$lt_reload_cmds
26515
26516# How to pass a linker flag through the compiler.
26517wl=$lt_lt_prog_compiler_wl_RC
26518
26519# Object file suffix (normally "o").
26520objext="$ac_objext"
26521
26522# Old archive suffix (normally "a").
26523libext="$libext"
26524
26525# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026526shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026527
26528# Executable file suffix (normally "").
26529exeext="$exeext"
26530
26531# Additional compiler flags for building library objects.
26532pic_flag=$lt_lt_prog_compiler_pic_RC
26533pic_mode=$pic_mode
26534
26535# What is the maximum length of a command?
26536max_cmd_len=$lt_cv_sys_max_cmd_len
26537
26538# Does compiler simultaneously support -c and -o options?
26539compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26540
Reid Spencera773bd52006-08-04 18:18:08 +000026541# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026542need_locks=$lt_need_locks
26543
26544# Do we need the lib prefix for modules?
26545need_lib_prefix=$need_lib_prefix
26546
26547# Do we need a version for libraries?
26548need_version=$need_version
26549
26550# Whether dlopen is supported.
26551dlopen_support=$enable_dlopen
26552
26553# Whether dlopen of programs is supported.
26554dlopen_self=$enable_dlopen_self
26555
26556# Whether dlopen of statically linked programs is supported.
26557dlopen_self_static=$enable_dlopen_self_static
26558
26559# Compiler flag to prevent dynamic linking.
26560link_static_flag=$lt_lt_prog_compiler_static_RC
26561
26562# Compiler flag to turn off builtin functions.
26563no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26564
26565# Compiler flag to allow reflexive dlopens.
26566export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26567
26568# Compiler flag to generate shared objects directly from archives.
26569whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26570
26571# Compiler flag to generate thread-safe objects.
26572thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26573
26574# Library versioning type.
26575version_type=$version_type
26576
26577# Format of library name prefix.
26578libname_spec=$lt_libname_spec
26579
26580# List of archive names. First name is the real one, the rest are links.
26581# The last name is the one that the linker finds with -lNAME.
26582library_names_spec=$lt_library_names_spec
26583
26584# The coded name of the library, if different from the real name.
26585soname_spec=$lt_soname_spec
26586
26587# Commands used to build and install an old-style archive.
26588RANLIB=$lt_RANLIB
26589old_archive_cmds=$lt_old_archive_cmds_RC
26590old_postinstall_cmds=$lt_old_postinstall_cmds
26591old_postuninstall_cmds=$lt_old_postuninstall_cmds
26592
26593# Create an old-style archive from a shared archive.
26594old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26595
26596# Create a temporary old-style archive to link instead of a shared archive.
26597old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26598
26599# Commands used to build and install a shared archive.
26600archive_cmds=$lt_archive_cmds_RC
26601archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26602postinstall_cmds=$lt_postinstall_cmds
26603postuninstall_cmds=$lt_postuninstall_cmds
26604
26605# Commands used to build a loadable module (assumed same as above if empty)
26606module_cmds=$lt_module_cmds_RC
26607module_expsym_cmds=$lt_module_expsym_cmds_RC
26608
26609# Commands to strip libraries.
26610old_striplib=$lt_old_striplib
26611striplib=$lt_striplib
26612
26613# Dependencies to place before the objects being linked to create a
26614# shared library.
26615predep_objects=$lt_predep_objects_RC
26616
26617# Dependencies to place after the objects being linked to create a
26618# shared library.
26619postdep_objects=$lt_postdep_objects_RC
26620
26621# Dependencies to place before the objects being linked to create a
26622# shared library.
26623predeps=$lt_predeps_RC
26624
26625# Dependencies to place after the objects being linked to create a
26626# shared library.
26627postdeps=$lt_postdeps_RC
26628
26629# The library search path used internally by the compiler when linking
26630# a shared library.
26631compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26632
26633# Method to check whether dependent libraries are shared objects.
26634deplibs_check_method=$lt_deplibs_check_method
26635
26636# Command to use when deplibs_check_method == file_magic.
26637file_magic_cmd=$lt_file_magic_cmd
26638
26639# Flag that allows shared libraries with undefined symbols to be built.
26640allow_undefined_flag=$lt_allow_undefined_flag_RC
26641
26642# Flag that forces no undefined symbols.
26643no_undefined_flag=$lt_no_undefined_flag_RC
26644
26645# Commands used to finish a libtool library installation in a directory.
26646finish_cmds=$lt_finish_cmds
26647
26648# Same as above, but a single script fragment to be evaled but not shown.
26649finish_eval=$lt_finish_eval
26650
26651# Take the output of nm and produce a listing of raw symbols and C names.
26652global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26653
26654# Transform the output of nm in a proper C declaration
26655global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26656
26657# Transform the output of nm in a C name address pair
26658global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26659
26660# This is the shared library runtime path variable.
26661runpath_var=$runpath_var
26662
26663# This is the shared library path variable.
26664shlibpath_var=$shlibpath_var
26665
26666# Is shlibpath searched before the hard-coded library search path?
26667shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26668
26669# How to hardcode a shared library path into an executable.
26670hardcode_action=$hardcode_action_RC
26671
26672# Whether we should hardcode library paths into libraries.
26673hardcode_into_libs=$hardcode_into_libs
26674
26675# Flag to hardcode \$libdir into a binary during linking.
26676# This must work even if \$libdir does not exist.
26677hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26678
26679# If ld is used when linking, flag to hardcode \$libdir into
26680# a binary during linking. This must work even if \$libdir does
26681# not exist.
26682hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26683
26684# Whether we need a single -rpath flag with a separated argument.
26685hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26686
26687# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26688# resulting binary.
26689hardcode_direct=$hardcode_direct_RC
26690
26691# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26692# resulting binary.
26693hardcode_minus_L=$hardcode_minus_L_RC
26694
26695# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26696# the resulting binary.
26697hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26698
26699# Set to yes if building a shared library automatically hardcodes DIR into the library
26700# and all subsequent libraries and executables linked against it.
26701hardcode_automatic=$hardcode_automatic_RC
26702
26703# Variables whose values should be saved in libtool wrapper scripts and
26704# restored at relink time.
26705variables_saved_for_relink="$variables_saved_for_relink"
26706
26707# Whether libtool must link a program against all its dependency libraries.
26708link_all_deplibs=$link_all_deplibs_RC
26709
26710# Compile-time system search path for libraries
26711sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26712
26713# Run-time system search path for libraries
26714sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26715
26716# Fix the shell variable \$srcfile for the compiler.
26717fix_srcfile_path="$fix_srcfile_path_RC"
26718
26719# Set to yes if exported symbols are required.
26720always_export_symbols=$always_export_symbols_RC
26721
26722# The commands to list exported symbols.
26723export_symbols_cmds=$lt_export_symbols_cmds_RC
26724
26725# The commands to extract the exported symbol list from a shared archive.
26726extract_expsyms_cmds=$lt_extract_expsyms_cmds
26727
26728# Symbols that should not be listed in the preloaded symbols.
26729exclude_expsyms=$lt_exclude_expsyms_RC
26730
26731# Symbols that must always be exported.
26732include_expsyms=$lt_include_expsyms_RC
26733
26734# ### END LIBTOOL TAG CONFIG: $tagname
26735
26736__EOF__
26737
26738
26739else
26740 # If there is no Makefile yet, we rely on a make rule to execute
26741 # `config.status --recheck' to rerun these tests and create the
26742 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026743 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26744 if test -f "$ltmain_in"; then
26745 test -f Makefile && make "$ltmain"
26746 fi
John Criswell47fdd832003-07-14 16:52:07 +000026747fi
26748
26749
26750ac_ext=c
26751ac_cpp='$CPP $CPPFLAGS'
26752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26754ac_compiler_gnu=$ac_cv_c_compiler_gnu
26755
26756CC="$lt_save_CC"
26757
26758 ;;
26759
26760 *)
26761 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26762echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26763 { (exit 1); exit 1; }; }
26764 ;;
26765 esac
26766
26767 # Append the new tag name to the list of available tags.
26768 if test -n "$tagname" ; then
26769 available_tags="$available_tags $tagname"
26770 fi
26771 fi
26772 done
26773 IFS="$lt_save_ifs"
26774
26775 # Now substitute the updated list of available tags.
26776 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26777 mv "${ofile}T" "$ofile"
26778 chmod +x "$ofile"
26779 else
26780 rm -f "${ofile}T"
26781 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26782echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26783 { (exit 1); exit 1; }; }
26784 fi
26785fi
John Criswell7a73b802003-06-30 21:59:07 +000026786
26787
26788
26789# This can be used to rebuild libtool when needed
26790LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26791
26792# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026793LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026794
26795# Prevent multiple expansion
26796
26797
26798
John Criswell47fdd832003-07-14 16:52:07 +000026799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026816
Reid Spencer582a23c2004-12-29 07:07:57 +000026817if test "$lt_cv_dlopen_self" = "yes" ; then
26818
26819cat >>confdefs.h <<\_ACEOF
26820#define CAN_DLOPEN_SELF 1
26821_ACEOF
26822
26823fi
26824
Douglas Gregor01746742009-05-11 18:05:52 +000026825
Reid Spencer7931a782004-12-27 06:15:02 +000026826if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026827 LLVMGCC="llvm-gcc${EXEEXT}"
26828 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026829 LLVMGCCCOMMAND="$LLVMGCC"
26830 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026831 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26832
26833 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26834
Reid Spencerc84492c2005-06-02 22:34:49 +000026835 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26836set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026839if test "${ac_cv_path_LLVMGCC+set}" = set; then
26840 echo $ECHO_N "(cached) $ECHO_C" >&6
26841else
26842 case $LLVMGCC in
26843 [\\/]* | ?:[\\/]*)
26844 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26845 ;;
26846 *)
26847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26848for as_dir in $PATH
26849do
26850 IFS=$as_save_IFS
26851 test -z "$as_dir" && as_dir=.
26852 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026853 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 +000026854 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26856 break 2
26857 fi
26858done
26859done
Reid Spencera773bd52006-08-04 18:18:08 +000026860IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026861
Reid Spencer59473af2004-12-25 07:31:29 +000026862 ;;
26863esac
26864fi
26865LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026866if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026867 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26868echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026869else
Reid Spencera773bd52006-08-04 18:18:08 +000026870 { echo "$as_me:$LINENO: result: no" >&5
26871echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026872fi
26873
Reid Spencera773bd52006-08-04 18:18:08 +000026874
Reid Spencerc84492c2005-06-02 22:34:49 +000026875 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26876set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026877{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026879if test "${ac_cv_path_LLVMGXX+set}" = set; then
26880 echo $ECHO_N "(cached) $ECHO_C" >&6
26881else
26882 case $LLVMGXX in
26883 [\\/]* | ?:[\\/]*)
26884 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26885 ;;
26886 *)
26887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26888for as_dir in $PATH
26889do
26890 IFS=$as_save_IFS
26891 test -z "$as_dir" && as_dir=.
26892 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026893 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 +000026894 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26896 break 2
26897 fi
26898done
26899done
Reid Spencera773bd52006-08-04 18:18:08 +000026900IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026901
Reid Spencer59473af2004-12-25 07:31:29 +000026902 ;;
26903esac
26904fi
26905LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026906if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026907 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26908echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026909else
Reid Spencera773bd52006-08-04 18:18:08 +000026910 { echo "$as_me:$LINENO: result: no" >&5
26911echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026912fi
26913
Reid Spencera773bd52006-08-04 18:18:08 +000026914
Reid Spencer59473af2004-12-25 07:31:29 +000026915else
Devang Patel5d28b882007-12-04 22:54:47 +000026916 if test -z "$LLVMGCC"; then
26917 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026918 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000026919 fi
26920 if test -z "$LLVMGXX"; then
26921 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026922 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000026923 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026924
Reid Spencer59473af2004-12-25 07:31:29 +000026925 LLVMGCC=$LLVMGCC
26926
26927 LLVMGXX=$LLVMGXX
26928
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026929 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26930
26931 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26932
Reid Spencer59473af2004-12-25 07:31:29 +000026933fi
26934
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026935
Reid Spencera773bd52006-08-04 18:18:08 +000026936{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26937echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026938
Reid Spencer86901802004-12-08 23:07:27 +000026939ICC=no
26940IXX=no
26941case $CC in
26942 icc*|icpc*)
26943 ICC=yes
26944 IXX=yes
26945 ;;
26946 *)
26947 ;;
26948esac
26949
Duraid Madina937c60a2006-02-15 07:57:42 +000026950if test "$GCC" != "yes" && test "$ICC" != "yes"
26951then
26952 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26953echo "$as_me: error: gcc|icc required but not found" >&2;}
26954 { (exit 1); exit 1; }; }
26955fi
26956
26957if test "$GXX" != "yes" && test "$IXX" != "yes"
26958then
26959 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26960echo "$as_me: error: g++|icc required but not found" >&2;}
26961 { (exit 1); exit 1; }; }
26962fi
26963
Reid Spencer86901802004-12-08 23:07:27 +000026964if test "$GCC" = "yes"
26965then
Chris Lattner399c7c72008-02-05 19:43:53 +000026966 cat >conftest.$ac_ext <<_ACEOF
26967#if !defined(__GNUC__) || __GNUC__ < 3
26968#error Unsupported GCC version
26969#endif
26970
26971_ACEOF
26972rm -f conftest.$ac_objext
26973if { (ac_try="$ac_compile"
26974case "(($ac_try" in
26975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26976 *) ac_try_echo=$ac_try;;
26977esac
26978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26979 (eval "$ac_compile") 2>conftest.er1
26980 ac_status=$?
26981 grep -v '^ *+' conftest.er1 >conftest.err
26982 rm -f conftest.er1
26983 cat conftest.err >&5
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000026985 (exit $ac_status); } &&
26986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26987 { (case "(($ac_try" in
26988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26989 *) ac_try_echo=$ac_try;;
26990esac
26991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26992 (eval "$ac_try") 2>&5
26993 ac_status=$?
26994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995 (exit $ac_status); }; } &&
26996 { ac_try='test -s conftest.$ac_objext'
26997 { (case "(($ac_try" in
26998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26999 *) ac_try_echo=$ac_try;;
27000esac
27001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27002 (eval "$ac_try") 2>&5
27003 ac_status=$?
27004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27005 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027006 :
27007else
27008 echo "$as_me: failed program was:" >&5
27009sed 's/^/| /' conftest.$ac_ext >&5
27010
27011 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027012echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27013 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027014fi
27015
27016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027017fi
27018
27019if test -z "$llvm_cv_gnu_make_command"
27020then
27021 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27022echo "$as_me: error: GNU Make required but not found" >&2;}
27023 { (exit 1); exit 1; }; }
27024fi
27025
Reid Spencera773bd52006-08-04 18:18:08 +000027026{ echo "$as_me:$LINENO: result: ok" >&5
27027echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027028
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027029
John Criswell7a73b802003-06-30 21:59:07 +000027030
Reid Spencera773bd52006-08-04 18:18:08 +000027031{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27032echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027033if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27034 echo $ECHO_N "(cached) $ECHO_C" >&6
27035else
27036 ac_check_lib_save_LIBS=$LIBS
27037LIBS="-lelf $LIBS"
27038cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027039/* confdefs.h. */
27040_ACEOF
27041cat confdefs.h >>conftest.$ac_ext
27042cat >>conftest.$ac_ext <<_ACEOF
27043/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027044
Reid Spencera773bd52006-08-04 18:18:08 +000027045/* Override any GCC internal prototype to avoid an error.
27046 Use char because int might match the return type of a GCC
27047 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027048#ifdef __cplusplus
27049extern "C"
27050#endif
John Criswell7a73b802003-06-30 21:59:07 +000027051char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027052int
27053main ()
27054{
Reid Spencera773bd52006-08-04 18:18:08 +000027055return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027056 ;
27057 return 0;
27058}
27059_ACEOF
27060rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027061if { (ac_try="$ac_link"
27062case "(($ac_try" in
27063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27064 *) ac_try_echo=$ac_try;;
27065esac
27066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27067 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027068 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027069 grep -v '^ *+' conftest.er1 >conftest.err
27070 rm -f conftest.er1
27071 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027073 (exit $ac_status); } &&
27074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27075 { (case "(($ac_try" in
27076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077 *) ac_try_echo=$ac_try;;
27078esac
27079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080 (eval "$ac_try") 2>&5
27081 ac_status=$?
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); }; } &&
27084 { ac_try='test -s conftest$ac_exeext'
27085 { (case "(($ac_try" in
27086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27087 *) ac_try_echo=$ac_try;;
27088esac
27089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27090 (eval "$ac_try") 2>&5
27091 ac_status=$?
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027094 ac_cv_lib_elf_elf_begin=yes
27095else
27096 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027097sed 's/^/| /' conftest.$ac_ext >&5
27098
Reid Spencera773bd52006-08-04 18:18:08 +000027099 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027100fi
Reid Spencera773bd52006-08-04 18:18:08 +000027101
Bill Wendlingebcceee2009-04-18 11:20:33 +000027102rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027103 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027104LIBS=$ac_check_lib_save_LIBS
27105fi
Reid Spencera773bd52006-08-04 18:18:08 +000027106{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27107echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027108if test $ac_cv_lib_elf_elf_begin = yes; then
27109 cat >>confdefs.h <<_ACEOF
27110#define HAVE_LIBELF 1
27111_ACEOF
27112
27113 LIBS="-lelf $LIBS"
27114
27115fi
27116
27117
Reid Spencera773bd52006-08-04 18:18:08 +000027118{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27119echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027120if test "${ac_cv_lib_m_sin+set}" = set; then
27121 echo $ECHO_N "(cached) $ECHO_C" >&6
27122else
27123 ac_check_lib_save_LIBS=$LIBS
27124LIBS="-lm $LIBS"
27125cat >conftest.$ac_ext <<_ACEOF
27126/* confdefs.h. */
27127_ACEOF
27128cat confdefs.h >>conftest.$ac_ext
27129cat >>conftest.$ac_ext <<_ACEOF
27130/* end confdefs.h. */
27131
Reid Spencera773bd52006-08-04 18:18:08 +000027132/* Override any GCC internal prototype to avoid an error.
27133 Use char because int might match the return type of a GCC
27134 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027135#ifdef __cplusplus
27136extern "C"
27137#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027138char sin ();
27139int
27140main ()
27141{
Reid Spencera773bd52006-08-04 18:18:08 +000027142return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027143 ;
27144 return 0;
27145}
27146_ACEOF
27147rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027148if { (ac_try="$ac_link"
27149case "(($ac_try" in
27150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151 *) ac_try_echo=$ac_try;;
27152esac
27153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27154 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027155 ac_status=$?
27156 grep -v '^ *+' conftest.er1 >conftest.err
27157 rm -f conftest.er1
27158 cat conftest.err >&5
27159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027160 (exit $ac_status); } &&
27161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27162 { (case "(($ac_try" in
27163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164 *) ac_try_echo=$ac_try;;
27165esac
27166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167 (eval "$ac_try") 2>&5
27168 ac_status=$?
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); }; } &&
27171 { ac_try='test -s conftest$ac_exeext'
27172 { (case "(($ac_try" in
27173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27174 *) ac_try_echo=$ac_try;;
27175esac
27176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27177 (eval "$ac_try") 2>&5
27178 ac_status=$?
27179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27180 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027181 ac_cv_lib_m_sin=yes
27182else
27183 echo "$as_me: failed program was:" >&5
27184sed 's/^/| /' conftest.$ac_ext >&5
27185
Reid Spencera773bd52006-08-04 18:18:08 +000027186 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027187fi
Reid Spencera773bd52006-08-04 18:18:08 +000027188
Bill Wendlingebcceee2009-04-18 11:20:33 +000027189rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027190 conftest$ac_exeext conftest.$ac_ext
27191LIBS=$ac_check_lib_save_LIBS
27192fi
Reid Spencera773bd52006-08-04 18:18:08 +000027193{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27194echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027195if test $ac_cv_lib_m_sin = yes; then
27196 cat >>confdefs.h <<_ACEOF
27197#define HAVE_LIBM 1
27198_ACEOF
27199
27200 LIBS="-lm $LIBS"
27201
27202fi
27203
Jeff Cohen28783c32007-01-12 18:22:38 +000027204if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027205
Reid Spencera773bd52006-08-04 18:18:08 +000027206{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27207echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027208if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027209 echo $ECHO_N "(cached) $ECHO_C" >&6
27210else
27211 ac_check_lib_save_LIBS=$LIBS
27212LIBS="-limagehlp $LIBS"
27213cat >conftest.$ac_ext <<_ACEOF
27214/* confdefs.h. */
27215_ACEOF
27216cat confdefs.h >>conftest.$ac_ext
27217cat >>conftest.$ac_ext <<_ACEOF
27218/* end confdefs.h. */
27219
Reid Spencer48fdf912006-06-01 19:03:21 +000027220
Reid Spencer484fc8e2006-06-01 16:55:59 +000027221int
27222main ()
27223{
Reid Spencera773bd52006-08-04 18:18:08 +000027224return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027225 ;
27226 return 0;
27227}
27228_ACEOF
27229rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027230if { (ac_try="$ac_link"
27231case "(($ac_try" in
27232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27233 *) ac_try_echo=$ac_try;;
27234esac
27235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27236 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027237 ac_status=$?
27238 grep -v '^ *+' conftest.er1 >conftest.err
27239 rm -f conftest.er1
27240 cat conftest.err >&5
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027242 (exit $ac_status); } &&
27243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27244 { (case "(($ac_try" in
27245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27246 *) ac_try_echo=$ac_try;;
27247esac
27248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27249 (eval "$ac_try") 2>&5
27250 ac_status=$?
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); }; } &&
27253 { ac_try='test -s conftest$ac_exeext'
27254 { (case "(($ac_try" in
27255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27256 *) ac_try_echo=$ac_try;;
27257esac
27258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27259 (eval "$ac_try") 2>&5
27260 ac_status=$?
27261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027263 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027264else
27265 echo "$as_me: failed program was:" >&5
27266sed 's/^/| /' conftest.$ac_ext >&5
27267
Reid Spencera773bd52006-08-04 18:18:08 +000027268 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027269fi
Reid Spencera773bd52006-08-04 18:18:08 +000027270
Bill Wendlingebcceee2009-04-18 11:20:33 +000027271rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027272 conftest$ac_exeext conftest.$ac_ext
27273LIBS=$ac_check_lib_save_LIBS
27274fi
Reid Spencera773bd52006-08-04 18:18:08 +000027275{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27276echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027277if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027278 cat >>confdefs.h <<_ACEOF
27279#define HAVE_LIBIMAGEHLP 1
27280_ACEOF
27281
27282 LIBS="-limagehlp $LIBS"
27283
27284fi
27285
27286
Reid Spencera773bd52006-08-04 18:18:08 +000027287{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27288echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027289if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027290 echo $ECHO_N "(cached) $ECHO_C" >&6
27291else
27292 ac_check_lib_save_LIBS=$LIBS
27293LIBS="-lpsapi $LIBS"
27294cat >conftest.$ac_ext <<_ACEOF
27295/* confdefs.h. */
27296_ACEOF
27297cat confdefs.h >>conftest.$ac_ext
27298cat >>conftest.$ac_ext <<_ACEOF
27299/* end confdefs.h. */
27300
Reid Spencer48fdf912006-06-01 19:03:21 +000027301
Reid Spencer484fc8e2006-06-01 16:55:59 +000027302int
27303main ()
27304{
Reid Spencera773bd52006-08-04 18:18:08 +000027305return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027306 ;
27307 return 0;
27308}
27309_ACEOF
27310rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027311if { (ac_try="$ac_link"
27312case "(($ac_try" in
27313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27314 *) ac_try_echo=$ac_try;;
27315esac
27316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27317 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027318 ac_status=$?
27319 grep -v '^ *+' conftest.er1 >conftest.err
27320 rm -f conftest.er1
27321 cat conftest.err >&5
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027323 (exit $ac_status); } &&
27324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27325 { (case "(($ac_try" in
27326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27327 *) ac_try_echo=$ac_try;;
27328esac
27329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27330 (eval "$ac_try") 2>&5
27331 ac_status=$?
27332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); }; } &&
27334 { ac_try='test -s conftest$ac_exeext'
27335 { (case "(($ac_try" in
27336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27337 *) ac_try_echo=$ac_try;;
27338esac
27339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27340 (eval "$ac_try") 2>&5
27341 ac_status=$?
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027344 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027345else
27346 echo "$as_me: failed program was:" >&5
27347sed 's/^/| /' conftest.$ac_ext >&5
27348
Reid Spencera773bd52006-08-04 18:18:08 +000027349 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027350fi
Reid Spencera773bd52006-08-04 18:18:08 +000027351
Bill Wendlingebcceee2009-04-18 11:20:33 +000027352rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027353 conftest$ac_exeext conftest.$ac_ext
27354LIBS=$ac_check_lib_save_LIBS
27355fi
Reid Spencera773bd52006-08-04 18:18:08 +000027356{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27357echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027358if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027359 cat >>confdefs.h <<_ACEOF
27360#define HAVE_LIBPSAPI 1
27361_ACEOF
27362
27363 LIBS="-lpsapi $LIBS"
27364
27365fi
27366
27367fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027368
Reid Spencera773bd52006-08-04 18:18:08 +000027369{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27370echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027371if test "${ac_cv_search_dlopen+set}" = set; then
27372 echo $ECHO_N "(cached) $ECHO_C" >&6
27373else
27374 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027375cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027376/* confdefs.h. */
27377_ACEOF
27378cat confdefs.h >>conftest.$ac_ext
27379cat >>conftest.$ac_ext <<_ACEOF
27380/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027381
Reid Spencera773bd52006-08-04 18:18:08 +000027382/* Override any GCC internal prototype to avoid an error.
27383 Use char because int might match the return type of a GCC
27384 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027385#ifdef __cplusplus
27386extern "C"
27387#endif
John Criswell7a73b802003-06-30 21:59:07 +000027388char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027389int
27390main ()
27391{
Reid Spencera773bd52006-08-04 18:18:08 +000027392return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027393 ;
27394 return 0;
27395}
27396_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027397for ac_lib in '' dl; do
27398 if test -z "$ac_lib"; then
27399 ac_res="none required"
27400 else
27401 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027403 fi
27404 rm -f conftest.$ac_objext conftest$ac_exeext
27405if { (ac_try="$ac_link"
27406case "(($ac_try" in
27407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27408 *) ac_try_echo=$ac_try;;
27409esac
27410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27411 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027412 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027413 grep -v '^ *+' conftest.er1 >conftest.err
27414 rm -f conftest.er1
27415 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027417 (exit $ac_status); } &&
27418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27419 { (case "(($ac_try" in
27420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27421 *) ac_try_echo=$ac_try;;
27422esac
27423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27424 (eval "$ac_try") 2>&5
27425 ac_status=$?
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); }; } &&
27428 { ac_try='test -s conftest$ac_exeext'
27429 { (case "(($ac_try" in
27430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27431 *) ac_try_echo=$ac_try;;
27432esac
27433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27434 (eval "$ac_try") 2>&5
27435 ac_status=$?
27436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027438 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027439else
27440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027441sed 's/^/| /' conftest.$ac_ext >&5
27442
Reid Spencera773bd52006-08-04 18:18:08 +000027443
John Criswell7a73b802003-06-30 21:59:07 +000027444fi
Reid Spencera773bd52006-08-04 18:18:08 +000027445
Bill Wendlingebcceee2009-04-18 11:20:33 +000027446rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027447 conftest$ac_exeext
27448 if test "${ac_cv_search_dlopen+set}" = set; then
27449 break
John Criswell7a73b802003-06-30 21:59:07 +000027450fi
Reid Spencera773bd52006-08-04 18:18:08 +000027451done
27452if test "${ac_cv_search_dlopen+set}" = set; then
27453 :
27454else
27455 ac_cv_search_dlopen=no
27456fi
27457rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027458LIBS=$ac_func_search_save_LIBS
27459fi
Reid Spencera773bd52006-08-04 18:18:08 +000027460{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27461echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27462ac_res=$ac_cv_search_dlopen
27463if test "$ac_res" != no; then
27464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027465
27466cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027467#define HAVE_DLOPEN 1
27468_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027469
27470else
Brian Gaekec45be042003-10-07 06:01:34 +000027471 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27472echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027473fi
27474
27475
Nick Lewycky267fddb2009-04-13 04:26:27 +000027476{ echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
27477echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27478if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027479 echo $ECHO_N "(cached) $ECHO_C" >&6
27480else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027481 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027482cat >conftest.$ac_ext <<_ACEOF
27483/* confdefs.h. */
27484_ACEOF
27485cat confdefs.h >>conftest.$ac_ext
27486cat >>conftest.$ac_ext <<_ACEOF
27487/* end confdefs.h. */
27488
27489/* Override any GCC internal prototype to avoid an error.
27490 Use char because int might match the return type of a GCC
27491 builtin and then its argument prototype would still apply. */
27492#ifdef __cplusplus
27493extern "C"
27494#endif
27495char ffi_call ();
27496int
27497main ()
27498{
27499return ffi_call ();
27500 ;
27501 return 0;
27502}
27503_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027504for ac_lib in '' ffi; do
27505 if test -z "$ac_lib"; then
27506 ac_res="none required"
27507 else
27508 ac_res=-l$ac_lib
27509 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27510 fi
27511 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027512if { (ac_try="$ac_link"
27513case "(($ac_try" in
27514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515 *) ac_try_echo=$ac_try;;
27516esac
27517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27518 (eval "$ac_link") 2>conftest.er1
27519 ac_status=$?
27520 grep -v '^ *+' conftest.er1 >conftest.err
27521 rm -f conftest.er1
27522 cat conftest.err >&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027524 (exit $ac_status); } &&
27525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27526 { (case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27529esac
27530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531 (eval "$ac_try") 2>&5
27532 ac_status=$?
27533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 (exit $ac_status); }; } &&
27535 { ac_try='test -s conftest$ac_exeext'
27536 { (case "(($ac_try" in
27537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27538 *) ac_try_echo=$ac_try;;
27539esac
27540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27541 (eval "$ac_try") 2>&5
27542 ac_status=$?
27543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27544 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027545 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027546else
27547 echo "$as_me: failed program was:" >&5
27548sed 's/^/| /' conftest.$ac_ext >&5
27549
Nick Lewycky267fddb2009-04-13 04:26:27 +000027550
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027551fi
27552
Bill Wendlingebcceee2009-04-18 11:20:33 +000027553rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027554 conftest$ac_exeext
27555 if test "${ac_cv_search_ffi_call+set}" = set; then
27556 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027557fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027558done
27559if test "${ac_cv_search_ffi_call+set}" = set; then
27560 :
27561else
27562 ac_cv_search_ffi_call=no
27563fi
27564rm conftest.$ac_ext
27565LIBS=$ac_func_search_save_LIBS
27566fi
27567{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27568echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27569ac_res=$ac_cv_search_ffi_call
27570if test "$ac_res" != no; then
27571 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27572
27573cat >>confdefs.h <<\_ACEOF
27574#define HAVE_FFI_CALL 1
27575_ACEOF
27576
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027577else
27578 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27579echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27580fi
27581
27582
Reid Spencera773bd52006-08-04 18:18:08 +000027583{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27584echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027585if test "${ac_cv_search_mallinfo+set}" = set; then
27586 echo $ECHO_N "(cached) $ECHO_C" >&6
27587else
27588 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027589cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027590/* confdefs.h. */
27591_ACEOF
27592cat confdefs.h >>conftest.$ac_ext
27593cat >>conftest.$ac_ext <<_ACEOF
27594/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027595
Reid Spencera773bd52006-08-04 18:18:08 +000027596/* Override any GCC internal prototype to avoid an error.
27597 Use char because int might match the return type of a GCC
27598 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027599#ifdef __cplusplus
27600extern "C"
27601#endif
John Criswell7a73b802003-06-30 21:59:07 +000027602char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027603int
27604main ()
27605{
Reid Spencera773bd52006-08-04 18:18:08 +000027606return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027607 ;
27608 return 0;
27609}
27610_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027611for ac_lib in '' malloc; do
27612 if test -z "$ac_lib"; then
27613 ac_res="none required"
27614 else
27615 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027617 fi
27618 rm -f conftest.$ac_objext conftest$ac_exeext
27619if { (ac_try="$ac_link"
27620case "(($ac_try" in
27621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27622 *) ac_try_echo=$ac_try;;
27623esac
27624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27625 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027626 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027627 grep -v '^ *+' conftest.er1 >conftest.err
27628 rm -f conftest.er1
27629 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027631 (exit $ac_status); } &&
27632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27633 { (case "(($ac_try" in
27634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27635 *) ac_try_echo=$ac_try;;
27636esac
27637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27638 (eval "$ac_try") 2>&5
27639 ac_status=$?
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); }; } &&
27642 { ac_try='test -s conftest$ac_exeext'
27643 { (case "(($ac_try" in
27644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27645 *) ac_try_echo=$ac_try;;
27646esac
27647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27648 (eval "$ac_try") 2>&5
27649 ac_status=$?
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027652 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027653else
27654 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027655sed 's/^/| /' conftest.$ac_ext >&5
27656
Reid Spencera773bd52006-08-04 18:18:08 +000027657
John Criswell7a73b802003-06-30 21:59:07 +000027658fi
Reid Spencera773bd52006-08-04 18:18:08 +000027659
Bill Wendlingebcceee2009-04-18 11:20:33 +000027660rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027661 conftest$ac_exeext
27662 if test "${ac_cv_search_mallinfo+set}" = set; then
27663 break
John Criswell7a73b802003-06-30 21:59:07 +000027664fi
Reid Spencera773bd52006-08-04 18:18:08 +000027665done
27666if test "${ac_cv_search_mallinfo+set}" = set; then
27667 :
27668else
27669 ac_cv_search_mallinfo=no
27670fi
27671rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027672LIBS=$ac_func_search_save_LIBS
27673fi
Reid Spencera773bd52006-08-04 18:18:08 +000027674{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27675echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27676ac_res=$ac_cv_search_mallinfo
27677if test "$ac_res" != no; then
27678 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027679
27680cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027681#define HAVE_MALLINFO 1
27682_ACEOF
27683
27684fi
27685
27686
Reid Spencer0a262ba2005-08-24 10:07:20 +000027687if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027688
Reid Spencera773bd52006-08-04 18:18:08 +000027689{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27690echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027691if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27692 echo $ECHO_N "(cached) $ECHO_C" >&6
27693else
27694 ac_check_lib_save_LIBS=$LIBS
27695LIBS="-lpthread $LIBS"
27696cat >conftest.$ac_ext <<_ACEOF
27697/* confdefs.h. */
27698_ACEOF
27699cat confdefs.h >>conftest.$ac_ext
27700cat >>conftest.$ac_ext <<_ACEOF
27701/* end confdefs.h. */
27702
Reid Spencera773bd52006-08-04 18:18:08 +000027703/* Override any GCC internal prototype to avoid an error.
27704 Use char because int might match the return type of a GCC
27705 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027706#ifdef __cplusplus
27707extern "C"
27708#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027709char pthread_mutex_init ();
27710int
27711main ()
27712{
Reid Spencera773bd52006-08-04 18:18:08 +000027713return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027714 ;
27715 return 0;
27716}
27717_ACEOF
27718rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027719if { (ac_try="$ac_link"
27720case "(($ac_try" in
27721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27722 *) ac_try_echo=$ac_try;;
27723esac
27724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27725 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027726 ac_status=$?
27727 grep -v '^ *+' conftest.er1 >conftest.err
27728 rm -f conftest.er1
27729 cat conftest.err >&5
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027731 (exit $ac_status); } &&
27732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27733 { (case "(($ac_try" in
27734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735 *) ac_try_echo=$ac_try;;
27736esac
27737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27738 (eval "$ac_try") 2>&5
27739 ac_status=$?
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); }; } &&
27742 { ac_try='test -s conftest$ac_exeext'
27743 { (case "(($ac_try" in
27744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745 *) ac_try_echo=$ac_try;;
27746esac
27747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748 (eval "$ac_try") 2>&5
27749 ac_status=$?
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027752 ac_cv_lib_pthread_pthread_mutex_init=yes
27753else
27754 echo "$as_me: failed program was:" >&5
27755sed 's/^/| /' conftest.$ac_ext >&5
27756
Reid Spencera773bd52006-08-04 18:18:08 +000027757 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027758fi
Reid Spencera773bd52006-08-04 18:18:08 +000027759
Bill Wendlingebcceee2009-04-18 11:20:33 +000027760rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027761 conftest$ac_exeext conftest.$ac_ext
27762LIBS=$ac_check_lib_save_LIBS
27763fi
Reid Spencera773bd52006-08-04 18:18:08 +000027764{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27765echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027766if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27767 cat >>confdefs.h <<_ACEOF
27768#define HAVE_LIBPTHREAD 1
27769_ACEOF
27770
27771 LIBS="-lpthread $LIBS"
27772
27773fi
27774
Reid Spencera773bd52006-08-04 18:18:08 +000027775 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27776echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027777if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27778 echo $ECHO_N "(cached) $ECHO_C" >&6
27779else
27780 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027781cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027782/* confdefs.h. */
27783_ACEOF
27784cat confdefs.h >>conftest.$ac_ext
27785cat >>conftest.$ac_ext <<_ACEOF
27786/* end confdefs.h. */
27787
Reid Spencera773bd52006-08-04 18:18:08 +000027788/* Override any GCC internal prototype to avoid an error.
27789 Use char because int might match the return type of a GCC
27790 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027791#ifdef __cplusplus
27792extern "C"
27793#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027794char pthread_mutex_lock ();
27795int
27796main ()
27797{
Reid Spencera773bd52006-08-04 18:18:08 +000027798return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027799 ;
27800 return 0;
27801}
27802_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027803for ac_lib in '' pthread; do
27804 if test -z "$ac_lib"; then
27805 ac_res="none required"
27806 else
27807 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027809 fi
27810 rm -f conftest.$ac_objext conftest$ac_exeext
27811if { (ac_try="$ac_link"
27812case "(($ac_try" in
27813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27814 *) ac_try_echo=$ac_try;;
27815esac
27816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27817 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027818 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027819 grep -v '^ *+' conftest.er1 >conftest.err
27820 rm -f conftest.er1
27821 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027823 (exit $ac_status); } &&
27824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27825 { (case "(($ac_try" in
27826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27827 *) ac_try_echo=$ac_try;;
27828esac
27829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27830 (eval "$ac_try") 2>&5
27831 ac_status=$?
27832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833 (exit $ac_status); }; } &&
27834 { ac_try='test -s conftest$ac_exeext'
27835 { (case "(($ac_try" in
27836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837 *) ac_try_echo=$ac_try;;
27838esac
27839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27840 (eval "$ac_try") 2>&5
27841 ac_status=$?
27842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27843 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027844 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027845else
27846 echo "$as_me: failed program was:" >&5
27847sed 's/^/| /' conftest.$ac_ext >&5
27848
Reid Spencera773bd52006-08-04 18:18:08 +000027849
Brian Gaeke5f268f72003-12-05 19:29:01 +000027850fi
Reid Spencera773bd52006-08-04 18:18:08 +000027851
Bill Wendlingebcceee2009-04-18 11:20:33 +000027852rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027853 conftest$ac_exeext
27854 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27855 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027856fi
Reid Spencera773bd52006-08-04 18:18:08 +000027857done
27858if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27859 :
27860else
27861 ac_cv_search_pthread_mutex_lock=no
27862fi
27863rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027864LIBS=$ac_func_search_save_LIBS
27865fi
Reid Spencera773bd52006-08-04 18:18:08 +000027866{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27867echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27868ac_res=$ac_cv_search_pthread_mutex_lock
27869if test "$ac_res" != no; then
27870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027871
John Criswell40468462004-09-24 21:19:06 +000027872cat >>confdefs.h <<\_ACEOF
27873#define HAVE_PTHREAD_MUTEX_LOCK 1
27874_ACEOF
27875
27876fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027877
Reid Spencer0a262ba2005-08-24 10:07:20 +000027878fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027879
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027880
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027881# Check whether --with-udis86 was given.
27882if test "${with_udis86+set}" = set; then
27883 withval=$with_udis86;
27884 USE_UDIS86=1
27885
27886 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027887 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027888 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27889 esac
27890
27891{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27892echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27893if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27894 echo $ECHO_N "(cached) $ECHO_C" >&6
27895else
27896 ac_check_lib_save_LIBS=$LIBS
27897LIBS="-ludis86 $LIBS"
27898cat >conftest.$ac_ext <<_ACEOF
27899/* confdefs.h. */
27900_ACEOF
27901cat confdefs.h >>conftest.$ac_ext
27902cat >>conftest.$ac_ext <<_ACEOF
27903/* end confdefs.h. */
27904
27905/* Override any GCC internal prototype to avoid an error.
27906 Use char because int might match the return type of a GCC
27907 builtin and then its argument prototype would still apply. */
27908#ifdef __cplusplus
27909extern "C"
27910#endif
27911char ud_init ();
27912int
27913main ()
27914{
27915return ud_init ();
27916 ;
27917 return 0;
27918}
27919_ACEOF
27920rm -f conftest.$ac_objext conftest$ac_exeext
27921if { (ac_try="$ac_link"
27922case "(($ac_try" in
27923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27924 *) ac_try_echo=$ac_try;;
27925esac
27926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27927 (eval "$ac_link") 2>conftest.er1
27928 ac_status=$?
27929 grep -v '^ *+' conftest.er1 >conftest.err
27930 rm -f conftest.er1
27931 cat conftest.err >&5
27932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027933 (exit $ac_status); } &&
27934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27935 { (case "(($ac_try" in
27936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937 *) ac_try_echo=$ac_try;;
27938esac
27939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940 (eval "$ac_try") 2>&5
27941 ac_status=$?
27942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); }; } &&
27944 { ac_try='test -s conftest$ac_exeext'
27945 { (case "(($ac_try" in
27946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947 *) ac_try_echo=$ac_try;;
27948esac
27949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950 (eval "$ac_try") 2>&5
27951 ac_status=$?
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027954 ac_cv_lib_udis86_ud_init=yes
27955else
27956 echo "$as_me: failed program was:" >&5
27957sed 's/^/| /' conftest.$ac_ext >&5
27958
27959 ac_cv_lib_udis86_ud_init=no
27960fi
27961
Bill Wendlingebcceee2009-04-18 11:20:33 +000027962rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027963 conftest$ac_exeext conftest.$ac_ext
27964LIBS=$ac_check_lib_save_LIBS
27965fi
27966{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27967echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27968if test $ac_cv_lib_udis86_ud_init = yes; then
27969 cat >>confdefs.h <<_ACEOF
27970#define HAVE_LIBUDIS86 1
27971_ACEOF
27972
27973 LIBS="-ludis86 $LIBS"
27974
27975else
27976
27977 echo "Error! You need to have libudis86 around."
27978 exit -1
27979
27980fi
27981
27982
27983else
27984 USE_UDIS86=0
27985
27986fi
27987
27988
27989cat >>confdefs.h <<_ACEOF
27990#define USE_UDIS86 $USE_UDIS86
27991_ACEOF
27992
27993
27994
Reid Spencer59473af2004-12-25 07:31:29 +000027995
27996
27997
27998
27999
28000ac_header_dirent=no
28001for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28002 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028003{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28004echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28005if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028006 echo $ECHO_N "(cached) $ECHO_C" >&6
28007else
28008 cat >conftest.$ac_ext <<_ACEOF
28009/* confdefs.h. */
28010_ACEOF
28011cat confdefs.h >>conftest.$ac_ext
28012cat >>conftest.$ac_ext <<_ACEOF
28013/* end confdefs.h. */
28014#include <sys/types.h>
28015#include <$ac_hdr>
28016
28017int
28018main ()
28019{
28020if ((DIR *) 0)
28021return 0;
28022 ;
28023 return 0;
28024}
28025_ACEOF
28026rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028027if { (ac_try="$ac_compile"
28028case "(($ac_try" in
28029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030 *) ac_try_echo=$ac_try;;
28031esac
28032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028034 ac_status=$?
28035 grep -v '^ *+' conftest.er1 >conftest.err
28036 rm -f conftest.er1
28037 cat conftest.err >&5
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028039 (exit $ac_status); } &&
28040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28041 { (case "(($ac_try" in
28042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28043 *) ac_try_echo=$ac_try;;
28044esac
28045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28046 (eval "$ac_try") 2>&5
28047 ac_status=$?
28048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049 (exit $ac_status); }; } &&
28050 { ac_try='test -s conftest.$ac_objext'
28051 { (case "(($ac_try" in
28052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28053 *) ac_try_echo=$ac_try;;
28054esac
28055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28056 (eval "$ac_try") 2>&5
28057 ac_status=$?
28058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28059 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028060 eval "$as_ac_Header=yes"
28061else
28062 echo "$as_me: failed program was:" >&5
28063sed 's/^/| /' conftest.$ac_ext >&5
28064
Reid Spencera773bd52006-08-04 18:18:08 +000028065 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028066fi
Reid Spencera773bd52006-08-04 18:18:08 +000028067
28068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028069fi
Reid Spencera773bd52006-08-04 18:18:08 +000028070ac_res=`eval echo '${'$as_ac_Header'}'`
28071 { echo "$as_me:$LINENO: result: $ac_res" >&5
28072echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028073if test `eval echo '${'$as_ac_Header'}'` = yes; then
28074 cat >>confdefs.h <<_ACEOF
28075#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28076_ACEOF
28077
28078ac_header_dirent=$ac_hdr; break
28079fi
28080
28081done
28082# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28083if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028084 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28085echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028086if test "${ac_cv_search_opendir+set}" = set; then
28087 echo $ECHO_N "(cached) $ECHO_C" >&6
28088else
28089 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028090cat >conftest.$ac_ext <<_ACEOF
28091/* confdefs.h. */
28092_ACEOF
28093cat confdefs.h >>conftest.$ac_ext
28094cat >>conftest.$ac_ext <<_ACEOF
28095/* end confdefs.h. */
28096
Reid Spencera773bd52006-08-04 18:18:08 +000028097/* Override any GCC internal prototype to avoid an error.
28098 Use char because int might match the return type of a GCC
28099 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028100#ifdef __cplusplus
28101extern "C"
28102#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028103char opendir ();
28104int
28105main ()
28106{
Reid Spencera773bd52006-08-04 18:18:08 +000028107return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028108 ;
28109 return 0;
28110}
28111_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028112for ac_lib in '' dir; do
28113 if test -z "$ac_lib"; then
28114 ac_res="none required"
28115 else
28116 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028118 fi
28119 rm -f conftest.$ac_objext conftest$ac_exeext
28120if { (ac_try="$ac_link"
28121case "(($ac_try" in
28122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123 *) ac_try_echo=$ac_try;;
28124esac
28125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028127 ac_status=$?
28128 grep -v '^ *+' conftest.er1 >conftest.err
28129 rm -f conftest.er1
28130 cat conftest.err >&5
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028132 (exit $ac_status); } &&
28133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28134 { (case "(($ac_try" in
28135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28136 *) ac_try_echo=$ac_try;;
28137esac
28138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28139 (eval "$ac_try") 2>&5
28140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; } &&
28143 { ac_try='test -s conftest$ac_exeext'
28144 { (case "(($ac_try" in
28145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28146 *) ac_try_echo=$ac_try;;
28147esac
28148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28149 (eval "$ac_try") 2>&5
28150 ac_status=$?
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028153 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028154else
28155 echo "$as_me: failed program was:" >&5
28156sed 's/^/| /' conftest.$ac_ext >&5
28157
Reid Spencera773bd52006-08-04 18:18:08 +000028158
Reid Spencer59473af2004-12-25 07:31:29 +000028159fi
Reid Spencera773bd52006-08-04 18:18:08 +000028160
Bill Wendlingebcceee2009-04-18 11:20:33 +000028161rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028162 conftest$ac_exeext
28163 if test "${ac_cv_search_opendir+set}" = set; then
28164 break
Reid Spencer59473af2004-12-25 07:31:29 +000028165fi
Reid Spencera773bd52006-08-04 18:18:08 +000028166done
28167if test "${ac_cv_search_opendir+set}" = set; then
28168 :
28169else
28170 ac_cv_search_opendir=no
28171fi
28172rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028173LIBS=$ac_func_search_save_LIBS
28174fi
Reid Spencera773bd52006-08-04 18:18:08 +000028175{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28176echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28177ac_res=$ac_cv_search_opendir
28178if test "$ac_res" != no; then
28179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028180
28181fi
28182
28183else
Reid Spencera773bd52006-08-04 18:18:08 +000028184 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28185echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028186if test "${ac_cv_search_opendir+set}" = set; then
28187 echo $ECHO_N "(cached) $ECHO_C" >&6
28188else
28189 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028190cat >conftest.$ac_ext <<_ACEOF
28191/* confdefs.h. */
28192_ACEOF
28193cat confdefs.h >>conftest.$ac_ext
28194cat >>conftest.$ac_ext <<_ACEOF
28195/* end confdefs.h. */
28196
Reid Spencera773bd52006-08-04 18:18:08 +000028197/* Override any GCC internal prototype to avoid an error.
28198 Use char because int might match the return type of a GCC
28199 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028200#ifdef __cplusplus
28201extern "C"
28202#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028203char opendir ();
28204int
28205main ()
28206{
Reid Spencera773bd52006-08-04 18:18:08 +000028207return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028208 ;
28209 return 0;
28210}
28211_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028212for ac_lib in '' x; do
28213 if test -z "$ac_lib"; then
28214 ac_res="none required"
28215 else
28216 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028218 fi
28219 rm -f conftest.$ac_objext conftest$ac_exeext
28220if { (ac_try="$ac_link"
28221case "(($ac_try" in
28222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28223 *) ac_try_echo=$ac_try;;
28224esac
28225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28226 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028227 ac_status=$?
28228 grep -v '^ *+' conftest.er1 >conftest.err
28229 rm -f conftest.er1
28230 cat conftest.err >&5
28231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028232 (exit $ac_status); } &&
28233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28234 { (case "(($ac_try" in
28235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28236 *) ac_try_echo=$ac_try;;
28237esac
28238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28239 (eval "$ac_try") 2>&5
28240 ac_status=$?
28241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242 (exit $ac_status); }; } &&
28243 { ac_try='test -s conftest$ac_exeext'
28244 { (case "(($ac_try" in
28245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28246 *) ac_try_echo=$ac_try;;
28247esac
28248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28249 (eval "$ac_try") 2>&5
28250 ac_status=$?
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028253 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028254else
28255 echo "$as_me: failed program was:" >&5
28256sed 's/^/| /' conftest.$ac_ext >&5
28257
Reid Spencera773bd52006-08-04 18:18:08 +000028258
Reid Spencer59473af2004-12-25 07:31:29 +000028259fi
Reid Spencera773bd52006-08-04 18:18:08 +000028260
Bill Wendlingebcceee2009-04-18 11:20:33 +000028261rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028262 conftest$ac_exeext
28263 if test "${ac_cv_search_opendir+set}" = set; then
28264 break
Reid Spencer59473af2004-12-25 07:31:29 +000028265fi
Reid Spencera773bd52006-08-04 18:18:08 +000028266done
28267if test "${ac_cv_search_opendir+set}" = set; then
28268 :
28269else
28270 ac_cv_search_opendir=no
28271fi
28272rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028273LIBS=$ac_func_search_save_LIBS
28274fi
Reid Spencera773bd52006-08-04 18:18:08 +000028275{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28276echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28277ac_res=$ac_cv_search_opendir
28278if test "$ac_res" != no; then
28279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028280
28281fi
28282
28283fi
28284
Reid Spencera773bd52006-08-04 18:18:08 +000028285{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28286echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028287if test "${ac_cv_header_mmap_anon+set}" = set; then
28288 echo $ECHO_N "(cached) $ECHO_C" >&6
28289else
28290 ac_ext=c
28291ac_cpp='$CPP $CPPFLAGS'
28292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28294ac_compiler_gnu=$ac_cv_c_compiler_gnu
28295
28296 cat >conftest.$ac_ext <<_ACEOF
28297/* confdefs.h. */
28298_ACEOF
28299cat confdefs.h >>conftest.$ac_ext
28300cat >>conftest.$ac_ext <<_ACEOF
28301/* end confdefs.h. */
28302#include <sys/mman.h>
28303#include <unistd.h>
28304#include <fcntl.h>
28305int
28306main ()
28307{
28308mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28309 ;
28310 return 0;
28311}
28312_ACEOF
28313rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028314if { (ac_try="$ac_compile"
28315case "(($ac_try" in
28316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28317 *) ac_try_echo=$ac_try;;
28318esac
28319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28320 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028321 ac_status=$?
28322 grep -v '^ *+' conftest.er1 >conftest.err
28323 rm -f conftest.er1
28324 cat conftest.err >&5
28325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028326 (exit $ac_status); } &&
28327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28328 { (case "(($ac_try" in
28329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330 *) ac_try_echo=$ac_try;;
28331esac
28332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333 (eval "$ac_try") 2>&5
28334 ac_status=$?
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); }; } &&
28337 { ac_try='test -s conftest.$ac_objext'
28338 { (case "(($ac_try" in
28339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28340 *) ac_try_echo=$ac_try;;
28341esac
28342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28343 (eval "$ac_try") 2>&5
28344 ac_status=$?
28345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28346 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028347 ac_cv_header_mmap_anon=yes
28348else
28349 echo "$as_me: failed program was:" >&5
28350sed 's/^/| /' conftest.$ac_ext >&5
28351
Reid Spencera773bd52006-08-04 18:18:08 +000028352 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028353fi
Reid Spencera773bd52006-08-04 18:18:08 +000028354
28355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028356 ac_ext=c
28357ac_cpp='$CPP $CPPFLAGS'
28358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28360ac_compiler_gnu=$ac_cv_c_compiler_gnu
28361
28362
28363fi
Reid Spencera773bd52006-08-04 18:18:08 +000028364{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28365echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028366if test "$ac_cv_header_mmap_anon" = yes; then
28367
28368cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028369#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028370_ACEOF
28371
28372fi
28373
Reid Spencera773bd52006-08-04 18:18:08 +000028374{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28375echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028376if test "${ac_cv_header_stat_broken+set}" = set; then
28377 echo $ECHO_N "(cached) $ECHO_C" >&6
28378else
28379 cat >conftest.$ac_ext <<_ACEOF
28380/* confdefs.h. */
28381_ACEOF
28382cat confdefs.h >>conftest.$ac_ext
28383cat >>conftest.$ac_ext <<_ACEOF
28384/* end confdefs.h. */
28385#include <sys/types.h>
28386#include <sys/stat.h>
28387
Reid Spencera773bd52006-08-04 18:18:08 +000028388#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028389# if S_ISBLK (S_IFDIR)
28390You lose.
28391# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028392#endif
28393
Reid Spencera773bd52006-08-04 18:18:08 +000028394#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028395# if S_ISBLK (S_IFCHR)
28396You lose.
28397# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028398#endif
28399
Reid Spencera773bd52006-08-04 18:18:08 +000028400#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028401# if S_ISLNK (S_IFREG)
28402You lose.
28403# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028404#endif
28405
Reid Spencera773bd52006-08-04 18:18:08 +000028406#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028407# if S_ISSOCK (S_IFREG)
28408You lose.
28409# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028410#endif
28411
28412_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000028413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28414 $EGREP "You lose" >/dev/null 2>&1; then
28415 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028416else
Bill Wendlingebcceee2009-04-18 11:20:33 +000028417 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028418fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028419rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028420
Reid Spencer59473af2004-12-25 07:31:29 +000028421fi
Reid Spencera773bd52006-08-04 18:18:08 +000028422{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28423echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028424if test $ac_cv_header_stat_broken = yes; then
28425
28426cat >>confdefs.h <<\_ACEOF
28427#define STAT_MACROS_BROKEN 1
28428_ACEOF
28429
28430fi
28431
Reid Spencera773bd52006-08-04 18:18:08 +000028432{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28433echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028434if test "${ac_cv_header_stdc+set}" = set; then
28435 echo $ECHO_N "(cached) $ECHO_C" >&6
28436else
28437 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028438/* confdefs.h. */
28439_ACEOF
28440cat confdefs.h >>conftest.$ac_ext
28441cat >>conftest.$ac_ext <<_ACEOF
28442/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028443#include <stdlib.h>
28444#include <stdarg.h>
28445#include <string.h>
28446#include <float.h>
28447
John Criswell0c38eaf2003-09-10 15:17:25 +000028448int
28449main ()
28450{
28451
28452 ;
28453 return 0;
28454}
John Criswell7a73b802003-06-30 21:59:07 +000028455_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028456rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028457if { (ac_try="$ac_compile"
28458case "(($ac_try" in
28459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28460 *) ac_try_echo=$ac_try;;
28461esac
28462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28463 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028464 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028465 grep -v '^ *+' conftest.er1 >conftest.err
28466 rm -f conftest.er1
28467 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028469 (exit $ac_status); } &&
28470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28471 { (case "(($ac_try" in
28472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473 *) ac_try_echo=$ac_try;;
28474esac
28475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476 (eval "$ac_try") 2>&5
28477 ac_status=$?
28478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); }; } &&
28480 { ac_try='test -s conftest.$ac_objext'
28481 { (case "(($ac_try" in
28482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28483 *) ac_try_echo=$ac_try;;
28484esac
28485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28486 (eval "$ac_try") 2>&5
28487 ac_status=$?
28488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028490 ac_cv_header_stdc=yes
28491else
28492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028493sed 's/^/| /' conftest.$ac_ext >&5
28494
Reid Spencera773bd52006-08-04 18:18:08 +000028495 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028496fi
Reid Spencera773bd52006-08-04 18:18:08 +000028497
28498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028499
28500if test $ac_cv_header_stdc = yes; then
28501 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28502 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028503/* confdefs.h. */
28504_ACEOF
28505cat confdefs.h >>conftest.$ac_ext
28506cat >>conftest.$ac_ext <<_ACEOF
28507/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028508#include <string.h>
28509
28510_ACEOF
28511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028512 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028513 :
28514else
28515 ac_cv_header_stdc=no
28516fi
28517rm -f conftest*
28518
28519fi
28520
28521if test $ac_cv_header_stdc = yes; then
28522 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28523 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028524/* confdefs.h. */
28525_ACEOF
28526cat confdefs.h >>conftest.$ac_ext
28527cat >>conftest.$ac_ext <<_ACEOF
28528/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028529#include <stdlib.h>
28530
28531_ACEOF
28532if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028533 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028534 :
28535else
28536 ac_cv_header_stdc=no
28537fi
28538rm -f conftest*
28539
28540fi
28541
28542if test $ac_cv_header_stdc = yes; then
28543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28544 if test "$cross_compiling" = yes; then
28545 :
28546else
28547 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028548/* confdefs.h. */
28549_ACEOF
28550cat confdefs.h >>conftest.$ac_ext
28551cat >>conftest.$ac_ext <<_ACEOF
28552/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028553#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028554#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028555#if ((' ' & 0x0FF) == 0x020)
28556# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28557# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28558#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028559# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028560 (('a' <= (c) && (c) <= 'i') \
28561 || ('j' <= (c) && (c) <= 'r') \
28562 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028563# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28564#endif
28565
28566#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28567int
28568main ()
28569{
28570 int i;
28571 for (i = 0; i < 256; i++)
28572 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028573 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028574 return 2;
28575 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028576}
28577_ACEOF
28578rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028579if { (ac_try="$ac_link"
28580case "(($ac_try" in
28581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28582 *) ac_try_echo=$ac_try;;
28583esac
28584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28585 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028586 ac_status=$?
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028589 { (case "(($ac_try" in
28590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28591 *) ac_try_echo=$ac_try;;
28592esac
28593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28594 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028595 ac_status=$?
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); }; }; then
28598 :
28599else
28600 echo "$as_me: program exited with status $ac_status" >&5
28601echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028602sed 's/^/| /' conftest.$ac_ext >&5
28603
John Criswell7a73b802003-06-30 21:59:07 +000028604( exit $ac_status )
28605ac_cv_header_stdc=no
28606fi
Reid Spencera773bd52006-08-04 18:18:08 +000028607rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28608fi
28609
28610
John Criswell7a73b802003-06-30 21:59:07 +000028611fi
28612fi
Reid Spencera773bd52006-08-04 18:18:08 +000028613{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28614echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028615if test $ac_cv_header_stdc = yes; then
28616
28617cat >>confdefs.h <<\_ACEOF
28618#define STDC_HEADERS 1
28619_ACEOF
28620
28621fi
28622
Reid Spencera773bd52006-08-04 18:18:08 +000028623{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28624echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028625if test "${ac_cv_header_sys_wait_h+set}" = set; then
28626 echo $ECHO_N "(cached) $ECHO_C" >&6
28627else
28628 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028629/* confdefs.h. */
28630_ACEOF
28631cat confdefs.h >>conftest.$ac_ext
28632cat >>conftest.$ac_ext <<_ACEOF
28633/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028634#include <sys/types.h>
28635#include <sys/wait.h>
28636#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028637# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028638#endif
28639#ifndef WIFEXITED
28640# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28641#endif
28642
John Criswell7a73b802003-06-30 21:59:07 +000028643int
28644main ()
28645{
28646 int s;
28647 wait (&s);
28648 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28649 ;
28650 return 0;
28651}
28652_ACEOF
28653rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028654if { (ac_try="$ac_compile"
28655case "(($ac_try" in
28656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657 *) ac_try_echo=$ac_try;;
28658esac
28659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028661 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028662 grep -v '^ *+' conftest.er1 >conftest.err
28663 rm -f conftest.er1
28664 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028666 (exit $ac_status); } &&
28667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28668 { (case "(($ac_try" in
28669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670 *) ac_try_echo=$ac_try;;
28671esac
28672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673 (eval "$ac_try") 2>&5
28674 ac_status=$?
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676 (exit $ac_status); }; } &&
28677 { ac_try='test -s conftest.$ac_objext'
28678 { (case "(($ac_try" in
28679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680 *) ac_try_echo=$ac_try;;
28681esac
28682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683 (eval "$ac_try") 2>&5
28684 ac_status=$?
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028687 ac_cv_header_sys_wait_h=yes
28688else
28689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028690sed 's/^/| /' conftest.$ac_ext >&5
28691
Reid Spencera773bd52006-08-04 18:18:08 +000028692 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028693fi
Reid Spencera773bd52006-08-04 18:18:08 +000028694
28695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028696fi
Reid Spencera773bd52006-08-04 18:18:08 +000028697{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28698echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028699if test $ac_cv_header_sys_wait_h = yes; then
28700
28701cat >>confdefs.h <<\_ACEOF
28702#define HAVE_SYS_WAIT_H 1
28703_ACEOF
28704
28705fi
28706
Reid Spencera773bd52006-08-04 18:18:08 +000028707{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28708echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028709if test "${ac_cv_header_time+set}" = set; then
28710 echo $ECHO_N "(cached) $ECHO_C" >&6
28711else
28712 cat >conftest.$ac_ext <<_ACEOF
28713/* confdefs.h. */
28714_ACEOF
28715cat confdefs.h >>conftest.$ac_ext
28716cat >>conftest.$ac_ext <<_ACEOF
28717/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028718#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028719#include <sys/time.h>
28720#include <time.h>
28721
28722int
28723main ()
28724{
28725if ((struct tm *) 0)
28726return 0;
28727 ;
28728 return 0;
28729}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028730_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028731rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028732if { (ac_try="$ac_compile"
28733case "(($ac_try" in
28734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28735 *) ac_try_echo=$ac_try;;
28736esac
28737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28738 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028739 ac_status=$?
28740 grep -v '^ *+' conftest.er1 >conftest.err
28741 rm -f conftest.er1
28742 cat conftest.err >&5
28743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028744 (exit $ac_status); } &&
28745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28746 { (case "(($ac_try" in
28747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28748 *) ac_try_echo=$ac_try;;
28749esac
28750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28751 (eval "$ac_try") 2>&5
28752 ac_status=$?
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; } &&
28755 { ac_try='test -s conftest.$ac_objext'
28756 { (case "(($ac_try" in
28757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28758 *) ac_try_echo=$ac_try;;
28759esac
28760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28761 (eval "$ac_try") 2>&5
28762 ac_status=$?
28763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028765 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028766else
28767 echo "$as_me: failed program was:" >&5
28768sed 's/^/| /' conftest.$ac_ext >&5
28769
Reid Spencera773bd52006-08-04 18:18:08 +000028770 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028771fi
Reid Spencera773bd52006-08-04 18:18:08 +000028772
28773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028774fi
Reid Spencera773bd52006-08-04 18:18:08 +000028775{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28776echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028777if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028778
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028779cat >>confdefs.h <<\_ACEOF
28780#define TIME_WITH_SYS_TIME 1
28781_ACEOF
28782
28783fi
28784
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028785
Reid Spencer59473af2004-12-25 07:31:29 +000028786
28787
28788
28789
28790
28791
28792for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28793do
28794as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28796 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28798if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028799 echo $ECHO_N "(cached) $ECHO_C" >&6
28800fi
Reid Spencera773bd52006-08-04 18:18:08 +000028801ac_res=`eval echo '${'$as_ac_Header'}'`
28802 { echo "$as_me:$LINENO: result: $ac_res" >&5
28803echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028804else
28805 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028806{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028808cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028809/* confdefs.h. */
28810_ACEOF
28811cat confdefs.h >>conftest.$ac_ext
28812cat >>conftest.$ac_ext <<_ACEOF
28813/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028814$ac_includes_default
28815#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028816_ACEOF
28817rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028818if { (ac_try="$ac_compile"
28819case "(($ac_try" in
28820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821 *) ac_try_echo=$ac_try;;
28822esac
28823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028825 ac_status=$?
28826 grep -v '^ *+' conftest.er1 >conftest.err
28827 rm -f conftest.er1
28828 cat conftest.err >&5
28829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028830 (exit $ac_status); } &&
28831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28832 { (case "(($ac_try" in
28833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834 *) ac_try_echo=$ac_try;;
28835esac
28836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837 (eval "$ac_try") 2>&5
28838 ac_status=$?
28839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840 (exit $ac_status); }; } &&
28841 { ac_try='test -s conftest.$ac_objext'
28842 { (case "(($ac_try" in
28843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844 *) ac_try_echo=$ac_try;;
28845esac
28846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847 (eval "$ac_try") 2>&5
28848 ac_status=$?
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028851 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028852else
28853 echo "$as_me: failed program was:" >&5
28854sed 's/^/| /' conftest.$ac_ext >&5
28855
Reid Spencera773bd52006-08-04 18:18:08 +000028856 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028857fi
Reid Spencera773bd52006-08-04 18:18:08 +000028858
28859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28860{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28861echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028862
Reid Spencer59473af2004-12-25 07:31:29 +000028863# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028864{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28865echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028866cat >conftest.$ac_ext <<_ACEOF
28867/* confdefs.h. */
28868_ACEOF
28869cat confdefs.h >>conftest.$ac_ext
28870cat >>conftest.$ac_ext <<_ACEOF
28871/* end confdefs.h. */
28872#include <$ac_header>
28873_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028874if { (ac_try="$ac_cpp conftest.$ac_ext"
28875case "(($ac_try" in
28876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28877 *) ac_try_echo=$ac_try;;
28878esac
28879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028881 ac_status=$?
28882 grep -v '^ *+' conftest.er1 >conftest.err
28883 rm -f conftest.er1
28884 cat conftest.err >&5
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028886 (exit $ac_status); } >/dev/null; then
28887 if test -s conftest.err; then
28888 ac_cpp_err=$ac_c_preproc_warn_flag
28889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28890 else
28891 ac_cpp_err=
28892 fi
28893else
28894 ac_cpp_err=yes
28895fi
28896if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028897 ac_header_preproc=yes
28898else
28899 echo "$as_me: failed program was:" >&5
28900sed 's/^/| /' conftest.$ac_ext >&5
28901
28902 ac_header_preproc=no
28903fi
Reid Spencera773bd52006-08-04 18:18:08 +000028904
Reid Spencer59473af2004-12-25 07:31:29 +000028905rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028906{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28907echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028908
28909# So? What about this header?
28910case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28911 yes:no: )
28912 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28913echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28915echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28916 ac_header_preproc=yes
28917 ;;
28918 no:yes:* )
28919 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28920echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28921 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28922echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28923 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28924echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28925 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28926echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28928echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28929 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28930echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028931 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028932## ----------------------------------- ##
28933## Report this to llvmbugs@cs.uiuc.edu ##
28934## ----------------------------------- ##
28935_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028936 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028937 ;;
28938esac
Reid Spencera773bd52006-08-04 18:18:08 +000028939{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028942 echo $ECHO_N "(cached) $ECHO_C" >&6
28943else
28944 eval "$as_ac_Header=\$ac_header_preproc"
28945fi
Reid Spencera773bd52006-08-04 18:18:08 +000028946ac_res=`eval echo '${'$as_ac_Header'}'`
28947 { echo "$as_me:$LINENO: result: $ac_res" >&5
28948echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028949
28950fi
Reid Spencer59473af2004-12-25 07:31:29 +000028951if test `eval echo '${'$as_ac_Header'}'` = yes; then
28952 cat >>confdefs.h <<_ACEOF
28953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028954_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028955
28956fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028957
Reid Spencer59473af2004-12-25 07:31:29 +000028958done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028959
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028960
28961
Reid Spencer59473af2004-12-25 07:31:29 +000028962
28963
28964
28965
Douglas Gregor071d73d2009-05-18 17:21:34 +000028966for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000028967do
28968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28970 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028973 echo $ECHO_N "(cached) $ECHO_C" >&6
28974fi
Reid Spencera773bd52006-08-04 18:18:08 +000028975ac_res=`eval echo '${'$as_ac_Header'}'`
28976 { echo "$as_me:$LINENO: result: $ac_res" >&5
28977echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028978else
28979 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028980{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28981echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028982cat >conftest.$ac_ext <<_ACEOF
28983/* confdefs.h. */
28984_ACEOF
28985cat confdefs.h >>conftest.$ac_ext
28986cat >>conftest.$ac_ext <<_ACEOF
28987/* end confdefs.h. */
28988$ac_includes_default
28989#include <$ac_header>
28990_ACEOF
28991rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028992if { (ac_try="$ac_compile"
28993case "(($ac_try" in
28994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28995 *) ac_try_echo=$ac_try;;
28996esac
28997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28998 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028999 ac_status=$?
29000 grep -v '^ *+' conftest.er1 >conftest.err
29001 rm -f conftest.er1
29002 cat conftest.err >&5
29003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029004 (exit $ac_status); } &&
29005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29006 { (case "(($ac_try" in
29007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29008 *) ac_try_echo=$ac_try;;
29009esac
29010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29011 (eval "$ac_try") 2>&5
29012 ac_status=$?
29013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014 (exit $ac_status); }; } &&
29015 { ac_try='test -s conftest.$ac_objext'
29016 { (case "(($ac_try" in
29017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29018 *) ac_try_echo=$ac_try;;
29019esac
29020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29021 (eval "$ac_try") 2>&5
29022 ac_status=$?
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029025 ac_header_compiler=yes
29026else
29027 echo "$as_me: failed program was:" >&5
29028sed 's/^/| /' conftest.$ac_ext >&5
29029
Reid Spencera773bd52006-08-04 18:18:08 +000029030 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029031fi
Reid Spencera773bd52006-08-04 18:18:08 +000029032
29033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29034{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29035echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029036
29037# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029038{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029040cat >conftest.$ac_ext <<_ACEOF
29041/* confdefs.h. */
29042_ACEOF
29043cat confdefs.h >>conftest.$ac_ext
29044cat >>conftest.$ac_ext <<_ACEOF
29045/* end confdefs.h. */
29046#include <$ac_header>
29047_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029048if { (ac_try="$ac_cpp conftest.$ac_ext"
29049case "(($ac_try" in
29050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051 *) ac_try_echo=$ac_try;;
29052esac
29053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029055 ac_status=$?
29056 grep -v '^ *+' conftest.er1 >conftest.err
29057 rm -f conftest.er1
29058 cat conftest.err >&5
29059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029060 (exit $ac_status); } >/dev/null; then
29061 if test -s conftest.err; then
29062 ac_cpp_err=$ac_c_preproc_warn_flag
29063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29064 else
29065 ac_cpp_err=
29066 fi
29067else
29068 ac_cpp_err=yes
29069fi
29070if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029071 ac_header_preproc=yes
29072else
29073 echo "$as_me: failed program was:" >&5
29074sed 's/^/| /' conftest.$ac_ext >&5
29075
29076 ac_header_preproc=no
29077fi
Reid Spencera773bd52006-08-04 18:18:08 +000029078
Reid Spencer59473af2004-12-25 07:31:29 +000029079rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029080{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29081echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029082
29083# So? What about this header?
29084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29085 yes:no: )
29086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29087echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29089echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29090 ac_header_preproc=yes
29091 ;;
29092 no:yes:* )
29093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29094echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29096echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29098echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29100echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29102echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29104echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029105 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029106## ----------------------------------- ##
29107## Report this to llvmbugs@cs.uiuc.edu ##
29108## ----------------------------------- ##
29109_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029110 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029111 ;;
29112esac
Reid Spencera773bd52006-08-04 18:18:08 +000029113{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29115if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029116 echo $ECHO_N "(cached) $ECHO_C" >&6
29117else
29118 eval "$as_ac_Header=\$ac_header_preproc"
29119fi
Reid Spencera773bd52006-08-04 18:18:08 +000029120ac_res=`eval echo '${'$as_ac_Header'}'`
29121 { echo "$as_me:$LINENO: result: $ac_res" >&5
29122echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029123
29124fi
29125if test `eval echo '${'$as_ac_Header'}'` = yes; then
29126 cat >>confdefs.h <<_ACEOF
29127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29128_ACEOF
29129
29130fi
29131
29132done
29133
29134
Douglas Gregor071d73d2009-05-18 17:21:34 +000029135
29136for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000029137do
29138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29139if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29142if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29143 echo $ECHO_N "(cached) $ECHO_C" >&6
29144fi
29145ac_res=`eval echo '${'$as_ac_Header'}'`
29146 { echo "$as_me:$LINENO: result: $ac_res" >&5
29147echo "${ECHO_T}$ac_res" >&6; }
29148else
29149 # Is the header compilable?
29150{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29152cat >conftest.$ac_ext <<_ACEOF
29153/* confdefs.h. */
29154_ACEOF
29155cat confdefs.h >>conftest.$ac_ext
29156cat >>conftest.$ac_ext <<_ACEOF
29157/* end confdefs.h. */
29158$ac_includes_default
29159#include <$ac_header>
29160_ACEOF
29161rm -f conftest.$ac_objext
29162if { (ac_try="$ac_compile"
29163case "(($ac_try" in
29164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29165 *) ac_try_echo=$ac_try;;
29166esac
29167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29168 (eval "$ac_compile") 2>conftest.er1
29169 ac_status=$?
29170 grep -v '^ *+' conftest.er1 >conftest.err
29171 rm -f conftest.er1
29172 cat conftest.err >&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029174 (exit $ac_status); } &&
29175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29176 { (case "(($ac_try" in
29177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29178 *) ac_try_echo=$ac_try;;
29179esac
29180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29181 (eval "$ac_try") 2>&5
29182 ac_status=$?
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); }; } &&
29185 { ac_try='test -s conftest.$ac_objext'
29186 { (case "(($ac_try" in
29187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29188 *) ac_try_echo=$ac_try;;
29189esac
29190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29191 (eval "$ac_try") 2>&5
29192 ac_status=$?
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029195 ac_header_compiler=yes
29196else
29197 echo "$as_me: failed program was:" >&5
29198sed 's/^/| /' conftest.$ac_ext >&5
29199
29200 ac_header_compiler=no
29201fi
29202
29203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29204{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29205echo "${ECHO_T}$ac_header_compiler" >&6; }
29206
29207# Is the header present?
29208{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29209echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29210cat >conftest.$ac_ext <<_ACEOF
29211/* confdefs.h. */
29212_ACEOF
29213cat confdefs.h >>conftest.$ac_ext
29214cat >>conftest.$ac_ext <<_ACEOF
29215/* end confdefs.h. */
29216#include <$ac_header>
29217_ACEOF
29218if { (ac_try="$ac_cpp conftest.$ac_ext"
29219case "(($ac_try" in
29220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221 *) ac_try_echo=$ac_try;;
29222esac
29223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29225 ac_status=$?
29226 grep -v '^ *+' conftest.er1 >conftest.err
29227 rm -f conftest.er1
29228 cat conftest.err >&5
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029230 (exit $ac_status); } >/dev/null; then
29231 if test -s conftest.err; then
29232 ac_cpp_err=$ac_c_preproc_warn_flag
29233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29234 else
29235 ac_cpp_err=
29236 fi
29237else
29238 ac_cpp_err=yes
29239fi
29240if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029241 ac_header_preproc=yes
29242else
29243 echo "$as_me: failed program was:" >&5
29244sed 's/^/| /' conftest.$ac_ext >&5
29245
29246 ac_header_preproc=no
29247fi
29248
29249rm -f conftest.err conftest.$ac_ext
29250{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29251echo "${ECHO_T}$ac_header_preproc" >&6; }
29252
29253# So? What about this header?
29254case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29255 yes:no: )
29256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29257echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29259echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29260 ac_header_preproc=yes
29261 ;;
29262 no:yes:* )
29263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29264echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29266echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29268echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29270echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29272echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29274echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29275 ( cat <<\_ASBOX
29276## ----------------------------------- ##
29277## Report this to llvmbugs@cs.uiuc.edu ##
29278## ----------------------------------- ##
29279_ASBOX
29280 ) | sed "s/^/$as_me: WARNING: /" >&2
29281 ;;
29282esac
29283{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29286 echo $ECHO_N "(cached) $ECHO_C" >&6
29287else
29288 eval "$as_ac_Header=\$ac_header_preproc"
29289fi
29290ac_res=`eval echo '${'$as_ac_Header'}'`
29291 { echo "$as_me:$LINENO: result: $ac_res" >&5
29292echo "${ECHO_T}$ac_res" >&6; }
29293
29294fi
29295if test `eval echo '${'$as_ac_Header'}'` = yes; then
29296 cat >>confdefs.h <<_ACEOF
29297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29298_ACEOF
29299
29300fi
29301
29302done
Reid Spencer59473af2004-12-25 07:31:29 +000029303
29304
29305
29306
Reid Spencerbe3e4192007-08-17 05:45:26 +000029307
29308for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029309do
29310as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029311if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29313echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29314if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029315 echo $ECHO_N "(cached) $ECHO_C" >&6
29316fi
Reid Spencera773bd52006-08-04 18:18:08 +000029317ac_res=`eval echo '${'$as_ac_Header'}'`
29318 { echo "$as_me:$LINENO: result: $ac_res" >&5
29319echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029320else
29321 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029322{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29323echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029324cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029325/* confdefs.h. */
29326_ACEOF
29327cat confdefs.h >>conftest.$ac_ext
29328cat >>conftest.$ac_ext <<_ACEOF
29329/* end confdefs.h. */
29330$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029331#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029332_ACEOF
29333rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029334if { (ac_try="$ac_compile"
29335case "(($ac_try" in
29336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29337 *) ac_try_echo=$ac_try;;
29338esac
29339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29340 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029341 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029342 grep -v '^ *+' conftest.er1 >conftest.err
29343 rm -f conftest.er1
29344 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029346 (exit $ac_status); } &&
29347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29348 { (case "(($ac_try" in
29349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29350 *) ac_try_echo=$ac_try;;
29351esac
29352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29353 (eval "$ac_try") 2>&5
29354 ac_status=$?
29355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29356 (exit $ac_status); }; } &&
29357 { ac_try='test -s conftest.$ac_objext'
29358 { (case "(($ac_try" in
29359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29360 *) ac_try_echo=$ac_try;;
29361esac
29362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29363 (eval "$ac_try") 2>&5
29364 ac_status=$?
29365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029367 ac_header_compiler=yes
29368else
29369 echo "$as_me: failed program was:" >&5
29370sed 's/^/| /' conftest.$ac_ext >&5
29371
Reid Spencera773bd52006-08-04 18:18:08 +000029372 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029373fi
Reid Spencera773bd52006-08-04 18:18:08 +000029374
29375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29376{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29377echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029378
29379# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029380{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029382cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029383/* confdefs.h. */
29384_ACEOF
29385cat confdefs.h >>conftest.$ac_ext
29386cat >>conftest.$ac_ext <<_ACEOF
29387/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029388#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029389_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029390if { (ac_try="$ac_cpp conftest.$ac_ext"
29391case "(($ac_try" in
29392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29393 *) ac_try_echo=$ac_try;;
29394esac
29395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029397 ac_status=$?
29398 grep -v '^ *+' conftest.er1 >conftest.err
29399 rm -f conftest.er1
29400 cat conftest.err >&5
29401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029402 (exit $ac_status); } >/dev/null; then
29403 if test -s conftest.err; then
29404 ac_cpp_err=$ac_c_preproc_warn_flag
29405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29406 else
29407 ac_cpp_err=
29408 fi
29409else
29410 ac_cpp_err=yes
29411fi
29412if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029413 ac_header_preproc=yes
29414else
29415 echo "$as_me: failed program was:" >&5
29416sed 's/^/| /' conftest.$ac_ext >&5
29417
29418 ac_header_preproc=no
29419fi
Reid Spencera773bd52006-08-04 18:18:08 +000029420
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029421rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029422{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29423echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029424
29425# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29427 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029432 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029433 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029434 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29438echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29442echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029447 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029448## ----------------------------------- ##
29449## Report this to llvmbugs@cs.uiuc.edu ##
29450## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029451_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029452 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029453 ;;
29454esac
Reid Spencera773bd52006-08-04 18:18:08 +000029455{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029458 echo $ECHO_N "(cached) $ECHO_C" >&6
29459else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029460 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029461fi
Reid Spencera773bd52006-08-04 18:18:08 +000029462ac_res=`eval echo '${'$as_ac_Header'}'`
29463 { echo "$as_me:$LINENO: result: $ac_res" >&5
29464echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029465
29466fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029467if test `eval echo '${'$as_ac_Header'}'` = yes; then
29468 cat >>confdefs.h <<_ACEOF
29469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029470_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029471
29472fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029473
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029474done
29475
John Criswell7ed43ad2004-07-19 16:12:29 +000029476
Reid Spencercdb08a32006-06-05 16:11:07 +000029477
Reid Spencera6d990a2006-09-14 06:17:21 +000029478
Douglas Gregor01746742009-05-11 18:05:52 +000029479
29480for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029481do
29482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029487 echo $ECHO_N "(cached) $ECHO_C" >&6
29488fi
Reid Spencera773bd52006-08-04 18:18:08 +000029489ac_res=`eval echo '${'$as_ac_Header'}'`
29490 { echo "$as_me:$LINENO: result: $ac_res" >&5
29491echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029492else
29493 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029494{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029496cat >conftest.$ac_ext <<_ACEOF
29497/* confdefs.h. */
29498_ACEOF
29499cat confdefs.h >>conftest.$ac_ext
29500cat >>conftest.$ac_ext <<_ACEOF
29501/* end confdefs.h. */
29502$ac_includes_default
29503#include <$ac_header>
29504_ACEOF
29505rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029506if { (ac_try="$ac_compile"
29507case "(($ac_try" in
29508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29509 *) ac_try_echo=$ac_try;;
29510esac
29511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29512 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029513 ac_status=$?
29514 grep -v '^ *+' conftest.er1 >conftest.err
29515 rm -f conftest.er1
29516 cat conftest.err >&5
29517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029518 (exit $ac_status); } &&
29519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29520 { (case "(($ac_try" in
29521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29522 *) ac_try_echo=$ac_try;;
29523esac
29524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29525 (eval "$ac_try") 2>&5
29526 ac_status=$?
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; } &&
29529 { ac_try='test -s conftest.$ac_objext'
29530 { (case "(($ac_try" in
29531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532 *) ac_try_echo=$ac_try;;
29533esac
29534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535 (eval "$ac_try") 2>&5
29536 ac_status=$?
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029539 ac_header_compiler=yes
29540else
29541 echo "$as_me: failed program was:" >&5
29542sed 's/^/| /' conftest.$ac_ext >&5
29543
Reid Spencera773bd52006-08-04 18:18:08 +000029544 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029545fi
Reid Spencera773bd52006-08-04 18:18:08 +000029546
29547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29548{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29549echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029550
29551# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029552{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29553echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029554cat >conftest.$ac_ext <<_ACEOF
29555/* confdefs.h. */
29556_ACEOF
29557cat confdefs.h >>conftest.$ac_ext
29558cat >>conftest.$ac_ext <<_ACEOF
29559/* end confdefs.h. */
29560#include <$ac_header>
29561_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029562if { (ac_try="$ac_cpp conftest.$ac_ext"
29563case "(($ac_try" in
29564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29565 *) ac_try_echo=$ac_try;;
29566esac
29567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029569 ac_status=$?
29570 grep -v '^ *+' conftest.er1 >conftest.err
29571 rm -f conftest.er1
29572 cat conftest.err >&5
29573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029574 (exit $ac_status); } >/dev/null; then
29575 if test -s conftest.err; then
29576 ac_cpp_err=$ac_c_preproc_warn_flag
29577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29578 else
29579 ac_cpp_err=
29580 fi
29581else
29582 ac_cpp_err=yes
29583fi
29584if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029585 ac_header_preproc=yes
29586else
29587 echo "$as_me: failed program was:" >&5
29588sed 's/^/| /' conftest.$ac_ext >&5
29589
29590 ac_header_preproc=no
29591fi
Reid Spencera773bd52006-08-04 18:18:08 +000029592
Chris Lattner0b142592005-11-14 06:57:34 +000029593rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029594{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29595echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029596
29597# So? What about this header?
29598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29599 yes:no: )
29600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29601echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29603echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29604 ac_header_preproc=yes
29605 ;;
29606 no:yes:* )
29607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29608echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29610echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29612echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29614echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29616echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29618echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029619 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029620## ----------------------------------- ##
29621## Report this to llvmbugs@cs.uiuc.edu ##
29622## ----------------------------------- ##
29623_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029624 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029625 ;;
29626esac
Reid Spencera773bd52006-08-04 18:18:08 +000029627{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029630 echo $ECHO_N "(cached) $ECHO_C" >&6
29631else
29632 eval "$as_ac_Header=\$ac_header_preproc"
29633fi
Reid Spencera773bd52006-08-04 18:18:08 +000029634ac_res=`eval echo '${'$as_ac_Header'}'`
29635 { echo "$as_me:$LINENO: result: $ac_res" >&5
29636echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029637
29638fi
29639if test `eval echo '${'$as_ac_Header'}'` = yes; then
29640 cat >>confdefs.h <<_ACEOF
29641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29642_ACEOF
29643
29644fi
29645
29646done
29647
Reid Spencer0a262ba2005-08-24 10:07:20 +000029648if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029649
29650for ac_header in pthread.h
29651do
29652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029657 echo $ECHO_N "(cached) $ECHO_C" >&6
29658fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029659ac_res=`eval echo '${'$as_ac_Header'}'`
29660 { echo "$as_me:$LINENO: result: $ac_res" >&5
29661echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029662else
29663 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029664{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29665echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029666cat >conftest.$ac_ext <<_ACEOF
29667/* confdefs.h. */
29668_ACEOF
29669cat confdefs.h >>conftest.$ac_ext
29670cat >>conftest.$ac_ext <<_ACEOF
29671/* end confdefs.h. */
29672$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029673#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029674_ACEOF
29675rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029676if { (ac_try="$ac_compile"
29677case "(($ac_try" in
29678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29679 *) ac_try_echo=$ac_try;;
29680esac
29681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29682 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029683 ac_status=$?
29684 grep -v '^ *+' conftest.er1 >conftest.err
29685 rm -f conftest.er1
29686 cat conftest.err >&5
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029688 (exit $ac_status); } &&
29689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29690 { (case "(($ac_try" in
29691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29692 *) ac_try_echo=$ac_try;;
29693esac
29694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29695 (eval "$ac_try") 2>&5
29696 ac_status=$?
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); }; } &&
29699 { ac_try='test -s conftest.$ac_objext'
29700 { (case "(($ac_try" in
29701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29702 *) ac_try_echo=$ac_try;;
29703esac
29704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29705 (eval "$ac_try") 2>&5
29706 ac_status=$?
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029709 ac_header_compiler=yes
29710else
29711 echo "$as_me: failed program was:" >&5
29712sed 's/^/| /' conftest.$ac_ext >&5
29713
Reid Spencera773bd52006-08-04 18:18:08 +000029714 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029715fi
Reid Spencera773bd52006-08-04 18:18:08 +000029716
29717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29718{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29719echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029720
29721# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029722{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029724cat >conftest.$ac_ext <<_ACEOF
29725/* confdefs.h. */
29726_ACEOF
29727cat confdefs.h >>conftest.$ac_ext
29728cat >>conftest.$ac_ext <<_ACEOF
29729/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029730#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029731_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029732if { (ac_try="$ac_cpp conftest.$ac_ext"
29733case "(($ac_try" in
29734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29735 *) ac_try_echo=$ac_try;;
29736esac
29737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029739 ac_status=$?
29740 grep -v '^ *+' conftest.er1 >conftest.err
29741 rm -f conftest.er1
29742 cat conftest.err >&5
29743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029744 (exit $ac_status); } >/dev/null; then
29745 if test -s conftest.err; then
29746 ac_cpp_err=$ac_c_preproc_warn_flag
29747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29748 else
29749 ac_cpp_err=
29750 fi
29751else
29752 ac_cpp_err=yes
29753fi
29754if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029755 ac_header_preproc=yes
29756else
29757 echo "$as_me: failed program was:" >&5
29758sed 's/^/| /' conftest.$ac_ext >&5
29759
29760 ac_header_preproc=no
29761fi
Reid Spencera773bd52006-08-04 18:18:08 +000029762
Reid Spencer0a262ba2005-08-24 10:07:20 +000029763rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029764{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29765echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029766
29767# So? What about this header?
29768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29769 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29771echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29773echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029774 ac_header_preproc=yes
29775 ;;
29776 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29778echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29780echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29782echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29784echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29786echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29788echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029789 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029790## ----------------------------------- ##
29791## Report this to llvmbugs@cs.uiuc.edu ##
29792## ----------------------------------- ##
29793_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029794 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029795 ;;
29796esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029797{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029800 echo $ECHO_N "(cached) $ECHO_C" >&6
29801else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029802 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029803fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029804ac_res=`eval echo '${'$as_ac_Header'}'`
29805 { echo "$as_me:$LINENO: result: $ac_res" >&5
29806echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029807
29808fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029809if test `eval echo '${'$as_ac_Header'}'` = yes; then
29810 cat >>confdefs.h <<_ACEOF
29811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29812_ACEOF
29813 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029814
29815else
29816 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029817
29818fi
29819
Reid Spencerbe3e4192007-08-17 05:45:26 +000029820done
Reid Spencer1000b732006-12-01 00:37:14 +000029821
29822else
29823 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029824
29825fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029826
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029827
29828
29829for ac_header in ffi.h ffi/ffi.h
29830do
29831as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29832if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29834echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29835if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29836 echo $ECHO_N "(cached) $ECHO_C" >&6
29837fi
29838ac_res=`eval echo '${'$as_ac_Header'}'`
29839 { echo "$as_me:$LINENO: result: $ac_res" >&5
29840echo "${ECHO_T}$ac_res" >&6; }
29841else
29842 # Is the header compilable?
29843{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29845cat >conftest.$ac_ext <<_ACEOF
29846/* confdefs.h. */
29847_ACEOF
29848cat confdefs.h >>conftest.$ac_ext
29849cat >>conftest.$ac_ext <<_ACEOF
29850/* end confdefs.h. */
29851$ac_includes_default
29852#include <$ac_header>
29853_ACEOF
29854rm -f conftest.$ac_objext
29855if { (ac_try="$ac_compile"
29856case "(($ac_try" in
29857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29858 *) ac_try_echo=$ac_try;;
29859esac
29860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29861 (eval "$ac_compile") 2>conftest.er1
29862 ac_status=$?
29863 grep -v '^ *+' conftest.er1 >conftest.err
29864 rm -f conftest.er1
29865 cat conftest.err >&5
29866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029867 (exit $ac_status); } &&
29868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29869 { (case "(($ac_try" in
29870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29871 *) ac_try_echo=$ac_try;;
29872esac
29873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29874 (eval "$ac_try") 2>&5
29875 ac_status=$?
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); }; } &&
29878 { ac_try='test -s conftest.$ac_objext'
29879 { (case "(($ac_try" in
29880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29881 *) ac_try_echo=$ac_try;;
29882esac
29883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29884 (eval "$ac_try") 2>&5
29885 ac_status=$?
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029888 ac_header_compiler=yes
29889else
29890 echo "$as_me: failed program was:" >&5
29891sed 's/^/| /' conftest.$ac_ext >&5
29892
29893 ac_header_compiler=no
29894fi
29895
29896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29897{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29898echo "${ECHO_T}$ac_header_compiler" >&6; }
29899
29900# Is the header present?
29901{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29903cat >conftest.$ac_ext <<_ACEOF
29904/* confdefs.h. */
29905_ACEOF
29906cat confdefs.h >>conftest.$ac_ext
29907cat >>conftest.$ac_ext <<_ACEOF
29908/* end confdefs.h. */
29909#include <$ac_header>
29910_ACEOF
29911if { (ac_try="$ac_cpp conftest.$ac_ext"
29912case "(($ac_try" in
29913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29914 *) ac_try_echo=$ac_try;;
29915esac
29916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29918 ac_status=$?
29919 grep -v '^ *+' conftest.er1 >conftest.err
29920 rm -f conftest.er1
29921 cat conftest.err >&5
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029923 (exit $ac_status); } >/dev/null; then
29924 if test -s conftest.err; then
29925 ac_cpp_err=$ac_c_preproc_warn_flag
29926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29927 else
29928 ac_cpp_err=
29929 fi
29930else
29931 ac_cpp_err=yes
29932fi
29933if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029934 ac_header_preproc=yes
29935else
29936 echo "$as_me: failed program was:" >&5
29937sed 's/^/| /' conftest.$ac_ext >&5
29938
29939 ac_header_preproc=no
29940fi
29941
29942rm -f conftest.err conftest.$ac_ext
29943{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29944echo "${ECHO_T}$ac_header_preproc" >&6; }
29945
29946# So? What about this header?
29947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29948 yes:no: )
29949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29953 ac_header_preproc=yes
29954 ;;
29955 no:yes:* )
29956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29963echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29968 ( cat <<\_ASBOX
29969## ----------------------------------- ##
29970## Report this to llvmbugs@cs.uiuc.edu ##
29971## ----------------------------------- ##
29972_ASBOX
29973 ) | sed "s/^/$as_me: WARNING: /" >&2
29974 ;;
29975esac
29976{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29979 echo $ECHO_N "(cached) $ECHO_C" >&6
29980else
29981 eval "$as_ac_Header=\$ac_header_preproc"
29982fi
29983ac_res=`eval echo '${'$as_ac_Header'}'`
29984 { echo "$as_me:$LINENO: result: $ac_res" >&5
29985echo "${ECHO_T}$ac_res" >&6; }
29986
29987fi
29988if test `eval echo '${'$as_ac_Header'}'` = yes; then
29989 cat >>confdefs.h <<_ACEOF
29990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29991_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029992
29993fi
29994
29995done
29996
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029997
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029998
Reid Spencer8085cff2005-01-16 02:58:39 +000029999
Reid Spencerb2ed05262006-11-03 18:04:08 +000030000 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30001echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30002if test "${ac_cv_huge_val_sanity+set}" = set; then
30003 echo $ECHO_N "(cached) $ECHO_C" >&6
30004else
30005
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030006 ac_ext=cpp
30007ac_cpp='$CXXCPP $CPPFLAGS'
30008ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30009ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30010ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030011
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030012 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030013 if test "$cross_compiling" = yes; then
30014 ac_cv_huge_val_sanity=yes
30015else
30016 cat >conftest.$ac_ext <<_ACEOF
30017/* confdefs.h. */
30018_ACEOF
30019cat confdefs.h >>conftest.$ac_ext
30020cat >>conftest.$ac_ext <<_ACEOF
30021/* end confdefs.h. */
30022#include <math.h>
30023int
30024main ()
30025{
30026double x = HUGE_VAL; return x != x;
30027 ;
30028 return 0;
30029}
30030_ACEOF
30031rm -f conftest$ac_exeext
30032if { (ac_try="$ac_link"
30033case "(($ac_try" in
30034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30035 *) ac_try_echo=$ac_try;;
30036esac
30037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30038 (eval "$ac_link") 2>&5
30039 ac_status=$?
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30042 { (case "(($ac_try" in
30043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30044 *) ac_try_echo=$ac_try;;
30045esac
30046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30047 (eval "$ac_try") 2>&5
30048 ac_status=$?
30049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050 (exit $ac_status); }; }; then
30051 ac_cv_huge_val_sanity=yes
30052else
30053 echo "$as_me: program exited with status $ac_status" >&5
30054echo "$as_me: failed program was:" >&5
30055sed 's/^/| /' conftest.$ac_ext >&5
30056
30057( exit $ac_status )
30058ac_cv_huge_val_sanity=no
30059fi
30060rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30061fi
30062
30063
30064 ac_ext=c
30065ac_cpp='$CPP $CPPFLAGS'
30066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30068ac_compiler_gnu=$ac_cv_c_compiler_gnu
30069
30070
30071fi
30072{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30073echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30074 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30075
30076
Reid Spencera773bd52006-08-04 18:18:08 +000030077{ echo "$as_me:$LINENO: checking for pid_t" >&5
30078echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030079if test "${ac_cv_type_pid_t+set}" = set; then
30080 echo $ECHO_N "(cached) $ECHO_C" >&6
30081else
30082 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030083/* confdefs.h. */
30084_ACEOF
30085cat confdefs.h >>conftest.$ac_ext
30086cat >>conftest.$ac_ext <<_ACEOF
30087/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030088$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030089typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030090int
30091main ()
30092{
Reid Spencera773bd52006-08-04 18:18:08 +000030093if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030094 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030095if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030096 return 0;
30097 ;
30098 return 0;
30099}
30100_ACEOF
30101rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030102if { (ac_try="$ac_compile"
30103case "(($ac_try" in
30104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105 *) ac_try_echo=$ac_try;;
30106esac
30107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030109 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030110 grep -v '^ *+' conftest.er1 >conftest.err
30111 rm -f conftest.er1
30112 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030114 (exit $ac_status); } &&
30115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30116 { (case "(($ac_try" in
30117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118 *) ac_try_echo=$ac_try;;
30119esac
30120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121 (eval "$ac_try") 2>&5
30122 ac_status=$?
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); }; } &&
30125 { ac_try='test -s conftest.$ac_objext'
30126 { (case "(($ac_try" in
30127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30128 *) ac_try_echo=$ac_try;;
30129esac
30130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30131 (eval "$ac_try") 2>&5
30132 ac_status=$?
30133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30134 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030135 ac_cv_type_pid_t=yes
30136else
30137 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030138sed 's/^/| /' conftest.$ac_ext >&5
30139
Reid Spencera773bd52006-08-04 18:18:08 +000030140 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030141fi
Reid Spencera773bd52006-08-04 18:18:08 +000030142
30143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030144fi
Reid Spencera773bd52006-08-04 18:18:08 +000030145{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30146echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030147if test $ac_cv_type_pid_t = yes; then
30148 :
30149else
30150
30151cat >>confdefs.h <<_ACEOF
30152#define pid_t int
30153_ACEOF
30154
30155fi
30156
Reid Spencera773bd52006-08-04 18:18:08 +000030157{ echo "$as_me:$LINENO: checking for size_t" >&5
30158echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030159if test "${ac_cv_type_size_t+set}" = set; then
30160 echo $ECHO_N "(cached) $ECHO_C" >&6
30161else
30162 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030163/* confdefs.h. */
30164_ACEOF
30165cat confdefs.h >>conftest.$ac_ext
30166cat >>conftest.$ac_ext <<_ACEOF
30167/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030168$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030169typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030170int
30171main ()
30172{
Reid Spencera773bd52006-08-04 18:18:08 +000030173if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030174 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030175if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030176 return 0;
30177 ;
30178 return 0;
30179}
30180_ACEOF
30181rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030182if { (ac_try="$ac_compile"
30183case "(($ac_try" in
30184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30185 *) ac_try_echo=$ac_try;;
30186esac
30187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30188 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030189 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030190 grep -v '^ *+' conftest.er1 >conftest.err
30191 rm -f conftest.er1
30192 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030194 (exit $ac_status); } &&
30195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30196 { (case "(($ac_try" in
30197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30198 *) ac_try_echo=$ac_try;;
30199esac
30200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201 (eval "$ac_try") 2>&5
30202 ac_status=$?
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30204 (exit $ac_status); }; } &&
30205 { ac_try='test -s conftest.$ac_objext'
30206 { (case "(($ac_try" in
30207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30208 *) ac_try_echo=$ac_try;;
30209esac
30210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30211 (eval "$ac_try") 2>&5
30212 ac_status=$?
30213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030215 ac_cv_type_size_t=yes
30216else
30217 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030218sed 's/^/| /' conftest.$ac_ext >&5
30219
Reid Spencera773bd52006-08-04 18:18:08 +000030220 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030221fi
Reid Spencera773bd52006-08-04 18:18:08 +000030222
30223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030224fi
Reid Spencera773bd52006-08-04 18:18:08 +000030225{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30226echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030227if test $ac_cv_type_size_t = yes; then
30228 :
30229else
30230
30231cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030232#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030233_ACEOF
30234
30235fi
30236
Reid Spencera773bd52006-08-04 18:18:08 +000030237{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30238echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030239if test "${ac_cv_type_signal+set}" = set; then
30240 echo $ECHO_N "(cached) $ECHO_C" >&6
30241else
30242 cat >conftest.$ac_ext <<_ACEOF
30243/* confdefs.h. */
30244_ACEOF
30245cat confdefs.h >>conftest.$ac_ext
30246cat >>conftest.$ac_ext <<_ACEOF
30247/* end confdefs.h. */
30248#include <sys/types.h>
30249#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030250
30251int
30252main ()
30253{
Reid Spencera773bd52006-08-04 18:18:08 +000030254return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030255 ;
30256 return 0;
30257}
30258_ACEOF
30259rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030260if { (ac_try="$ac_compile"
30261case "(($ac_try" in
30262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30263 *) ac_try_echo=$ac_try;;
30264esac
30265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30266 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030267 ac_status=$?
30268 grep -v '^ *+' conftest.er1 >conftest.err
30269 rm -f conftest.er1
30270 cat conftest.err >&5
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030272 (exit $ac_status); } &&
30273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30274 { (case "(($ac_try" in
30275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30276 *) ac_try_echo=$ac_try;;
30277esac
30278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30279 (eval "$ac_try") 2>&5
30280 ac_status=$?
30281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30282 (exit $ac_status); }; } &&
30283 { ac_try='test -s conftest.$ac_objext'
30284 { (case "(($ac_try" in
30285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30286 *) ac_try_echo=$ac_try;;
30287esac
30288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30289 (eval "$ac_try") 2>&5
30290 ac_status=$?
30291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030293 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030294else
30295 echo "$as_me: failed program was:" >&5
30296sed 's/^/| /' conftest.$ac_ext >&5
30297
Reid Spencera773bd52006-08-04 18:18:08 +000030298 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030299fi
Reid Spencera773bd52006-08-04 18:18:08 +000030300
30301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030302fi
Reid Spencera773bd52006-08-04 18:18:08 +000030303{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30304echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030305
30306cat >>confdefs.h <<_ACEOF
30307#define RETSIGTYPE $ac_cv_type_signal
30308_ACEOF
30309
30310
Reid Spencera773bd52006-08-04 18:18:08 +000030311{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30312echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030313if test "${ac_cv_struct_tm+set}" = set; then
30314 echo $ECHO_N "(cached) $ECHO_C" >&6
30315else
30316 cat >conftest.$ac_ext <<_ACEOF
30317/* confdefs.h. */
30318_ACEOF
30319cat confdefs.h >>conftest.$ac_ext
30320cat >>conftest.$ac_ext <<_ACEOF
30321/* end confdefs.h. */
30322#include <sys/types.h>
30323#include <time.h>
30324
30325int
30326main ()
30327{
Bill Wendlingebcceee2009-04-18 11:20:33 +000030328struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030329 ;
30330 return 0;
30331}
30332_ACEOF
30333rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030334if { (ac_try="$ac_compile"
30335case "(($ac_try" in
30336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30337 *) ac_try_echo=$ac_try;;
30338esac
30339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30340 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030341 ac_status=$?
30342 grep -v '^ *+' conftest.er1 >conftest.err
30343 rm -f conftest.er1
30344 cat conftest.err >&5
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030346 (exit $ac_status); } &&
30347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30348 { (case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30351esac
30352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_try") 2>&5
30354 ac_status=$?
30355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30356 (exit $ac_status); }; } &&
30357 { ac_try='test -s conftest.$ac_objext'
30358 { (case "(($ac_try" in
30359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30360 *) ac_try_echo=$ac_try;;
30361esac
30362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30363 (eval "$ac_try") 2>&5
30364 ac_status=$?
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030367 ac_cv_struct_tm=time.h
30368else
30369 echo "$as_me: failed program was:" >&5
30370sed 's/^/| /' conftest.$ac_ext >&5
30371
Reid Spencera773bd52006-08-04 18:18:08 +000030372 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030373fi
Reid Spencera773bd52006-08-04 18:18:08 +000030374
30375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030376fi
Reid Spencera773bd52006-08-04 18:18:08 +000030377{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30378echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030379if test $ac_cv_struct_tm = sys/time.h; then
30380
30381cat >>confdefs.h <<\_ACEOF
30382#define TM_IN_SYS_TIME 1
30383_ACEOF
30384
30385fi
30386
Reid Spencera773bd52006-08-04 18:18:08 +000030387{ echo "$as_me:$LINENO: checking for int64_t" >&5
30388echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030389if test "${ac_cv_type_int64_t+set}" = set; then
30390 echo $ECHO_N "(cached) $ECHO_C" >&6
30391else
30392 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030393/* confdefs.h. */
30394_ACEOF
30395cat confdefs.h >>conftest.$ac_ext
30396cat >>conftest.$ac_ext <<_ACEOF
30397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030398$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030399typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030400int
30401main ()
30402{
Reid Spencera773bd52006-08-04 18:18:08 +000030403if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030404 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030405if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030406 return 0;
30407 ;
30408 return 0;
30409}
30410_ACEOF
30411rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030412if { (ac_try="$ac_compile"
30413case "(($ac_try" in
30414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30415 *) ac_try_echo=$ac_try;;
30416esac
30417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30418 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030419 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030420 grep -v '^ *+' conftest.er1 >conftest.err
30421 rm -f conftest.er1
30422 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030424 (exit $ac_status); } &&
30425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30426 { (case "(($ac_try" in
30427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30428 *) ac_try_echo=$ac_try;;
30429esac
30430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30431 (eval "$ac_try") 2>&5
30432 ac_status=$?
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; } &&
30435 { ac_try='test -s conftest.$ac_objext'
30436 { (case "(($ac_try" in
30437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30438 *) ac_try_echo=$ac_try;;
30439esac
30440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30441 (eval "$ac_try") 2>&5
30442 ac_status=$?
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030445 ac_cv_type_int64_t=yes
30446else
30447 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030448sed 's/^/| /' conftest.$ac_ext >&5
30449
Reid Spencera773bd52006-08-04 18:18:08 +000030450 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030451fi
Reid Spencera773bd52006-08-04 18:18:08 +000030452
30453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030454fi
Reid Spencera773bd52006-08-04 18:18:08 +000030455{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30456echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030457if test $ac_cv_type_int64_t = yes; then
30458
30459cat >>confdefs.h <<_ACEOF
30460#define HAVE_INT64_T 1
30461_ACEOF
30462
30463
30464else
30465 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30466echo "$as_me: error: Type int64_t required but not found" >&2;}
30467 { (exit 1); exit 1; }; }
30468fi
30469
Reid Spencera773bd52006-08-04 18:18:08 +000030470{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30471echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030472if test "${ac_cv_type_uint64_t+set}" = set; then
30473 echo $ECHO_N "(cached) $ECHO_C" >&6
30474else
30475 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030476/* confdefs.h. */
30477_ACEOF
30478cat confdefs.h >>conftest.$ac_ext
30479cat >>conftest.$ac_ext <<_ACEOF
30480/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030481$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030482typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030483int
30484main ()
30485{
Reid Spencera773bd52006-08-04 18:18:08 +000030486if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030487 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030488if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030489 return 0;
30490 ;
30491 return 0;
30492}
30493_ACEOF
30494rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030495if { (ac_try="$ac_compile"
30496case "(($ac_try" in
30497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30498 *) ac_try_echo=$ac_try;;
30499esac
30500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30501 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030502 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030503 grep -v '^ *+' conftest.er1 >conftest.err
30504 rm -f conftest.er1
30505 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030507 (exit $ac_status); } &&
30508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30509 { (case "(($ac_try" in
30510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511 *) ac_try_echo=$ac_try;;
30512esac
30513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514 (eval "$ac_try") 2>&5
30515 ac_status=$?
30516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517 (exit $ac_status); }; } &&
30518 { ac_try='test -s conftest.$ac_objext'
30519 { (case "(($ac_try" in
30520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30521 *) ac_try_echo=$ac_try;;
30522esac
30523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30524 (eval "$ac_try") 2>&5
30525 ac_status=$?
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030528 ac_cv_type_uint64_t=yes
30529else
30530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030531sed 's/^/| /' conftest.$ac_ext >&5
30532
Reid Spencera773bd52006-08-04 18:18:08 +000030533 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030534fi
Reid Spencera773bd52006-08-04 18:18:08 +000030535
30536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030537fi
Reid Spencera773bd52006-08-04 18:18:08 +000030538{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30539echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030540if test $ac_cv_type_uint64_t = yes; then
30541
30542cat >>confdefs.h <<_ACEOF
30543#define HAVE_UINT64_T 1
30544_ACEOF
30545
30546
30547else
Reid Spencera773bd52006-08-04 18:18:08 +000030548 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30549echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030550if test "${ac_cv_type_u_int64_t+set}" = set; then
30551 echo $ECHO_N "(cached) $ECHO_C" >&6
30552else
30553 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030554/* confdefs.h. */
30555_ACEOF
30556cat confdefs.h >>conftest.$ac_ext
30557cat >>conftest.$ac_ext <<_ACEOF
30558/* end confdefs.h. */
30559$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030560typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030561int
30562main ()
30563{
Reid Spencera773bd52006-08-04 18:18:08 +000030564if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030565 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030566if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030567 return 0;
30568 ;
30569 return 0;
30570}
30571_ACEOF
30572rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030573if { (ac_try="$ac_compile"
30574case "(($ac_try" in
30575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30576 *) ac_try_echo=$ac_try;;
30577esac
30578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30579 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030580 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030581 grep -v '^ *+' conftest.er1 >conftest.err
30582 rm -f conftest.er1
30583 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030585 (exit $ac_status); } &&
30586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30587 { (case "(($ac_try" in
30588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30589 *) ac_try_echo=$ac_try;;
30590esac
30591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30592 (eval "$ac_try") 2>&5
30593 ac_status=$?
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); }; } &&
30596 { ac_try='test -s conftest.$ac_objext'
30597 { (case "(($ac_try" in
30598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30599 *) ac_try_echo=$ac_try;;
30600esac
30601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30602 (eval "$ac_try") 2>&5
30603 ac_status=$?
30604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030606 ac_cv_type_u_int64_t=yes
30607else
30608 echo "$as_me: failed program was:" >&5
30609sed 's/^/| /' conftest.$ac_ext >&5
30610
Reid Spencera773bd52006-08-04 18:18:08 +000030611 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030612fi
Reid Spencera773bd52006-08-04 18:18:08 +000030613
30614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030615fi
Reid Spencera773bd52006-08-04 18:18:08 +000030616{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30617echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030618if test $ac_cv_type_u_int64_t = yes; then
30619
30620cat >>confdefs.h <<_ACEOF
30621#define HAVE_U_INT64_T 1
30622_ACEOF
30623
30624
Misha Brukmanceca9042004-09-02 23:02:30 +000030625else
30626 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30627echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30628 { (exit 1); exit 1; }; }
30629fi
30630
John Criswell679ff312004-09-02 18:44:44 +000030631fi
30632
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030633
30634
30635
30636
30637
30638
30639
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030640
30641
Reid Spencerdf3be822006-01-23 08:15:53 +000030642for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030643do
30644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030645{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30647if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030648 echo $ECHO_N "(cached) $ECHO_C" >&6
30649else
30650 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030651/* confdefs.h. */
30652_ACEOF
30653cat confdefs.h >>conftest.$ac_ext
30654cat >>conftest.$ac_ext <<_ACEOF
30655/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30658#define $ac_func innocuous_$ac_func
30659
30660/* System header to define __stub macros and hopefully few prototypes,
30661 which can conflict with char $ac_func (); below.
30662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30663 <limits.h> exists even on freestanding compilers. */
30664
30665#ifdef __STDC__
30666# include <limits.h>
30667#else
30668# include <assert.h>
30669#endif
30670
30671#undef $ac_func
30672
Reid Spencera773bd52006-08-04 18:18:08 +000030673/* Override any GCC internal prototype to avoid an error.
30674 Use char because int might match the return type of a GCC
30675 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030676#ifdef __cplusplus
30677extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030678#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030679char $ac_func ();
30680/* The GNU C library defines this for functions which it implements
30681 to always fail with ENOSYS. Some functions are actually named
30682 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030683#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030684choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030685#endif
John Criswell7a73b802003-06-30 21:59:07 +000030686
John Criswell7a73b802003-06-30 21:59:07 +000030687int
30688main ()
30689{
Reid Spencera773bd52006-08-04 18:18:08 +000030690return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030691 ;
30692 return 0;
30693}
30694_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030695rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030696if { (ac_try="$ac_link"
30697case "(($ac_try" in
30698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30699 *) ac_try_echo=$ac_try;;
30700esac
30701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30702 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030704 grep -v '^ *+' conftest.er1 >conftest.err
30705 rm -f conftest.er1
30706 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030708 (exit $ac_status); } &&
30709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30710 { (case "(($ac_try" in
30711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30712 *) ac_try_echo=$ac_try;;
30713esac
30714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30715 (eval "$ac_try") 2>&5
30716 ac_status=$?
30717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30718 (exit $ac_status); }; } &&
30719 { ac_try='test -s conftest$ac_exeext'
30720 { (case "(($ac_try" in
30721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30722 *) ac_try_echo=$ac_try;;
30723esac
30724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30725 (eval "$ac_try") 2>&5
30726 ac_status=$?
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030729 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030730else
30731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030732sed 's/^/| /' conftest.$ac_ext >&5
30733
Reid Spencera773bd52006-08-04 18:18:08 +000030734 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030735fi
Reid Spencera773bd52006-08-04 18:18:08 +000030736
Bill Wendlingebcceee2009-04-18 11:20:33 +000030737rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030738 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030739fi
Reid Spencera773bd52006-08-04 18:18:08 +000030740ac_res=`eval echo '${'$as_ac_var'}'`
30741 { echo "$as_me:$LINENO: result: $ac_res" >&5
30742echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030743if test `eval echo '${'$as_ac_var'}'` = yes; then
30744 cat >>confdefs.h <<_ACEOF
30745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030746_ACEOF
30747
30748fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030749done
John Criswell7a73b802003-06-30 21:59:07 +000030750
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030751
30752
30753
Reid Spencer6af3d262004-12-15 04:01:48 +000030754
Reid Spencer96cf5872007-07-13 10:05:30 +000030755for ac_func in powf fmodf strtof round
30756do
30757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30758{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30760if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30761 echo $ECHO_N "(cached) $ECHO_C" >&6
30762else
30763 cat >conftest.$ac_ext <<_ACEOF
30764/* confdefs.h. */
30765_ACEOF
30766cat confdefs.h >>conftest.$ac_ext
30767cat >>conftest.$ac_ext <<_ACEOF
30768/* end confdefs.h. */
30769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30771#define $ac_func innocuous_$ac_func
30772
30773/* System header to define __stub macros and hopefully few prototypes,
30774 which can conflict with char $ac_func (); below.
30775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30776 <limits.h> exists even on freestanding compilers. */
30777
30778#ifdef __STDC__
30779# include <limits.h>
30780#else
30781# include <assert.h>
30782#endif
30783
30784#undef $ac_func
30785
30786/* Override any GCC internal prototype to avoid an error.
30787 Use char because int might match the return type of a GCC
30788 builtin and then its argument prototype would still apply. */
30789#ifdef __cplusplus
30790extern "C"
30791#endif
30792char $ac_func ();
30793/* The GNU C library defines this for functions which it implements
30794 to always fail with ENOSYS. Some functions are actually named
30795 something starting with __ and the normal name is an alias. */
30796#if defined __stub_$ac_func || defined __stub___$ac_func
30797choke me
30798#endif
30799
30800int
30801main ()
30802{
30803return $ac_func ();
30804 ;
30805 return 0;
30806}
30807_ACEOF
30808rm -f conftest.$ac_objext conftest$ac_exeext
30809if { (ac_try="$ac_link"
30810case "(($ac_try" in
30811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30812 *) ac_try_echo=$ac_try;;
30813esac
30814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30815 (eval "$ac_link") 2>conftest.er1
30816 ac_status=$?
30817 grep -v '^ *+' conftest.er1 >conftest.err
30818 rm -f conftest.er1
30819 cat conftest.err >&5
30820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030821 (exit $ac_status); } &&
30822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30823 { (case "(($ac_try" in
30824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825 *) ac_try_echo=$ac_try;;
30826esac
30827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30828 (eval "$ac_try") 2>&5
30829 ac_status=$?
30830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30831 (exit $ac_status); }; } &&
30832 { ac_try='test -s conftest$ac_exeext'
30833 { (case "(($ac_try" in
30834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30835 *) ac_try_echo=$ac_try;;
30836esac
30837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30838 (eval "$ac_try") 2>&5
30839 ac_status=$?
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030842 eval "$as_ac_var=yes"
30843else
30844 echo "$as_me: failed program was:" >&5
30845sed 's/^/| /' conftest.$ac_ext >&5
30846
30847 eval "$as_ac_var=no"
30848fi
30849
Bill Wendlingebcceee2009-04-18 11:20:33 +000030850rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030851 conftest$ac_exeext conftest.$ac_ext
30852fi
30853ac_res=`eval echo '${'$as_ac_var'}'`
30854 { echo "$as_me:$LINENO: result: $ac_res" >&5
30855echo "${ECHO_T}$ac_res" >&6; }
30856if test `eval echo '${'$as_ac_var'}'` = yes; then
30857 cat >>confdefs.h <<_ACEOF
30858#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30859_ACEOF
30860
30861fi
30862done
30863
30864
30865
30866
30867
Reid Spencer6af3d262004-12-15 04:01:48 +000030868
Reid Spencerb90645c2007-02-16 19:17:20 +000030869for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30870do
30871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30872{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30874if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30875 echo $ECHO_N "(cached) $ECHO_C" >&6
30876else
30877 cat >conftest.$ac_ext <<_ACEOF
30878/* confdefs.h. */
30879_ACEOF
30880cat confdefs.h >>conftest.$ac_ext
30881cat >>conftest.$ac_ext <<_ACEOF
30882/* end confdefs.h. */
30883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30885#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030886
Reid Spencerb90645c2007-02-16 19:17:20 +000030887/* System header to define __stub macros and hopefully few prototypes,
30888 which can conflict with char $ac_func (); below.
30889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30890 <limits.h> exists even on freestanding compilers. */
30891
30892#ifdef __STDC__
30893# include <limits.h>
30894#else
30895# include <assert.h>
30896#endif
30897
30898#undef $ac_func
30899
30900/* Override any GCC internal prototype to avoid an error.
30901 Use char because int might match the return type of a GCC
30902 builtin and then its argument prototype would still apply. */
30903#ifdef __cplusplus
30904extern "C"
30905#endif
30906char $ac_func ();
30907/* The GNU C library defines this for functions which it implements
30908 to always fail with ENOSYS. Some functions are actually named
30909 something starting with __ and the normal name is an alias. */
30910#if defined __stub_$ac_func || defined __stub___$ac_func
30911choke me
30912#endif
30913
30914int
30915main ()
30916{
30917return $ac_func ();
30918 ;
30919 return 0;
30920}
30921_ACEOF
30922rm -f conftest.$ac_objext conftest$ac_exeext
30923if { (ac_try="$ac_link"
30924case "(($ac_try" in
30925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30926 *) ac_try_echo=$ac_try;;
30927esac
30928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30929 (eval "$ac_link") 2>conftest.er1
30930 ac_status=$?
30931 grep -v '^ *+' conftest.er1 >conftest.err
30932 rm -f conftest.er1
30933 cat conftest.err >&5
30934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030935 (exit $ac_status); } &&
30936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30937 { (case "(($ac_try" in
30938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30939 *) ac_try_echo=$ac_try;;
30940esac
30941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30942 (eval "$ac_try") 2>&5
30943 ac_status=$?
30944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30945 (exit $ac_status); }; } &&
30946 { ac_try='test -s conftest$ac_exeext'
30947 { (case "(($ac_try" in
30948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949 *) ac_try_echo=$ac_try;;
30950esac
30951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952 (eval "$ac_try") 2>&5
30953 ac_status=$?
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030956 eval "$as_ac_var=yes"
30957else
30958 echo "$as_me: failed program was:" >&5
30959sed 's/^/| /' conftest.$ac_ext >&5
30960
30961 eval "$as_ac_var=no"
30962fi
30963
Bill Wendlingebcceee2009-04-18 11:20:33 +000030964rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030965 conftest$ac_exeext conftest.$ac_ext
30966fi
30967ac_res=`eval echo '${'$as_ac_var'}'`
30968 { echo "$as_me:$LINENO: result: $ac_res" >&5
30969echo "${ECHO_T}$ac_res" >&6; }
30970if test `eval echo '${'$as_ac_var'}'` = yes; then
30971 cat >>confdefs.h <<_ACEOF
30972#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30973_ACEOF
30974
30975fi
30976done
30977
30978
30979
30980
30981for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030982do
30983as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030984{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30985echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30986if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030987 echo $ECHO_N "(cached) $ECHO_C" >&6
30988else
30989 cat >conftest.$ac_ext <<_ACEOF
30990/* confdefs.h. */
30991_ACEOF
30992cat confdefs.h >>conftest.$ac_ext
30993cat >>conftest.$ac_ext <<_ACEOF
30994/* end confdefs.h. */
30995/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30997#define $ac_func innocuous_$ac_func
30998
30999/* System header to define __stub macros and hopefully few prototypes,
31000 which can conflict with char $ac_func (); below.
31001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31002 <limits.h> exists even on freestanding compilers. */
31003
31004#ifdef __STDC__
31005# include <limits.h>
31006#else
31007# include <assert.h>
31008#endif
31009
31010#undef $ac_func
31011
Reid Spencera773bd52006-08-04 18:18:08 +000031012/* Override any GCC internal prototype to avoid an error.
31013 Use char because int might match the return type of a GCC
31014 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031015#ifdef __cplusplus
31016extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031017#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031018char $ac_func ();
31019/* The GNU C library defines this for functions which it implements
31020 to always fail with ENOSYS. Some functions are actually named
31021 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031022#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031023choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031024#endif
31025
31026int
31027main ()
31028{
Reid Spencera773bd52006-08-04 18:18:08 +000031029return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031030 ;
31031 return 0;
31032}
31033_ACEOF
31034rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031035if { (ac_try="$ac_link"
31036case "(($ac_try" in
31037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31038 *) ac_try_echo=$ac_try;;
31039esac
31040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31041 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031042 ac_status=$?
31043 grep -v '^ *+' conftest.er1 >conftest.err
31044 rm -f conftest.er1
31045 cat conftest.err >&5
31046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031047 (exit $ac_status); } &&
31048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31049 { (case "(($ac_try" in
31050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31051 *) ac_try_echo=$ac_try;;
31052esac
31053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31054 (eval "$ac_try") 2>&5
31055 ac_status=$?
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; } &&
31058 { ac_try='test -s conftest$ac_exeext'
31059 { (case "(($ac_try" in
31060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31061 *) ac_try_echo=$ac_try;;
31062esac
31063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31064 (eval "$ac_try") 2>&5
31065 ac_status=$?
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031068 eval "$as_ac_var=yes"
31069else
31070 echo "$as_me: failed program was:" >&5
31071sed 's/^/| /' conftest.$ac_ext >&5
31072
Reid Spencera773bd52006-08-04 18:18:08 +000031073 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031074fi
Reid Spencera773bd52006-08-04 18:18:08 +000031075
Bill Wendlingebcceee2009-04-18 11:20:33 +000031076rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031077 conftest$ac_exeext conftest.$ac_ext
31078fi
Reid Spencera773bd52006-08-04 18:18:08 +000031079ac_res=`eval echo '${'$as_ac_var'}'`
31080 { echo "$as_me:$LINENO: result: $ac_res" >&5
31081echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031082if test `eval echo '${'$as_ac_var'}'` = yes; then
31083 cat >>confdefs.h <<_ACEOF
31084#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31085_ACEOF
31086
31087fi
31088done
31089
31090
31091
31092
31093
31094
31095
31096
31097for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031098do
31099as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031100{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31102if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031103 echo $ECHO_N "(cached) $ECHO_C" >&6
31104else
31105 cat >conftest.$ac_ext <<_ACEOF
31106/* confdefs.h. */
31107_ACEOF
31108cat confdefs.h >>conftest.$ac_ext
31109cat >>conftest.$ac_ext <<_ACEOF
31110/* end confdefs.h. */
31111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31113#define $ac_func innocuous_$ac_func
31114
31115/* System header to define __stub macros and hopefully few prototypes,
31116 which can conflict with char $ac_func (); below.
31117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31118 <limits.h> exists even on freestanding compilers. */
31119
31120#ifdef __STDC__
31121# include <limits.h>
31122#else
31123# include <assert.h>
31124#endif
31125
31126#undef $ac_func
31127
Reid Spencera773bd52006-08-04 18:18:08 +000031128/* Override any GCC internal prototype to avoid an error.
31129 Use char because int might match the return type of a GCC
31130 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031131#ifdef __cplusplus
31132extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031133#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031134char $ac_func ();
31135/* The GNU C library defines this for functions which it implements
31136 to always fail with ENOSYS. Some functions are actually named
31137 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031138#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031139choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031140#endif
31141
31142int
31143main ()
31144{
Reid Spencera773bd52006-08-04 18:18:08 +000031145return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031146 ;
31147 return 0;
31148}
31149_ACEOF
31150rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031151if { (ac_try="$ac_link"
31152case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31155esac
31156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031158 ac_status=$?
31159 grep -v '^ *+' conftest.er1 >conftest.err
31160 rm -f conftest.er1
31161 cat conftest.err >&5
31162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031163 (exit $ac_status); } &&
31164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31165 { (case "(($ac_try" in
31166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31167 *) ac_try_echo=$ac_try;;
31168esac
31169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31170 (eval "$ac_try") 2>&5
31171 ac_status=$?
31172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173 (exit $ac_status); }; } &&
31174 { ac_try='test -s conftest$ac_exeext'
31175 { (case "(($ac_try" in
31176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177 *) ac_try_echo=$ac_try;;
31178esac
31179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180 (eval "$ac_try") 2>&5
31181 ac_status=$?
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031184 eval "$as_ac_var=yes"
31185else
31186 echo "$as_me: failed program was:" >&5
31187sed 's/^/| /' conftest.$ac_ext >&5
31188
Reid Spencera773bd52006-08-04 18:18:08 +000031189 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031190fi
Reid Spencera773bd52006-08-04 18:18:08 +000031191
Bill Wendlingebcceee2009-04-18 11:20:33 +000031192rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031193 conftest$ac_exeext conftest.$ac_ext
31194fi
Reid Spencera773bd52006-08-04 18:18:08 +000031195ac_res=`eval echo '${'$as_ac_var'}'`
31196 { echo "$as_me:$LINENO: result: $ac_res" >&5
31197echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031198if test `eval echo '${'$as_ac_var'}'` = yes; then
31199 cat >>confdefs.h <<_ACEOF
31200#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31201_ACEOF
31202
31203fi
31204done
31205
31206
Reid Spencerba46ca32004-12-31 05:49:15 +000031207
31208
Chris Lattner0b142592005-11-14 06:57:34 +000031209
Chris Lattner511f11d2005-11-14 07:25:50 +000031210for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031211do
31212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031213{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31215if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031216 echo $ECHO_N "(cached) $ECHO_C" >&6
31217else
31218 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031219/* confdefs.h. */
31220_ACEOF
31221cat confdefs.h >>conftest.$ac_ext
31222cat >>conftest.$ac_ext <<_ACEOF
31223/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31226#define $ac_func innocuous_$ac_func
31227
31228/* System header to define __stub macros and hopefully few prototypes,
31229 which can conflict with char $ac_func (); below.
31230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31231 <limits.h> exists even on freestanding compilers. */
31232
31233#ifdef __STDC__
31234# include <limits.h>
31235#else
31236# include <assert.h>
31237#endif
31238
31239#undef $ac_func
31240
Reid Spencera773bd52006-08-04 18:18:08 +000031241/* Override any GCC internal prototype to avoid an error.
31242 Use char because int might match the return type of a GCC
31243 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031244#ifdef __cplusplus
31245extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031246#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031247char $ac_func ();
31248/* The GNU C library defines this for functions which it implements
31249 to always fail with ENOSYS. Some functions are actually named
31250 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031251#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031252choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031253#endif
John Criswell7a73b802003-06-30 21:59:07 +000031254
John Criswell7a73b802003-06-30 21:59:07 +000031255int
31256main ()
31257{
Reid Spencera773bd52006-08-04 18:18:08 +000031258return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031259 ;
31260 return 0;
31261}
31262_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031263rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031264if { (ac_try="$ac_link"
31265case "(($ac_try" in
31266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31267 *) ac_try_echo=$ac_try;;
31268esac
31269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31270 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031271 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031272 grep -v '^ *+' conftest.er1 >conftest.err
31273 rm -f conftest.er1
31274 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031276 (exit $ac_status); } &&
31277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31278 { (case "(($ac_try" in
31279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31280 *) ac_try_echo=$ac_try;;
31281esac
31282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31283 (eval "$ac_try") 2>&5
31284 ac_status=$?
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); }; } &&
31287 { ac_try='test -s conftest$ac_exeext'
31288 { (case "(($ac_try" in
31289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290 *) ac_try_echo=$ac_try;;
31291esac
31292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293 (eval "$ac_try") 2>&5
31294 ac_status=$?
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031297 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031298else
31299 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031300sed 's/^/| /' conftest.$ac_ext >&5
31301
Reid Spencera773bd52006-08-04 18:18:08 +000031302 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031303fi
Reid Spencera773bd52006-08-04 18:18:08 +000031304
Bill Wendlingebcceee2009-04-18 11:20:33 +000031305rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031306 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031307fi
Reid Spencera773bd52006-08-04 18:18:08 +000031308ac_res=`eval echo '${'$as_ac_var'}'`
31309 { echo "$as_me:$LINENO: result: $ac_res" >&5
31310echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031311if test `eval echo '${'$as_ac_var'}'` = yes; then
31312 cat >>confdefs.h <<_ACEOF
31313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031314_ACEOF
31315
31316fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031317done
John Criswell7a73b802003-06-30 21:59:07 +000031318
Reid Spencercdb08a32006-06-05 16:11:07 +000031319
31320
31321
31322
Reid Spencerafa22e22006-12-10 23:29:19 +000031323for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031324do
31325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031326{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31328if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031329 echo $ECHO_N "(cached) $ECHO_C" >&6
31330else
31331 cat >conftest.$ac_ext <<_ACEOF
31332/* confdefs.h. */
31333_ACEOF
31334cat confdefs.h >>conftest.$ac_ext
31335cat >>conftest.$ac_ext <<_ACEOF
31336/* end confdefs.h. */
31337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31339#define $ac_func innocuous_$ac_func
31340
31341/* System header to define __stub macros and hopefully few prototypes,
31342 which can conflict with char $ac_func (); below.
31343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31344 <limits.h> exists even on freestanding compilers. */
31345
31346#ifdef __STDC__
31347# include <limits.h>
31348#else
31349# include <assert.h>
31350#endif
31351
31352#undef $ac_func
31353
Reid Spencera773bd52006-08-04 18:18:08 +000031354/* Override any GCC internal prototype to avoid an error.
31355 Use char because int might match the return type of a GCC
31356 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031357#ifdef __cplusplus
31358extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031359#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031360char $ac_func ();
31361/* The GNU C library defines this for functions which it implements
31362 to always fail with ENOSYS. Some functions are actually named
31363 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031364#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031365choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031366#endif
31367
31368int
31369main ()
31370{
Reid Spencera773bd52006-08-04 18:18:08 +000031371return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031372 ;
31373 return 0;
31374}
31375_ACEOF
31376rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031377if { (ac_try="$ac_link"
31378case "(($ac_try" in
31379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31380 *) ac_try_echo=$ac_try;;
31381esac
31382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31383 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031384 ac_status=$?
31385 grep -v '^ *+' conftest.er1 >conftest.err
31386 rm -f conftest.er1
31387 cat conftest.err >&5
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031389 (exit $ac_status); } &&
31390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31391 { (case "(($ac_try" in
31392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393 *) ac_try_echo=$ac_try;;
31394esac
31395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396 (eval "$ac_try") 2>&5
31397 ac_status=$?
31398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31399 (exit $ac_status); }; } &&
31400 { ac_try='test -s conftest$ac_exeext'
31401 { (case "(($ac_try" in
31402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31403 *) ac_try_echo=$ac_try;;
31404esac
31405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31406 (eval "$ac_try") 2>&5
31407 ac_status=$?
31408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031410 eval "$as_ac_var=yes"
31411else
31412 echo "$as_me: failed program was:" >&5
31413sed 's/^/| /' conftest.$ac_ext >&5
31414
Reid Spencera773bd52006-08-04 18:18:08 +000031415 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031416fi
Reid Spencera773bd52006-08-04 18:18:08 +000031417
Bill Wendlingebcceee2009-04-18 11:20:33 +000031418rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031419 conftest$ac_exeext conftest.$ac_ext
31420fi
Reid Spencera773bd52006-08-04 18:18:08 +000031421ac_res=`eval echo '${'$as_ac_var'}'`
31422 { echo "$as_me:$LINENO: result: $ac_res" >&5
31423echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031424if test `eval echo '${'$as_ac_var'}'` = yes; then
31425 cat >>confdefs.h <<_ACEOF
31426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31427_ACEOF
31428
31429fi
31430done
31431
Reid Spencera773bd52006-08-04 18:18:08 +000031432{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31433echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031434if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031435 echo $ECHO_N "(cached) $ECHO_C" >&6
31436else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031437 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031438ac_cpp='$CPP $CPPFLAGS'
31439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31441ac_compiler_gnu=$ac_cv_c_compiler_gnu
31442
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031443 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031444 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031445else
31446 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031447
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031448 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031449_ACEOF
31450cat confdefs.h >>conftest.$ac_ext
31451cat >>conftest.$ac_ext <<_ACEOF
31452/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031453
John Criswella0137d32003-10-13 16:22:01 +000031454#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031455#include <stdlib.h>
31456
John Criswella0137d32003-10-13 16:22:01 +000031457int
31458main ()
31459{
31460
Reid Spencer2706f8c2004-09-19 23:53:36 +000031461volatile double A, B;
31462char Buffer[100];
31463A = 1;
31464A /= 10.0;
31465sprintf(Buffer, "%a", A);
31466B = atof(Buffer);
31467if (A != B)
31468 return (1);
31469if (A != 0x1.999999999999ap-4)
31470 return (1);
31471return (0);
John Criswella0137d32003-10-13 16:22:01 +000031472 ;
31473 return 0;
31474}
31475_ACEOF
31476rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031477if { (ac_try="$ac_link"
31478case "(($ac_try" in
31479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31480 *) ac_try_echo=$ac_try;;
31481esac
31482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31483 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031484 ac_status=$?
31485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031487 { (case "(($ac_try" in
31488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489 *) ac_try_echo=$ac_try;;
31490esac
31491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031493 ac_status=$?
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031496 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031497else
31498 echo "$as_me: program exited with status $ac_status" >&5
31499echo "$as_me: failed program was:" >&5
31500sed 's/^/| /' conftest.$ac_ext >&5
31501
31502( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031503llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031504fi
Reid Spencera773bd52006-08-04 18:18:08 +000031505rm -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 +000031506fi
Reid Spencera773bd52006-08-04 18:18:08 +000031507
31508
Reid Spencer2706f8c2004-09-19 23:53:36 +000031509 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031510ac_cpp='$CPP $CPPFLAGS'
31511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31513ac_compiler_gnu=$ac_cv_c_compiler_gnu
31514
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031515fi
Reid Spencera773bd52006-08-04 18:18:08 +000031516{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31517echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031518 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031519
31520cat >>confdefs.h <<\_ACEOF
31521#define HAVE_PRINTF_A 1
31522_ACEOF
31523
Reid Spencer2706f8c2004-09-19 23:53:36 +000031524 fi
John Criswella0137d32003-10-13 16:22:01 +000031525
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031526# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31527# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031528{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31529echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031530if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031531 echo $ECHO_N "(cached) $ECHO_C" >&6
31532else
John Criswell0021c312004-02-13 21:57:29 +000031533 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031534/* confdefs.h. */
31535_ACEOF
31536cat confdefs.h >>conftest.$ac_ext
31537cat >>conftest.$ac_ext <<_ACEOF
31538/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031539#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031540int
31541main ()
31542{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031543char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031544 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031545 ;
31546 return 0;
31547}
31548_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031549rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031550if { (ac_try="$ac_link"
31551case "(($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_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031557 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031558 grep -v '^ *+' conftest.er1 >conftest.err
31559 rm -f conftest.er1
31560 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031562 (exit $ac_status); } &&
31563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31564 { (case "(($ac_try" in
31565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31566 *) ac_try_echo=$ac_try;;
31567esac
31568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31569 (eval "$ac_try") 2>&5
31570 ac_status=$?
31571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31572 (exit $ac_status); }; } &&
31573 { ac_try='test -s conftest$ac_exeext'
31574 { (case "(($ac_try" in
31575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31576 *) ac_try_echo=$ac_try;;
31577esac
31578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31579 (eval "$ac_try") 2>&5
31580 ac_status=$?
31581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031583 ac_cv_working_alloca_h=yes
31584else
31585 echo "$as_me: failed program was:" >&5
31586sed 's/^/| /' conftest.$ac_ext >&5
31587
Reid Spencera773bd52006-08-04 18:18:08 +000031588 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031589fi
Reid Spencera773bd52006-08-04 18:18:08 +000031590
Bill Wendlingebcceee2009-04-18 11:20:33 +000031591rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031592 conftest$ac_exeext conftest.$ac_ext
31593fi
Reid Spencera773bd52006-08-04 18:18:08 +000031594{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31595echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031596if test $ac_cv_working_alloca_h = yes; then
31597
31598cat >>confdefs.h <<\_ACEOF
31599#define HAVE_ALLOCA_H 1
31600_ACEOF
31601
31602fi
31603
Reid Spencera773bd52006-08-04 18:18:08 +000031604{ echo "$as_me:$LINENO: checking for alloca" >&5
31605echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031606if test "${ac_cv_func_alloca_works+set}" = set; then
31607 echo $ECHO_N "(cached) $ECHO_C" >&6
31608else
31609 cat >conftest.$ac_ext <<_ACEOF
31610/* confdefs.h. */
31611_ACEOF
31612cat confdefs.h >>conftest.$ac_ext
31613cat >>conftest.$ac_ext <<_ACEOF
31614/* end confdefs.h. */
31615#ifdef __GNUC__
31616# define alloca __builtin_alloca
31617#else
31618# ifdef _MSC_VER
31619# include <malloc.h>
31620# define alloca _alloca
31621# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000031622# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031623# include <alloca.h>
31624# else
31625# ifdef _AIX
31626 #pragma alloca
31627# else
31628# ifndef alloca /* predefined by HP cc +Olibcalls */
31629char *alloca ();
31630# endif
31631# endif
31632# endif
31633# endif
31634#endif
31635
31636int
31637main ()
31638{
31639char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031640 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031641 ;
31642 return 0;
31643}
31644_ACEOF
31645rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031646if { (ac_try="$ac_link"
31647case "(($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_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031653 ac_status=$?
31654 grep -v '^ *+' conftest.er1 >conftest.err
31655 rm -f conftest.er1
31656 cat conftest.err >&5
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031658 (exit $ac_status); } &&
31659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31660 { (case "(($ac_try" in
31661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31662 *) ac_try_echo=$ac_try;;
31663esac
31664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31665 (eval "$ac_try") 2>&5
31666 ac_status=$?
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); }; } &&
31669 { ac_try='test -s conftest$ac_exeext'
31670 { (case "(($ac_try" in
31671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31672 *) ac_try_echo=$ac_try;;
31673esac
31674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31675 (eval "$ac_try") 2>&5
31676 ac_status=$?
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031679 ac_cv_func_alloca_works=yes
31680else
31681 echo "$as_me: failed program was:" >&5
31682sed 's/^/| /' conftest.$ac_ext >&5
31683
Reid Spencera773bd52006-08-04 18:18:08 +000031684 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031685fi
Reid Spencera773bd52006-08-04 18:18:08 +000031686
Bill Wendlingebcceee2009-04-18 11:20:33 +000031687rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031688 conftest$ac_exeext conftest.$ac_ext
31689fi
Reid Spencera773bd52006-08-04 18:18:08 +000031690{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31691echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031692
31693if test $ac_cv_func_alloca_works = yes; then
31694
31695cat >>confdefs.h <<\_ACEOF
31696#define HAVE_ALLOCA 1
31697_ACEOF
31698
31699else
31700 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31701# that cause trouble. Some versions do not even contain alloca or
31702# contain a buggy version. If you still want to use their alloca,
31703# use ar to extract alloca.o from them instead of compiling alloca.c.
31704
Reid Spencera773bd52006-08-04 18:18:08 +000031705ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031706
31707cat >>confdefs.h <<\_ACEOF
31708#define C_ALLOCA 1
31709_ACEOF
31710
31711
Reid Spencera773bd52006-08-04 18:18:08 +000031712{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31713echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031714if test "${ac_cv_os_cray+set}" = set; then
31715 echo $ECHO_N "(cached) $ECHO_C" >&6
31716else
31717 cat >conftest.$ac_ext <<_ACEOF
31718/* confdefs.h. */
31719_ACEOF
31720cat confdefs.h >>conftest.$ac_ext
31721cat >>conftest.$ac_ext <<_ACEOF
31722/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031723#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031724webecray
31725#else
31726wenotbecray
31727#endif
31728
31729_ACEOF
31730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31731 $EGREP "webecray" >/dev/null 2>&1; then
31732 ac_cv_os_cray=yes
31733else
31734 ac_cv_os_cray=no
31735fi
31736rm -f conftest*
31737
31738fi
Reid Spencera773bd52006-08-04 18:18:08 +000031739{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31740echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031741if test $ac_cv_os_cray = yes; then
31742 for ac_func in _getb67 GETB67 getb67; do
31743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031744{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31745echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31746if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031747 echo $ECHO_N "(cached) $ECHO_C" >&6
31748else
31749 cat >conftest.$ac_ext <<_ACEOF
31750/* confdefs.h. */
31751_ACEOF
31752cat confdefs.h >>conftest.$ac_ext
31753cat >>conftest.$ac_ext <<_ACEOF
31754/* end confdefs.h. */
31755/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31757#define $ac_func innocuous_$ac_func
31758
31759/* System header to define __stub macros and hopefully few prototypes,
31760 which can conflict with char $ac_func (); below.
31761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31762 <limits.h> exists even on freestanding compilers. */
31763
31764#ifdef __STDC__
31765# include <limits.h>
31766#else
31767# include <assert.h>
31768#endif
31769
31770#undef $ac_func
31771
Reid Spencera773bd52006-08-04 18:18:08 +000031772/* Override any GCC internal prototype to avoid an error.
31773 Use char because int might match the return type of a GCC
31774 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031775#ifdef __cplusplus
31776extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031777#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031778char $ac_func ();
31779/* The GNU C library defines this for functions which it implements
31780 to always fail with ENOSYS. Some functions are actually named
31781 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031782#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031783choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031784#endif
31785
31786int
31787main ()
31788{
Reid Spencera773bd52006-08-04 18:18:08 +000031789return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031790 ;
31791 return 0;
31792}
31793_ACEOF
31794rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031795if { (ac_try="$ac_link"
31796case "(($ac_try" in
31797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31798 *) ac_try_echo=$ac_try;;
31799esac
31800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31801 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031802 ac_status=$?
31803 grep -v '^ *+' conftest.er1 >conftest.err
31804 rm -f conftest.er1
31805 cat conftest.err >&5
31806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031807 (exit $ac_status); } &&
31808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31809 { (case "(($ac_try" in
31810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31811 *) ac_try_echo=$ac_try;;
31812esac
31813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31814 (eval "$ac_try") 2>&5
31815 ac_status=$?
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); }; } &&
31818 { ac_try='test -s conftest$ac_exeext'
31819 { (case "(($ac_try" in
31820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31821 *) ac_try_echo=$ac_try;;
31822esac
31823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31824 (eval "$ac_try") 2>&5
31825 ac_status=$?
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031828 eval "$as_ac_var=yes"
31829else
31830 echo "$as_me: failed program was:" >&5
31831sed 's/^/| /' conftest.$ac_ext >&5
31832
Reid Spencera773bd52006-08-04 18:18:08 +000031833 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031834fi
Reid Spencera773bd52006-08-04 18:18:08 +000031835
Bill Wendlingebcceee2009-04-18 11:20:33 +000031836rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031837 conftest$ac_exeext conftest.$ac_ext
31838fi
Reid Spencera773bd52006-08-04 18:18:08 +000031839ac_res=`eval echo '${'$as_ac_var'}'`
31840 { echo "$as_me:$LINENO: result: $ac_res" >&5
31841echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031842if test `eval echo '${'$as_ac_var'}'` = yes; then
31843
31844cat >>confdefs.h <<_ACEOF
31845#define CRAY_STACKSEG_END $ac_func
31846_ACEOF
31847
31848 break
31849fi
31850
31851 done
31852fi
31853
Reid Spencera773bd52006-08-04 18:18:08 +000031854{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31855echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031856if test "${ac_cv_c_stack_direction+set}" = set; then
31857 echo $ECHO_N "(cached) $ECHO_C" >&6
31858else
31859 if test "$cross_compiling" = yes; then
31860 ac_cv_c_stack_direction=0
31861else
31862 cat >conftest.$ac_ext <<_ACEOF
31863/* confdefs.h. */
31864_ACEOF
31865cat confdefs.h >>conftest.$ac_ext
31866cat >>conftest.$ac_ext <<_ACEOF
31867/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031868$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031869int
31870find_stack_direction ()
31871{
31872 static char *addr = 0;
31873 auto char dummy;
31874 if (addr == 0)
31875 {
31876 addr = &dummy;
31877 return find_stack_direction ();
31878 }
John Criswell0021c312004-02-13 21:57:29 +000031879 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031880 return (&dummy > addr) ? 1 : -1;
31881}
John Criswell0021c312004-02-13 21:57:29 +000031882
John Criswell0021c312004-02-13 21:57:29 +000031883int
31884main ()
31885{
Reid Spencera773bd52006-08-04 18:18:08 +000031886 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031887}
31888_ACEOF
31889rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031890if { (ac_try="$ac_link"
31891case "(($ac_try" in
31892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31893 *) ac_try_echo=$ac_try;;
31894esac
31895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31896 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031897 ac_status=$?
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031900 { (case "(($ac_try" in
31901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31902 *) ac_try_echo=$ac_try;;
31903esac
31904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31905 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031906 ac_status=$?
31907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031909 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031910else
31911 echo "$as_me: program exited with status $ac_status" >&5
31912echo "$as_me: failed program was:" >&5
31913sed 's/^/| /' conftest.$ac_ext >&5
31914
31915( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031916ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031917fi
Reid Spencera773bd52006-08-04 18:18:08 +000031918rm -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 +000031919fi
Reid Spencera773bd52006-08-04 18:18:08 +000031920
31921
John Criswell0021c312004-02-13 21:57:29 +000031922fi
Reid Spencera773bd52006-08-04 18:18:08 +000031923{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31924echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031925
31926cat >>confdefs.h <<_ACEOF
31927#define STACK_DIRECTION $ac_cv_c_stack_direction
31928_ACEOF
31929
31930
John Criswell0021c312004-02-13 21:57:29 +000031931fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031932
31933
Reid Spencera773bd52006-08-04 18:18:08 +000031934{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31935echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031936if test "${ac_cv_func_rand48+set}" = set; then
31937 echo $ECHO_N "(cached) $ECHO_C" >&6
31938else
Reid Spencera773bd52006-08-04 18:18:08 +000031939 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031940ac_cpp='$CXXCPP $CPPFLAGS'
31941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31944
31945 cat >conftest.$ac_ext <<_ACEOF
31946/* confdefs.h. */
31947_ACEOF
31948cat confdefs.h >>conftest.$ac_ext
31949cat >>conftest.$ac_ext <<_ACEOF
31950/* end confdefs.h. */
31951#include <stdlib.h>
31952int
31953main ()
31954{
31955srand48(0);lrand48();drand48();
31956 ;
31957 return 0;
31958}
31959_ACEOF
31960rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031961if { (ac_try="$ac_compile"
31962case "(($ac_try" in
31963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31964 *) ac_try_echo=$ac_try;;
31965esac
31966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31967 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031968 ac_status=$?
31969 grep -v '^ *+' conftest.er1 >conftest.err
31970 rm -f conftest.er1
31971 cat conftest.err >&5
31972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031973 (exit $ac_status); } &&
31974 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31975 { (case "(($ac_try" in
31976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31977 *) ac_try_echo=$ac_try;;
31978esac
31979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31980 (eval "$ac_try") 2>&5
31981 ac_status=$?
31982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983 (exit $ac_status); }; } &&
31984 { ac_try='test -s conftest.$ac_objext'
31985 { (case "(($ac_try" in
31986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31987 *) ac_try_echo=$ac_try;;
31988esac
31989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31990 (eval "$ac_try") 2>&5
31991 ac_status=$?
31992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031994 ac_cv_func_rand48=yes
31995else
31996 echo "$as_me: failed program was:" >&5
31997sed 's/^/| /' conftest.$ac_ext >&5
31998
Reid Spencera773bd52006-08-04 18:18:08 +000031999 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032000fi
Reid Spencera773bd52006-08-04 18:18:08 +000032001
32002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032003 ac_ext=c
32004ac_cpp='$CPP $CPPFLAGS'
32005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32007ac_compiler_gnu=$ac_cv_c_compiler_gnu
32008
32009fi
Reid Spencera773bd52006-08-04 18:18:08 +000032010{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32011echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032012
32013if test "$ac_cv_func_rand48" = "yes" ; then
32014
32015cat >>confdefs.h <<\_ACEOF
32016#define HAVE_RAND48 1
32017_ACEOF
32018
32019fi
John Criswell0021c312004-02-13 21:57:29 +000032020
32021
Reid Spencera773bd52006-08-04 18:18:08 +000032022{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32023echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032024if test "${ac_cv_cxx_namespaces+set}" = set; then
32025 echo $ECHO_N "(cached) $ECHO_C" >&6
32026else
Reid Spencera773bd52006-08-04 18:18:08 +000032027 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032028ac_cpp='$CXXCPP $CPPFLAGS'
32029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32032
32033 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032034/* confdefs.h. */
32035_ACEOF
32036cat confdefs.h >>conftest.$ac_ext
32037cat >>conftest.$ac_ext <<_ACEOF
32038/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032039namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000032040int
32041main ()
32042{
32043using namespace Outer::Inner; return i;
32044 ;
32045 return 0;
32046}
32047_ACEOF
32048rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032049if { (ac_try="$ac_compile"
32050case "(($ac_try" in
32051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32052 *) ac_try_echo=$ac_try;;
32053esac
32054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32055 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032056 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032057 grep -v '^ *+' conftest.er1 >conftest.err
32058 rm -f conftest.er1
32059 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032061 (exit $ac_status); } &&
32062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32063 { (case "(($ac_try" in
32064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065 *) ac_try_echo=$ac_try;;
32066esac
32067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068 (eval "$ac_try") 2>&5
32069 ac_status=$?
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071 (exit $ac_status); }; } &&
32072 { ac_try='test -s conftest.$ac_objext'
32073 { (case "(($ac_try" in
32074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32075 *) ac_try_echo=$ac_try;;
32076esac
32077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32078 (eval "$ac_try") 2>&5
32079 ac_status=$?
32080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032082 ac_cv_cxx_namespaces=yes
32083else
32084 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032085sed 's/^/| /' conftest.$ac_ext >&5
32086
Reid Spencera773bd52006-08-04 18:18:08 +000032087 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032088fi
Reid Spencera773bd52006-08-04 18:18:08 +000032089
32090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032091 ac_ext=c
32092ac_cpp='$CPP $CPPFLAGS'
32093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32095ac_compiler_gnu=$ac_cv_c_compiler_gnu
32096
32097
32098fi
Reid Spencera773bd52006-08-04 18:18:08 +000032099{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32100echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032101if test "$ac_cv_cxx_namespaces" = yes; then
32102
32103cat >>confdefs.h <<\_ACEOF
32104#define HAVE_NAMESPACES
32105_ACEOF
32106
32107fi
32108
Reid Spencera773bd52006-08-04 18:18:08 +000032109{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32110echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032111if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32112 echo $ECHO_N "(cached) $ECHO_C" >&6
32113else
32114
Reid Spencera773bd52006-08-04 18:18:08 +000032115 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032116ac_cpp='$CXXCPP $CPPFLAGS'
32117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32120
32121 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032122/* confdefs.h. */
32123_ACEOF
32124cat confdefs.h >>conftest.$ac_ext
32125cat >>conftest.$ac_ext <<_ACEOF
32126/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032127#include <iterator>
32128#ifdef HAVE_NAMESPACES
32129using namespace std;
32130#endif
John Criswell7a73b802003-06-30 21:59:07 +000032131int
32132main ()
32133{
32134iterator<int,int,int> t; return 0;
32135 ;
32136 return 0;
32137}
32138_ACEOF
32139rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032140if { (ac_try="$ac_compile"
32141case "(($ac_try" in
32142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32143 *) ac_try_echo=$ac_try;;
32144esac
32145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32146 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032147 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032148 grep -v '^ *+' conftest.er1 >conftest.err
32149 rm -f conftest.er1
32150 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032152 (exit $ac_status); } &&
32153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32154 { (case "(($ac_try" in
32155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156 *) ac_try_echo=$ac_try;;
32157esac
32158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159 (eval "$ac_try") 2>&5
32160 ac_status=$?
32161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 (exit $ac_status); }; } &&
32163 { ac_try='test -s conftest.$ac_objext'
32164 { (case "(($ac_try" in
32165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32166 *) ac_try_echo=$ac_try;;
32167esac
32168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32169 (eval "$ac_try") 2>&5
32170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032173 ac_cv_cxx_have_std_iterator=yes
32174else
32175 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032176sed 's/^/| /' conftest.$ac_ext >&5
32177
Reid Spencera773bd52006-08-04 18:18:08 +000032178 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032179fi
Reid Spencera773bd52006-08-04 18:18:08 +000032180
32181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032182 ac_ext=c
32183ac_cpp='$CPP $CPPFLAGS'
32184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32186ac_compiler_gnu=$ac_cv_c_compiler_gnu
32187
32188
32189fi
Reid Spencera773bd52006-08-04 18:18:08 +000032190{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32191echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032192if test "$ac_cv_cxx_have_std_iterator" = yes
32193then
John Criswell40468462004-09-24 21:19:06 +000032194
32195cat >>confdefs.h <<\_ACEOF
32196#define HAVE_STD_ITERATOR 1
32197_ACEOF
32198
32199else
32200
32201cat >>confdefs.h <<\_ACEOF
32202#define HAVE_STD_ITERATOR 0
32203_ACEOF
32204
John Criswell7a73b802003-06-30 21:59:07 +000032205fi
32206
Reid Spencera773bd52006-08-04 18:18:08 +000032207{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32208echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032209if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32210 echo $ECHO_N "(cached) $ECHO_C" >&6
32211else
32212
Reid Spencera773bd52006-08-04 18:18:08 +000032213 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032214ac_cpp='$CXXCPP $CPPFLAGS'
32215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32218
32219 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032220/* confdefs.h. */
32221_ACEOF
32222cat confdefs.h >>conftest.$ac_ext
32223cat >>conftest.$ac_ext <<_ACEOF
32224/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032225#include <iterator>
32226#ifdef HAVE_NAMESPACES
32227using namespace std;
32228#endif
John Criswell7a73b802003-06-30 21:59:07 +000032229int
32230main ()
32231{
John Criswellc78022e2003-07-29 19:11:58 +000032232bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032233 ;
32234 return 0;
32235}
32236_ACEOF
32237rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032238if { (ac_try="$ac_compile"
32239case "(($ac_try" in
32240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32241 *) ac_try_echo=$ac_try;;
32242esac
32243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32244 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032245 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032246 grep -v '^ *+' conftest.er1 >conftest.err
32247 rm -f conftest.er1
32248 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032250 (exit $ac_status); } &&
32251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32252 { (case "(($ac_try" in
32253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32254 *) ac_try_echo=$ac_try;;
32255esac
32256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32257 (eval "$ac_try") 2>&5
32258 ac_status=$?
32259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32260 (exit $ac_status); }; } &&
32261 { ac_try='test -s conftest.$ac_objext'
32262 { (case "(($ac_try" in
32263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264 *) ac_try_echo=$ac_try;;
32265esac
32266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32267 (eval "$ac_try") 2>&5
32268 ac_status=$?
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032271 ac_cv_cxx_have_bi_iterator=yes
32272else
32273 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032274sed 's/^/| /' conftest.$ac_ext >&5
32275
Reid Spencera773bd52006-08-04 18:18:08 +000032276 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032277fi
Reid Spencera773bd52006-08-04 18:18:08 +000032278
32279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032280 ac_ext=c
32281ac_cpp='$CPP $CPPFLAGS'
32282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32284ac_compiler_gnu=$ac_cv_c_compiler_gnu
32285
32286
32287fi
Reid Spencera773bd52006-08-04 18:18:08 +000032288{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32289echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032290if test "$ac_cv_cxx_have_bi_iterator" = yes
32291then
John Criswell40468462004-09-24 21:19:06 +000032292
32293cat >>confdefs.h <<\_ACEOF
32294#define HAVE_BI_ITERATOR 1
32295_ACEOF
32296
32297else
32298
32299cat >>confdefs.h <<\_ACEOF
32300#define HAVE_BI_ITERATOR 0
32301_ACEOF
32302
John Criswell7a73b802003-06-30 21:59:07 +000032303fi
32304
Reid Spencera773bd52006-08-04 18:18:08 +000032305{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32306echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032307if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32308 echo $ECHO_N "(cached) $ECHO_C" >&6
32309else
32310
Reid Spencera773bd52006-08-04 18:18:08 +000032311 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032312ac_cpp='$CXXCPP $CPPFLAGS'
32313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32316
32317 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032318/* confdefs.h. */
32319_ACEOF
32320cat confdefs.h >>conftest.$ac_ext
32321cat >>conftest.$ac_ext <<_ACEOF
32322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032323#include <iterator>
32324#ifdef HAVE_NAMESPACES
32325using namespace std;
32326#endif
John Criswell7a73b802003-06-30 21:59:07 +000032327int
32328main ()
32329{
John Criswellc78022e2003-07-29 19:11:58 +000032330forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032331 ;
32332 return 0;
32333}
32334_ACEOF
32335rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032336if { (ac_try="$ac_compile"
32337case "(($ac_try" in
32338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32339 *) ac_try_echo=$ac_try;;
32340esac
32341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32342 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032344 grep -v '^ *+' conftest.er1 >conftest.err
32345 rm -f conftest.er1
32346 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032348 (exit $ac_status); } &&
32349 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32350 { (case "(($ac_try" in
32351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32352 *) ac_try_echo=$ac_try;;
32353esac
32354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32355 (eval "$ac_try") 2>&5
32356 ac_status=$?
32357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358 (exit $ac_status); }; } &&
32359 { ac_try='test -s conftest.$ac_objext'
32360 { (case "(($ac_try" in
32361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32362 *) ac_try_echo=$ac_try;;
32363esac
32364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32365 (eval "$ac_try") 2>&5
32366 ac_status=$?
32367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032369 ac_cv_cxx_have_fwd_iterator=yes
32370else
32371 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032372sed 's/^/| /' conftest.$ac_ext >&5
32373
Reid Spencera773bd52006-08-04 18:18:08 +000032374 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032375fi
Reid Spencera773bd52006-08-04 18:18:08 +000032376
32377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032378 ac_ext=c
32379ac_cpp='$CPP $CPPFLAGS'
32380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32382ac_compiler_gnu=$ac_cv_c_compiler_gnu
32383
32384
32385fi
Reid Spencera773bd52006-08-04 18:18:08 +000032386{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32387echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032388if test "$ac_cv_cxx_have_fwd_iterator" = yes
32389then
John Criswell40468462004-09-24 21:19:06 +000032390
32391cat >>confdefs.h <<\_ACEOF
32392#define HAVE_FWD_ITERATOR 1
32393_ACEOF
32394
32395else
32396
32397cat >>confdefs.h <<\_ACEOF
32398#define HAVE_FWD_ITERATOR 0
32399_ACEOF
32400
John Criswell7a73b802003-06-30 21:59:07 +000032401fi
32402
32403
Reid Spencera773bd52006-08-04 18:18:08 +000032404{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32405echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032406if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32407 echo $ECHO_N "(cached) $ECHO_C" >&6
32408else
Reid Spencera773bd52006-08-04 18:18:08 +000032409 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032410ac_cpp='$CXXCPP $CPPFLAGS'
32411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32414
Reid Spencerabec8f92004-10-27 23:03:44 +000032415 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032416/* confdefs.h. */
32417_ACEOF
32418cat confdefs.h >>conftest.$ac_ext
32419cat >>conftest.$ac_ext <<_ACEOF
32420/* end confdefs.h. */
32421#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032422int
32423main ()
32424{
32425float f; isnan(f);
32426 ;
32427 return 0;
32428}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032429_ACEOF
32430rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032431if { (ac_try="$ac_compile"
32432case "(($ac_try" in
32433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434 *) ac_try_echo=$ac_try;;
32435esac
32436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032438 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032439 grep -v '^ *+' conftest.er1 >conftest.err
32440 rm -f conftest.er1
32441 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032443 (exit $ac_status); } &&
32444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32445 { (case "(($ac_try" in
32446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32447 *) ac_try_echo=$ac_try;;
32448esac
32449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450 (eval "$ac_try") 2>&5
32451 ac_status=$?
32452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453 (exit $ac_status); }; } &&
32454 { ac_try='test -s conftest.$ac_objext'
32455 { (case "(($ac_try" in
32456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32457 *) ac_try_echo=$ac_try;;
32458esac
32459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460 (eval "$ac_try") 2>&5
32461 ac_status=$?
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032464 ac_cv_func_isnan_in_math_h=yes
32465else
32466 echo "$as_me: failed program was:" >&5
32467sed 's/^/| /' conftest.$ac_ext >&5
32468
Reid Spencera773bd52006-08-04 18:18:08 +000032469 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032470fi
Reid Spencera773bd52006-08-04 18:18:08 +000032471
32472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032473 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032474ac_cpp='$CPP $CPPFLAGS'
32475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32477ac_compiler_gnu=$ac_cv_c_compiler_gnu
32478
32479fi
Reid Spencera773bd52006-08-04 18:18:08 +000032480{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32481echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032482
32483
32484if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032485
32486cat >>confdefs.h <<\_ACEOF
32487#define HAVE_ISNAN_IN_MATH_H 1
32488_ACEOF
32489
Reid Spencerabec8f92004-10-27 23:03:44 +000032490fi
32491
Reid Spencera773bd52006-08-04 18:18:08 +000032492{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32493echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032494if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32495 echo $ECHO_N "(cached) $ECHO_C" >&6
32496else
Reid Spencera773bd52006-08-04 18:18:08 +000032497 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032498ac_cpp='$CXXCPP $CPPFLAGS'
32499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32502
Reid Spencerabec8f92004-10-27 23:03:44 +000032503 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032504/* confdefs.h. */
32505_ACEOF
32506cat confdefs.h >>conftest.$ac_ext
32507cat >>conftest.$ac_ext <<_ACEOF
32508/* end confdefs.h. */
32509#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032510int
32511main ()
32512{
32513float f; isnan(f);
32514 ;
32515 return 0;
32516}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032517_ACEOF
32518rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032519if { (ac_try="$ac_compile"
32520case "(($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_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032526 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032527 grep -v '^ *+' conftest.er1 >conftest.err
32528 rm -f conftest.er1
32529 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032531 (exit $ac_status); } &&
32532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32533 { (case "(($ac_try" in
32534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32535 *) ac_try_echo=$ac_try;;
32536esac
32537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32538 (eval "$ac_try") 2>&5
32539 ac_status=$?
32540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); }; } &&
32542 { ac_try='test -s conftest.$ac_objext'
32543 { (case "(($ac_try" in
32544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32545 *) ac_try_echo=$ac_try;;
32546esac
32547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548 (eval "$ac_try") 2>&5
32549 ac_status=$?
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032552 ac_cv_func_isnan_in_cmath=yes
32553else
32554 echo "$as_me: failed program was:" >&5
32555sed 's/^/| /' conftest.$ac_ext >&5
32556
Reid Spencera773bd52006-08-04 18:18:08 +000032557 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032558fi
Reid Spencera773bd52006-08-04 18:18:08 +000032559
32560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032561 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032562ac_cpp='$CPP $CPPFLAGS'
32563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32565ac_compiler_gnu=$ac_cv_c_compiler_gnu
32566
32567fi
Reid Spencera773bd52006-08-04 18:18:08 +000032568{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32569echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032570
32571if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032572
32573cat >>confdefs.h <<\_ACEOF
32574#define HAVE_ISNAN_IN_CMATH 1
32575_ACEOF
32576
Reid Spencerabec8f92004-10-27 23:03:44 +000032577fi
32578
Reid Spencera773bd52006-08-04 18:18:08 +000032579{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32580echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032581if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32582 echo $ECHO_N "(cached) $ECHO_C" >&6
32583else
Reid Spencera773bd52006-08-04 18:18:08 +000032584 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032585ac_cpp='$CXXCPP $CPPFLAGS'
32586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32589
Reid Spencerabec8f92004-10-27 23:03:44 +000032590 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032591/* confdefs.h. */
32592_ACEOF
32593cat confdefs.h >>conftest.$ac_ext
32594cat >>conftest.$ac_ext <<_ACEOF
32595/* end confdefs.h. */
32596#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032597int
32598main ()
32599{
32600float f; std::isnan(f);
32601 ;
32602 return 0;
32603}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032604_ACEOF
32605rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032606if { (ac_try="$ac_compile"
32607case "(($ac_try" in
32608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609 *) ac_try_echo=$ac_try;;
32610esac
32611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032613 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032614 grep -v '^ *+' conftest.er1 >conftest.err
32615 rm -f conftest.er1
32616 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032618 (exit $ac_status); } &&
32619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32620 { (case "(($ac_try" in
32621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32622 *) ac_try_echo=$ac_try;;
32623esac
32624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32625 (eval "$ac_try") 2>&5
32626 ac_status=$?
32627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628 (exit $ac_status); }; } &&
32629 { ac_try='test -s conftest.$ac_objext'
32630 { (case "(($ac_try" in
32631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32632 *) ac_try_echo=$ac_try;;
32633esac
32634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32635 (eval "$ac_try") 2>&5
32636 ac_status=$?
32637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32638 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032639 ac_cv_func_std_isnan_in_cmath=yes
32640else
32641 echo "$as_me: failed program was:" >&5
32642sed 's/^/| /' conftest.$ac_ext >&5
32643
Reid Spencera773bd52006-08-04 18:18:08 +000032644 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032645fi
Reid Spencera773bd52006-08-04 18:18:08 +000032646
32647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032648 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032649ac_cpp='$CPP $CPPFLAGS'
32650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32652ac_compiler_gnu=$ac_cv_c_compiler_gnu
32653
32654fi
Reid Spencera773bd52006-08-04 18:18:08 +000032655{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32656echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032657
32658if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032659
32660cat >>confdefs.h <<\_ACEOF
32661#define HAVE_STD_ISNAN_IN_CMATH 1
32662_ACEOF
32663
Reid Spencerabec8f92004-10-27 23:03:44 +000032664fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032665
32666
Reid Spencera773bd52006-08-04 18:18:08 +000032667{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32668echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032669if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32670 echo $ECHO_N "(cached) $ECHO_C" >&6
32671else
Reid Spencera773bd52006-08-04 18:18:08 +000032672 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032673ac_cpp='$CXXCPP $CPPFLAGS'
32674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32677
Reid Spencerabec8f92004-10-27 23:03:44 +000032678 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032679/* confdefs.h. */
32680_ACEOF
32681cat confdefs.h >>conftest.$ac_ext
32682cat >>conftest.$ac_ext <<_ACEOF
32683/* end confdefs.h. */
32684#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032685int
32686main ()
32687{
32688float f; isinf(f);
32689 ;
32690 return 0;
32691}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032692_ACEOF
32693rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032694if { (ac_try="$ac_compile"
32695case "(($ac_try" in
32696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32697 *) ac_try_echo=$ac_try;;
32698esac
32699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32700 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032701 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032702 grep -v '^ *+' conftest.er1 >conftest.err
32703 rm -f conftest.er1
32704 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032706 (exit $ac_status); } &&
32707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32708 { (case "(($ac_try" in
32709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32710 *) ac_try_echo=$ac_try;;
32711esac
32712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32713 (eval "$ac_try") 2>&5
32714 ac_status=$?
32715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32716 (exit $ac_status); }; } &&
32717 { ac_try='test -s conftest.$ac_objext'
32718 { (case "(($ac_try" in
32719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32720 *) ac_try_echo=$ac_try;;
32721esac
32722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32723 (eval "$ac_try") 2>&5
32724 ac_status=$?
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032727 ac_cv_func_isinf_in_math_h=yes
32728else
32729 echo "$as_me: failed program was:" >&5
32730sed 's/^/| /' conftest.$ac_ext >&5
32731
Reid Spencera773bd52006-08-04 18:18:08 +000032732 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032733fi
Reid Spencera773bd52006-08-04 18:18:08 +000032734
32735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032736 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032737ac_cpp='$CPP $CPPFLAGS'
32738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32740ac_compiler_gnu=$ac_cv_c_compiler_gnu
32741
32742fi
Reid Spencera773bd52006-08-04 18:18:08 +000032743{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32744echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032745
32746if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032747
32748cat >>confdefs.h <<\_ACEOF
32749#define HAVE_ISINF_IN_MATH_H 1
32750_ACEOF
32751
Reid Spencerabec8f92004-10-27 23:03:44 +000032752fi
32753
Reid Spencera773bd52006-08-04 18:18:08 +000032754{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32755echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032756if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32757 echo $ECHO_N "(cached) $ECHO_C" >&6
32758else
Reid Spencera773bd52006-08-04 18:18:08 +000032759 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032760ac_cpp='$CXXCPP $CPPFLAGS'
32761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32764
Reid Spencerabec8f92004-10-27 23:03:44 +000032765 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032766/* confdefs.h. */
32767_ACEOF
32768cat confdefs.h >>conftest.$ac_ext
32769cat >>conftest.$ac_ext <<_ACEOF
32770/* end confdefs.h. */
32771#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032772int
32773main ()
32774{
32775float f; isinf(f);
32776 ;
32777 return 0;
32778}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032779_ACEOF
32780rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032781if { (ac_try="$ac_compile"
32782case "(($ac_try" in
32783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32784 *) ac_try_echo=$ac_try;;
32785esac
32786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32787 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032788 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032789 grep -v '^ *+' conftest.er1 >conftest.err
32790 rm -f conftest.er1
32791 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032793 (exit $ac_status); } &&
32794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32795 { (case "(($ac_try" in
32796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32797 *) ac_try_echo=$ac_try;;
32798esac
32799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32800 (eval "$ac_try") 2>&5
32801 ac_status=$?
32802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32803 (exit $ac_status); }; } &&
32804 { ac_try='test -s conftest.$ac_objext'
32805 { (case "(($ac_try" in
32806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32807 *) ac_try_echo=$ac_try;;
32808esac
32809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32810 (eval "$ac_try") 2>&5
32811 ac_status=$?
32812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032814 ac_cv_func_isinf_in_cmath=yes
32815else
32816 echo "$as_me: failed program was:" >&5
32817sed 's/^/| /' conftest.$ac_ext >&5
32818
Reid Spencera773bd52006-08-04 18:18:08 +000032819 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032820fi
Reid Spencera773bd52006-08-04 18:18:08 +000032821
32822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032823 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032824ac_cpp='$CPP $CPPFLAGS'
32825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32827ac_compiler_gnu=$ac_cv_c_compiler_gnu
32828
32829fi
Reid Spencera773bd52006-08-04 18:18:08 +000032830{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32831echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032832
32833if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032834
32835cat >>confdefs.h <<\_ACEOF
32836#define HAVE_ISINF_IN_CMATH 1
32837_ACEOF
32838
Reid Spencerabec8f92004-10-27 23:03:44 +000032839fi
32840
Reid Spencera773bd52006-08-04 18:18:08 +000032841{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32842echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032843if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32844 echo $ECHO_N "(cached) $ECHO_C" >&6
32845else
Reid Spencera773bd52006-08-04 18:18:08 +000032846 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032847ac_cpp='$CXXCPP $CPPFLAGS'
32848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32851
Reid Spencerabec8f92004-10-27 23:03:44 +000032852 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032853/* confdefs.h. */
32854_ACEOF
32855cat confdefs.h >>conftest.$ac_ext
32856cat >>conftest.$ac_ext <<_ACEOF
32857/* end confdefs.h. */
32858#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032859int
32860main ()
32861{
32862float f; std::isinf(f)}
32863 ;
32864 return 0;
32865}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032866_ACEOF
32867rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032868if { (ac_try="$ac_compile"
32869case "(($ac_try" in
32870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32871 *) ac_try_echo=$ac_try;;
32872esac
32873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32874 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032875 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032876 grep -v '^ *+' conftest.er1 >conftest.err
32877 rm -f conftest.er1
32878 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032880 (exit $ac_status); } &&
32881 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32882 { (case "(($ac_try" in
32883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32884 *) ac_try_echo=$ac_try;;
32885esac
32886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32887 (eval "$ac_try") 2>&5
32888 ac_status=$?
32889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32890 (exit $ac_status); }; } &&
32891 { ac_try='test -s conftest.$ac_objext'
32892 { (case "(($ac_try" in
32893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32894 *) ac_try_echo=$ac_try;;
32895esac
32896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32897 (eval "$ac_try") 2>&5
32898 ac_status=$?
32899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032901 ac_cv_func_std_isinf_in_cmath=yes
32902else
32903 echo "$as_me: failed program was:" >&5
32904sed 's/^/| /' conftest.$ac_ext >&5
32905
Reid Spencera773bd52006-08-04 18:18:08 +000032906 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032907fi
Reid Spencera773bd52006-08-04 18:18:08 +000032908
32909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032910 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032911ac_cpp='$CPP $CPPFLAGS'
32912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32914ac_compiler_gnu=$ac_cv_c_compiler_gnu
32915
32916fi
Reid Spencera773bd52006-08-04 18:18:08 +000032917{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32918echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032919
32920if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032921
32922cat >>confdefs.h <<\_ACEOF
32923#define HAVE_STD_ISINF_IN_CMATH 1
32924_ACEOF
32925
Reid Spencerabec8f92004-10-27 23:03:44 +000032926fi
32927
Reid Spencera773bd52006-08-04 18:18:08 +000032928{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32929echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032930if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32931 echo $ECHO_N "(cached) $ECHO_C" >&6
32932else
Reid Spencera773bd52006-08-04 18:18:08 +000032933 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032934ac_cpp='$CXXCPP $CPPFLAGS'
32935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32938
Reid Spencerabec8f92004-10-27 23:03:44 +000032939 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032940/* confdefs.h. */
32941_ACEOF
32942cat confdefs.h >>conftest.$ac_ext
32943cat >>conftest.$ac_ext <<_ACEOF
32944/* end confdefs.h. */
32945#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032946int
32947main ()
32948{
32949float f; finite(f);
32950 ;
32951 return 0;
32952}
Brian Gaeked59a6472004-07-21 03:33:58 +000032953_ACEOF
32954rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032955if { (ac_try="$ac_compile"
32956case "(($ac_try" in
32957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32958 *) ac_try_echo=$ac_try;;
32959esac
32960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32961 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032962 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032963 grep -v '^ *+' conftest.er1 >conftest.err
32964 rm -f conftest.er1
32965 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032967 (exit $ac_status); } &&
32968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32969 { (case "(($ac_try" in
32970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32971 *) ac_try_echo=$ac_try;;
32972esac
32973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32974 (eval "$ac_try") 2>&5
32975 ac_status=$?
32976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977 (exit $ac_status); }; } &&
32978 { ac_try='test -s conftest.$ac_objext'
32979 { (case "(($ac_try" in
32980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32981 *) ac_try_echo=$ac_try;;
32982esac
32983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32984 (eval "$ac_try") 2>&5
32985 ac_status=$?
32986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32987 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032988 ac_cv_func_finite_in_ieeefp_h=yes
32989else
32990 echo "$as_me: failed program was:" >&5
32991sed 's/^/| /' conftest.$ac_ext >&5
32992
Reid Spencera773bd52006-08-04 18:18:08 +000032993 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032994fi
Reid Spencera773bd52006-08-04 18:18:08 +000032995
32996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032997 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032998ac_cpp='$CPP $CPPFLAGS'
32999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33001ac_compiler_gnu=$ac_cv_c_compiler_gnu
33002
33003fi
Reid Spencera773bd52006-08-04 18:18:08 +000033004{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33005echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033006
Brian Gaeke6802b552004-10-28 05:06:45 +000033007if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033008
33009cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033010#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033011_ACEOF
33012
Reid Spencerabec8f92004-10-27 23:03:44 +000033013fi
33014
33015
33016
Reid Spencer30fe5262007-01-20 07:48:49 +000033017if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033018
33019
33020for ac_header in stdlib.h unistd.h
33021do
33022as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033027 echo $ECHO_N "(cached) $ECHO_C" >&6
33028fi
Reid Spencera773bd52006-08-04 18:18:08 +000033029ac_res=`eval echo '${'$as_ac_Header'}'`
33030 { echo "$as_me:$LINENO: result: $ac_res" >&5
33031echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033032else
33033 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033034{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033036cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033037/* confdefs.h. */
33038_ACEOF
33039cat confdefs.h >>conftest.$ac_ext
33040cat >>conftest.$ac_ext <<_ACEOF
33041/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033042$ac_includes_default
33043#include <$ac_header>
33044_ACEOF
33045rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033046if { (ac_try="$ac_compile"
33047case "(($ac_try" in
33048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33049 *) ac_try_echo=$ac_try;;
33050esac
33051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33052 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033053 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033054 grep -v '^ *+' conftest.er1 >conftest.err
33055 rm -f conftest.er1
33056 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033058 (exit $ac_status); } &&
33059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33060 { (case "(($ac_try" in
33061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33062 *) ac_try_echo=$ac_try;;
33063esac
33064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33065 (eval "$ac_try") 2>&5
33066 ac_status=$?
33067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068 (exit $ac_status); }; } &&
33069 { ac_try='test -s conftest.$ac_objext'
33070 { (case "(($ac_try" in
33071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072 *) ac_try_echo=$ac_try;;
33073esac
33074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075 (eval "$ac_try") 2>&5
33076 ac_status=$?
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033079 ac_header_compiler=yes
33080else
33081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033082sed 's/^/| /' conftest.$ac_ext >&5
33083
Reid Spencera773bd52006-08-04 18:18:08 +000033084 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033085fi
Reid Spencera773bd52006-08-04 18:18:08 +000033086
33087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33088{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33089echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033090
33091# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033092{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33093echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033094cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033095/* confdefs.h. */
33096_ACEOF
33097cat confdefs.h >>conftest.$ac_ext
33098cat >>conftest.$ac_ext <<_ACEOF
33099/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033100#include <$ac_header>
33101_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033102if { (ac_try="$ac_cpp conftest.$ac_ext"
33103case "(($ac_try" in
33104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105 *) ac_try_echo=$ac_try;;
33106esac
33107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033109 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033110 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033111 rm -f conftest.er1
33112 cat conftest.err >&5
33113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033114 (exit $ac_status); } >/dev/null; then
33115 if test -s conftest.err; then
33116 ac_cpp_err=$ac_c_preproc_warn_flag
33117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33118 else
33119 ac_cpp_err=
33120 fi
33121else
33122 ac_cpp_err=yes
33123fi
33124if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033125 ac_header_preproc=yes
33126else
33127 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033128sed 's/^/| /' conftest.$ac_ext >&5
33129
John Criswell7a73b802003-06-30 21:59:07 +000033130 ac_header_preproc=no
33131fi
Reid Spencera773bd52006-08-04 18:18:08 +000033132
John Criswell7a73b802003-06-30 21:59:07 +000033133rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033134{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33135echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033136
33137# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033138case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33139 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33141echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33143echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33144 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033145 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033146 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33148echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33150echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33152echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33154echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33156echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33158echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033159 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033160## ----------------------------------- ##
33161## Report this to llvmbugs@cs.uiuc.edu ##
33162## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033163_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033164 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033165 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033166esac
Reid Spencera773bd52006-08-04 18:18:08 +000033167{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033170 echo $ECHO_N "(cached) $ECHO_C" >&6
33171else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033172 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033173fi
Reid Spencera773bd52006-08-04 18:18:08 +000033174ac_res=`eval echo '${'$as_ac_Header'}'`
33175 { echo "$as_me:$LINENO: result: $ac_res" >&5
33176echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033177
33178fi
33179if test `eval echo '${'$as_ac_Header'}'` = yes; then
33180 cat >>confdefs.h <<_ACEOF
33181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33182_ACEOF
33183
33184fi
33185
33186done
33187
33188
33189for ac_func in getpagesize
33190do
33191as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033192{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33194if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033195 echo $ECHO_N "(cached) $ECHO_C" >&6
33196else
33197 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033198/* confdefs.h. */
33199_ACEOF
33200cat confdefs.h >>conftest.$ac_ext
33201cat >>conftest.$ac_ext <<_ACEOF
33202/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033203/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33205#define $ac_func innocuous_$ac_func
33206
John Criswell7a73b802003-06-30 21:59:07 +000033207/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033208 which can conflict with char $ac_func (); below.
33209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33210 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033211
John Criswell0c38eaf2003-09-10 15:17:25 +000033212#ifdef __STDC__
33213# include <limits.h>
33214#else
33215# include <assert.h>
33216#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033217
33218#undef $ac_func
33219
Reid Spencera773bd52006-08-04 18:18:08 +000033220/* Override any GCC internal prototype to avoid an error.
33221 Use char because int might match the return type of a GCC
33222 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033223#ifdef __cplusplus
33224extern "C"
33225#endif
John Criswell7a73b802003-06-30 21:59:07 +000033226char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033227/* The GNU C library defines this for functions which it implements
33228 to always fail with ENOSYS. Some functions are actually named
33229 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033230#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033231choke me
John Criswell7a73b802003-06-30 21:59:07 +000033232#endif
33233
John Criswell0c38eaf2003-09-10 15:17:25 +000033234int
33235main ()
33236{
Reid Spencera773bd52006-08-04 18:18:08 +000033237return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033238 ;
33239 return 0;
33240}
33241_ACEOF
33242rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033243if { (ac_try="$ac_link"
33244case "(($ac_try" in
33245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33246 *) ac_try_echo=$ac_try;;
33247esac
33248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33249 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033250 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033251 grep -v '^ *+' conftest.er1 >conftest.err
33252 rm -f conftest.er1
33253 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033255 (exit $ac_status); } &&
33256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33257 { (case "(($ac_try" in
33258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33259 *) ac_try_echo=$ac_try;;
33260esac
33261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33262 (eval "$ac_try") 2>&5
33263 ac_status=$?
33264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33265 (exit $ac_status); }; } &&
33266 { ac_try='test -s conftest$ac_exeext'
33267 { (case "(($ac_try" in
33268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33269 *) ac_try_echo=$ac_try;;
33270esac
33271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33272 (eval "$ac_try") 2>&5
33273 ac_status=$?
33274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33275 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033276 eval "$as_ac_var=yes"
33277else
33278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033279sed 's/^/| /' conftest.$ac_ext >&5
33280
Reid Spencera773bd52006-08-04 18:18:08 +000033281 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033282fi
Reid Spencera773bd52006-08-04 18:18:08 +000033283
Bill Wendlingebcceee2009-04-18 11:20:33 +000033284rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033285 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033286fi
Reid Spencera773bd52006-08-04 18:18:08 +000033287ac_res=`eval echo '${'$as_ac_var'}'`
33288 { echo "$as_me:$LINENO: result: $ac_res" >&5
33289echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033290if test `eval echo '${'$as_ac_var'}'` = yes; then
33291 cat >>confdefs.h <<_ACEOF
33292#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33293_ACEOF
33294
33295fi
33296done
33297
Reid Spencera773bd52006-08-04 18:18:08 +000033298{ echo "$as_me:$LINENO: checking for working mmap" >&5
33299echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033300if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33301 echo $ECHO_N "(cached) $ECHO_C" >&6
33302else
33303 if test "$cross_compiling" = yes; then
33304 ac_cv_func_mmap_fixed_mapped=no
33305else
33306 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033307/* confdefs.h. */
33308_ACEOF
33309cat confdefs.h >>conftest.$ac_ext
33310cat >>conftest.$ac_ext <<_ACEOF
33311/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033312$ac_includes_default
33313/* malloc might have been renamed as rpl_malloc. */
33314#undef malloc
33315
33316/* Thanks to Mike Haertel and Jim Avera for this test.
33317 Here is a matrix of mmap possibilities:
33318 mmap private not fixed
33319 mmap private fixed at somewhere currently unmapped
33320 mmap private fixed at somewhere already mapped
33321 mmap shared not fixed
33322 mmap shared fixed at somewhere currently unmapped
33323 mmap shared fixed at somewhere already mapped
33324 For private mappings, we should verify that changes cannot be read()
33325 back from the file, nor mmap's back from the file at a different
33326 address. (There have been systems where private was not correctly
33327 implemented like the infamous i386 svr4.0, and systems where the
33328 VM page cache was not coherent with the file system buffer cache
33329 like early versions of FreeBSD and possibly contemporary NetBSD.)
33330 For shared mappings, we should conversely verify that changes get
33331 propagated back to all the places they're supposed to be.
33332
33333 Grep wants private fixed already mapped.
33334 The main things grep needs to know about mmap are:
33335 * does it exist and is it safe to write into the mmap'd area
33336 * how to use it (BSD variants) */
33337
33338#include <fcntl.h>
33339#include <sys/mman.h>
33340
Bill Wendlingebcceee2009-04-18 11:20:33 +000033341#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033342char *malloc ();
33343#endif
33344
33345/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033346#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033347/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033348# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033349# define HAVE_SYS_PARAM_H 1
33350# endif
33351
33352# ifdef _SC_PAGESIZE
33353# define getpagesize() sysconf(_SC_PAGESIZE)
33354# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033355# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033356# include <sys/param.h>
33357# ifdef EXEC_PAGESIZE
33358# define getpagesize() EXEC_PAGESIZE
33359# else /* no EXEC_PAGESIZE */
33360# ifdef NBPG
33361# define getpagesize() NBPG * CLSIZE
33362# ifndef CLSIZE
33363# define CLSIZE 1
33364# endif /* no CLSIZE */
33365# else /* no NBPG */
33366# ifdef NBPC
33367# define getpagesize() NBPC
33368# else /* no NBPC */
33369# ifdef PAGESIZE
33370# define getpagesize() PAGESIZE
33371# endif /* PAGESIZE */
33372# endif /* no NBPC */
33373# endif /* no NBPG */
33374# endif /* no EXEC_PAGESIZE */
33375# else /* no HAVE_SYS_PARAM_H */
33376# define getpagesize() 8192 /* punt totally */
33377# endif /* no HAVE_SYS_PARAM_H */
33378# endif /* no _SC_PAGESIZE */
33379
33380#endif /* no HAVE_GETPAGESIZE */
33381
33382int
33383main ()
33384{
33385 char *data, *data2, *data3;
33386 int i, pagesize;
33387 int fd;
33388
33389 pagesize = getpagesize ();
33390
33391 /* First, make a file with some known garbage in it. */
33392 data = (char *) malloc (pagesize);
33393 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033394 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033395 for (i = 0; i < pagesize; ++i)
33396 *(data + i) = rand ();
33397 umask (0);
33398 fd = creat ("conftest.mmap", 0600);
33399 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033400 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033401 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033402 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033403 close (fd);
33404
33405 /* Next, try to mmap the file at a fixed address which already has
33406 something else allocated at it. If we can, also make sure that
33407 we see the same garbage. */
33408 fd = open ("conftest.mmap", O_RDWR);
33409 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033410 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033411 data2 = (char *) malloc (2 * pagesize);
33412 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033413 return 1;
33414 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033415 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033416 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033417 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033418 for (i = 0; i < pagesize; ++i)
33419 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033420 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033421
33422 /* Finally, make sure that changes to the mapped area do not
33423 percolate back to the file as seen by read(). (This is a bug on
33424 some variants of i386 svr4.0.) */
33425 for (i = 0; i < pagesize; ++i)
33426 *(data2 + i) = *(data2 + i) + 1;
33427 data3 = (char *) malloc (pagesize);
33428 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033429 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033430 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033431 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033432 for (i = 0; i < pagesize; ++i)
33433 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033434 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033435 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033436 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033437}
33438_ACEOF
33439rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033440if { (ac_try="$ac_link"
33441case "(($ac_try" in
33442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33443 *) ac_try_echo=$ac_try;;
33444esac
33445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33446 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033447 ac_status=$?
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033450 { (case "(($ac_try" in
33451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33452 *) ac_try_echo=$ac_try;;
33453esac
33454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33455 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033456 ac_status=$?
33457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33458 (exit $ac_status); }; }; then
33459 ac_cv_func_mmap_fixed_mapped=yes
33460else
33461 echo "$as_me: program exited with status $ac_status" >&5
33462echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033463sed 's/^/| /' conftest.$ac_ext >&5
33464
John Criswell7a73b802003-06-30 21:59:07 +000033465( exit $ac_status )
33466ac_cv_func_mmap_fixed_mapped=no
33467fi
Reid Spencera773bd52006-08-04 18:18:08 +000033468rm -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 +000033469fi
Reid Spencera773bd52006-08-04 18:18:08 +000033470
33471
John Criswell7a73b802003-06-30 21:59:07 +000033472fi
Reid Spencera773bd52006-08-04 18:18:08 +000033473{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33474echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033475if test $ac_cv_func_mmap_fixed_mapped = yes; then
33476
33477cat >>confdefs.h <<\_ACEOF
33478#define HAVE_MMAP 1
33479_ACEOF
33480
33481fi
33482rm -f conftest.mmap
33483
Reid Spencer30fe5262007-01-20 07:48:49 +000033484 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033485echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033486if test "${ac_cv_func_mmap_file+set}" = set; then
33487 echo $ECHO_N "(cached) $ECHO_C" >&6
33488else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033489 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033490ac_cpp='$CPP $CPPFLAGS'
33491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33493ac_compiler_gnu=$ac_cv_c_compiler_gnu
33494
33495 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033496 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033497else
33498 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033499
Reid Spencer777ce172004-09-20 04:09:56 +000033500 /* confdefs.h. */
33501_ACEOF
33502cat confdefs.h >>conftest.$ac_ext
33503cat >>conftest.$ac_ext <<_ACEOF
33504/* end confdefs.h. */
33505
John Criswell7a73b802003-06-30 21:59:07 +000033506#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033507#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033508#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033509
33510int
33511main ()
33512{
John Criswell7a73b802003-06-30 21:59:07 +000033513
33514 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033515 fd = creat ("foo",0777);
33516 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33517 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033518 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033519 ;
33520 return 0;
33521}
John Criswell7a73b802003-06-30 21:59:07 +000033522_ACEOF
33523rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033524if { (ac_try="$ac_link"
33525case "(($ac_try" in
33526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33527 *) ac_try_echo=$ac_try;;
33528esac
33529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33530 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033531 ac_status=$?
33532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033534 { (case "(($ac_try" in
33535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536 *) ac_try_echo=$ac_try;;
33537esac
33538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033540 ac_status=$?
33541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542 (exit $ac_status); }; }; then
33543 ac_cv_func_mmap_file=yes
33544else
33545 echo "$as_me: program exited with status $ac_status" >&5
33546echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033547sed 's/^/| /' conftest.$ac_ext >&5
33548
John Criswell7a73b802003-06-30 21:59:07 +000033549( exit $ac_status )
33550ac_cv_func_mmap_file=no
33551fi
Reid Spencera773bd52006-08-04 18:18:08 +000033552rm -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 +000033553fi
Reid Spencera773bd52006-08-04 18:18:08 +000033554
33555
John Criswell7a73b802003-06-30 21:59:07 +000033556 ac_ext=c
33557ac_cpp='$CPP $CPPFLAGS'
33558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33560ac_compiler_gnu=$ac_cv_c_compiler_gnu
33561
33562
33563fi
Reid Spencera773bd52006-08-04 18:18:08 +000033564{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33565echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033566if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033567
33568cat >>confdefs.h <<\_ACEOF
33569#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033570_ACEOF
33571
33572 MMAP_FILE=yes
33573
33574fi
33575
Reid Spencer30fe5262007-01-20 07:48:49 +000033576 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033577echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033578if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33579 echo $ECHO_N "(cached) $ECHO_C" >&6
33580else
Reid Spencer582a23c2004-12-29 07:07:57 +000033581 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033582 ac_cv_need_dev_zero_for_mmap=yes
33583 else
33584 ac_cv_need_dev_zero_for_mmap=no
33585 fi
33586
33587fi
Reid Spencera773bd52006-08-04 18:18:08 +000033588{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33589echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033590if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33591
33592cat >>confdefs.h <<\_ACEOF
33593#define NEED_DEV_ZERO_FOR_MMAP 1
33594_ACEOF
33595
33596fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033597
Reid Spencer30fe5262007-01-20 07:48:49 +000033598 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33599 then
33600 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033601echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033602 fi
33603 if test "$ac_cv_func_mmap_file" = "no"
33604 then
33605 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033606echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033607 fi
John Criswellb13092b2003-07-22 21:00:24 +000033608fi
John Criswell7a73b802003-06-30 21:59:07 +000033609
Owen Andersona8603702009-05-19 22:18:56 +000033610{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000033611echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000033612cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000033613/* confdefs.h. */
33614_ACEOF
33615cat confdefs.h >>conftest.$ac_ext
33616cat >>conftest.$ac_ext <<_ACEOF
33617/* end confdefs.h. */
33618int main() {
Owen Andersona8603702009-05-19 22:18:56 +000033619 volatile unsigned long val = 1;
33620 __sync_synchronize();
33621 __sync_val_compare_and_swap(&val, 1, 0);
33622 return 0;
33623 }
Owen Andersond4b272b2009-05-18 23:58:51 +000033624
33625_ACEOF
33626rm -f conftest.$ac_objext conftest$ac_exeext
33627if { (ac_try="$ac_link"
33628case "(($ac_try" in
33629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33630 *) ac_try_echo=$ac_try;;
33631esac
33632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33633 (eval "$ac_link") 2>conftest.er1
33634 ac_status=$?
33635 grep -v '^ *+' conftest.er1 >conftest.err
33636 rm -f conftest.er1
33637 cat conftest.err >&5
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); } &&
33640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33641 { (case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33644esac
33645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_try") 2>&5
33647 ac_status=$?
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; } &&
33650 { ac_try='test -s conftest$ac_exeext'
33651 { (case "(($ac_try" in
33652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33653 *) ac_try_echo=$ac_try;;
33654esac
33655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33656 (eval "$ac_try") 2>&5
33657 ac_status=$?
33658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33659 (exit $ac_status); }; }; then
33660 { echo "$as_me:$LINENO: result: yes" >&5
33661echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000033662
33663cat >>confdefs.h <<\_ACEOF
33664#define LLVM_MULTITHREADED 1
33665_ACEOF
33666
Owen Andersond4b272b2009-05-18 23:58:51 +000033667else
33668 echo "$as_me: failed program was:" >&5
33669sed 's/^/| /' conftest.$ac_ext >&5
33670
33671 { echo "$as_me:$LINENO: result: no" >&5
33672echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000033673
Owen Andersona8603702009-05-19 22:18:56 +000033674cat >>confdefs.h <<\_ACEOF
33675#define LLVM_MULTITHREADED 0
33676_ACEOF
33677
33678 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
33679echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000033680fi
33681
33682rm -f core conftest.err conftest.$ac_objext \
33683 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000033684
33685
John Criswell7a73b802003-06-30 21:59:07 +000033686
Reid Spencer9372f152007-07-30 20:13:24 +000033687
33688for ac_func in __dso_handle
33689do
33690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33691{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33694 echo $ECHO_N "(cached) $ECHO_C" >&6
33695else
33696 cat >conftest.$ac_ext <<_ACEOF
33697/* confdefs.h. */
33698_ACEOF
33699cat confdefs.h >>conftest.$ac_ext
33700cat >>conftest.$ac_ext <<_ACEOF
33701/* end confdefs.h. */
33702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33704#define $ac_func innocuous_$ac_func
33705
33706/* System header to define __stub macros and hopefully few prototypes,
33707 which can conflict with char $ac_func (); below.
33708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33709 <limits.h> exists even on freestanding compilers. */
33710
33711#ifdef __STDC__
33712# include <limits.h>
33713#else
33714# include <assert.h>
33715#endif
33716
33717#undef $ac_func
33718
33719/* Override any GCC internal prototype to avoid an error.
33720 Use char because int might match the return type of a GCC
33721 builtin and then its argument prototype would still apply. */
33722#ifdef __cplusplus
33723extern "C"
33724#endif
33725char $ac_func ();
33726/* The GNU C library defines this for functions which it implements
33727 to always fail with ENOSYS. Some functions are actually named
33728 something starting with __ and the normal name is an alias. */
33729#if defined __stub_$ac_func || defined __stub___$ac_func
33730choke me
33731#endif
33732
33733int
33734main ()
33735{
33736return $ac_func ();
33737 ;
33738 return 0;
33739}
33740_ACEOF
33741rm -f conftest.$ac_objext conftest$ac_exeext
33742if { (ac_try="$ac_link"
33743case "(($ac_try" in
33744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33745 *) ac_try_echo=$ac_try;;
33746esac
33747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33748 (eval "$ac_link") 2>conftest.er1
33749 ac_status=$?
33750 grep -v '^ *+' conftest.er1 >conftest.err
33751 rm -f conftest.er1
33752 cat conftest.err >&5
33753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033754 (exit $ac_status); } &&
33755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33756 { (case "(($ac_try" in
33757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33758 *) ac_try_echo=$ac_try;;
33759esac
33760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33761 (eval "$ac_try") 2>&5
33762 ac_status=$?
33763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33764 (exit $ac_status); }; } &&
33765 { ac_try='test -s conftest$ac_exeext'
33766 { (case "(($ac_try" in
33767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33768 *) ac_try_echo=$ac_try;;
33769esac
33770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33771 (eval "$ac_try") 2>&5
33772 ac_status=$?
33773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33774 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000033775 eval "$as_ac_var=yes"
33776else
33777 echo "$as_me: failed program was:" >&5
33778sed 's/^/| /' conftest.$ac_ext >&5
33779
33780 eval "$as_ac_var=no"
33781fi
33782
Bill Wendlingebcceee2009-04-18 11:20:33 +000033783rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000033784 conftest$ac_exeext conftest.$ac_ext
33785fi
33786ac_res=`eval echo '${'$as_ac_var'}'`
33787 { echo "$as_me:$LINENO: result: $ac_res" >&5
33788echo "${ECHO_T}$ac_res" >&6; }
33789if test `eval echo '${'$as_ac_var'}'` = yes; then
33790 cat >>confdefs.h <<_ACEOF
33791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33792_ACEOF
33793
33794fi
33795done
33796
33797
Reid Spencera773bd52006-08-04 18:18:08 +000033798{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33799echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033800if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33801 echo $ECHO_N "(cached) $ECHO_C" >&6
33802else
33803 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033804if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033805 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033806 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33807 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033808 if test $? -eq 0 ; then
33809 llvm_cv_llvmgcc_sanity="yes"
33810 fi
33811 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033812fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033813fi
Reid Spencera773bd52006-08-04 18:18:08 +000033814{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33815echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033816
33817if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033818 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33819echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033820 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033821 LLVMCC1=$llvmcc1path
33822
Reid Spencer502935f2004-12-22 05:56:56 +000033823 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033824 LLVMCC1PLUS=$llvmcc1pluspath
33825
Reid Spencer502935f2004-12-22 05:56:56 +000033826 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33827 LLVMGCCDIR=$llvmgccdir
33828
Reid Spencer282d8c12006-12-21 22:55:41 +000033829 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33830 LLVMGCCLIBEXEC=$llvmgcclibexec
33831
Reid Spencerb5d75b82006-05-09 00:31:01 +000033832 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033833 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33834 LLVMGCC_VERSION=$llvmgccversion
33835
33836 LLVMGCC_MAJVERS=$llvmgccmajvers
33837
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000033838 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000033839 LLVMGCC_LANGS=$llvmgcclangs
33840
33841 { echo "$as_me:$LINENO: result: ok" >&5
33842echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000033843fi
33844
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033845SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033846
33847
Reid Spencere9de0912004-08-20 09:03:57 +000033848# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033849# information into substitutions that will end up in Makefile.config.in
33850# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033851if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033852 prefix="/usr/local"
33853fi
Reid Spencere9de0912004-08-20 09:03:57 +000033854eval LLVM_PREFIX="${prefix}";
33855eval LLVM_BINDIR="${prefix}/bin";
33856eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033857eval LLVM_DATADIR="${prefix}/share/llvm";
33858eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33859eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033860eval LLVM_INCLUDEDIR="${prefix}/include";
33861eval LLVM_INFODIR="${prefix}/info";
33862eval LLVM_MANDIR="${prefix}/man";
33863LLVM_CONFIGTIME=`date`
33864
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033875# Place the various directores into the config.h file as #defines so that we
33876# can know about the installation paths within LLVM.
33877
Reid Spencere9de0912004-08-20 09:03:57 +000033878cat >>confdefs.h <<_ACEOF
33879#define LLVM_PREFIX "$LLVM_PREFIX"
33880_ACEOF
33881
33882
33883cat >>confdefs.h <<_ACEOF
33884#define LLVM_BINDIR "$LLVM_BINDIR"
33885_ACEOF
33886
33887
33888cat >>confdefs.h <<_ACEOF
33889#define LLVM_LIBDIR "$LLVM_LIBDIR"
33890_ACEOF
33891
33892
33893cat >>confdefs.h <<_ACEOF
33894#define LLVM_DATADIR "$LLVM_DATADIR"
33895_ACEOF
33896
33897
33898cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000033899#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033900_ACEOF
33901
33902
33903cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033904#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033905_ACEOF
33906
33907
33908cat >>confdefs.h <<_ACEOF
33909#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33910_ACEOF
33911
33912
33913cat >>confdefs.h <<_ACEOF
33914#define LLVM_INFODIR "$LLVM_INFODIR"
33915_ACEOF
33916
33917
33918cat >>confdefs.h <<_ACEOF
33919#define LLVM_MANDIR "$LLVM_MANDIR"
33920_ACEOF
33921
33922
33923cat >>confdefs.h <<_ACEOF
33924#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33925_ACEOF
33926
33927
Eric Christopher790e11c2007-12-01 00:34:39 +000033928cat >>confdefs.h <<_ACEOF
33929#define LLVM_HOSTTRIPLE "$host"
33930_ACEOF
33931
33932
Gordon Henriksenc0efff82007-10-02 09:50:32 +000033933# Determine which bindings to build.
33934if test "$BINDINGS_TO_BUILD" = auto ; then
33935 BINDINGS_TO_BUILD=""
33936 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33937 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33938 fi
33939fi
33940BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33941
33942
33943# This isn't really configurey, but it avoids having to repeat the list in
33944# other files.
33945ALL_BINDINGS=ocaml
33946
33947
Gordon Henriksenf0915682007-10-02 16:42:22 +000033948# Do any work necessary to ensure that bindings have what they need.
33949binding_prereqs_failed=0
33950for a_binding in $BINDINGS_TO_BUILD ; do
33951 case "$a_binding" in
33952 ocaml)
33953 if test "x$OCAMLC" = x ; then
33954 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33955echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33956 binding_prereqs_failed=1
33957 fi
33958 if test "x$OCAMLDEP" = x ; then
33959 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33960echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33961 binding_prereqs_failed=1
33962 fi
33963 if test "x$OCAMLOPT" = x ; then
33964 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33965echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33966 fi
33967 if test "x$with_ocaml_libdir" != xauto ; then
33968 OCAML_LIBDIR=$with_ocaml_libdir
33969
33970 else
33971 ocaml_stdlib="`"$OCAMLC" -where`"
33972 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33973 then
33974 # ocaml stdlib is beneath our prefix; use stdlib
33975 OCAML_LIBDIR=$ocaml_stdlib
33976
33977 else
33978 # ocaml stdlib is outside our prefix; use libdir/ocaml
33979 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33980
33981 fi
33982 fi
33983 ;;
33984 esac
33985done
33986if test "$binding_prereqs_failed" = 1 ; then
33987 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33988echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33989 { (exit 1); exit 1; }; }
33990fi
33991
Daniel Dunbardcf114e2008-08-30 01:16:19 +000033992{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33993echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33994if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33995 echo $ECHO_N "(cached) $ECHO_C" >&6
33996else
33997 ac_ext=cpp
33998ac_cpp='$CXXCPP $CPPFLAGS'
33999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34002
34003 oldcxxflags="$CXXFLAGS"
34004 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34005 cat >conftest.$ac_ext <<_ACEOF
34006/* confdefs.h. */
34007_ACEOF
34008cat confdefs.h >>conftest.$ac_ext
34009cat >>conftest.$ac_ext <<_ACEOF
34010/* end confdefs.h. */
34011
34012int
34013main ()
34014{
34015
34016 ;
34017 return 0;
34018}
34019_ACEOF
34020rm -f conftest.$ac_objext
34021if { (ac_try="$ac_compile"
34022case "(($ac_try" in
34023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34024 *) ac_try_echo=$ac_try;;
34025esac
34026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34027 (eval "$ac_compile") 2>conftest.er1
34028 ac_status=$?
34029 grep -v '^ *+' conftest.er1 >conftest.err
34030 rm -f conftest.er1
34031 cat conftest.err >&5
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034033 (exit $ac_status); } &&
34034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34035 { (case "(($ac_try" in
34036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34037 *) ac_try_echo=$ac_try;;
34038esac
34039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34040 (eval "$ac_try") 2>&5
34041 ac_status=$?
34042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043 (exit $ac_status); }; } &&
34044 { ac_try='test -s conftest.$ac_objext'
34045 { (case "(($ac_try" in
34046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34047 *) ac_try_echo=$ac_try;;
34048esac
34049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34050 (eval "$ac_try") 2>&5
34051 ac_status=$?
34052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34053 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034054 llvm_cv_cxx_visibility_inlines_hidden=yes
34055else
34056 echo "$as_me: failed program was:" >&5
34057sed 's/^/| /' conftest.$ac_ext >&5
34058
34059 llvm_cv_cxx_visibility_inlines_hidden=no
34060fi
34061
34062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34063 CXXFLAGS="$oldcxxflags"
34064 ac_ext=c
34065ac_cpp='$CPP $CPPFLAGS'
34066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34068ac_compiler_gnu=$ac_cv_c_compiler_gnu
34069
34070
34071fi
34072{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34073echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34074if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34075 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34076
34077else
34078 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34079
34080fi
34081
Gordon Henriksenf0915682007-10-02 16:42:22 +000034082
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034083if test "$llvm_cv_link_use_r" = "yes" ; then
34084 RPATH="-Wl,-R"
34085else
34086 RPATH="-Wl,-rpath"
34087fi
34088
34089
34090if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34091 RDYNAMIC="-Wl,-export-dynamic"
34092else
34093 RDYNAMIC=""
34094fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034095
34096
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034097
Reid Spencera773bd52006-08-04 18:18:08 +000034098ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034099
Reid Spencera773bd52006-08-04 18:18:08 +000034100ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034101
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034102ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034103
34104
Reid Spencera773bd52006-08-04 18:18:08 +000034105ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034106
34107
Reid Spencerea949cf2006-08-16 00:45:38 +000034108ac_config_files="$ac_config_files llvm.spec"
34109
34110
Reid Spencera773bd52006-08-04 18:18:08 +000034111ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034112
34113
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034114ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34115
34116
Reid Spencera773bd52006-08-04 18:18:08 +000034117ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034118
34119
Reid Spencera773bd52006-08-04 18:18:08 +000034120ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034121
Reid Spencera773bd52006-08-04 18:18:08 +000034122ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034123
34124
Reid Spencera773bd52006-08-04 18:18:08 +000034125ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034126
34127
Reid Spencera773bd52006-08-04 18:18:08 +000034128ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034129
34130
Reid Spencera773bd52006-08-04 18:18:08 +000034131ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034132
34133
Reid Spencer8b2e1412006-11-17 03:32:33 +000034134ac_config_commands="$ac_config_commands runtime/Makefile"
34135
34136
Reid Spencera773bd52006-08-04 18:18:08 +000034137ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034138
34139
Reid Spencera773bd52006-08-04 18:18:08 +000034140ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034141
34142
Bill Wendlingf24eb392009-01-04 23:12:30 +000034143ac_config_commands="$ac_config_commands unittests/Makefile"
34144
34145
Reid Spencera773bd52006-08-04 18:18:08 +000034146ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034147
34148
Reid Spencera773bd52006-08-04 18:18:08 +000034149ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034150
34151
Reid Spencera773bd52006-08-04 18:18:08 +000034152ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034153
34154
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034155ac_config_commands="$ac_config_commands bindings/Makefile"
34156
34157
34158ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34159
34160
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034161
John Criswell7a73b802003-06-30 21:59:07 +000034162cat >confcache <<\_ACEOF
34163# This file is a shell script that caches the results of configure
34164# tests run on this system so they can be shared between configure
34165# scripts and configure runs, see configure's option --config-cache.
34166# It is not useful on other systems. If it contains results you don't
34167# want to keep, you may remove or edit it.
34168#
34169# config.status only pays attention to the cache file if you give it
34170# the --recheck option to rerun configure.
34171#
John Criswell0c38eaf2003-09-10 15:17:25 +000034172# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034173# loading this file, other *unset* `ac_cv_foo' will be assigned the
34174# following values.
34175
34176_ACEOF
34177
34178# The following way of writing the cache mishandles newlines in values,
34179# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034180# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034181# Ultrix sh set writes to stderr and can't be redirected directly,
34182# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034183(
34184 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34185 eval ac_val=\$$ac_var
34186 case $ac_val in #(
34187 *${as_nl}*)
34188 case $ac_var in #(
34189 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34190echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34191 esac
34192 case $ac_var in #(
34193 _ | IFS | as_nl) ;; #(
34194 *) $as_unset $ac_var ;;
34195 esac ;;
34196 esac
34197 done
34198
John Criswell7a73b802003-06-30 21:59:07 +000034199 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034200 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34201 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034202 # `set' does not quote correctly, so add quotes (double-quote
34203 # substitution turns \\\\ into \\, and sed turns \\ into \).
34204 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034205 "s/'/'\\\\''/g;
34206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034207 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034208 *)
34209 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034211 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034212 esac |
34213 sort
34214) |
John Criswell7a73b802003-06-30 21:59:07 +000034215 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034216 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034217 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034218 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034219 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34220 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034221 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34222 :end' >>confcache
34223if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34224 if test -w "$cache_file"; then
34225 test "x$cache_file" != "x/dev/null" &&
34226 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34227echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034228 cat confcache >$cache_file
34229 else
Reid Spencera773bd52006-08-04 18:18:08 +000034230 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34231echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034232 fi
34233fi
34234rm -f confcache
34235
34236test "x$prefix" = xNONE && prefix=$ac_default_prefix
34237# Let make expand exec_prefix.
34238test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34239
John Criswell7a73b802003-06-30 21:59:07 +000034240DEFS=-DHAVE_CONFIG_H
34241
John Criswell0c38eaf2003-09-10 15:17:25 +000034242ac_libobjs=
34243ac_ltlibobjs=
34244for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34245 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034246 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34247 ac_i=`echo "$ac_i" | sed "$ac_script"`
34248 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34249 # will be set to the directory where LIBOBJS objects are built.
34250 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34251 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034252done
34253LIBOBJS=$ac_libobjs
34254
34255LTLIBOBJS=$ac_ltlibobjs
34256
34257
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034258if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34259 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34260Usually this means the macro was only invoked conditionally." >&5
34261echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34262Usually this means the macro was only invoked conditionally." >&2;}
34263 { (exit 1); exit 1; }; }
34264fi
34265if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34266 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34267Usually this means the macro was only invoked conditionally." >&5
34268echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34269Usually this means the macro was only invoked conditionally." >&2;}
34270 { (exit 1); exit 1; }; }
34271fi
John Criswell7a73b802003-06-30 21:59:07 +000034272
34273: ${CONFIG_STATUS=./config.status}
34274ac_clean_files_save=$ac_clean_files
34275ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34276{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34277echo "$as_me: creating $CONFIG_STATUS" >&6;}
34278cat >$CONFIG_STATUS <<_ACEOF
34279#! $SHELL
34280# Generated by $as_me.
34281# Run this file to recreate the current configuration.
34282# Compiler output produced by configure, useful for debugging
34283# configure, is in config.log if it exists.
34284
34285debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034286ac_cs_recheck=false
34287ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034288SHELL=\${CONFIG_SHELL-$SHELL}
34289_ACEOF
34290
34291cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034292## --------------------- ##
34293## M4sh Initialization. ##
34294## --------------------- ##
34295
Bill Wendlingebcceee2009-04-18 11:20:33 +000034296# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034297if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34298 emulate sh
34299 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034300 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34301 # is contrary to our usage. Disable this feature.
34302 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034303 setopt NO_GLOB_SUBST
34304else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034305 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034306fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034307BIN_SH=xpg4; export BIN_SH # for Tru64
34308DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034309
John Criswell7a73b802003-06-30 21:59:07 +000034310
Reid Spencera773bd52006-08-04 18:18:08 +000034311# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034312# Avoid depending upon Character Ranges.
34313as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34314as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34315as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34316as_cr_digits='0123456789'
34317as_cr_alnum=$as_cr_Letters$as_cr_digits
34318
34319# The user is always right.
34320if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034321 echo "#! /bin/sh" >conf$$.sh
34322 echo "exit 0" >>conf$$.sh
34323 chmod +x conf$$.sh
34324 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034325 PATH_SEPARATOR=';'
34326 else
34327 PATH_SEPARATOR=:
34328 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034329 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034330fi
34331
Reid Spencera773bd52006-08-04 18:18:08 +000034332# Support unset when possible.
34333if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34334 as_unset=unset
34335else
34336 as_unset=false
34337fi
John Criswell7a73b802003-06-30 21:59:07 +000034338
Reid Spencera773bd52006-08-04 18:18:08 +000034339
34340# IFS
34341# We need space, tab and new line, in precisely that order. Quoting is
34342# there to prevent editors from complaining about space-tab.
34343# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34344# splitting by setting IFS to empty value.)
34345as_nl='
34346'
34347IFS=" "" $as_nl"
34348
34349# Find who we are. Look in the path if we contain no directory separator.
34350case $0 in
34351 *[\\/]* ) as_myself=$0 ;;
34352 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034353for as_dir in $PATH
34354do
34355 IFS=$as_save_IFS
34356 test -z "$as_dir" && as_dir=.
34357 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34358done
Reid Spencera773bd52006-08-04 18:18:08 +000034359IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034360
Reid Spencera773bd52006-08-04 18:18:08 +000034361 ;;
34362esac
34363# We did not find ourselves, most probably we were run as `sh COMMAND'
34364# in which case we are not to be found in the path.
34365if test "x$as_myself" = x; then
34366 as_myself=$0
34367fi
34368if test ! -f "$as_myself"; then
34369 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34370 { (exit 1); exit 1; }
34371fi
34372
34373# Work around bugs in pre-3.0 UWIN ksh.
34374for as_var in ENV MAIL MAILPATH
34375do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34376done
34377PS1='$ '
34378PS2='> '
34379PS4='+ '
34380
34381# NLS nuisances.
34382for as_var in \
34383 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34384 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34385 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034386do
Reid Spencera773bd52006-08-04 18:18:08 +000034387 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34388 eval $as_var=C; export $as_var
34389 else
34390 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34391 fi
34392done
34393
34394# Required to use basename.
34395if expr a : '\(a\)' >/dev/null 2>&1 &&
34396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34397 as_expr=expr
34398else
34399 as_expr=false
34400fi
34401
34402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34403 as_basename=basename
34404else
34405 as_basename=false
34406fi
34407
34408
34409# Name of the executable.
34410as_me=`$as_basename -- "$0" ||
34411$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34412 X"$0" : 'X\(//\)$' \| \
34413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34414echo X/"$0" |
34415 sed '/^.*\/\([^/][^/]*\)\/*$/{
34416 s//\1/
34417 q
34418 }
34419 /^X\/\(\/\/\)$/{
34420 s//\1/
34421 q
34422 }
34423 /^X\/\(\/\).*/{
34424 s//\1/
34425 q
34426 }
34427 s/.*/./; q'`
34428
34429# CDPATH.
34430$as_unset CDPATH
34431
34432
34433
John Criswell7a73b802003-06-30 21:59:07 +000034434 as_lineno_1=$LINENO
34435 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034436 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034437 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034438
34439 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34440 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034441 # line-number line after each line using $LINENO; the second 'sed'
34442 # does the real work. The second script uses 'N' to pair each
34443 # line-number line with the line containing $LINENO, and appends
34444 # trailing '-' during substitution so that $LINENO is not a special
34445 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034446 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034447 # scripts with optimization help from Paolo Bonzini. Blame Lee
34448 # E. McMahon (1931-1989) for sed's syntax. :-)
34449 sed -n '
34450 p
34451 /[$]LINENO/=
34452 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034453 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034454 s/[$]LINENO.*/&-/
34455 t lineno
34456 b
34457 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034458 N
Reid Spencera773bd52006-08-04 18:18:08 +000034459 :loop
34460 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034461 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034462 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034463 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034464 chmod +x "$as_me.lineno" ||
34465 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034466 { (exit 1); exit 1; }; }
34467
34468 # Don't try to exec as it changes $[0], causing all sort of problems
34469 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034470 # original and so on. Autoconf is especially sensitive to this).
34471 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034472 # Exit status is that of the last command.
34473 exit
34474}
34475
34476
Reid Spencera773bd52006-08-04 18:18:08 +000034477if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34478 as_dirname=dirname
34479else
34480 as_dirname=false
34481fi
34482
34483ECHO_C= ECHO_N= ECHO_T=
34484case `echo -n x` in
34485-n*)
34486 case `echo 'x\c'` in
34487 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34488 *) ECHO_C='\c';;
34489 esac;;
34490*)
34491 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034492esac
34493
Reid Spencera773bd52006-08-04 18:18:08 +000034494if expr a : '\(a\)' >/dev/null 2>&1 &&
34495 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034496 as_expr=expr
34497else
34498 as_expr=false
34499fi
34500
34501rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034502if test -d conf$$.dir; then
34503 rm -f conf$$.dir/conf$$.file
34504else
34505 rm -f conf$$.dir
34506 mkdir conf$$.dir
34507fi
John Criswell7a73b802003-06-30 21:59:07 +000034508echo >conf$$.file
34509if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034510 as_ln_s='ln -s'
34511 # ... but there are two gotchas:
34512 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34513 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34514 # In both cases, we have to default to `cp -p'.
34515 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034516 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034517elif ln conf$$.file conf$$ 2>/dev/null; then
34518 as_ln_s=ln
34519else
34520 as_ln_s='cp -p'
34521fi
Reid Spencera773bd52006-08-04 18:18:08 +000034522rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34523rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034524
John Criswell0c38eaf2003-09-10 15:17:25 +000034525if mkdir -p . 2>/dev/null; then
34526 as_mkdir_p=:
34527else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034528 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034529 as_mkdir_p=false
34530fi
34531
Bill Wendlingebcceee2009-04-18 11:20:33 +000034532# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34533# systems may use methods other than mode bits to determine executability.
34534cat >conf$$.file <<_ASEOF
34535#! /bin/sh
34536exit 0
34537_ASEOF
34538chmod +x conf$$.file
34539if test -x conf$$.file >/dev/null 2>&1; then
34540 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034541else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034542 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034543fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034544rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034545
34546# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034548
34549# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034551
34552
John Criswell7a73b802003-06-30 21:59:07 +000034553exec 6>&1
34554
Reid Spencera773bd52006-08-04 18:18:08 +000034555# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034556# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034557# values after options handling.
34558ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034559This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000034560generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034561
34562 CONFIG_FILES = $CONFIG_FILES
34563 CONFIG_HEADERS = $CONFIG_HEADERS
34564 CONFIG_LINKS = $CONFIG_LINKS
34565 CONFIG_COMMANDS = $CONFIG_COMMANDS
34566 $ $0 $@
34567
Reid Spencera773bd52006-08-04 18:18:08 +000034568on `(hostname || uname -n) 2>/dev/null | sed 1q`
34569"
34570
John Criswell7a73b802003-06-30 21:59:07 +000034571_ACEOF
34572
Reid Spencera773bd52006-08-04 18:18:08 +000034573cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034574# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034575config_files="$ac_config_files"
34576config_headers="$ac_config_headers"
34577config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034578
Reid Spencera773bd52006-08-04 18:18:08 +000034579_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034580
34581cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034582ac_cs_usage="\
34583\`$as_me' instantiates files from templates according to the
34584current configuration.
34585
34586Usage: $0 [OPTIONS] [FILE]...
34587
34588 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000034589 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034590 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034591 -d, --debug don't remove temporary files
34592 --recheck update $as_me by reconfiguring in the same conditions
34593 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034594 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034595 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034596 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034597
34598Configuration files:
34599$config_files
34600
34601Configuration headers:
34602$config_headers
34603
John Criswellc764fbc2003-09-06 15:17:13 +000034604Configuration commands:
34605$config_commands
34606
John Criswell7a73b802003-06-30 21:59:07 +000034607Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034608
Reid Spencera773bd52006-08-04 18:18:08 +000034609_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034610cat >>$CONFIG_STATUS <<_ACEOF
34611ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034612llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000034613configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034614 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034615
Reid Spencera773bd52006-08-04 18:18:08 +000034616Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034617This config.status script is free software; the Free Software Foundation
34618gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034619
34620ac_pwd='$ac_pwd'
34621srcdir='$srcdir'
34622INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034623_ACEOF
34624
34625cat >>$CONFIG_STATUS <<\_ACEOF
34626# If no file are specified by the user, then we need to provide default
34627# value. By we need to know if files were specified by the user.
34628ac_need_defaults=:
34629while test $# != 0
34630do
34631 case $1 in
34632 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034633 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34634 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034635 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034636 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034637 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034638 ac_option=$1
34639 ac_optarg=$2
34640 ac_shift=shift
34641 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034642 esac
34643
John Criswell0c38eaf2003-09-10 15:17:25 +000034644 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034645 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34647 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034648 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34649 echo "$ac_cs_version"; exit ;;
34650 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034651 debug=: ;;
34652 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034653 $ac_shift
34654 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034655 ac_need_defaults=false;;
34656 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034657 $ac_shift
34658 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034659 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034660 --he | --h)
34661 # Conflict between --help and --header
34662 { echo "$as_me: error: ambiguous option: $1
34663Try \`$0 --help' for more information." >&2
34664 { (exit 1); exit 1; }; };;
34665 --help | --hel | -h )
34666 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34668 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34669 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034670
34671 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034672 -*) { echo "$as_me: error: unrecognized option: $1
34673Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034674 { (exit 1); exit 1; }; } ;;
34675
Reid Spencera773bd52006-08-04 18:18:08 +000034676 *) ac_config_targets="$ac_config_targets $1"
34677 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034678
34679 esac
34680 shift
34681done
34682
John Criswell0c38eaf2003-09-10 15:17:25 +000034683ac_configure_extra_args=
34684
34685if $ac_cs_silent; then
34686 exec 6>/dev/null
34687 ac_configure_extra_args="$ac_configure_extra_args --silent"
34688fi
34689
34690_ACEOF
34691cat >>$CONFIG_STATUS <<_ACEOF
34692if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034693 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34694 CONFIG_SHELL=$SHELL
34695 export CONFIG_SHELL
34696 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034697fi
34698
John Criswell7a73b802003-06-30 21:59:07 +000034699_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034700cat >>$CONFIG_STATUS <<\_ACEOF
34701exec 5>>config.log
34702{
34703 echo
34704 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34705## Running $as_me. ##
34706_ASBOX
34707 echo "$ac_log"
34708} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034709
Reid Spencera773bd52006-08-04 18:18:08 +000034710_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034711cat >>$CONFIG_STATUS <<_ACEOF
34712#
Reid Spencera773bd52006-08-04 18:18:08 +000034713# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034714#
Reid Spencerc0682832005-02-24 19:05:19 +000034715llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034716
34717_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034718
John Criswell7a73b802003-06-30 21:59:07 +000034719cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034720
34721# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034722for ac_config_target in $ac_config_targets
34723do
Reid Spencera773bd52006-08-04 18:18:08 +000034724 case $ac_config_target in
34725 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34726 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034727 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034728 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034729 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034730 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034731 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034732 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34733 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34734 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34735 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34736 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34737 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034738 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034739 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34740 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000034741 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034742 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34743 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34744 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034745 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34746 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034747
John Criswell7a73b802003-06-30 21:59:07 +000034748 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34749echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34750 { (exit 1); exit 1; }; };;
34751 esac
34752done
34753
Reid Spencera773bd52006-08-04 18:18:08 +000034754
John Criswell7a73b802003-06-30 21:59:07 +000034755# If the user did not use the arguments to specify the items to instantiate,
34756# then the envvar interface is used. Set only those that are not.
34757# We use the long form for the default assignment because of an extremely
34758# bizarre bug on SunOS 4.1.3.
34759if $ac_need_defaults; then
34760 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34761 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034762 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034763fi
34764
John Criswell0c38eaf2003-09-10 15:17:25 +000034765# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034766# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034767# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034768# Hook for its removal unless debugging.
34769# Note that there is a small window in which the directory will not be cleaned:
34770# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034771$debug ||
34772{
Reid Spencera773bd52006-08-04 18:18:08 +000034773 tmp=
34774 trap 'exit_status=$?
34775 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34776' 0
John Criswell7a73b802003-06-30 21:59:07 +000034777 trap '{ (exit 1); exit 1; }' 1 2 13 15
34778}
John Criswell7a73b802003-06-30 21:59:07 +000034779# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034780
John Criswell7a73b802003-06-30 21:59:07 +000034781{
Reid Spencera773bd52006-08-04 18:18:08 +000034782 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034783 test -n "$tmp" && test -d "$tmp"
34784} ||
34785{
Reid Spencera773bd52006-08-04 18:18:08 +000034786 tmp=./conf$$-$RANDOM
34787 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034788} ||
34789{
John Criswell0c38eaf2003-09-10 15:17:25 +000034790 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034791 { (exit 1); exit 1; }
34792}
34793
John Criswell7a73b802003-06-30 21:59:07 +000034794#
Reid Spencera773bd52006-08-04 18:18:08 +000034795# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034796#
34797
34798# No need to generate the scripts if there are no CONFIG_FILES.
34799# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034800if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034801
34802_ACEOF
34803
Reid Spencera773bd52006-08-04 18:18:08 +000034804
34805
34806ac_delim='%!_!# '
34807for ac_last_try in false false false false false :; do
34808 cat >conf$$subs.sed <<_ACEOF
34809SHELL!$SHELL$ac_delim
34810PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34811PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34812PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34813PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34814PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34815PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34816exec_prefix!$exec_prefix$ac_delim
34817prefix!$prefix$ac_delim
34818program_transform_name!$program_transform_name$ac_delim
34819bindir!$bindir$ac_delim
34820sbindir!$sbindir$ac_delim
34821libexecdir!$libexecdir$ac_delim
34822datarootdir!$datarootdir$ac_delim
34823datadir!$datadir$ac_delim
34824sysconfdir!$sysconfdir$ac_delim
34825sharedstatedir!$sharedstatedir$ac_delim
34826localstatedir!$localstatedir$ac_delim
34827includedir!$includedir$ac_delim
34828oldincludedir!$oldincludedir$ac_delim
34829docdir!$docdir$ac_delim
34830infodir!$infodir$ac_delim
34831htmldir!$htmldir$ac_delim
34832dvidir!$dvidir$ac_delim
34833pdfdir!$pdfdir$ac_delim
34834psdir!$psdir$ac_delim
34835libdir!$libdir$ac_delim
34836localedir!$localedir$ac_delim
34837mandir!$mandir$ac_delim
34838DEFS!$DEFS$ac_delim
34839ECHO_C!$ECHO_C$ac_delim
34840ECHO_N!$ECHO_N$ac_delim
34841ECHO_T!$ECHO_T$ac_delim
34842LIBS!$LIBS$ac_delim
34843build_alias!$build_alias$ac_delim
34844host_alias!$host_alias$ac_delim
34845target_alias!$target_alias$ac_delim
34846LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34847subdirs!$subdirs$ac_delim
34848build!$build$ac_delim
34849build_cpu!$build_cpu$ac_delim
34850build_vendor!$build_vendor$ac_delim
34851build_os!$build_os$ac_delim
34852host!$host$ac_delim
34853host_cpu!$host_cpu$ac_delim
34854host_vendor!$host_vendor$ac_delim
34855host_os!$host_os$ac_delim
34856target!$target$ac_delim
34857target_cpu!$target_cpu$ac_delim
34858target_vendor!$target_vendor$ac_delim
34859target_os!$target_os$ac_delim
34860OS!$OS$ac_delim
34861LINKALL!$LINKALL$ac_delim
34862NOLINKALL!$NOLINKALL$ac_delim
34863LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34864LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000034865ARCH!$ARCH$ac_delim
34866ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034867CC!$CC$ac_delim
34868CFLAGS!$CFLAGS$ac_delim
34869LDFLAGS!$LDFLAGS$ac_delim
34870CPPFLAGS!$CPPFLAGS$ac_delim
34871ac_ct_CC!$ac_ct_CC$ac_delim
34872EXEEXT!$EXEEXT$ac_delim
34873OBJEXT!$OBJEXT$ac_delim
34874CPP!$CPP$ac_delim
34875GREP!$GREP$ac_delim
34876EGREP!$EGREP$ac_delim
34877LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34878BUILD_CC!$BUILD_CC$ac_delim
34879BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000034880BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034881CVSBUILD!$CVSBUILD$ac_delim
34882ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000034883ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034884DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000034885ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34886EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034887DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034888JIT!$JIT$ac_delim
34889TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34890ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34891ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034892ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034893TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034894ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034895EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000034896BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034897CXX!$CXX$ac_delim
34898CXXFLAGS!$CXXFLAGS$ac_delim
34899ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000034900NM!$NM$ac_delim
34901ifGNUmake!$ifGNUmake$ac_delim
34902LN_S!$LN_S$ac_delim
34903CMP!$CMP$ac_delim
34904CP!$CP$ac_delim
34905DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034906_ACEOF
34907
34908 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34909 break
34910 elif $ac_last_try; then
34911 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34912echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34913 { (exit 1); exit 1; }; }
34914 else
34915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034916 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034917done
34918
34919ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34920if test -n "$ac_eof"; then
34921 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34922 ac_eof=`expr $ac_eof + 1`
34923fi
34924
34925cat >>$CONFIG_STATUS <<_ACEOF
34926cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34927/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34928_ACEOF
34929sed '
34930s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34931s/^/s,@/; s/!/@,|#_!!_#|/
34932:n
34933t n
34934s/'"$ac_delim"'$/,g/; t
34935s/$/\\/; p
34936N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34937' >>$CONFIG_STATUS <conf$$subs.sed
34938rm -f conf$$subs.sed
34939cat >>$CONFIG_STATUS <<_ACEOF
34940CEOF$ac_eof
34941_ACEOF
34942
34943
34944ac_delim='%!_!# '
34945for ac_last_try in false false false false false :; do
34946 cat >conf$$subs.sed <<_ACEOF
David Greene2a5a12c2009-04-17 14:50:39 +000034947FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034948MKDIR!$MKDIR$ac_delim
34949MV!$MV$ac_delim
34950RANLIB!$RANLIB$ac_delim
34951RM!$RM$ac_delim
34952SED!$SED$ac_delim
34953TAR!$TAR$ac_delim
34954BINPWD!$BINPWD$ac_delim
34955GRAPHVIZ!$GRAPHVIZ$ac_delim
34956DOT!$DOT$ac_delim
34957GV!$GV$ac_delim
34958DOTTY!$DOTTY$ac_delim
34959PERL!$PERL$ac_delim
34960HAVE_PERL!$HAVE_PERL$ac_delim
34961INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34962INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34963INSTALL_DATA!$INSTALL_DATA$ac_delim
34964BZIP2!$BZIP2$ac_delim
34965DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034966GROFF!$GROFF$ac_delim
34967GZIP!$GZIP$ac_delim
34968POD2HTML!$POD2HTML$ac_delim
34969POD2MAN!$POD2MAN$ac_delim
34970RUNTEST!$RUNTEST$ac_delim
34971TCLSH!$TCLSH$ac_delim
34972ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000034973OCAMLC!$OCAMLC$ac_delim
34974OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000034975OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000034976OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000034977GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034978INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34979INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34980CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34981CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34982LIBADD_DL!$LIBADD_DL$ac_delim
34983ECHO!$ECHO$ac_delim
34984AR!$AR$ac_delim
34985STRIP!$STRIP$ac_delim
34986CXXCPP!$CXXCPP$ac_delim
34987F77!$F77$ac_delim
34988FFLAGS!$FFLAGS$ac_delim
34989ac_ct_F77!$ac_ct_F77$ac_delim
34990LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034991LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
34992LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000034993LLVMGCC!$LLVMGCC$ac_delim
34994LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034995USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034996HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034997HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034998ALLOCA!$ALLOCA$ac_delim
34999MMAP_FILE!$MMAP_FILE$ac_delim
35000LLVMCC1!$LLVMCC1$ac_delim
35001LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35002LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035003LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035004LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35005LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035006LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035007SHLIBEXT!$SHLIBEXT$ac_delim
35008LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35009LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35010LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35011LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35012LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35013LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35014LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35015LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35016LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35017LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035018BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35019ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035020OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035021ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035022RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035023RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035024LIBOBJS!$LIBOBJS$ac_delim
35025LTLIBOBJS!$LTLIBOBJS$ac_delim
35026_ACEOF
35027
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035028 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
Reid Spencera773bd52006-08-04 18:18:08 +000035029 break
35030 elif $ac_last_try; then
35031 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35032echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35033 { (exit 1); exit 1; }; }
35034 else
35035 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35036 fi
35037done
35038
35039ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35040if test -n "$ac_eof"; then
35041 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35042 ac_eof=`expr $ac_eof + 1`
35043fi
35044
35045cat >>$CONFIG_STATUS <<_ACEOF
35046cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35047/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35048_ACEOF
35049sed '
35050s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35051s/^/s,@/; s/!/@,|#_!!_#|/
35052:n
35053t n
35054s/'"$ac_delim"'$/,g/; t
35055s/$/\\/; p
35056N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35057' >>$CONFIG_STATUS <conf$$subs.sed
35058rm -f conf$$subs.sed
35059cat >>$CONFIG_STATUS <<_ACEOF
35060:end
35061s/|#_!!_#|//g
35062CEOF$ac_eof
35063_ACEOF
35064
35065
35066# VPATH may cause trouble with some makes, so we remove $(srcdir),
35067# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35068# trailing colons and then remove the whole line if VPATH becomes empty
35069# (actually we leave an empty line to preserve line numbers).
35070if test "x$srcdir" = x.; then
35071 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35072s/:*\$(srcdir):*/:/
35073s/:*\${srcdir}:*/:/
35074s/:*@srcdir@:*/:/
35075s/^\([^=]*=[ ]*\):*/\1/
35076s/:*$//
35077s/^[^=]*=[ ]*$//
35078}'
35079fi
35080
35081cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035082fi # test -n "$CONFIG_FILES"
35083
Reid Spencera773bd52006-08-04 18:18:08 +000035084
35085for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35086do
35087 case $ac_tag in
35088 :[FHLC]) ac_mode=$ac_tag; continue;;
35089 esac
35090 case $ac_mode$ac_tag in
35091 :[FHL]*:*);;
35092 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35093echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35094 { (exit 1); exit 1; }; };;
35095 :[FH]-) ac_tag=-:-;;
35096 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35097 esac
35098 ac_save_IFS=$IFS
35099 IFS=:
35100 set x $ac_tag
35101 IFS=$ac_save_IFS
35102 shift
35103 ac_file=$1
35104 shift
35105
35106 case $ac_mode in
35107 :L) ac_source=$1;;
35108 :[FH])
35109 ac_file_inputs=
35110 for ac_f
35111 do
35112 case $ac_f in
35113 -) ac_f="$tmp/stdin";;
35114 *) # Look for the file first in the build tree, then in the source tree
35115 # (if the path is not absolute). The absolute path cannot be DOS-style,
35116 # because $ac_f cannot contain `:'.
35117 test -f "$ac_f" ||
35118 case $ac_f in
35119 [\\/$]*) false;;
35120 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35121 esac ||
35122 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35123echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35124 { (exit 1); exit 1; }; };;
35125 esac
35126 ac_file_inputs="$ac_file_inputs $ac_f"
35127 done
35128
35129 # Let's still pretend it is `configure' which instantiates (i.e., don't
35130 # use $as_me), people would be surprised to read:
35131 # /* config.h. Generated by config.status. */
35132 configure_input="Generated from "`IFS=:
35133 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35134 if test x"$ac_file" != x-; then
35135 configure_input="$ac_file. $configure_input"
35136 { echo "$as_me:$LINENO: creating $ac_file" >&5
35137echo "$as_me: creating $ac_file" >&6;}
35138 fi
35139
35140 case $ac_tag in
35141 *:-:* | *:-) cat >"$tmp/stdin";;
35142 esac
35143 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035144 esac
35145
Reid Spencera773bd52006-08-04 18:18:08 +000035146 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035147$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035148 X"$ac_file" : 'X\(//\)[^/]' \| \
35149 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035151echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35153 s//\1/
35154 q
35155 }
35156 /^X\(\/\/\)[^/].*/{
35157 s//\1/
35158 q
35159 }
35160 /^X\(\/\/\)$/{
35161 s//\1/
35162 q
35163 }
35164 /^X\(\/\).*/{
35165 s//\1/
35166 q
35167 }
35168 s/.*/./; q'`
35169 { as_dir="$ac_dir"
35170 case $as_dir in #(
35171 -*) as_dir=./$as_dir;;
35172 esac
35173 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035174 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035175 while :; do
35176 case $as_dir in #(
35177 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35178 *) as_qdir=$as_dir;;
35179 esac
35180 as_dirs="'$as_qdir' $as_dirs"
35181 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035182$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035183 X"$as_dir" : 'X\(//\)[^/]' \| \
35184 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035186echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35188 s//\1/
35189 q
35190 }
35191 /^X\(\/\/\)[^/].*/{
35192 s//\1/
35193 q
35194 }
35195 /^X\(\/\/\)$/{
35196 s//\1/
35197 q
35198 }
35199 /^X\(\/\).*/{
35200 s//\1/
35201 q
35202 }
35203 s/.*/./; q'`
35204 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035205 done
Reid Spencera773bd52006-08-04 18:18:08 +000035206 test -z "$as_dirs" || eval "mkdir $as_dirs"
35207 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35208echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035209 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035210 ac_builddir=.
35211
Reid Spencera773bd52006-08-04 18:18:08 +000035212case "$ac_dir" in
35213.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35214*)
John Criswell7a73b802003-06-30 21:59:07 +000035215 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035216 # A ".." for each directory in $ac_dir_suffix.
35217 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35218 case $ac_top_builddir_sub in
35219 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35220 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35221 esac ;;
35222esac
35223ac_abs_top_builddir=$ac_pwd
35224ac_abs_builddir=$ac_pwd$ac_dir_suffix
35225# for backward compatibility:
35226ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035227
35228case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035229 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035230 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035231 ac_top_srcdir=$ac_top_builddir_sub
35232 ac_abs_top_srcdir=$ac_pwd ;;
35233 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035234 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035235 ac_top_srcdir=$srcdir
35236 ac_abs_top_srcdir=$srcdir ;;
35237 *) # Relative name.
35238 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35239 ac_top_srcdir=$ac_top_build_prefix$srcdir
35240 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035241esac
Reid Spencera773bd52006-08-04 18:18:08 +000035242ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035243
John Criswell7a73b802003-06-30 21:59:07 +000035244
Reid Spencera773bd52006-08-04 18:18:08 +000035245 case $ac_mode in
35246 :F)
35247 #
35248 # CONFIG_FILE
35249 #
John Criswell7a73b802003-06-30 21:59:07 +000035250
35251 case $INSTALL in
35252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035253 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035254 esac
John Criswell7a73b802003-06-30 21:59:07 +000035255_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035256
35257cat >>$CONFIG_STATUS <<\_ACEOF
35258# If the template does not know about datarootdir, expand it.
35259# FIXME: This hack should be removed a few years after 2.60.
35260ac_datarootdir_hack=; ac_datarootdir_seen=
35261
35262case `sed -n '/datarootdir/ {
35263 p
35264 q
35265}
35266/@datadir@/p
35267/@docdir@/p
35268/@infodir@/p
35269/@localedir@/p
35270/@mandir@/p
35271' $ac_file_inputs` in
35272*datarootdir*) ac_datarootdir_seen=yes;;
35273*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35274 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35275echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35276_ACEOF
35277cat >>$CONFIG_STATUS <<_ACEOF
35278 ac_datarootdir_hack='
35279 s&@datadir@&$datadir&g
35280 s&@docdir@&$docdir&g
35281 s&@infodir@&$infodir&g
35282 s&@localedir@&$localedir&g
35283 s&@mandir@&$mandir&g
35284 s&\\\${datarootdir}&$datarootdir&g' ;;
35285esac
35286_ACEOF
35287
35288# Neutralize VPATH when `$srcdir' = `.'.
35289# Shell code in configure.ac might set extrasub.
35290# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035291cat >>$CONFIG_STATUS <<_ACEOF
35292 sed "$ac_vpsub
35293$extrasub
35294_ACEOF
35295cat >>$CONFIG_STATUS <<\_ACEOF
35296:t
35297/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035298s&@configure_input@&$configure_input&;t t
35299s&@top_builddir@&$ac_top_builddir_sub&;t t
35300s&@srcdir@&$ac_srcdir&;t t
35301s&@abs_srcdir@&$ac_abs_srcdir&;t t
35302s&@top_srcdir@&$ac_top_srcdir&;t t
35303s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35304s&@builddir@&$ac_builddir&;t t
35305s&@abs_builddir@&$ac_abs_builddir&;t t
35306s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35307s&@INSTALL@&$ac_INSTALL&;t t
35308$ac_datarootdir_hack
35309" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035310
Reid Spencera773bd52006-08-04 18:18:08 +000035311test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35312 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35313 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35314 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35315which seems to be undefined. Please make sure it is defined." >&5
35316echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35317which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035318
Reid Spencera773bd52006-08-04 18:18:08 +000035319 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035320 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035321 -) cat "$tmp/out"; rm -f "$tmp/out";;
35322 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035323 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035324 ;;
35325 :H)
35326 #
35327 # CONFIG_HEADER
35328 #
John Criswell7a73b802003-06-30 21:59:07 +000035329_ACEOF
35330
Reid Spencera773bd52006-08-04 18:18:08 +000035331# Transform confdefs.h into a sed script `conftest.defines', that
35332# substitutes the proper values into config.h.in to produce config.h.
35333rm -f conftest.defines conftest.tail
35334# First, append a space to every undef/define line, to ease matching.
35335echo 's/$/ /' >conftest.defines
35336# Then, protect against being on the right side of a sed subst, or in
35337# an unquoted here document, in config.status. If some macros were
35338# called several times there might be several #defines for the same
35339# symbol, which is useless. But do not sort them, since the last
35340# AC_DEFINE must be honored.
35341ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35342# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35343# NAME is the cpp macro being defined, VALUE is the value it is being given.
35344# PARAMS is the parameter list in the macro definition--in most cases, it's
35345# just an empty string.
35346ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35347ac_dB='\\)[ (].*,\\1define\\2'
35348ac_dC=' '
35349ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035350
Reid Spencera773bd52006-08-04 18:18:08 +000035351uniq confdefs.h |
35352 sed -n '
35353 t rset
35354 :rset
35355 s/^[ ]*#[ ]*define[ ][ ]*//
35356 t ok
35357 d
35358 :ok
35359 s/[\\&,]/\\&/g
35360 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35361 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35362 ' >>conftest.defines
35363
35364# Remove the space that was appended to ease matching.
35365# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035366# example, in the case of _POSIX_SOURCE, which is predefined and required
35367# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035368# (The regexp can be short, since the line contains either #define or #undef.)
35369echo 's/ $//
35370s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035371
Reid Spencera773bd52006-08-04 18:18:08 +000035372# Break up conftest.defines:
35373ac_max_sed_lines=50
35374
35375# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35376# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35377# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35378# et cetera.
35379ac_in='$ac_file_inputs'
35380ac_out='"$tmp/out1"'
35381ac_nxt='"$tmp/out2"'
35382
35383while :
John Criswell7a73b802003-06-30 21:59:07 +000035384do
Reid Spencera773bd52006-08-04 18:18:08 +000035385 # Write a here document:
35386 cat >>$CONFIG_STATUS <<_ACEOF
35387 # First, check the format of the line:
35388 cat >"\$tmp/defines.sed" <<\\CEOF
35389/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35390/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35391b
35392:def
35393_ACEOF
35394 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035395 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035396 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35397 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35398 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35399 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035400 rm -f conftest.defines
35401 mv conftest.tail conftest.defines
35402done
Reid Spencera773bd52006-08-04 18:18:08 +000035403rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035404
Reid Spencera773bd52006-08-04 18:18:08 +000035405echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035406cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035407 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035408 echo "/* $configure_input */" >"$tmp/config.h"
35409 cat "$ac_result" >>"$tmp/config.h"
35410 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035411 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35412echo "$as_me: $ac_file is unchanged" >&6;}
35413 else
John Criswell7a73b802003-06-30 21:59:07 +000035414 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035415 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035416 fi
35417 else
Reid Spencera773bd52006-08-04 18:18:08 +000035418 echo "/* $configure_input */"
35419 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035420 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035421 rm -f "$tmp/out12"
35422 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035423
Reid Spencera773bd52006-08-04 18:18:08 +000035424 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35425echo "$as_me: executing $ac_file commands" >&6;}
35426 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035427 esac
John Criswell7a73b802003-06-30 21:59:07 +000035428
Reid Spencera773bd52006-08-04 18:18:08 +000035429
35430 case $ac_file$ac_mode in
35431 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35432 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35433 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35434 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35435 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35436 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35437 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35438 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035439 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35440 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035441 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35442 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35443 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35444 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035445 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35446 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035447 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35448 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35449 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35450 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35451 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35452 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035453 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35454 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35455 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35456 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035457
35458 esac
35459done # for ac_tag
35460
John Criswell7a73b802003-06-30 21:59:07 +000035461
35462{ (exit 0); exit 0; }
35463_ACEOF
35464chmod +x $CONFIG_STATUS
35465ac_clean_files=$ac_clean_files_save
35466
35467
35468# configure is writing to config.log, and then calls config.status.
35469# config.status does its own redirection, appending to config.log.
35470# Unfortunately, on DOS this fails, as config.log is still kept open
35471# by configure, so config.status won't be able to write to it; its
35472# output is simply discarded. So we exec the FD to /dev/null,
35473# effectively closing config.log, so it can be properly (re)opened and
35474# appended to by config.status. When coming back to configure, we
35475# need to make the FD available again.
35476if test "$no_create" != yes; then
35477 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035478 ac_config_status_args=
35479 test "$silent" = yes &&
35480 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035481 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035483 exec 5>>config.log
35484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35485 # would make configure fail if this is the last instruction.
35486 $ac_cs_success || { (exit 1); exit 1; }
35487fi
35488
John Criswell12399a12003-09-30 15:55:44 +000035489#
35490# CONFIG_SUBDIRS section.
35491#
35492if test "$no_recursion" != yes; then
35493
35494 # Remove --cache-file and --srcdir arguments so they do not pile up.
35495 ac_sub_configure_args=
35496 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035497 eval "set x $ac_configure_args"
35498 shift
35499 for ac_arg
35500 do
John Criswell12399a12003-09-30 15:55:44 +000035501 if test -n "$ac_prev"; then
35502 ac_prev=
35503 continue
35504 fi
35505 case $ac_arg in
35506 -cache-file | --cache-file | --cache-fil | --cache-fi \
35507 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35508 ac_prev=cache_file ;;
35509 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35510 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35511 | --c=*)
35512 ;;
35513 --config-cache | -C)
35514 ;;
35515 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35516 ac_prev=srcdir ;;
35517 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35518 ;;
35519 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35520 ac_prev=prefix ;;
35521 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35522 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035523 *)
35524 case $ac_arg in
35525 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35526 esac
35527 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035528 esac
35529 done
35530
35531 # Always prepend --prefix to ensure using the same prefix
35532 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035533 ac_arg="--prefix=$prefix"
35534 case $ac_arg in
35535 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35536 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000035537 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035538
35539 ac_popdir=`pwd`
35540 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35541
35542 # Do not complain, so a configure script can configure whichever
35543 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035544 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035545
Reid Spencera773bd52006-08-04 18:18:08 +000035546 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35547 echo "$as_me:$LINENO: $ac_msg" >&5
35548 echo "$ac_msg" >&6
35549 { as_dir="$ac_dir"
35550 case $as_dir in #(
35551 -*) as_dir=./$as_dir;;
35552 esac
35553 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035554 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035555 while :; do
35556 case $as_dir in #(
35557 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35558 *) as_qdir=$as_dir;;
35559 esac
35560 as_dirs="'$as_qdir' $as_dirs"
35561 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035562$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035563 X"$as_dir" : 'X\(//\)[^/]' \| \
35564 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035565 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035566echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35568 s//\1/
35569 q
35570 }
35571 /^X\(\/\/\)[^/].*/{
35572 s//\1/
35573 q
35574 }
35575 /^X\(\/\/\)$/{
35576 s//\1/
35577 q
35578 }
35579 /^X\(\/\).*/{
35580 s//\1/
35581 q
35582 }
35583 s/.*/./; q'`
35584 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035585 done
Reid Spencera773bd52006-08-04 18:18:08 +000035586 test -z "$as_dirs" || eval "mkdir $as_dirs"
35587 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35588echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035589 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035590 ac_builddir=.
35591
Reid Spencera773bd52006-08-04 18:18:08 +000035592case "$ac_dir" in
35593.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35594*)
John Criswell12399a12003-09-30 15:55:44 +000035595 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035596 # A ".." for each directory in $ac_dir_suffix.
35597 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35598 case $ac_top_builddir_sub in
35599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35601 esac ;;
35602esac
35603ac_abs_top_builddir=$ac_pwd
35604ac_abs_builddir=$ac_pwd$ac_dir_suffix
35605# for backward compatibility:
35606ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035607
35608case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035609 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035610 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035611 ac_top_srcdir=$ac_top_builddir_sub
35612 ac_abs_top_srcdir=$ac_pwd ;;
35613 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035614 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035615 ac_top_srcdir=$srcdir
35616 ac_abs_top_srcdir=$srcdir ;;
35617 *) # Relative name.
35618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35619 ac_top_srcdir=$ac_top_build_prefix$srcdir
35620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035621esac
Reid Spencera773bd52006-08-04 18:18:08 +000035622ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035623
35624
Reid Spencera773bd52006-08-04 18:18:08 +000035625 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035626
35627 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035628 if test -f "$ac_srcdir/configure.gnu"; then
35629 ac_sub_configure=$ac_srcdir/configure.gnu
35630 elif test -f "$ac_srcdir/configure"; then
35631 ac_sub_configure=$ac_srcdir/configure
35632 elif test -f "$ac_srcdir/configure.in"; then
35633 # This should be Cygnus configure.
35634 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035635 else
35636 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35637echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35638 ac_sub_configure=
35639 fi
35640
35641 # The recursion is here.
35642 if test -n "$ac_sub_configure"; then
35643 # Make the cache file name correct relative to the subdirectory.
35644 case $cache_file in
35645 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035646 *) # Relative name.
35647 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035648 esac
35649
Reid Spencera773bd52006-08-04 18:18:08 +000035650 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35651echo "$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 +000035652 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035653 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35654 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035655 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035656echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35657 { (exit 1); exit 1; }; }
35658 fi
35659
Reid Spencera773bd52006-08-04 18:18:08 +000035660 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035661 done
35662fi
35663