blob: 34eba159dab58e42b3b05ba1b160e5d07895de03 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebcceee2009-04-18 11:20:33 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Bill Wendlingebcceee2009-04-18 11:20:33 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Wendlingebcceee2009-04-18 11:20:33 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Bill Wendlingebcceee2009-04-18 11:20:33 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Bill Wendlinga0833352009-03-12 04:10:09 +0000815ARCH
816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000833ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000834DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000837DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000842ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000843TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000844LLVM_ENUM_TARGETS
845LLVM_ENUM_ASM_PRINTERS
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +0000846LLVM_ENUM_ASM_PARSERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000847ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000848EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000849BINUTILS_INCDIR
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +0000850ENABLE_LLVMC_DYNAMIC
851ENABLE_LLVMC_DYNAMIC_PLUGINS
Reid Spencera773bd52006-08-04 18:18:08 +0000852CXX
853CXXFLAGS
854ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000855NM
856ifGNUmake
857LN_S
858CMP
859CP
860DATE
861FIND
862MKDIR
863MV
864RANLIB
865RM
866SED
867TAR
868BINPWD
869GRAPHVIZ
870DOT
David Greenef0b9eff2009-07-09 17:16:26 +0000871FDP
872NEATO
873TWOPI
874CIRCO
Reid Spencera773bd52006-08-04 18:18:08 +0000875GV
876DOTTY
877PERL
878HAVE_PERL
879INSTALL_PROGRAM
880INSTALL_SCRIPT
881INSTALL_DATA
882BZIP2
883DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000884GROFF
885GZIP
886POD2HTML
887POD2MAN
888RUNTEST
889TCLSH
890ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000891OCAMLC
892OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000893OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000894OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000895GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000896INSTALL_LTDL_TRUE
897INSTALL_LTDL_FALSE
898CONVENIENCE_LTDL_TRUE
899CONVENIENCE_LTDL_FALSE
900LIBADD_DL
901ECHO
902AR
903STRIP
904CXXCPP
905F77
906FFLAGS
907ac_ct_F77
908LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000909LLVMGCCCOMMAND
910LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000911LLVMGCC
912LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000913USE_UDIS86
Jeffrey Yasskina93e7702009-07-10 21:09:55 +0000914USE_OPROFILE
Reid Spencer1000b732006-12-01 00:37:14 +0000915HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000916HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000917ALLOCA
918MMAP_FILE
919LLVMCC1
920LLVMCC1PLUS
921LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000922LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000923LLVMGCC_VERSION
924LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000925LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000926SHLIBEXT
927LLVM_PREFIX
928LLVM_BINDIR
929LLVM_LIBDIR
930LLVM_DATADIR
931LLVM_DOCSDIR
932LLVM_ETCDIR
933LLVM_INCLUDEDIR
934LLVM_INFODIR
935LLVM_MANDIR
936LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000937BINDINGS_TO_BUILD
938ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000939OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000940ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000941RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000942RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000943LIBOBJS
944LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000945ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000946 ac_precious_vars='build_alias
947host_alias
948target_alias
949CC
950CFLAGS
951LDFLAGS
952CPPFLAGS
953CPP
954CXX
955CXXFLAGS
956CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000957CXXCPP
958F77
959FFLAGS'
960ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000961projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000962projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000963projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000964projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000965projects/llvm-reopt
966projects/llvm-gcc
967projects/llvm-java
968projects/llvm-tv
969projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000970projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000971projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000972
973# Initialize some variables set by options.
974ac_init_help=
975ac_init_version=false
976# The variables have the same names as the options, with
977# dashes changed to underlines.
978cache_file=/dev/null
979exec_prefix=NONE
980no_create=
981no_recursion=
982prefix=NONE
983program_prefix=NONE
984program_suffix=NONE
985program_transform_name=s,x,x,
986silent=
987site=
988srcdir=
989verbose=
990x_includes=NONE
991x_libraries=NONE
992
993# Installation directory options.
994# These are left unexpanded so users can "make install exec_prefix=/foo"
995# and all the variables that are supposed to be based on exec_prefix
996# by default will actually change.
997# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000998# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000999bindir='${exec_prefix}/bin'
1000sbindir='${exec_prefix}/sbin'
1001libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +00001002datarootdir='${prefix}/share'
1003datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +00001004sysconfdir='${prefix}/etc'
1005sharedstatedir='${prefix}/com'
1006localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001007includedir='${prefix}/include'
1008oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001009docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1010infodir='${datarootdir}/info'
1011htmldir='${docdir}'
1012dvidir='${docdir}'
1013pdfdir='${docdir}'
1014psdir='${docdir}'
1015libdir='${exec_prefix}/lib'
1016localedir='${datarootdir}/locale'
1017mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001018
1019ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001020ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001021for ac_option
1022do
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001025 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001026 ac_prev=
1027 continue
1028 fi
1029
Reid Spencera773bd52006-08-04 18:18:08 +00001030 case $ac_option in
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032 *) ac_optarg=yes ;;
1033 esac
John Criswell7a73b802003-06-30 21:59:07 +00001034
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1036
Reid Spencera773bd52006-08-04 18:18:08 +00001037 case $ac_dashdash$ac_option in
1038 --)
1039 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001040
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 ac_prev=bindir ;;
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1045
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1050
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1057
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1060
Reid Spencera773bd52006-08-04 18:18:08 +00001061 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001062 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001064 datadir=$ac_optarg ;;
1065
Reid Spencera773bd52006-08-04 18:18:08 +00001066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1072
John Criswell7a73b802003-06-30 21:59:07 +00001073 -disable-* | --disable-*)
1074 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001076 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001077 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001079 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001080 eval enable_$ac_feature=no ;;
1081
1082 -docdir | --docdir | --docdi | --doc | --do)
1083 ac_prev=docdir ;;
1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085 docdir=$ac_optarg ;;
1086
1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088 ac_prev=dvidir ;;
1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001091
1092 -enable-* | --enable-*)
1093 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001095 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001096 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001098 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001099 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001100
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1109
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1112 with_gas=yes ;;
1113
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1120
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1125
Reid Spencera773bd52006-08-04 18:18:08 +00001126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 ac_prev=htmldir ;;
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 | --ht=*)
1130 htmldir=$ac_optarg ;;
1131
John Criswell7a73b802003-06-30 21:59:07 +00001132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1138
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 ac_prev=infodir ;;
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1143
1144 -libdir | --libdir | --libdi | --libd)
1145 ac_prev=libdir ;;
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1148
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1155
Reid Spencera773bd52006-08-04 18:18:08 +00001156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1160
John Criswell7a73b802003-06-30 21:59:07 +00001161 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001162 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001166 localstatedir=$ac_optarg ;;
1167
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 ac_prev=mandir ;;
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1172
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1175 with_fp=no ;;
1176
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1179 no_create=yes ;;
1180
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 no_recursion=yes ;;
1184
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1193
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 ac_prev=prefix ;;
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1198
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1205
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1212
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1229
Reid Spencera773bd52006-08-04 18:18:08 +00001230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 ac_prev=pdfdir ;;
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1234
1235 -psdir | --psdir | --psdi | --psd | --ps)
1236 ac_prev=psdir ;;
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 psdir=$ac_optarg ;;
1239
John Criswell7a73b802003-06-30 21:59:07 +00001240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1242 silent=yes ;;
1243
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 ac_prev=sbindir ;;
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 | --sbi=* | --sb=*)
1248 sbindir=$ac_optarg ;;
1249
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1253 | --sha | --sh)
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 | --sha=* | --sh=*)
1259 sharedstatedir=$ac_optarg ;;
1260
1261 -site | --site | --sit)
1262 ac_prev=site ;;
1263 -site=* | --site=* | --sit=*)
1264 site=$ac_optarg ;;
1265
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 ac_prev=srcdir ;;
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1270
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1277
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1282
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 verbose=yes ;;
1285
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1288
1289 -with-* | --with-*)
1290 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001292 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001295 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001296 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001297
1298 -without-* | --without-*)
1299 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001301 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001304 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001305 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001306
1307 --x)
1308 # Obsolete; use --with-x.
1309 with_x=yes ;;
1310
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1317
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1324
1325 -*) { echo "$as_me: error: unrecognized option: $ac_option
1326Try \`$0 --help' for more information." >&2
1327 { (exit 1); exit 1; }; }
1328 ;;
1329
1330 *=*)
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001336 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001337 export $ac_envvar ;;
1338
1339 *)
1340 # FIXME: should be removed in autoconf 3.0.
1341 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345 ;;
1346
1347 esac
1348done
1349
1350if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 { echo "$as_me: error: missing argument to $ac_option" >&2
1353 { (exit 1); exit 1; }; }
1354fi
1355
Reid Spencera773bd52006-08-04 18:18:08 +00001356# Be sure to have absolute directory names.
1357for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001361do
Reid Spencera773bd52006-08-04 18:18:08 +00001362 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001363 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001366 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001367 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001369done
1370
1371# There might be people who depend on the old broken behavior: `$host'
1372# used to hold the argument of --host etc.
1373# FIXME: To remove some day.
1374build=$build_alias
1375host=$host_alias
1376target=$target_alias
1377
1378# FIXME: To remove some day.
1379if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387fi
1388
1389ac_tool_prefix=
1390test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392test "$silent" = yes && exec 6>/dev/null
1393
1394
Reid Spencera773bd52006-08-04 18:18:08 +00001395ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396ac_ls_di=`ls -di .` &&
1397ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 { echo "$as_me: error: Working directory cannot be determined" >&2
1399 { (exit 1); exit 1; }; }
1400test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 { echo "$as_me: error: pwd does not report name of working directory" >&2
1402 { (exit 1); exit 1; }; }
1403
1404
John Criswell7a73b802003-06-30 21:59:07 +00001405# Find the source files, if location was not specified.
1406if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001410$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001411 X"$0" : 'X\(//\)[^/]' \| \
1412 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001414echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\/\)[^/].*/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)$/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\).*/{
1428 s//\1/
1429 q
1430 }
1431 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001432 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001433 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001434 srcdir=..
1435 fi
1436else
1437 ac_srcdir_defaulted=no
1438fi
Reid Spencera773bd52006-08-04 18:18:08 +00001439if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001442 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001443fi
Reid Spencera773bd52006-08-04 18:18:08 +00001444ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445ac_abs_confdir=`(
1446 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001447 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001448 pwd)`
1449# When building in place, set srcdir=.
1450if test "$ac_abs_confdir" = "$ac_pwd"; then
1451 srcdir=.
1452fi
1453# Remove unnecessary trailing slashes from srcdir.
1454# Double slashes in file names in object file debugging info
1455# mess up M-x gdb in Emacs.
1456case $srcdir in
1457*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458esac
1459for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464done
John Criswell7a73b802003-06-30 21:59:07 +00001465
1466#
1467# Report the --help message.
1468#
1469if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1472 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001473\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001474
1475Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478VAR=VALUE. See below for descriptions of some of the useful variables.
1479
1480Defaults for the options are specified in brackets.
1481
1482Configuration:
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492
John Criswell7a73b802003-06-30 21:59:07 +00001493Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001495 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001497 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001498
1499By default, \`make install' will install all the files in
1500\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502for instance \`--prefix=\$HOME'.
1503
1504For better control, use the options below.
1505
1506Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001526_ACEOF
1527
1528 cat <<\_ACEOF
1529
1530System types:
1531 --build=BUILD configure for building on BUILD [guessed]
1532 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1533 --target=TARGET configure for building compilers for TARGET [HOST]
1534_ACEOF
1535fi
1536
1537if test -n "$ac_init_help"; then
1538 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001539 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001540 esac
1541 cat <<\_ACEOF
1542
1543Optional Features:
1544 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1545 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001546 --enable-optimized Compile with optimizations enabled (default is NO)
1547 --enable-profiling Compile with profiling enabled (default is NO)
1548 --enable-assertions Compile with assertion checks enabled (default is
1549 YES)
David Greenea696d242007-06-28 19:36:08 +00001550 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001551 Compile with expensive debug checks enabled (default
1552 is NO)
1553 --enable-debug-runtime Build runtime libs with debug symbols (default is
1554 NO)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001555 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001556 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001557 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001558 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001559 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001560 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001561 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001562 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1563 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001564 --enable-bindings Build specific language bindings:
1565 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001566 --enable-libffi Check for the presence of libffi (default is YES)
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00001567 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1568 Win32)
1569 --enable-llvmc-dynamic-plugins
1570 Enable dynamic LLVMC plugins (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001571 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001572 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001573 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001574 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001575 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001576 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001577 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001578 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001579 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001580
1581Optional Packages:
1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001584 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1585 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001586 --with-llvmgcc Specify location of llvm-gcc driver (default
1587 searches PATH)
1588 --with-llvmgxx Specify location of llvm-g++ driver (default
1589 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001590 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001591 --with-ocaml-libdir Specify install location for ocaml bindings (default
1592 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001593 --with-binutils-include Specify path to binutils/include/ containing
1594 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001595 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001596 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1597 --with-pic try to use only PIC/non-PIC objects [default=use
1598 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001599 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001600 --with-udis86=<path> Use udis86 external x86 disassembler library
Jeffrey Yasskina93e7702009-07-10 21:09:55 +00001601 --with-oprofile=<prefix>
1602 Tell OProfile >= 0.9.4 how to symbolize JIT output
John Criswell7a73b802003-06-30 21:59:07 +00001603
1604Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001605 CC C compiler command
1606 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1608 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001609 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1610 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001611 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001612 CXX C++ compiler command
1613 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001614 CXXCPP C++ preprocessor
1615 F77 Fortran 77 compiler command
1616 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001617
1618Use these variables to override the choices made by `configure' or to help
1619it to find libraries and programs with nonstandard names/locations.
1620
1621Report bugs to <llvmbugs@cs.uiuc.edu>.
1622_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001623ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001624fi
1625
1626if test "$ac_init_help" = "recursive"; then
1627 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001628 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001629 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001630 ac_builddir=.
1631
Reid Spencera773bd52006-08-04 18:18:08 +00001632case "$ac_dir" in
1633.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634*)
John Criswell7a73b802003-06-30 21:59:07 +00001635 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1641 esac ;;
1642esac
1643ac_abs_top_builddir=$ac_pwd
1644ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645# for backward compatibility:
1646ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001647
1648case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001649 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001650 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001654 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1657 *) # Relative name.
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001661esac
Reid Spencera773bd52006-08-04 18:18:08 +00001662ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001663
Reid Spencera773bd52006-08-04 18:18:08 +00001664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for guested configure.
1666 if test -f "$ac_srcdir/configure.gnu"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669 elif test -f "$ac_srcdir/configure"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001672 else
1673 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001674 fi || ac_status=$?
1675 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001676 done
1677fi
1678
Reid Spencera773bd52006-08-04 18:18:08 +00001679test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001680if $ac_init_version; then
1681 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001682llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001683generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001684
Reid Spencera773bd52006-08-04 18:18:08 +00001685Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16862002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001687This configure script is free software; the Free Software Foundation
1688gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001689
Tanya Lattnercf067672008-01-17 05:57:22 +00001690Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001691_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001692 exit
John Criswell7a73b802003-06-30 21:59:07 +00001693fi
Reid Spencera773bd52006-08-04 18:18:08 +00001694cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001695This file contains any messages produced by compilers while
1696running configure, to aid debugging if configure makes a mistake.
1697
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001698It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001699generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001700
1701 $ $0 $@
1702
1703_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001704exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001705{
1706cat <<_ASUNAME
1707## --------- ##
1708## Platform. ##
1709## --------- ##
1710
1711hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1712uname -m = `(uname -m) 2>/dev/null || echo unknown`
1713uname -r = `(uname -r) 2>/dev/null || echo unknown`
1714uname -s = `(uname -s) 2>/dev/null || echo unknown`
1715uname -v = `(uname -v) 2>/dev/null || echo unknown`
1716
1717/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1718/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1719
1720/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1721/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1722/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001723/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001724/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1725/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1726/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1727
1728_ASUNAME
1729
1730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731for as_dir in $PATH
1732do
1733 IFS=$as_save_IFS
1734 test -z "$as_dir" && as_dir=.
1735 echo "PATH: $as_dir"
1736done
Reid Spencera773bd52006-08-04 18:18:08 +00001737IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001738
1739} >&5
1740
1741cat >&5 <<_ACEOF
1742
1743
1744## ----------- ##
1745## Core tests. ##
1746## ----------- ##
1747
1748_ACEOF
1749
1750
1751# Keep a trace of the command line.
1752# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001753# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001754# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001755# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001756ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001757ac_configure_args0=
1758ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001759ac_must_keep_next=false
1760for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001761do
John Criswell0c38eaf2003-09-10 15:17:25 +00001762 for ac_arg
1763 do
1764 case $ac_arg in
1765 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1767 | -silent | --silent | --silen | --sile | --sil)
1768 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001769 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1771 esac
1772 case $ac_pass in
1773 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1774 2)
1775 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1776 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001777 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001779 case $ac_arg in
1780 *=* | --config-cache | -C | -disable-* | --disable-* \
1781 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1782 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1783 | -with-* | --with-* | -without-* | --without-* | --x)
1784 case "$ac_configure_args0 " in
1785 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1786 esac
1787 ;;
1788 -* ) ac_must_keep_next=true ;;
1789 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001790 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001791 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001792 ;;
1793 esac
1794 done
John Criswell7a73b802003-06-30 21:59:07 +00001795done
John Criswell0c38eaf2003-09-10 15:17:25 +00001796$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1797$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 +00001798
1799# When interrupted or exit'd, cleanup temporary files, and complete
1800# config.log. We remove comments because anyway the quotes in there
1801# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001802# WARNING: Use '\'' to represent an apostrophe within the trap.
1803# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001804trap 'exit_status=$?
1805 # Save into config.log some information that might help in debugging.
1806 {
1807 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001808
John Criswell7a73b802003-06-30 21:59:07 +00001809 cat <<\_ASBOX
1810## ---------------- ##
1811## Cache variables. ##
1812## ---------------- ##
1813_ASBOX
1814 echo
1815 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001816(
1817 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1818 eval ac_val=\$$ac_var
1819 case $ac_val in #(
1820 *${as_nl}*)
1821 case $ac_var in #(
1822 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1823echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1824 esac
1825 case $ac_var in #(
1826 _ | IFS | as_nl) ;; #(
1827 *) $as_unset $ac_var ;;
1828 esac ;;
1829 esac
1830 done
John Criswell7a73b802003-06-30 21:59:07 +00001831 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001832 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1833 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001834 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001835 "s/'\''/'\''\\\\'\'''\''/g;
1836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1837 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001838 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001839 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001840 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001841 esac |
1842 sort
1843)
John Criswell7a73b802003-06-30 21:59:07 +00001844 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001845
1846 cat <<\_ASBOX
1847## ----------------- ##
1848## Output variables. ##
1849## ----------------- ##
1850_ASBOX
1851 echo
1852 for ac_var in $ac_subst_vars
1853 do
Reid Spencera773bd52006-08-04 18:18:08 +00001854 eval ac_val=\$$ac_var
1855 case $ac_val in
1856 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1857 esac
1858 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001859 done | sort
1860 echo
1861
1862 if test -n "$ac_subst_files"; then
1863 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001864## ------------------- ##
1865## File substitutions. ##
1866## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001867_ASBOX
1868 echo
1869 for ac_var in $ac_subst_files
1870 do
Reid Spencera773bd52006-08-04 18:18:08 +00001871 eval ac_val=\$$ac_var
1872 case $ac_val in
1873 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1874 esac
1875 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001876 done | sort
1877 echo
1878 fi
1879
John Criswell7a73b802003-06-30 21:59:07 +00001880 if test -s confdefs.h; then
1881 cat <<\_ASBOX
1882## ----------- ##
1883## confdefs.h. ##
1884## ----------- ##
1885_ASBOX
1886 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001887 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001888 echo
1889 fi
1890 test "$ac_signal" != 0 &&
1891 echo "$as_me: caught signal $ac_signal"
1892 echo "$as_me: exit $exit_status"
1893 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001894 rm -f core *.core core.conftest.* &&
1895 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001896 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001897' 0
John Criswell7a73b802003-06-30 21:59:07 +00001898for ac_signal in 1 2 13 15; do
1899 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1900done
1901ac_signal=0
1902
1903# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001904rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001905
1906# Predefined preprocessor variables.
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_NAME "$PACKAGE_NAME"
1910_ACEOF
1911
1912
1913cat >>confdefs.h <<_ACEOF
1914#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1915_ACEOF
1916
1917
1918cat >>confdefs.h <<_ACEOF
1919#define PACKAGE_VERSION "$PACKAGE_VERSION"
1920_ACEOF
1921
1922
1923cat >>confdefs.h <<_ACEOF
1924#define PACKAGE_STRING "$PACKAGE_STRING"
1925_ACEOF
1926
1927
1928cat >>confdefs.h <<_ACEOF
1929#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1930_ACEOF
1931
1932
1933# Let the site file select an alternate cache file if it wants to.
1934# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001935if test -n "$CONFIG_SITE"; then
1936 set x "$CONFIG_SITE"
1937elif test "x$prefix" != xNONE; then
1938 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1939else
1940 set x "$ac_default_prefix/share/config.site" \
1941 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001942fi
Reid Spencera773bd52006-08-04 18:18:08 +00001943shift
1944for ac_site_file
1945do
John Criswell7a73b802003-06-30 21:59:07 +00001946 if test -r "$ac_site_file"; then
1947 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1948echo "$as_me: loading site script $ac_site_file" >&6;}
1949 sed 's/^/| /' "$ac_site_file" >&5
1950 . "$ac_site_file"
1951 fi
1952done
1953
1954if test -r "$cache_file"; then
1955 # Some versions of bash will fail to source /dev/null (special
1956 # files actually), so we avoid doing that.
1957 if test -f "$cache_file"; then
1958 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1959echo "$as_me: loading cache $cache_file" >&6;}
1960 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001961 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1962 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001963 esac
1964 fi
1965else
1966 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1967echo "$as_me: creating cache $cache_file" >&6;}
1968 >$cache_file
1969fi
1970
1971# Check that the precious variables saved in the cache have kept the same
1972# value.
1973ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001974for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1976 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001977 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1978 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001979 case $ac_old_set,$ac_new_set in
1980 set,)
1981 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1982echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1983 ac_cache_corrupted=: ;;
1984 ,set)
1985 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1986echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1987 ac_cache_corrupted=: ;;
1988 ,);;
1989 *)
1990 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001991 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001992echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001993 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001994echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001995 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001996echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001997 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001998 fi;;
1999 esac
2000 # Pass precious variables to config.status.
2001 if test "$ac_new_set" = set; then
2002 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00002003 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00002004 *) ac_arg=$ac_var=$ac_new_val ;;
2005 esac
2006 case " $ac_configure_args " in
2007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2008 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2009 esac
2010 fi
2011done
2012if $ac_cache_corrupted; then
2013 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2014echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2015 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2016echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2017 { (exit 1); exit 1; }; }
2018fi
2019
Reid Spencera773bd52006-08-04 18:18:08 +00002020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
John Criswell7a73b802003-06-30 21:59:07 +00002044ac_ext=c
2045ac_cpp='$CPP $CPPFLAGS'
2046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049
2050
2051
Tanya Lattnercf067672008-01-17 05:57:22 +00002052LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002053
2054
2055
2056
2057
2058
2059
John Criswell7a73b802003-06-30 21:59:07 +00002060ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002061for ac_dir in autoconf "$srcdir"/autoconf; do
2062 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002063 ac_aux_dir=$ac_dir
2064 ac_install_sh="$ac_aux_dir/install-sh -c"
2065 break
Reid Spencera773bd52006-08-04 18:18:08 +00002066 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002067 ac_aux_dir=$ac_dir
2068 ac_install_sh="$ac_aux_dir/install.sh -c"
2069 break
Reid Spencera773bd52006-08-04 18:18:08 +00002070 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002071 ac_aux_dir=$ac_dir
2072 ac_install_sh="$ac_aux_dir/shtool install -c"
2073 break
2074 fi
2075done
2076if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002077 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2078echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002079 { (exit 1); exit 1; }; }
2080fi
Reid Spencera773bd52006-08-04 18:18:08 +00002081
2082# These three variables are undocumented and unsupported,
2083# and are intended to be withdrawn in a future Autoconf release.
2084# They can cause serious problems if a builder's source tree is in a directory
2085# whose full name contains unusual characters.
2086ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2087ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2088ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089
John Criswell7a73b802003-06-30 21:59:07 +00002090
John Criswell392aaa32003-07-22 19:18:09 +00002091
Reid Spencer2706f8c2004-09-19 23:53:36 +00002092if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002093 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2094 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002095echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2096 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002097 fi
John Criswell93e1c722003-09-15 17:04:06 +00002098fi
2099
John Criswell33a911a2003-11-25 20:36:46 +00002100for i in `ls ${srcdir}/projects`
2101do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002102 if test -d ${srcdir}/projects/${i} ; then
2103 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002104 CVS) ;;
2105 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002106 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002107 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002110 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002111 # llvm-test is the old name of the test-suite, kept here for backwards
2112 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002113 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002114 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002115 test-suite) subdirs="$subdirs projects/test-suite"
2116 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002117 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002118;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002119 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002120 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002121 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002122 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002123 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002124 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002125 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002126 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002127 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002128 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002129 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002130 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002131 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002132 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2133echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002134 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002135 esac
John Criswell33a911a2003-11-25 20:36:46 +00002136 fi
2137done
John Criswell559a6c12003-09-30 16:31:48 +00002138
John Criswell7a73b802003-06-30 21:59:07 +00002139
2140# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002141$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2142 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2143echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002144 { (exit 1); exit 1; }; }
2145
Reid Spencera773bd52006-08-04 18:18:08 +00002146{ echo "$as_me:$LINENO: checking build system type" >&5
2147echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002148if test "${ac_cv_build+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
Reid Spencera773bd52006-08-04 18:18:08 +00002151 ac_build_alias=$build_alias
2152test "x$ac_build_alias" = x &&
2153 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2154test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002155 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2156echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2157 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002158ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2159 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2160echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002161 { (exit 1); exit 1; }; }
2162
2163fi
Reid Spencera773bd52006-08-04 18:18:08 +00002164{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2165echo "${ECHO_T}$ac_cv_build" >&6; }
2166case $ac_cv_build in
2167*-*-*) ;;
2168*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2169echo "$as_me: error: invalid value of canonical build" >&2;}
2170 { (exit 1); exit 1; }; };;
2171esac
John Criswell7a73b802003-06-30 21:59:07 +00002172build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002173ac_save_IFS=$IFS; IFS='-'
2174set x $ac_cv_build
2175shift
2176build_cpu=$1
2177build_vendor=$2
2178shift; shift
2179# Remember, the first character of IFS is used to create $*,
2180# except with old shells:
2181build_os=$*
2182IFS=$ac_save_IFS
2183case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002184
2185
Reid Spencera773bd52006-08-04 18:18:08 +00002186{ echo "$as_me:$LINENO: checking host system type" >&5
2187echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002188if test "${ac_cv_host+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190else
Reid Spencera773bd52006-08-04 18:18:08 +00002191 if test "x$host_alias" = x; then
2192 ac_cv_host=$ac_cv_build
2193else
2194 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2195 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2196echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002197 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002198fi
John Criswell7a73b802003-06-30 21:59:07 +00002199
2200fi
Reid Spencera773bd52006-08-04 18:18:08 +00002201{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2202echo "${ECHO_T}$ac_cv_host" >&6; }
2203case $ac_cv_host in
2204*-*-*) ;;
2205*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2206echo "$as_me: error: invalid value of canonical host" >&2;}
2207 { (exit 1); exit 1; }; };;
2208esac
John Criswell7a73b802003-06-30 21:59:07 +00002209host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002210ac_save_IFS=$IFS; IFS='-'
2211set x $ac_cv_host
2212shift
2213host_cpu=$1
2214host_vendor=$2
2215shift; shift
2216# Remember, the first character of IFS is used to create $*,
2217# except with old shells:
2218host_os=$*
2219IFS=$ac_save_IFS
2220case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002221
2222
Reid Spencera773bd52006-08-04 18:18:08 +00002223{ echo "$as_me:$LINENO: checking target system type" >&5
2224echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002225if test "${ac_cv_target+set}" = set; then
2226 echo $ECHO_N "(cached) $ECHO_C" >&6
2227else
Reid Spencera773bd52006-08-04 18:18:08 +00002228 if test "x$target_alias" = x; then
2229 ac_cv_target=$ac_cv_host
2230else
2231 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2232 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2233echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002234 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002235fi
John Criswell7a73b802003-06-30 21:59:07 +00002236
2237fi
Reid Spencera773bd52006-08-04 18:18:08 +00002238{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2239echo "${ECHO_T}$ac_cv_target" >&6; }
2240case $ac_cv_target in
2241*-*-*) ;;
2242*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2243echo "$as_me: error: invalid value of canonical target" >&2;}
2244 { (exit 1); exit 1; }; };;
2245esac
John Criswell7a73b802003-06-30 21:59:07 +00002246target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002247ac_save_IFS=$IFS; IFS='-'
2248set x $ac_cv_target
2249shift
2250target_cpu=$1
2251target_vendor=$2
2252shift; shift
2253# Remember, the first character of IFS is used to create $*,
2254# except with old shells:
2255target_os=$*
2256IFS=$ac_save_IFS
2257case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002258
2259
2260# The aliases save the names the user supplied, while $host etc.
2261# will get canonicalized.
2262test -n "$target_alias" &&
2263 test "$program_prefix$program_suffix$program_transform_name" = \
2264 NONENONEs,x,x, &&
2265 program_prefix=${target_alias}-
2266
Reid Spencera773bd52006-08-04 18:18:08 +00002267{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2268echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002272 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273 *-*-aix*)
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="AIX"
2277 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002278 *-*-irix*)
2279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2281 llvm_cv_os_type="IRIX"
2282 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002283 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002286 llvm_cv_os_type="Cygwin"
2287 llvm_cv_platform_type="Unix" ;;
2288 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002289 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002290 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 llvm_cv_os_type="Darwin"
2292 llvm_cv_platform_type="Unix" ;;
2293 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296 llvm_cv_os_type="FreeBSD"
2297 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002298 *-*-openbsd*)
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 Spencer1014ab42006-04-19 23:47:16 +00002301 llvm_cv_os_type="OpenBSD"
2302 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002303 *-*-netbsd*)
2304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2306 llvm_cv_os_type="NetBSD"
2307 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002308 *-*-dragonfly*)
2309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2311 llvm_cv_os_type="DragonFly"
2312 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002313 *-*-hpux*)
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"
Duraid Madina775afa52005-05-16 16:33:34 +00002316 llvm_cv_os_type="HP-UX"
2317 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002318 *-*-interix*)
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="Interix"
2322 llvm_cv_platform_type="Unix" ;;
2323 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326 llvm_cv_os_type="Linux"
2327 llvm_cv_platform_type="Unix" ;;
2328 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002329 llvm_cv_link_all_option="-Wl,-z,allextract"
2330 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331 llvm_cv_os_type="SunOS"
2332 llvm_cv_platform_type="Unix" ;;
2333 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002334 llvm_cv_link_all_option="-Wl,--whole-archive"
2335 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002336 llvm_cv_os_type="Win32"
2337 llvm_cv_platform_type="Win32" ;;
2338 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002339 llvm_cv_link_all_option="-Wl,--whole-archive"
2340 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002341 llvm_cv_os_type="MingW"
2342 llvm_cv_platform_type="Win32" ;;
2343 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002344 llvm_cv_link_all_option=""
2345 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002346 llvm_cv_os_type="Unknown"
2347 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002348esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349fi
Reid Spencera773bd52006-08-04 18:18:08 +00002350{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2351echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002352
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353if test "$llvm_cv_os_type" = "Unknown" ; then
2354 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2355echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002356 { (exit 1); exit 1; }; }
2357fi
2358
Reid Spencer7b3e8512004-12-24 06:29:05 +00002359OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002360
2361
Reid Spencera773bd52006-08-04 18:18:08 +00002362LINKALL=$llvm_cv_link_all_option
2363
2364NOLINKALL=$llvm_cv_no_link_all_option
2365
2366
Reid Spencer7b3e8512004-12-24 06:29:05 +00002367case $llvm_cv_platform_type in
2368 Unix)
2369
2370cat >>confdefs.h <<\_ACEOF
2371#define LLVM_ON_UNIX 1
2372_ACEOF
2373
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002374 LLVM_ON_UNIX=1
2375
2376 LLVM_ON_WIN32=0
2377
Reid Spencer7b3e8512004-12-24 06:29:05 +00002378 ;;
2379 Win32)
2380
2381cat >>confdefs.h <<\_ACEOF
2382#define LLVM_ON_WIN32 1
2383_ACEOF
2384
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002385 LLVM_ON_UNIX=0
2386
2387 LLVM_ON_WIN32=1
2388
Reid Spencer7b3e8512004-12-24 06:29:05 +00002389 ;;
2390esac
2391
Reid Spencera773bd52006-08-04 18:18:08 +00002392{ echo "$as_me:$LINENO: checking target architecture" >&5
2393echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002394if test "${llvm_cv_target_arch+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396else
2397 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002398 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002399 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002400 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2401 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002402 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002403 ia64-*) llvm_cv_target_arch="IA64" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002404 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002405 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002406 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002407 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002408 msp430-*) llvm_cv_target_arch="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00002409 s390x-*) llvm_cv_target_arch="SystemZ" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002410 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002411esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412fi
Reid Spencera773bd52006-08-04 18:18:08 +00002413{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2414echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002415
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002416if test "$llvm_cv_target_arch" = "Unknown" ; then
2417 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2418echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2419fi
John Criswell76595452003-07-01 22:07:39 +00002420
Douglas Gregor0711c302009-06-17 00:43:20 +00002421# Determine the LLVM native architecture for the target
2422case "$llvm_cv_target_arch" in
2423 x86) LLVM_NATIVE_ARCH="X86" ;;
2424 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2425 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2426esac
2427
Bill Wendlinga0833352009-03-12 04:10:09 +00002428ARCH=$llvm_cv_target_arch
2429
2430
2431ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002432ac_cpp='$CPP $CPPFLAGS'
2433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2435ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002436if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2438set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002441if test "${ac_cv_prog_CC+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443else
2444 if test -n "$CC"; then
2445 ac_cv_prog_CC="$CC" # Let the user override the test.
2446else
2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH
2449do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002453 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 +00002454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2457 fi
2458done
2459done
Reid Spencera773bd52006-08-04 18:18:08 +00002460IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461
2462fi
2463fi
2464CC=$ac_cv_prog_CC
2465if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002466 { echo "$as_me:$LINENO: result: $CC" >&5
2467echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468else
Reid Spencera773bd52006-08-04 18:18:08 +00002469 { echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471fi
2472
Reid Spencera773bd52006-08-04 18:18:08 +00002473
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002474fi
2475if test -z "$ac_cv_prog_CC"; then
2476 ac_ct_CC=$CC
2477 # Extract the first word of "gcc", so it can be a program name with args.
2478set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2483else
2484 if test -n "$ac_ct_CC"; then
2485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2486else
2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002493 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 +00002494 ac_cv_prog_ac_ct_CC="gcc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498done
2499done
Reid Spencera773bd52006-08-04 18:18:08 +00002500IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002501
2502fi
2503fi
2504ac_ct_CC=$ac_cv_prog_ac_ct_CC
2505if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002506 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2507echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508else
Reid Spencera773bd52006-08-04 18:18:08 +00002509 { echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511fi
2512
Reid Spencera773bd52006-08-04 18:18:08 +00002513 if test "x$ac_ct_CC" = x; then
2514 CC=""
2515 else
2516 case $cross_compiling:$ac_tool_warned in
2517yes:)
2518{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2519whose name does not start with the host triplet. If you think this
2520configuration is useful to you, please write to autoconf@gnu.org." >&5
2521echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2522whose name does not start with the host triplet. If you think this
2523configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2524ac_tool_warned=yes ;;
2525esac
2526 CC=$ac_ct_CC
2527 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528else
2529 CC="$ac_cv_prog_CC"
2530fi
2531
2532if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002533 if test -n "$ac_tool_prefix"; then
2534 # 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 +00002535set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2543else
2544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2545for as_dir in $PATH
2546do
2547 IFS=$as_save_IFS
2548 test -z "$as_dir" && as_dir=.
2549 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002550 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 +00002551 ac_cv_prog_CC="${ac_tool_prefix}cc"
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 break 2
2554 fi
2555done
2556done
Reid Spencera773bd52006-08-04 18:18:08 +00002557IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002558
2559fi
2560fi
2561CC=$ac_cv_prog_CC
2562if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002563 { echo "$as_me:$LINENO: result: $CC" >&5
2564echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002565else
Reid Spencera773bd52006-08-04 18:18:08 +00002566 { echo "$as_me:$LINENO: result: no" >&5
2567echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002568fi
2569
Reid Spencera773bd52006-08-04 18:18:08 +00002570
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002571 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002572fi
2573if test -z "$CC"; then
2574 # Extract the first word of "cc", so it can be a program name with args.
2575set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002578if test "${ac_cv_prog_CC+set}" = set; then
2579 echo $ECHO_N "(cached) $ECHO_C" >&6
2580else
2581 if test -n "$CC"; then
2582 ac_cv_prog_CC="$CC" # Let the user override the test.
2583else
2584 ac_prog_rejected=no
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002591 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 +00002592 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2593 ac_prog_rejected=yes
2594 continue
2595 fi
2596 ac_cv_prog_CC="cc"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598 break 2
2599 fi
2600done
2601done
Reid Spencera773bd52006-08-04 18:18:08 +00002602IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603
2604if test $ac_prog_rejected = yes; then
2605 # We found a bogon in the path, so make sure we never use it.
2606 set dummy $ac_cv_prog_CC
2607 shift
2608 if test $# != 0; then
2609 # We chose a different compiler from the bogus one.
2610 # However, it has the same basename, so the bogon will be chosen
2611 # first if we set CC to just the basename; use the full file name.
2612 shift
2613 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2614 fi
2615fi
2616fi
2617fi
2618CC=$ac_cv_prog_CC
2619if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002620 { echo "$as_me:$LINENO: result: $CC" >&5
2621echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002622else
Reid Spencera773bd52006-08-04 18:18:08 +00002623 { echo "$as_me:$LINENO: result: no" >&5
2624echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002625fi
2626
Reid Spencera773bd52006-08-04 18:18:08 +00002627
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628fi
2629if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002631 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002632 do
2633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2634set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002635{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002638 echo $ECHO_N "(cached) $ECHO_C" >&6
2639else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640 if test -n "$CC"; then
2641 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002642else
2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644for as_dir in $PATH
2645do
2646 IFS=$as_save_IFS
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002649 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 +00002650 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 break 2
2653 fi
2654done
2655done
Reid Spencera773bd52006-08-04 18:18:08 +00002656IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002657
2658fi
2659fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660CC=$ac_cv_prog_CC
2661if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002662 { echo "$as_me:$LINENO: result: $CC" >&5
2663echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002664else
Reid Spencera773bd52006-08-04 18:18:08 +00002665 { echo "$as_me:$LINENO: result: no" >&5
2666echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002667fi
2668
Reid Spencera773bd52006-08-04 18:18:08 +00002669
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002671 done
2672fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002673if test -z "$CC"; then
2674 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002675 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002676do
2677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2678set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002681if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002682 echo $ECHO_N "(cached) $ECHO_C" >&6
2683else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002684 if test -n "$ac_ct_CC"; then
2685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002686else
2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH
2689do
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002693 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 +00002694 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2697 fi
2698done
2699done
Reid Spencera773bd52006-08-04 18:18:08 +00002700IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002701
2702fi
2703fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002704ac_ct_CC=$ac_cv_prog_ac_ct_CC
2705if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002706 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2707echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002708else
Reid Spencera773bd52006-08-04 18:18:08 +00002709 { echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002711fi
2712
Reid Spencera773bd52006-08-04 18:18:08 +00002713
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002714 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002715done
John Criswell7a73b802003-06-30 21:59:07 +00002716
Reid Spencera773bd52006-08-04 18:18:08 +00002717 if test "x$ac_ct_CC" = x; then
2718 CC=""
2719 else
2720 case $cross_compiling:$ac_tool_warned in
2721yes:)
2722{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2723whose name does not start with the host triplet. If you think this
2724configuration is useful to you, please write to autoconf@gnu.org." >&5
2725echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2726whose name does not start with the host triplet. If you think this
2727configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2728ac_tool_warned=yes ;;
2729esac
2730 CC=$ac_ct_CC
2731 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002732fi
2733
John Criswell7a73b802003-06-30 21:59:07 +00002734fi
2735
2736
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002737test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2738See \`config.log' for more details." >&5
2739echo "$as_me: error: no acceptable C compiler found in \$PATH
2740See \`config.log' for more details." >&2;}
2741 { (exit 1); exit 1; }; }
2742
John Criswell7a73b802003-06-30 21:59:07 +00002743# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002744echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002745ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002746{ (ac_try="$ac_compiler --version >&5"
2747case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2750esac
2751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002753 ac_status=$?
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002756{ (ac_try="$ac_compiler -v >&5"
2757case "(($ac_try" in
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2760esac
2761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002763 ac_status=$?
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002766{ (ac_try="$ac_compiler -V >&5"
2767case "(($ac_try" in
2768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2769 *) ac_try_echo=$ac_try;;
2770esac
2771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2772 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002773 ac_status=$?
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); }
2776
2777cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002778/* confdefs.h. */
2779_ACEOF
2780cat confdefs.h >>conftest.$ac_ext
2781cat >>conftest.$ac_ext <<_ACEOF
2782/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002783
John Criswell7a73b802003-06-30 21:59:07 +00002784int
2785main ()
2786{
2787
2788 ;
2789 return 0;
2790}
2791_ACEOF
2792ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002793ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002794# Try to create an executable without -o first, disregard a.out.
2795# It will help us diagnose broken compilers, and finding out an intuition
2796# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002797{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2798echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002799ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002800#
2801# List of possible output files, starting from the most likely.
2802# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2803# only as a last resort. b.out is created by i960 compilers.
2804ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2805#
2806# The IRIX 6 linker writes into existing files which may not be
2807# executable, retaining their permissions. Remove them first so a
2808# subsequent execution test works.
2809ac_rmfiles=
2810for ac_file in $ac_files
2811do
2812 case $ac_file in
2813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2814 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2815 esac
2816done
2817rm -f $ac_rmfiles
2818
2819if { (ac_try="$ac_link_default"
2820case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823esac
2824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002829 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2830# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2831# in a Makefile. We should not override ac_cv_exeext if it was cached,
2832# so that the user can short-circuit this test for compilers unknown to
2833# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002834for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002835do
2836 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002837 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002839 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002840 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002841 # We found the default executable, but exeext='' is most
2842 # certainly right.
2843 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002844 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002845 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2846 then :; else
2847 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 fi
2849 # We set ac_cv_exeext here because the later test for it is not
2850 # safe: cross compilers may not add the suffix if given an `-o'
2851 # argument, so we may need to know it at that point already.
2852 # Even if this section looks crufty: it has the advantage of
2853 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002854 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002855 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002856 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002857 esac
2858done
Reid Spencera773bd52006-08-04 18:18:08 +00002859test "$ac_cv_exeext" = no && ac_cv_exeext=
2860
John Criswell7a73b802003-06-30 21:59:07 +00002861else
2862 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002863sed 's/^/| /' conftest.$ac_ext >&5
2864
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002865{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002866See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002867echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002868See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002869 { (exit 77); exit 77; }; }
2870fi
2871
2872ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002873{ echo "$as_me:$LINENO: result: $ac_file" >&5
2874echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002875
Reid Spencera773bd52006-08-04 18:18:08 +00002876# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002877# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002878{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2879echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002880# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2881# If not cross compiling, check that we can run a simple program.
2882if test "$cross_compiling" != yes; then
2883 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002884 { (case "(($ac_try" in
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2887esac
2888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; }; then
2893 cross_compiling=no
2894 else
2895 if test "$cross_compiling" = maybe; then
2896 cross_compiling=yes
2897 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002898 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002899If you meant to cross compile, use \`--host'.
2900See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002901echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002902If you meant to cross compile, use \`--host'.
2903See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002904 { (exit 1); exit 1; }; }
2905 fi
2906 fi
2907fi
Reid Spencera773bd52006-08-04 18:18:08 +00002908{ echo "$as_me:$LINENO: result: yes" >&5
2909echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002910
John Criswell0c38eaf2003-09-10 15:17:25 +00002911rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002912ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002913# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002914# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002915{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2916echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2917{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2918echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002919
Reid Spencera773bd52006-08-04 18:18:08 +00002920{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2921echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2922if { (ac_try="$ac_link"
2923case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926esac
2927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2928 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; then
2932 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2933# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2934# work properly (i.e., refer to `conftest.exe'), while it won't with
2935# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002936for ac_file in conftest.exe conftest conftest.*; do
2937 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002938 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002940 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002941 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002942 * ) break;;
2943 esac
2944done
2945else
John Criswell0c38eaf2003-09-10 15:17:25 +00002946 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2947See \`config.log' for more details." >&5
2948echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2949See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002950 { (exit 1); exit 1; }; }
2951fi
2952
2953rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002954{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2955echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002956
2957rm -f conftest.$ac_ext
2958EXEEXT=$ac_cv_exeext
2959ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002960{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2961echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002962if test "${ac_cv_objext+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964else
2965 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002966/* confdefs.h. */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002971
John Criswell7a73b802003-06-30 21:59:07 +00002972int
2973main ()
2974{
2975
2976 ;
2977 return 0;
2978}
2979_ACEOF
2980rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002981if { (ac_try="$ac_compile"
2982case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2985esac
2986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002988 ac_status=$?
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002991 for ac_file in conftest.o conftest.obj conftest.*; do
2992 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002993 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002994 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002995 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2996 break;;
2997 esac
2998done
2999else
3000 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3004See \`config.log' for more details." >&5
3005echo "$as_me: error: cannot compute suffix of object files: cannot compile
3006See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003007 { (exit 1); exit 1; }; }
3008fi
3009
3010rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011fi
Reid Spencera773bd52006-08-04 18:18:08 +00003012{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3013echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003014OBJEXT=$ac_cv_objext
3015ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00003016{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3017echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003018if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003022/* confdefs.h. */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003027
John Criswell7a73b802003-06-30 21:59:07 +00003028int
3029main ()
3030{
3031#ifndef __GNUC__
3032 choke me
3033#endif
3034
3035 ;
3036 return 0;
3037}
3038_ACEOF
3039rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003040if { (ac_try="$ac_compile"
3041case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044esac
3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003047 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003052 (exit $ac_status); } &&
3053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3054 { (case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
3058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_try") 2>&5
3060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; } &&
3063 { ac_try='test -s conftest.$ac_objext'
3064 { (case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_try") 2>&5
3070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003073 ac_compiler_gnu=yes
3074else
3075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003076sed 's/^/| /' conftest.$ac_ext >&5
3077
Reid Spencera773bd52006-08-04 18:18:08 +00003078 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003079fi
Reid Spencera773bd52006-08-04 18:18:08 +00003080
3081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003082ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003083
3084fi
Reid Spencera773bd52006-08-04 18:18:08 +00003085{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3086echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003087GCC=`test $ac_compiler_gnu = yes && echo yes`
3088ac_test_CFLAGS=${CFLAGS+set}
3089ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003090{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3091echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003092if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003093 echo $ECHO_N "(cached) $ECHO_C" >&6
3094else
Reid Spencera773bd52006-08-04 18:18:08 +00003095 ac_save_c_werror_flag=$ac_c_werror_flag
3096 ac_c_werror_flag=yes
3097 ac_cv_prog_cc_g=no
3098 CFLAGS="-g"
3099 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003100/* confdefs.h. */
3101_ACEOF
3102cat confdefs.h >>conftest.$ac_ext
3103cat >>conftest.$ac_ext <<_ACEOF
3104/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003105
John Criswell7a73b802003-06-30 21:59:07 +00003106int
3107main ()
3108{
3109
3110 ;
3111 return 0;
3112}
3113_ACEOF
3114rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003115if { (ac_try="$ac_compile"
3116case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119esac
3120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003122 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003123 grep -v '^ *+' conftest.er1 >conftest.err
3124 rm -f conftest.er1
3125 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003127 (exit $ac_status); } &&
3128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3129 { (case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_try") 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; } &&
3138 { ac_try='test -s conftest.$ac_objext'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3145 ac_status=$?
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003148 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003149else
3150 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003151sed 's/^/| /' conftest.$ac_ext >&5
3152
Reid Spencera773bd52006-08-04 18:18:08 +00003153 CFLAGS=""
3154 cat >conftest.$ac_ext <<_ACEOF
3155/* confdefs.h. */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h. */
3160
3161int
3162main ()
3163{
3164
3165 ;
3166 return 0;
3167}
3168_ACEOF
3169rm -f conftest.$ac_objext
3170if { (ac_try="$ac_compile"
3171case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174esac
3175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compile") 2>conftest.er1
3177 ac_status=$?
3178 grep -v '^ *+' conftest.er1 >conftest.err
3179 rm -f conftest.er1
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003182 (exit $ac_status); } &&
3183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3184 { (case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187esac
3188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_try") 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; } &&
3193 { ac_try='test -s conftest.$ac_objext'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
3198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003203 :
3204else
3205 echo "$as_me: failed program was:" >&5
3206sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 ac_c_werror_flag=$ac_save_c_werror_flag
3209 CFLAGS="-g"
3210 cat >conftest.$ac_ext <<_ACEOF
3211/* confdefs.h. */
3212_ACEOF
3213cat confdefs.h >>conftest.$ac_ext
3214cat >>conftest.$ac_ext <<_ACEOF
3215/* end confdefs.h. */
3216
3217int
3218main ()
3219{
3220
3221 ;
3222 return 0;
3223}
3224_ACEOF
3225rm -f conftest.$ac_objext
3226if { (ac_try="$ac_compile"
3227case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230esac
3231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_compile") 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003238 (exit $ac_status); } &&
3239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3240 { (case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243esac
3244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_try") 2>&5
3246 ac_status=$?
3247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248 (exit $ac_status); }; } &&
3249 { ac_try='test -s conftest.$ac_objext'
3250 { (case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
3254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_try") 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003259 ac_cv_prog_cc_g=yes
3260else
3261 echo "$as_me: failed program was:" >&5
3262sed 's/^/| /' conftest.$ac_ext >&5
3263
3264
John Criswell7a73b802003-06-30 21:59:07 +00003265fi
Reid Spencera773bd52006-08-04 18:18:08 +00003266
3267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003268fi
Reid Spencera773bd52006-08-04 18:18:08 +00003269
3270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3271fi
3272
3273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 ac_c_werror_flag=$ac_save_c_werror_flag
3275fi
3276{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3277echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003278if test "$ac_test_CFLAGS" = set; then
3279 CFLAGS=$ac_save_CFLAGS
3280elif test $ac_cv_prog_cc_g = yes; then
3281 if test "$GCC" = yes; then
3282 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003283 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003284 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003285 fi
3286else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003287 if test "$GCC" = yes; then
3288 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003289 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003290 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003291 fi
3292fi
Reid Spencera773bd52006-08-04 18:18:08 +00003293{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3294echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3295if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003296 echo $ECHO_N "(cached) $ECHO_C" >&6
3297else
Reid Spencera773bd52006-08-04 18:18:08 +00003298 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003299ac_save_CC=$CC
3300cat >conftest.$ac_ext <<_ACEOF
3301/* confdefs.h. */
3302_ACEOF
3303cat confdefs.h >>conftest.$ac_ext
3304cat >>conftest.$ac_ext <<_ACEOF
3305/* end confdefs.h. */
3306#include <stdarg.h>
3307#include <stdio.h>
3308#include <sys/types.h>
3309#include <sys/stat.h>
3310/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3311struct buf { int x; };
3312FILE * (*rcsopen) (struct buf *, struct stat *, int);
3313static char *e (p, i)
3314 char **p;
3315 int i;
3316{
3317 return p[i];
3318}
3319static char *f (char * (*g) (char **, int), char **p, ...)
3320{
3321 char *s;
3322 va_list v;
3323 va_start (v,p);
3324 s = g (p, va_arg (v,int));
3325 va_end (v);
3326 return s;
3327}
3328
3329/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3330 function prototypes and stuff, but not '\xHH' hex character constants.
3331 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003332 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003333 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3334 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003335 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003336int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3337
Reid Spencera773bd52006-08-04 18:18:08 +00003338/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3339 inside strings and character constants. */
3340#define FOO(x) 'x'
3341int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3342
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343int test (int i, double x);
3344struct s1 {int (*f) (int a);};
3345struct s2 {int (*f) (double a);};
3346int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3347int argc;
3348char **argv;
3349int
3350main ()
3351{
3352return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3353 ;
3354 return 0;
3355}
3356_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003357for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3358 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003359do
3360 CC="$ac_save_CC $ac_arg"
3361 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003362if { (ac_try="$ac_compile"
3363case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366esac
3367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003374 (exit $ac_status); } &&
3375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3376 { (case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379esac
3380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_try") 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; } &&
3385 { ac_try='test -s conftest.$ac_objext'
3386 { (case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389esac
3390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_try") 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003395 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396else
3397 echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
Reid Spencera773bd52006-08-04 18:18:08 +00003400
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401fi
Reid Spencera773bd52006-08-04 18:18:08 +00003402
3403rm -f core conftest.err conftest.$ac_objext
3404 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003405done
Reid Spencera773bd52006-08-04 18:18:08 +00003406rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003407CC=$ac_save_CC
3408
3409fi
Reid Spencera773bd52006-08-04 18:18:08 +00003410# AC_CACHE_VAL
3411case "x$ac_cv_prog_cc_c89" in
3412 x)
3413 { echo "$as_me:$LINENO: result: none needed" >&5
3414echo "${ECHO_T}none needed" >&6; } ;;
3415 xno)
3416 { echo "$as_me:$LINENO: result: unsupported" >&5
3417echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003418 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003419 CC="$CC $ac_cv_prog_cc_c89"
3420 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3421echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003422esac
3423
John Criswell0c38eaf2003-09-10 15:17:25 +00003424
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003425ac_ext=c
3426ac_cpp='$CPP $CPPFLAGS'
3427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430
3431
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432ac_ext=c
3433ac_cpp='$CPP $CPPFLAGS'
3434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003437{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3438echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003439# On Suns, sometimes $CPP names a directory.
3440if test -n "$CPP" && test -d "$CPP"; then
3441 CPP=
3442fi
3443if test -z "$CPP"; then
3444 if test "${ac_cv_prog_CPP+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3446else
3447 # Double quotes because CPP needs to be expanded
3448 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3449 do
3450 ac_preproc_ok=false
3451for ac_c_preproc_warn_flag in '' yes
3452do
3453 # Use a header file that comes with gcc, so configuring glibc
3454 # with a fresh cross-compiler works.
3455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3456 # <limits.h> exists even on freestanding compilers.
3457 # On the NeXT, cc -E runs the code through the compiler's parser,
3458 # not just through cpp. "Syntax error" is here to catch this case.
3459 cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h. */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h. */
3465#ifdef __STDC__
3466# include <limits.h>
3467#else
3468# include <assert.h>
3469#endif
3470 Syntax error
3471_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003472if { (ac_try="$ac_cpp conftest.$ac_ext"
3473case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476esac
3477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003479 ac_status=$?
3480 grep -v '^ *+' conftest.er1 >conftest.err
3481 rm -f conftest.er1
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3488 else
3489 ac_cpp_err=
3490 fi
3491else
3492 ac_cpp_err=yes
3493fi
3494if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003495 :
3496else
3497 echo "$as_me: failed program was:" >&5
3498sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 # Broken: fails on valid input.
3501continue
3502fi
Reid Spencera773bd52006-08-04 18:18:08 +00003503
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003504rm -f conftest.err conftest.$ac_ext
3505
Reid Spencera773bd52006-08-04 18:18:08 +00003506 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003507 # can be detected and how.
3508 cat >conftest.$ac_ext <<_ACEOF
3509/* confdefs.h. */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h. */
3514#include <ac_nonexistent.h>
3515_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003516if { (ac_try="$ac_cpp conftest.$ac_ext"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003528 (exit $ac_status); } >/dev/null; then
3529 if test -s conftest.err; then
3530 ac_cpp_err=$ac_c_preproc_warn_flag
3531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3532 else
3533 ac_cpp_err=
3534 fi
3535else
3536 ac_cpp_err=yes
3537fi
3538if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003539 # Broken: success on invalid input.
3540continue
3541else
3542 echo "$as_me: failed program was:" >&5
3543sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 # Passes both tests.
3546ac_preproc_ok=:
3547break
3548fi
Reid Spencera773bd52006-08-04 18:18:08 +00003549
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003550rm -f conftest.err conftest.$ac_ext
3551
3552done
3553# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3554rm -f conftest.err conftest.$ac_ext
3555if $ac_preproc_ok; then
3556 break
3557fi
3558
3559 done
3560 ac_cv_prog_CPP=$CPP
3561
3562fi
3563 CPP=$ac_cv_prog_CPP
3564else
3565 ac_cv_prog_CPP=$CPP
3566fi
Reid Spencera773bd52006-08-04 18:18:08 +00003567{ echo "$as_me:$LINENO: result: $CPP" >&5
3568echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003569ac_preproc_ok=false
3570for ac_c_preproc_warn_flag in '' yes
3571do
3572 # Use a header file that comes with gcc, so configuring glibc
3573 # with a fresh cross-compiler works.
3574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3575 # <limits.h> exists even on freestanding compilers.
3576 # On the NeXT, cc -E runs the code through the compiler's parser,
3577 # not just through cpp. "Syntax error" is here to catch this case.
3578 cat >conftest.$ac_ext <<_ACEOF
3579/* confdefs.h. */
3580_ACEOF
3581cat confdefs.h >>conftest.$ac_ext
3582cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h. */
3584#ifdef __STDC__
3585# include <limits.h>
3586#else
3587# include <assert.h>
3588#endif
3589 Syntax error
3590_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003591if { (ac_try="$ac_cpp conftest.$ac_ext"
3592case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595esac
3596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3607 else
3608 ac_cpp_err=
3609 fi
3610else
3611 ac_cpp_err=yes
3612fi
3613if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003614 :
3615else
3616 echo "$as_me: failed program was:" >&5
3617sed 's/^/| /' conftest.$ac_ext >&5
3618
3619 # Broken: fails on valid input.
3620continue
3621fi
Reid Spencera773bd52006-08-04 18:18:08 +00003622
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003623rm -f conftest.err conftest.$ac_ext
3624
Reid Spencera773bd52006-08-04 18:18:08 +00003625 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003626 # can be detected and how.
3627 cat >conftest.$ac_ext <<_ACEOF
3628/* confdefs.h. */
3629_ACEOF
3630cat confdefs.h >>conftest.$ac_ext
3631cat >>conftest.$ac_ext <<_ACEOF
3632/* end confdefs.h. */
3633#include <ac_nonexistent.h>
3634_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003635if { (ac_try="$ac_cpp conftest.$ac_ext"
3636case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639esac
3640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003642 ac_status=$?
3643 grep -v '^ *+' conftest.er1 >conftest.err
3644 rm -f conftest.er1
3645 cat conftest.err >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003647 (exit $ac_status); } >/dev/null; then
3648 if test -s conftest.err; then
3649 ac_cpp_err=$ac_c_preproc_warn_flag
3650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3651 else
3652 ac_cpp_err=
3653 fi
3654else
3655 ac_cpp_err=yes
3656fi
3657if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003658 # Broken: success on invalid input.
3659continue
3660else
3661 echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 # Passes both tests.
3665ac_preproc_ok=:
3666break
3667fi
Reid Spencera773bd52006-08-04 18:18:08 +00003668
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003669rm -f conftest.err conftest.$ac_ext
3670
3671done
3672# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3673rm -f conftest.err conftest.$ac_ext
3674if $ac_preproc_ok; then
3675 :
3676else
3677 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3678See \`config.log' for more details." >&5
3679echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3680See \`config.log' for more details." >&2;}
3681 { (exit 1); exit 1; }; }
3682fi
3683
John Criswell7a73b802003-06-30 21:59:07 +00003684ac_ext=c
3685ac_cpp='$CPP $CPPFLAGS'
3686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689
John Criswell7a73b802003-06-30 21:59:07 +00003690
Reid Spencera773bd52006-08-04 18:18:08 +00003691{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3692echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003693if test "${ac_cv_path_GREP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3695else
Reid Spencera773bd52006-08-04 18:18:08 +00003696 # Extract the first word of "grep ggrep" to use in msg output
3697if test -z "$GREP"; then
3698set dummy grep ggrep; ac_prog_name=$2
3699if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701else
Reid Spencera773bd52006-08-04 18:18:08 +00003702 ac_path_GREP_found=false
3703# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003705for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003706do
3707 IFS=$as_save_IFS
3708 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003709 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003710 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003711 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003712 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003713 # Check for GNU ac_path_GREP and select it if it is found.
3714 # Check for GNU $ac_path_GREP
3715case `"$ac_path_GREP" --version 2>&1` in
3716*GNU*)
3717 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3718*)
3719 ac_count=0
3720 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3721 while :
3722 do
3723 cat "conftest.in" "conftest.in" >"conftest.tmp"
3724 mv "conftest.tmp" "conftest.in"
3725 cp "conftest.in" "conftest.nl"
3726 echo 'GREP' >> "conftest.nl"
3727 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3728 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3729 ac_count=`expr $ac_count + 1`
3730 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3731 # Best one so far, save it but keep looking for a better one
3732 ac_cv_path_GREP="$ac_path_GREP"
3733 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003734 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003735 # 10*(2^10) chars as input seems more than enough
3736 test $ac_count -gt 10 && break
3737 done
3738 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3739esac
3740
3741
3742 $ac_path_GREP_found && break 3
3743 done
3744done
3745
3746done
3747IFS=$as_save_IFS
3748
3749
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003750fi
Reid Spencera773bd52006-08-04 18:18:08 +00003751
3752GREP="$ac_cv_path_GREP"
3753if test -z "$GREP"; then
3754 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3755echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3756 { (exit 1); exit 1; }; }
3757fi
3758
3759else
3760 ac_cv_path_GREP=$GREP
3761fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003762
John Criswell7a73b802003-06-30 21:59:07 +00003763
Reid Spencera773bd52006-08-04 18:18:08 +00003764fi
3765{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3766echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3767 GREP="$ac_cv_path_GREP"
3768
3769
3770{ echo "$as_me:$LINENO: checking for egrep" >&5
3771echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3772if test "${ac_cv_path_EGREP+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3774else
3775 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3776 then ac_cv_path_EGREP="$GREP -E"
3777 else
3778 # Extract the first word of "egrep" to use in msg output
3779if test -z "$EGREP"; then
3780set dummy egrep; ac_prog_name=$2
3781if test "${ac_cv_path_EGREP+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784 ac_path_EGREP_found=false
3785# Loop through the user's path and test for each of PROGNAME-LIST
3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3788do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_prog in egrep; do
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003794 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003795 # Check for GNU ac_path_EGREP and select it if it is found.
3796 # Check for GNU $ac_path_EGREP
3797case `"$ac_path_EGREP" --version 2>&1` in
3798*GNU*)
3799 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3800*)
3801 ac_count=0
3802 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3803 while :
3804 do
3805 cat "conftest.in" "conftest.in" >"conftest.tmp"
3806 mv "conftest.tmp" "conftest.in"
3807 cp "conftest.in" "conftest.nl"
3808 echo 'EGREP' >> "conftest.nl"
3809 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3810 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3811 ac_count=`expr $ac_count + 1`
3812 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3813 # Best one so far, save it but keep looking for a better one
3814 ac_cv_path_EGREP="$ac_path_EGREP"
3815 ac_path_EGREP_max=$ac_count
3816 fi
3817 # 10*(2^10) chars as input seems more than enough
3818 test $ac_count -gt 10 && break
3819 done
3820 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3821esac
3822
3823
3824 $ac_path_EGREP_found && break 3
3825 done
3826done
3827
3828done
3829IFS=$as_save_IFS
3830
3831
3832fi
3833
3834EGREP="$ac_cv_path_EGREP"
3835if test -z "$EGREP"; then
3836 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3837echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3838 { (exit 1); exit 1; }; }
3839fi
3840
3841else
3842 ac_cv_path_EGREP=$EGREP
3843fi
3844
3845
3846 fi
3847fi
3848{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3849echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3850 EGREP="$ac_cv_path_EGREP"
3851
3852
3853{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3854echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003855if test "${ac_cv_header_stdc+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003859/* confdefs.h. */
3860_ACEOF
3861cat confdefs.h >>conftest.$ac_ext
3862cat >>conftest.$ac_ext <<_ACEOF
3863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003864#include <stdlib.h>
3865#include <stdarg.h>
3866#include <string.h>
3867#include <float.h>
3868
John Criswell0c38eaf2003-09-10 15:17:25 +00003869int
3870main ()
3871{
3872
3873 ;
3874 return 0;
3875}
John Criswell7a73b802003-06-30 21:59:07 +00003876_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003877rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003878if { (ac_try="$ac_compile"
3879case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3882esac
3883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003885 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003890 (exit $ac_status); } &&
3891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3892 { (case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895esac
3896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897 (eval "$ac_try") 2>&5
3898 ac_status=$?
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); }; } &&
3901 { ac_try='test -s conftest.$ac_objext'
3902 { (case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905esac
3906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3907 (eval "$ac_try") 2>&5
3908 ac_status=$?
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003911 ac_cv_header_stdc=yes
3912else
3913 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003914sed 's/^/| /' conftest.$ac_ext >&5
3915
Reid Spencera773bd52006-08-04 18:18:08 +00003916 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003917fi
Reid Spencera773bd52006-08-04 18:18:08 +00003918
3919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003920
3921if test $ac_cv_header_stdc = yes; then
3922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3923 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003924/* confdefs.h. */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003929#include <string.h>
3930
3931_ACEOF
3932if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003933 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003934 :
3935else
3936 ac_cv_header_stdc=no
3937fi
3938rm -f conftest*
3939
3940fi
3941
3942if test $ac_cv_header_stdc = yes; then
3943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3944 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003945/* confdefs.h. */
3946_ACEOF
3947cat confdefs.h >>conftest.$ac_ext
3948cat >>conftest.$ac_ext <<_ACEOF
3949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003950#include <stdlib.h>
3951
3952_ACEOF
3953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003954 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003955 :
3956else
3957 ac_cv_header_stdc=no
3958fi
3959rm -f conftest*
3960
3961fi
3962
3963if test $ac_cv_header_stdc = yes; then
3964 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3965 if test "$cross_compiling" = yes; then
3966 :
3967else
3968 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003969/* confdefs.h. */
3970_ACEOF
3971cat confdefs.h >>conftest.$ac_ext
3972cat >>conftest.$ac_ext <<_ACEOF
3973/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003974#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003975#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003976#if ((' ' & 0x0FF) == 0x020)
3977# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3978# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3979#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003980# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003981 (('a' <= (c) && (c) <= 'i') \
3982 || ('j' <= (c) && (c) <= 'r') \
3983 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003984# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3985#endif
3986
3987#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3988int
3989main ()
3990{
3991 int i;
3992 for (i = 0; i < 256; i++)
3993 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003994 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003995 return 2;
3996 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003997}
3998_ACEOF
3999rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00004000if { (ac_try="$ac_link"
4001case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004esac
4005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00004010 { (case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013esac
4014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; }; then
4019 :
4020else
4021 echo "$as_me: program exited with status $ac_status" >&5
4022echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004023sed 's/^/| /' conftest.$ac_ext >&5
4024
John Criswell7a73b802003-06-30 21:59:07 +00004025( exit $ac_status )
4026ac_cv_header_stdc=no
4027fi
Reid Spencera773bd52006-08-04 18:18:08 +00004028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4029fi
4030
4031
John Criswell7a73b802003-06-30 21:59:07 +00004032fi
4033fi
Reid Spencera773bd52006-08-04 18:18:08 +00004034{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4035echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004036if test $ac_cv_header_stdc = yes; then
4037
4038cat >>confdefs.h <<\_ACEOF
4039#define STDC_HEADERS 1
4040_ACEOF
4041
4042fi
4043
Reid Spencera773bd52006-08-04 18:18:08 +00004044# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4055 inttypes.h stdint.h unistd.h
4056do
4057as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4058{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4060if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4062else
4063 cat >conftest.$ac_ext <<_ACEOF
4064/* confdefs.h. */
4065_ACEOF
4066cat confdefs.h >>conftest.$ac_ext
4067cat >>conftest.$ac_ext <<_ACEOF
4068/* end confdefs.h. */
4069$ac_includes_default
4070
4071#include <$ac_header>
4072_ACEOF
4073rm -f conftest.$ac_objext
4074if { (ac_try="$ac_compile"
4075case "(($ac_try" in
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4078esac
4079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_compile") 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004086 (exit $ac_status); } &&
4087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4088 { (case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091esac
4092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_try") 2>&5
4094 ac_status=$?
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; } &&
4097 { ac_try='test -s conftest.$ac_objext'
4098 { (case "(($ac_try" in
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4101esac
4102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103 (eval "$ac_try") 2>&5
4104 ac_status=$?
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4106 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004107 eval "$as_ac_Header=yes"
4108else
4109 echo "$as_me: failed program was:" >&5
4110sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 eval "$as_ac_Header=no"
4113fi
4114
4115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116fi
4117ac_res=`eval echo '${'$as_ac_Header'}'`
4118 { echo "$as_me:$LINENO: result: $ac_res" >&5
4119echo "${ECHO_T}$ac_res" >&6; }
4120if test `eval echo '${'$as_ac_Header'}'` = yes; then
4121 cat >>confdefs.h <<_ACEOF
4122#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4123_ACEOF
4124
4125fi
4126
4127done
4128
4129
4130{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4131echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4132if test "${ac_cv_c_bigendian+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134else
4135 # See if sys/param.h defines the BYTE_ORDER macro.
4136cat >conftest.$ac_ext <<_ACEOF
4137/* confdefs.h. */
4138_ACEOF
4139cat confdefs.h >>conftest.$ac_ext
4140cat >>conftest.$ac_ext <<_ACEOF
4141/* end confdefs.h. */
4142#include <sys/types.h>
4143#include <sys/param.h>
4144
4145int
4146main ()
4147{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004148#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004149 bogus endian macros
4150#endif
4151
4152 ;
4153 return 0;
4154}
4155_ACEOF
4156rm -f conftest.$ac_objext
4157if { (ac_try="$ac_compile"
4158case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161esac
4162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_compile") 2>conftest.er1
4164 ac_status=$?
4165 grep -v '^ *+' conftest.er1 >conftest.err
4166 rm -f conftest.er1
4167 cat conftest.err >&5
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004169 (exit $ac_status); } &&
4170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4171 { (case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174esac
4175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_try") 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; } &&
4180 { ac_try='test -s conftest.$ac_objext'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184esac
4185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004190 # It does; now see whether it defined to BIG_ENDIAN or not.
4191cat >conftest.$ac_ext <<_ACEOF
4192/* confdefs.h. */
4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
4196/* end confdefs.h. */
4197#include <sys/types.h>
4198#include <sys/param.h>
4199
4200int
4201main ()
4202{
4203#if BYTE_ORDER != BIG_ENDIAN
4204 not big endian
4205#endif
4206
4207 ;
4208 return 0;
4209}
4210_ACEOF
4211rm -f conftest.$ac_objext
4212if { (ac_try="$ac_compile"
4213case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216esac
4217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4218 (eval "$ac_compile") 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004224 (exit $ac_status); } &&
4225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4226 { (case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229esac
4230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_try") 2>&5
4232 ac_status=$?
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); }; } &&
4235 { ac_try='test -s conftest.$ac_objext'
4236 { (case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239esac
4240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4241 (eval "$ac_try") 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004245 ac_cv_c_bigendian=yes
4246else
4247 echo "$as_me: failed program was:" >&5
4248sed 's/^/| /' conftest.$ac_ext >&5
4249
4250 ac_cv_c_bigendian=no
4251fi
4252
4253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254else
4255 echo "$as_me: failed program was:" >&5
4256sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 # It does not; compile a test program.
4259if test "$cross_compiling" = yes; then
4260 # try to guess the endianness by grepping values into an object file
4261 ac_cv_c_bigendian=unknown
4262 cat >conftest.$ac_ext <<_ACEOF
4263/* confdefs.h. */
4264_ACEOF
4265cat confdefs.h >>conftest.$ac_ext
4266cat >>conftest.$ac_ext <<_ACEOF
4267/* end confdefs.h. */
4268short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4269short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4270void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4271short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4272short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4273void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4274int
4275main ()
4276{
4277 _ascii (); _ebcdic ();
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext
4283if { (ac_try="$ac_compile"
4284case "(($ac_try" in
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4287esac
4288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_compile") 2>conftest.er1
4290 ac_status=$?
4291 grep -v '^ *+' conftest.er1 >conftest.err
4292 rm -f conftest.er1
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004295 (exit $ac_status); } &&
4296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4297 { (case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300esac
4301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_try") 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest.$ac_objext'
4307 { (case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310esac
4311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_try") 2>&5
4313 ac_status=$?
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004316 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4317 ac_cv_c_bigendian=yes
4318fi
4319if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4320 if test "$ac_cv_c_bigendian" = unknown; then
4321 ac_cv_c_bigendian=no
4322 else
4323 # finding both strings is unlikely to happen, but who knows?
4324 ac_cv_c_bigendian=unknown
4325 fi
4326fi
4327else
4328 echo "$as_me: failed program was:" >&5
4329sed 's/^/| /' conftest.$ac_ext >&5
4330
4331
4332fi
4333
4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335else
4336 cat >conftest.$ac_ext <<_ACEOF
4337/* confdefs.h. */
4338_ACEOF
4339cat confdefs.h >>conftest.$ac_ext
4340cat >>conftest.$ac_ext <<_ACEOF
4341/* end confdefs.h. */
4342$ac_includes_default
4343int
4344main ()
4345{
4346
4347 /* Are we little or big endian? From Harbison&Steele. */
4348 union
4349 {
4350 long int l;
4351 char c[sizeof (long int)];
4352 } u;
4353 u.l = 1;
4354 return u.c[sizeof (long int) - 1] == 1;
4355
4356 ;
4357 return 0;
4358}
4359_ACEOF
4360rm -f conftest$ac_exeext
4361if { (ac_try="$ac_link"
4362case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365esac
4366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4367 (eval "$ac_link") 2>&5
4368 ac_status=$?
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4371 { (case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374esac
4375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376 (eval "$ac_try") 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_c_bigendian=no
4381else
4382 echo "$as_me: program exited with status $ac_status" >&5
4383echo "$as_me: failed program was:" >&5
4384sed 's/^/| /' conftest.$ac_ext >&5
4385
4386( exit $ac_status )
4387ac_cv_c_bigendian=yes
4388fi
4389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4390fi
4391
4392
4393fi
4394
4395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396fi
4397{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4398echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4399case $ac_cv_c_bigendian in
4400 yes)
4401 ENDIAN=big
4402 ;;
4403 no)
4404 ENDIAN=little
4405 ;;
4406 *)
4407 { { echo "$as_me:$LINENO: error: unknown endianness
4408presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4409echo "$as_me: error: unknown endianness
4410presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4411 { (exit 1); exit 1; }; } ;;
4412esac
4413
4414
4415if test "$cross_compiling" = yes; then
4416 LLVM_CROSS_COMPILING=1
4417
4418
4419{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4420echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4421if test "${ac_cv_build_exeext+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4423else
4424 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4425 ac_cv_build_exeext=.exe
4426else
4427 ac_build_prefix=${build_alias}-
4428
4429 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4430set dummy ${ac_build_prefix}gcc; ac_word=$2
4431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4433if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435else
4436 if test -n "$BUILD_CC"; then
4437 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4438else
4439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440for as_dir in $PATH
4441do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004445 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 +00004446 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4449 fi
4450done
4451done
4452IFS=$as_save_IFS
4453
4454fi
4455fi
4456BUILD_CC=$ac_cv_prog_BUILD_CC
4457if test -n "$BUILD_CC"; then
4458 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4459echo "${ECHO_T}$BUILD_CC" >&6; }
4460else
4461 { echo "$as_me:$LINENO: result: no" >&5
4462echo "${ECHO_T}no" >&6; }
4463fi
4464
4465
4466 if test -z "$BUILD_CC"; then
4467 # Extract the first word of "gcc", so it can be a program name with args.
4468set dummy gcc; ac_word=$2
4469{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4471if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4473else
4474 if test -n "$BUILD_CC"; then
4475 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4476else
4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004483 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 +00004484 ac_cv_prog_BUILD_CC="gcc"
4485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 break 2
4487 fi
4488done
4489done
4490IFS=$as_save_IFS
4491
4492fi
4493fi
4494BUILD_CC=$ac_cv_prog_BUILD_CC
4495if test -n "$BUILD_CC"; then
4496 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4497echo "${ECHO_T}$BUILD_CC" >&6; }
4498else
4499 { echo "$as_me:$LINENO: result: no" >&5
4500echo "${ECHO_T}no" >&6; }
4501fi
4502
4503
4504 if test -z "$BUILD_CC"; then
4505 # Extract the first word of "cc", so it can be a program name with args.
4506set dummy cc; ac_word=$2
4507{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4509if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511else
4512 if test -n "$BUILD_CC"; then
4513 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4514else
4515 ac_prog_rejected=no
4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004522 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 +00004523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4524 ac_prog_rejected=yes
4525 continue
4526 fi
4527 ac_cv_prog_BUILD_CC="cc"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531done
4532done
4533IFS=$as_save_IFS
4534
4535if test $ac_prog_rejected = yes; then
4536 # We found a bogon in the path, so make sure we never use it.
4537 set dummy $ac_cv_prog_BUILD_CC
4538 shift
4539 if test $# != 0; then
4540 # We chose a different compiler from the bogus one.
4541 # However, it has the same basename, so the bogon will be chosen
4542 # first if we set BUILD_CC to just the basename; use the full file name.
4543 shift
4544 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4545 fi
4546fi
4547fi
4548fi
4549BUILD_CC=$ac_cv_prog_BUILD_CC
4550if test -n "$BUILD_CC"; then
4551 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4552echo "${ECHO_T}$BUILD_CC" >&6; }
4553else
4554 { echo "$as_me:$LINENO: result: no" >&5
4555echo "${ECHO_T}no" >&6; }
4556fi
4557
4558
4559 fi
4560 fi
4561 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4562echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4563 { (exit 1); exit 1; }; }
4564 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4565 rm -f conftest*
4566 echo 'int main () { return 0; }' > conftest.$ac_ext
4567 ac_cv_build_exeext=
4568 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4569 (eval $ac_build_link) 2>&5
4570 ac_status=$?
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); }; then
4573 for file in conftest.*; do
4574 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004575 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004576 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4577 esac
4578 done
4579 else
4580 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4581echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4582 { (exit 1); exit 1; }; }
4583 fi
4584 rm -f conftest*
4585 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4586fi
4587fi
4588
4589BUILD_EXEEXT=""
4590test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4591{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4592echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4593ac_build_exeext=$BUILD_EXEEXT
4594
Jim Grosbach673612e2008-10-02 22:56:44 +00004595 ac_build_prefix=${build_alias}-
4596 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4597set dummy ${ac_build_prefix}g++; ac_word=$2
4598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4600if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4602else
4603 if test -n "$BUILD_CXX"; then
4604 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4605else
4606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH
4608do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004612 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 +00004613 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4616 fi
4617done
4618done
4619IFS=$as_save_IFS
4620
4621fi
4622fi
4623BUILD_CXX=$ac_cv_prog_BUILD_CXX
4624if test -n "$BUILD_CXX"; then
4625 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4626echo "${ECHO_T}$BUILD_CXX" >&6; }
4627else
4628 { echo "$as_me:$LINENO: result: no" >&5
4629echo "${ECHO_T}no" >&6; }
4630fi
4631
4632
4633 if test -z "$BUILD_CXX"; then
4634 # Extract the first word of "g++", so it can be a program name with args.
4635set dummy g++; ac_word=$2
4636{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4638if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640else
4641 if test -n "$BUILD_CXX"; then
4642 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4643else
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004650 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 +00004651 ac_cv_prog_BUILD_CXX="g++"
4652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4653 break 2
4654 fi
4655done
4656done
4657IFS=$as_save_IFS
4658
4659fi
4660fi
4661BUILD_CXX=$ac_cv_prog_BUILD_CXX
4662if test -n "$BUILD_CXX"; then
4663 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4664echo "${ECHO_T}$BUILD_CXX" >&6; }
4665else
4666 { echo "$as_me:$LINENO: result: no" >&5
4667echo "${ECHO_T}no" >&6; }
4668fi
4669
4670
4671 if test -z "$BUILD_CXX"; then
4672 # Extract the first word of "c++", so it can be a program name with args.
4673set dummy c++; ac_word=$2
4674{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4676if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4678else
4679 if test -n "$BUILD_CXX"; then
4680 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4681else
4682 ac_prog_rejected=no
4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004689 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 +00004690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4691 ac_prog_rejected=yes
4692 continue
4693 fi
4694 ac_cv_prog_BUILD_CXX="c++"
4695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 break 2
4697 fi
4698done
4699done
4700IFS=$as_save_IFS
4701
4702if test $ac_prog_rejected = yes; then
4703 # We found a bogon in the path, so make sure we never use it.
4704 set dummy $ac_cv_prog_BUILD_CXX
4705 shift
4706 if test $# != 0; then
4707 # We chose a different compiler from the bogus one.
4708 # However, it has the same basename, so the bogon will be chosen
4709 # first if we set BUILD_CXX to just the basename; use the full file name.
4710 shift
4711 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4712 fi
4713fi
4714fi
4715fi
4716BUILD_CXX=$ac_cv_prog_BUILD_CXX
4717if test -n "$BUILD_CXX"; then
4718 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4719echo "${ECHO_T}$BUILD_CXX" >&6; }
4720else
4721 { echo "$as_me:$LINENO: result: no" >&5
4722echo "${ECHO_T}no" >&6; }
4723fi
4724
4725
4726 fi
4727 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004728else
4729 LLVM_CROSS_COMPILING=0
4730
4731fi
4732
Nick Lewycky5b28f862009-04-10 05:18:27 +00004733if 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 +00004734 cvsbuild="yes"
4735 optimize="no"
4736 CVSBUILD=CVSBUILD=1
4737
4738else
4739 cvsbuild="no"
4740 optimize="yes"
4741fi
4742
4743
4744# Check whether --enable-optimized was given.
4745if test "${enable_optimized+set}" = set; then
4746 enableval=$enable_optimized;
4747else
4748 enableval=$optimize
4749fi
4750
4751if test ${enableval} = "no" ; then
4752 ENABLE_OPTIMIZED=
4753
4754else
4755 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4756
4757fi
4758
David Greene2a5a12c2009-04-17 14:50:39 +00004759# Check whether --enable-profiling was given.
4760if test "${enable_profiling+set}" = set; then
4761 enableval=$enable_profiling;
4762else
4763 enableval="no"
4764fi
4765
4766if test ${enableval} = "no" ; then
4767 ENABLE_PROFILING=
4768
4769else
4770 ENABLE_PROFILING=ENABLE_PROFILING=1
4771
4772fi
4773
Reid Spencera773bd52006-08-04 18:18:08 +00004774# Check whether --enable-assertions was given.
4775if test "${enable_assertions+set}" = set; then
4776 enableval=$enable_assertions;
4777else
4778 enableval="yes"
4779fi
4780
4781if test ${enableval} = "yes" ; then
4782 DISABLE_ASSERTIONS=
4783
4784else
4785 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4786
4787fi
4788
David Greenea696d242007-06-28 19:36:08 +00004789# Check whether --enable-expensive-checks was given.
4790if test "${enable_expensive_checks+set}" = set; then
4791 enableval=$enable_expensive_checks;
4792else
4793 enableval="no"
4794fi
4795
4796if test ${enableval} = "yes" ; then
4797 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4798
4799 EXPENSIVE_CHECKS=yes
4800
4801else
4802 ENABLE_EXPENSIVE_CHECKS=
4803
4804 EXPENSIVE_CHECKS=no
4805
4806fi
4807
Reid Spencer8b2e1412006-11-17 03:32:33 +00004808# Check whether --enable-debug-runtime was given.
4809if test "${enable_debug_runtime+set}" = set; then
4810 enableval=$enable_debug_runtime;
4811else
4812 enableval=no
4813fi
4814
4815if test ${enableval} = "no" ; then
4816 DEBUG_RUNTIME=
4817
4818else
4819 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4820
4821fi
4822
Reid Spencera773bd52006-08-04 18:18:08 +00004823# Check whether --enable-jit was given.
4824if test "${enable_jit+set}" = set; then
4825 enableval=$enable_jit;
4826else
4827 enableval=default
4828fi
4829
4830if test ${enableval} = "no"
4831then
4832 JIT=
4833
4834else
4835 case "$llvm_cv_target_arch" in
4836 x86) TARGET_HAS_JIT=1
4837 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004838 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004839 ;;
4840 PowerPC) TARGET_HAS_JIT=1
4841 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004842 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004843 ;;
4844 Alpha) TARGET_HAS_JIT=1
4845 ;;
4846 IA64) TARGET_HAS_JIT=0
4847 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004848 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004849 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004850 Mips) TARGET_HAS_JIT=0
4851 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004852 PIC16) TARGET_HAS_JIT=0
4853 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004854 XCore) TARGET_HAS_JIT=0
4855 ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004856 MSP430) TARGET_HAS_JIT=0
4857 ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004858 SystemZ) TARGET_HAS_JIT=0
4859 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004860 *) TARGET_HAS_JIT=0
4861 ;;
4862 esac
4863fi
4864
4865# Check whether --enable-doxygen was given.
4866if test "${enable_doxygen+set}" = set; then
4867 enableval=$enable_doxygen;
4868else
4869 enableval=default
4870fi
4871
4872case "$enableval" in
4873 yes) ENABLE_DOXYGEN=1
4874 ;;
4875 no) ENABLE_DOXYGEN=0
4876 ;;
4877 default) ENABLE_DOXYGEN=0
4878 ;;
4879 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4880echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4881 { (exit 1); exit 1; }; } ;;
4882esac
4883
4884# Check whether --enable-threads was given.
4885if test "${enable_threads+set}" = set; then
4886 enableval=$enable_threads;
4887else
Reid Spencer65c5d752006-11-05 17:08:18 +00004888 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004889fi
4890
4891case "$enableval" in
4892 yes) ENABLE_THREADS=1
4893 ;;
4894 no) ENABLE_THREADS=0
4895 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004896 default) ENABLE_THREADS=1
4897 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004898 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4899echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4900 { (exit 1); exit 1; }; } ;;
4901esac
4902
Owen Andersona8603702009-05-19 22:18:56 +00004903cat >>confdefs.h <<_ACEOF
4904#define ENABLE_THREADS $ENABLE_THREADS
4905_ACEOF
4906
4907
Reid Spencer89b0d992006-12-16 22:07:52 +00004908# Check whether --enable-pic was given.
4909if test "${enable_pic+set}" = set; then
4910 enableval=$enable_pic;
4911else
4912 enableval=default
4913fi
4914
4915case "$enableval" in
4916 yes) ENABLE_PIC=1
4917 ;;
4918 no) ENABLE_PIC=0
4919 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004920 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004921 ;;
4922 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4923echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4924 { (exit 1); exit 1; }; } ;;
4925esac
4926
4927cat >>confdefs.h <<_ACEOF
4928#define ENABLE_PIC $ENABLE_PIC
4929_ACEOF
4930
4931
Reid Spencera773bd52006-08-04 18:18:08 +00004932TARGETS_TO_BUILD=""
4933# Check whether --enable-targets was given.
4934if test "${enable_targets+set}" = set; then
4935 enableval=$enable_targets;
4936else
4937 enableval=all
4938fi
4939
4940case "$enableval" in
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004941 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 SystemZ CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004942 host-only)
4943 case "$llvm_cv_target_arch" in
4944 x86) TARGETS_TO_BUILD="X86" ;;
4945 x86_64) TARGETS_TO_BUILD="X86" ;;
4946 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4947 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4948 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4949 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004950 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004951 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004952 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004953 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004954 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004955 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004956 SystemZ) TARGETS_TO_BUILD="SystemZ" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004957 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4958echo "$as_me: error: Can not set target to build" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4960 esac
4961 ;;
4962 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4963 case "$a_target" in
4964 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4965 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4967 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4968 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4969 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004970 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004971 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004972 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004973 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004974 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004975 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Anton Korobeynikov4403b932009-07-16 13:27:25 +00004976 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004977 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4978 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004979 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004980 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4981echo "$as_me: error: Unrecognized target $a_target" >&2;}
4982 { (exit 1); exit 1; }; } ;;
4983 esac
4984 done
4985 ;;
4986esac
Reid Spencera773bd52006-08-04 18:18:08 +00004987TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4988
4989
Douglas Gregor0711c302009-06-17 00:43:20 +00004990# Determine whether we are building LLVM support for the native architecture.
4991# If so, define LLVM_NATIVE_ARCH to that LLVM target.
4992for a_target in $TARGETS_TO_BUILD; do
4993 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
Douglas Gregora0162ff2009-06-23 17:22:05 +00004994 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
Douglas Gregor0711c302009-06-17 00:43:20 +00004995
4996cat >>confdefs.h <<_ACEOF
Douglas Gregora0162ff2009-06-23 17:22:05 +00004997#define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
Douglas Gregor0711c302009-06-17 00:43:20 +00004998_ACEOF
4999
5000 fi
5001done
5002
Douglas Gregor1555a232009-06-16 20:12:29 +00005003# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005004# Targets.def, AsmPrinters.def, and AsmParsers.def.
Douglas Gregor1555a232009-06-16 20:12:29 +00005005LLVM_ENUM_TARGETS=""
5006LLVM_ENUM_ASM_PRINTERS=""
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005007LLVM_ENUM_ASM_PARSERS=""
Douglas Gregor1555a232009-06-16 20:12:29 +00005008for target_to_build in $TARGETS_TO_BUILD; do
5009 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5010 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5011 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5012 fi
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005013 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5014 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5015 fi
Douglas Gregor1555a232009-06-16 20:12:29 +00005016done
5017
5018
5019
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +00005020
Reid Spencer65c5d752006-11-05 17:08:18 +00005021# Check whether --enable-cbe-printf-a was given.
5022if test "${enable_cbe_printf_a+set}" = set; then
5023 enableval=$enable_cbe_printf_a;
5024else
5025 enableval=default
5026fi
5027
5028case "$enableval" in
5029 yes) ENABLE_CBE_PRINTF_A=1
5030 ;;
5031 no) ENABLE_CBE_PRINTF_A=0
5032 ;;
5033 default) ENABLE_CBE_PRINTF_A=1
5034 ;;
5035 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5036echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5037 { (exit 1); exit 1; }; } ;;
5038esac
5039
5040cat >>confdefs.h <<_ACEOF
5041#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5042_ACEOF
5043
5044
Reid Spencera773bd52006-08-04 18:18:08 +00005045
5046# Check whether --with-llvmgccdir was given.
5047if test "${with_llvmgccdir+set}" = set; then
5048 withval=$with_llvmgccdir;
5049else
5050 withval=default
5051fi
5052
5053case "$withval" in
5054 default) WITH_LLVMGCCDIR=default ;;
5055 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5056 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5057echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5058 { (exit 1); exit 1; }; } ;;
5059esac
5060
5061
Devang Patel5d28b882007-12-04 22:54:47 +00005062# Check whether --with-llvmgcc was given.
5063if test "${with_llvmgcc+set}" = set; then
5064 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5065 WITH_LLVMGCCDIR=""
5066fi
5067
5068
5069
5070# Check whether --with-llvmgxx was given.
5071if test "${with_llvmgxx+set}" = set; then
5072 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5073 WITH_LLVMGCCDIR=""
5074fi
5075
Douglas Gregor01746742009-05-11 18:05:52 +00005076
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005077if test -n "$LLVMGCC"; then
5078 LLVMGCCCOMMAND="$LLVMGCC"
5079fi
5080
5081if test -n "$LLVMGXX"; then
5082 LLVMGXXCOMMAND="$LLVMGXX"
5083fi
Devang Patel5d28b882007-12-04 22:54:47 +00005084
5085if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5086 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5087echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5088 { (exit 1); exit 1; }; };
5089fi
5090
5091if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5092 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5093echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5094 { (exit 1); exit 1; }; };
5095fi
5096
5097
Reid Spencera773bd52006-08-04 18:18:08 +00005098# Check whether --with-extra-options was given.
5099if test "${with_extra_options+set}" = set; then
5100 withval=$with_extra_options;
5101else
5102 withval=default
5103fi
5104
5105case "$withval" in
5106 default) EXTRA_OPTIONS= ;;
5107 *) EXTRA_OPTIONS=$withval ;;
5108esac
5109EXTRA_OPTIONS=$EXTRA_OPTIONS
5110
5111
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005112# Check whether --enable-bindings was given.
5113if test "${enable_bindings+set}" = set; then
5114 enableval=$enable_bindings;
5115else
5116 enableval=default
5117fi
5118
5119BINDINGS_TO_BUILD=""
5120case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005121 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005122 all ) BINDINGS_TO_BUILD="ocaml" ;;
5123 none | no) BINDINGS_TO_BUILD="" ;;
5124 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5125 case "$a_binding" in
5126 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5127 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5128echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5129 { (exit 1); exit 1; }; } ;;
5130 esac
5131 done
5132 ;;
5133esac
5134
Reid Spencera773bd52006-08-04 18:18:08 +00005135
Gordon Henriksenf0915682007-10-02 16:42:22 +00005136# Check whether --with-ocaml-libdir was given.
5137if test "${with_ocaml_libdir+set}" = set; then
5138 withval=$with_ocaml_libdir;
5139else
5140 withval=auto
5141fi
5142
5143case "$withval" in
5144 auto) with_ocaml_libdir="$withval" ;;
5145 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5146 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5147echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5148 { (exit 1); exit 1; }; } ;;
5149esac
5150
5151
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005152# Check whether --with-binutils-include was given.
5153if test "${with_binutils_include+set}" = set; then
5154 withval=$with_binutils_include;
5155else
5156 withval=default
5157fi
5158
5159case "$withval" in
5160 default) WITH_BINUTILS_INCDIR=default ;;
5161 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5162 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5163echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5164 { (exit 1); exit 1; }; } ;;
5165esac
5166if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5167 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5168
5169 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5170 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5171 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5172echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5173 { (exit 1); exit 1; }; };
5174 fi
5175fi
5176
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005177# Check whether --enable-libffi was given.
5178if test "${enable_libffi+set}" = set; then
5179 enableval=$enable_libffi;
5180else
5181 enableval=yes
5182fi
5183
5184case "$enableval" in
5185 yes) llvm_cv_enable_libffi="yes" ;;
5186 no) llvm_cv_enable_libffi="no" ;;
5187 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5188echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5189 { (exit 1); exit 1; }; } ;;
5190esac
5191
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +00005192if test "$llvm_cv_os_type" = "Win32" ; then
5193 llvmc_dynamic="yes"
5194else
5195 llvmc_dynamic="no"
5196fi
5197
5198# Check whether --enable-llvmc-dynamic was given.
5199if test "${enable_llvmc_dynamic+set}" = set; then
5200 enableval=$enable_llvmc_dynamic;
5201else
5202 enableval=$llvmc_dynamic
5203fi
5204
5205if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5206 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5207
5208else
5209 ENABLE_LLVMC_DYNAMIC=
5210
5211fi
5212
5213# Check whether --enable-llvmc-dynamic-plugins was given.
5214if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5215 enableval=$enable_llvmc_dynamic_plugins;
5216else
5217 enableval=yes
5218fi
5219
5220if test ${enableval} = "yes" ; then
5221 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5222
5223else
5224 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5225
5226fi
5227
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005228
Reid Spencera773bd52006-08-04 18:18:08 +00005229ac_ext=c
5230ac_cpp='$CPP $CPPFLAGS'
5231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233ac_compiler_gnu=$ac_cv_c_compiler_gnu
5234{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5235echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5236# On Suns, sometimes $CPP names a directory.
5237if test -n "$CPP" && test -d "$CPP"; then
5238 CPP=
5239fi
5240if test -z "$CPP"; then
5241 if test "${ac_cv_prog_CPP+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5243else
5244 # Double quotes because CPP needs to be expanded
5245 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5246 do
5247 ac_preproc_ok=false
5248for ac_c_preproc_warn_flag in '' yes
5249do
5250 # Use a header file that comes with gcc, so configuring glibc
5251 # with a fresh cross-compiler works.
5252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5253 # <limits.h> exists even on freestanding compilers.
5254 # On the NeXT, cc -E runs the code through the compiler's parser,
5255 # not just through cpp. "Syntax error" is here to catch this case.
5256 cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h. */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h. */
5262#ifdef __STDC__
5263# include <limits.h>
5264#else
5265# include <assert.h>
5266#endif
5267 Syntax error
5268_ACEOF
5269if { (ac_try="$ac_cpp conftest.$ac_ext"
5270case "(($ac_try" in
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5273esac
5274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005281 (exit $ac_status); } >/dev/null; then
5282 if test -s conftest.err; then
5283 ac_cpp_err=$ac_c_preproc_warn_flag
5284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5285 else
5286 ac_cpp_err=
5287 fi
5288else
5289 ac_cpp_err=yes
5290fi
5291if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005292 :
5293else
5294 echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 # Broken: fails on valid input.
5298continue
5299fi
5300
5301rm -f conftest.err conftest.$ac_ext
5302
5303 # OK, works on sane cases. Now check whether nonexistent headers
5304 # can be detected and how.
5305 cat >conftest.$ac_ext <<_ACEOF
5306/* confdefs.h. */
5307_ACEOF
5308cat confdefs.h >>conftest.$ac_ext
5309cat >>conftest.$ac_ext <<_ACEOF
5310/* end confdefs.h. */
5311#include <ac_nonexistent.h>
5312_ACEOF
5313if { (ac_try="$ac_cpp conftest.$ac_ext"
5314case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317esac
5318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005325 (exit $ac_status); } >/dev/null; then
5326 if test -s conftest.err; then
5327 ac_cpp_err=$ac_c_preproc_warn_flag
5328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5329 else
5330 ac_cpp_err=
5331 fi
5332else
5333 ac_cpp_err=yes
5334fi
5335if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005336 # Broken: success on invalid input.
5337continue
5338else
5339 echo "$as_me: failed program was:" >&5
5340sed 's/^/| /' conftest.$ac_ext >&5
5341
5342 # Passes both tests.
5343ac_preproc_ok=:
5344break
5345fi
5346
5347rm -f conftest.err conftest.$ac_ext
5348
5349done
5350# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5351rm -f conftest.err conftest.$ac_ext
5352if $ac_preproc_ok; then
5353 break
5354fi
5355
5356 done
5357 ac_cv_prog_CPP=$CPP
5358
5359fi
5360 CPP=$ac_cv_prog_CPP
5361else
5362 ac_cv_prog_CPP=$CPP
5363fi
5364{ echo "$as_me:$LINENO: result: $CPP" >&5
5365echo "${ECHO_T}$CPP" >&6; }
5366ac_preproc_ok=false
5367for ac_c_preproc_warn_flag in '' yes
5368do
5369 # Use a header file that comes with gcc, so configuring glibc
5370 # with a fresh cross-compiler works.
5371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5372 # <limits.h> exists even on freestanding compilers.
5373 # On the NeXT, cc -E runs the code through the compiler's parser,
5374 # not just through cpp. "Syntax error" is here to catch this case.
5375 cat >conftest.$ac_ext <<_ACEOF
5376/* confdefs.h. */
5377_ACEOF
5378cat confdefs.h >>conftest.$ac_ext
5379cat >>conftest.$ac_ext <<_ACEOF
5380/* end confdefs.h. */
5381#ifdef __STDC__
5382# include <limits.h>
5383#else
5384# include <assert.h>
5385#endif
5386 Syntax error
5387_ACEOF
5388if { (ac_try="$ac_cpp conftest.$ac_ext"
5389case "(($ac_try" in
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5392esac
5393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5395 ac_status=$?
5396 grep -v '^ *+' conftest.er1 >conftest.err
5397 rm -f conftest.er1
5398 cat conftest.err >&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005400 (exit $ac_status); } >/dev/null; then
5401 if test -s conftest.err; then
5402 ac_cpp_err=$ac_c_preproc_warn_flag
5403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5404 else
5405 ac_cpp_err=
5406 fi
5407else
5408 ac_cpp_err=yes
5409fi
5410if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005411 :
5412else
5413 echo "$as_me: failed program was:" >&5
5414sed 's/^/| /' conftest.$ac_ext >&5
5415
5416 # Broken: fails on valid input.
5417continue
5418fi
5419
5420rm -f conftest.err conftest.$ac_ext
5421
5422 # OK, works on sane cases. Now check whether nonexistent headers
5423 # can be detected and how.
5424 cat >conftest.$ac_ext <<_ACEOF
5425/* confdefs.h. */
5426_ACEOF
5427cat confdefs.h >>conftest.$ac_ext
5428cat >>conftest.$ac_ext <<_ACEOF
5429/* end confdefs.h. */
5430#include <ac_nonexistent.h>
5431_ACEOF
5432if { (ac_try="$ac_cpp conftest.$ac_ext"
5433case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436esac
5437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005444 (exit $ac_status); } >/dev/null; then
5445 if test -s conftest.err; then
5446 ac_cpp_err=$ac_c_preproc_warn_flag
5447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5448 else
5449 ac_cpp_err=
5450 fi
5451else
5452 ac_cpp_err=yes
5453fi
5454if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005455 # Broken: success on invalid input.
5456continue
5457else
5458 echo "$as_me: failed program was:" >&5
5459sed 's/^/| /' conftest.$ac_ext >&5
5460
5461 # Passes both tests.
5462ac_preproc_ok=:
5463break
5464fi
5465
5466rm -f conftest.err conftest.$ac_ext
5467
5468done
5469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5470rm -f conftest.err conftest.$ac_ext
5471if $ac_preproc_ok; then
5472 :
5473else
5474 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5475See \`config.log' for more details." >&5
5476echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5477See \`config.log' for more details." >&2;}
5478 { (exit 1); exit 1; }; }
5479fi
5480
5481ac_ext=c
5482ac_cpp='$CPP $CPPFLAGS'
5483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486
5487ac_ext=c
5488ac_cpp='$CPP $CPPFLAGS'
5489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5491ac_compiler_gnu=$ac_cv_c_compiler_gnu
5492if test -n "$ac_tool_prefix"; then
5493 for ac_prog in gcc
5494 do
5495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5496set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5499if test "${ac_cv_prog_CC+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5501else
5502 if test -n "$CC"; then
5503 ac_cv_prog_CC="$CC" # Let the user override the test.
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005511 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 +00005512 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516done
5517done
5518IFS=$as_save_IFS
5519
5520fi
5521fi
5522CC=$ac_cv_prog_CC
5523if test -n "$CC"; then
5524 { echo "$as_me:$LINENO: result: $CC" >&5
5525echo "${ECHO_T}$CC" >&6; }
5526else
5527 { echo "$as_me:$LINENO: result: no" >&5
5528echo "${ECHO_T}no" >&6; }
5529fi
5530
5531
5532 test -n "$CC" && break
5533 done
5534fi
5535if test -z "$CC"; then
5536 ac_ct_CC=$CC
5537 for ac_prog in gcc
5538do
5539 # Extract the first word of "$ac_prog", so it can be a program name with args.
5540set dummy $ac_prog; ac_word=$2
5541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5543if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545else
5546 if test -n "$ac_ct_CC"; then
5547 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5548else
5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005555 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 +00005556 ac_cv_prog_ac_ct_CC="$ac_prog"
5557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5559 fi
5560done
5561done
5562IFS=$as_save_IFS
5563
5564fi
5565fi
5566ac_ct_CC=$ac_cv_prog_ac_ct_CC
5567if test -n "$ac_ct_CC"; then
5568 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5569echo "${ECHO_T}$ac_ct_CC" >&6; }
5570else
5571 { echo "$as_me:$LINENO: result: no" >&5
5572echo "${ECHO_T}no" >&6; }
5573fi
5574
5575
5576 test -n "$ac_ct_CC" && break
5577done
5578
5579 if test "x$ac_ct_CC" = x; then
5580 CC=""
5581 else
5582 case $cross_compiling:$ac_tool_warned in
5583yes:)
5584{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5585whose name does not start with the host triplet. If you think this
5586configuration is useful to you, please write to autoconf@gnu.org." >&5
5587echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5588whose name does not start with the host triplet. If you think this
5589configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5590ac_tool_warned=yes ;;
5591esac
5592 CC=$ac_ct_CC
5593 fi
5594fi
5595
5596
5597test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5598See \`config.log' for more details." >&5
5599echo "$as_me: error: no acceptable C compiler found in \$PATH
5600See \`config.log' for more details." >&2;}
5601 { (exit 1); exit 1; }; }
5602
5603# Provide some information about the compiler.
5604echo "$as_me:$LINENO: checking for C compiler version" >&5
5605ac_compiler=`set X $ac_compile; echo $2`
5606{ (ac_try="$ac_compiler --version >&5"
5607case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610esac
5611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_compiler --version >&5") 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); }
5616{ (ac_try="$ac_compiler -v >&5"
5617case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620esac
5621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compiler -v >&5") 2>&5
5623 ac_status=$?
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }
5626{ (ac_try="$ac_compiler -V >&5"
5627case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630esac
5631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632 (eval "$ac_compiler -V >&5") 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }
5636
5637{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5638echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5639if test "${ac_cv_c_compiler_gnu+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5641else
5642 cat >conftest.$ac_ext <<_ACEOF
5643/* confdefs.h. */
5644_ACEOF
5645cat confdefs.h >>conftest.$ac_ext
5646cat >>conftest.$ac_ext <<_ACEOF
5647/* end confdefs.h. */
5648
5649int
5650main ()
5651{
5652#ifndef __GNUC__
5653 choke me
5654#endif
5655
5656 ;
5657 return 0;
5658}
5659_ACEOF
5660rm -f conftest.$ac_objext
5661if { (ac_try="$ac_compile"
5662case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665esac
5666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_compile") 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005673 (exit $ac_status); } &&
5674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5675 { (case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5678esac
5679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_try") 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; } &&
5684 { ac_try='test -s conftest.$ac_objext'
5685 { (case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688esac
5689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_try") 2>&5
5691 ac_status=$?
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005694 ac_compiler_gnu=yes
5695else
5696 echo "$as_me: failed program was:" >&5
5697sed 's/^/| /' conftest.$ac_ext >&5
5698
5699 ac_compiler_gnu=no
5700fi
5701
5702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703ac_cv_c_compiler_gnu=$ac_compiler_gnu
5704
5705fi
5706{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5707echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5708GCC=`test $ac_compiler_gnu = yes && echo yes`
5709ac_test_CFLAGS=${CFLAGS+set}
5710ac_save_CFLAGS=$CFLAGS
5711{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5712echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5713if test "${ac_cv_prog_cc_g+set}" = set; then
5714 echo $ECHO_N "(cached) $ECHO_C" >&6
5715else
5716 ac_save_c_werror_flag=$ac_c_werror_flag
5717 ac_c_werror_flag=yes
5718 ac_cv_prog_cc_g=no
5719 CFLAGS="-g"
5720 cat >conftest.$ac_ext <<_ACEOF
5721/* confdefs.h. */
5722_ACEOF
5723cat confdefs.h >>conftest.$ac_ext
5724cat >>conftest.$ac_ext <<_ACEOF
5725/* end confdefs.h. */
5726
5727int
5728main ()
5729{
5730
5731 ;
5732 return 0;
5733}
5734_ACEOF
5735rm -f conftest.$ac_objext
5736if { (ac_try="$ac_compile"
5737case "(($ac_try" in
5738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5740esac
5741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_compile") 2>conftest.er1
5743 ac_status=$?
5744 grep -v '^ *+' conftest.er1 >conftest.err
5745 rm -f conftest.er1
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005748 (exit $ac_status); } &&
5749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5750 { (case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_try") 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; } &&
5759 { ac_try='test -s conftest.$ac_objext'
5760 { (case "(($ac_try" in
5761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5762 *) ac_try_echo=$ac_try;;
5763esac
5764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5765 (eval "$ac_try") 2>&5
5766 ac_status=$?
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005769 ac_cv_prog_cc_g=yes
5770else
5771 echo "$as_me: failed program was:" >&5
5772sed 's/^/| /' conftest.$ac_ext >&5
5773
5774 CFLAGS=""
5775 cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h. */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h. */
5781
5782int
5783main ()
5784{
5785
5786 ;
5787 return 0;
5788}
5789_ACEOF
5790rm -f conftest.$ac_objext
5791if { (ac_try="$ac_compile"
5792case "(($ac_try" in
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5795esac
5796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005803 (exit $ac_status); } &&
5804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5805 { (case "(($ac_try" in
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5808esac
5809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_try") 2>&5
5811 ac_status=$?
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); }; } &&
5814 { ac_try='test -s conftest.$ac_objext'
5815 { (case "(($ac_try" in
5816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817 *) ac_try_echo=$ac_try;;
5818esac
5819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820 (eval "$ac_try") 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005824 :
5825else
5826 echo "$as_me: failed program was:" >&5
5827sed 's/^/| /' conftest.$ac_ext >&5
5828
5829 ac_c_werror_flag=$ac_save_c_werror_flag
5830 CFLAGS="-g"
5831 cat >conftest.$ac_ext <<_ACEOF
5832/* confdefs.h. */
5833_ACEOF
5834cat confdefs.h >>conftest.$ac_ext
5835cat >>conftest.$ac_ext <<_ACEOF
5836/* end confdefs.h. */
5837
5838int
5839main ()
5840{
5841
5842 ;
5843 return 0;
5844}
5845_ACEOF
5846rm -f conftest.$ac_objext
5847if { (ac_try="$ac_compile"
5848case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5851esac
5852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_compile") 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005859 (exit $ac_status); } &&
5860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5861 { (case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864esac
5865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_try") 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; } &&
5870 { ac_try='test -s conftest.$ac_objext'
5871 { (case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874esac
5875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_try") 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005880 ac_cv_prog_cc_g=yes
5881else
5882 echo "$as_me: failed program was:" >&5
5883sed 's/^/| /' conftest.$ac_ext >&5
5884
5885
5886fi
5887
5888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889fi
5890
5891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892fi
5893
5894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 ac_c_werror_flag=$ac_save_c_werror_flag
5896fi
5897{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5898echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5899if test "$ac_test_CFLAGS" = set; then
5900 CFLAGS=$ac_save_CFLAGS
5901elif test $ac_cv_prog_cc_g = yes; then
5902 if test "$GCC" = yes; then
5903 CFLAGS="-g -O2"
5904 else
5905 CFLAGS="-g"
5906 fi
5907else
5908 if test "$GCC" = yes; then
5909 CFLAGS="-O2"
5910 else
5911 CFLAGS=
5912 fi
5913fi
5914{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5915echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5916if test "${ac_cv_prog_cc_c89+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5918else
5919 ac_cv_prog_cc_c89=no
5920ac_save_CC=$CC
5921cat >conftest.$ac_ext <<_ACEOF
5922/* confdefs.h. */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h. */
5927#include <stdarg.h>
5928#include <stdio.h>
5929#include <sys/types.h>
5930#include <sys/stat.h>
5931/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5932struct buf { int x; };
5933FILE * (*rcsopen) (struct buf *, struct stat *, int);
5934static char *e (p, i)
5935 char **p;
5936 int i;
5937{
5938 return p[i];
5939}
5940static char *f (char * (*g) (char **, int), char **p, ...)
5941{
5942 char *s;
5943 va_list v;
5944 va_start (v,p);
5945 s = g (p, va_arg (v,int));
5946 va_end (v);
5947 return s;
5948}
5949
5950/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5951 function prototypes and stuff, but not '\xHH' hex character constants.
5952 These don't provoke an error unfortunately, instead are silently treated
5953 as 'x'. The following induces an error, until -std is added to get
5954 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5955 array size at least. It's necessary to write '\x00'==0 to get something
5956 that's true only with -std. */
5957int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5958
5959/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5960 inside strings and character constants. */
5961#define FOO(x) 'x'
5962int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5963
5964int test (int i, double x);
5965struct s1 {int (*f) (int a);};
5966struct s2 {int (*f) (double a);};
5967int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5968int argc;
5969char **argv;
5970int
5971main ()
5972{
5973return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5974 ;
5975 return 0;
5976}
5977_ACEOF
5978for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5979 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5980do
5981 CC="$ac_save_CC $ac_arg"
5982 rm -f conftest.$ac_objext
5983if { (ac_try="$ac_compile"
5984case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987esac
5988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_compile") 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005995 (exit $ac_status); } &&
5996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5997 { (case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6000esac
6001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_try") 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; } &&
6006 { ac_try='test -s conftest.$ac_objext'
6007 { (case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010esac
6011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_try") 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006016 ac_cv_prog_cc_c89=$ac_arg
6017else
6018 echo "$as_me: failed program was:" >&5
6019sed 's/^/| /' conftest.$ac_ext >&5
6020
6021
6022fi
6023
6024rm -f core conftest.err conftest.$ac_objext
6025 test "x$ac_cv_prog_cc_c89" != "xno" && break
6026done
6027rm -f conftest.$ac_ext
6028CC=$ac_save_CC
6029
6030fi
6031# AC_CACHE_VAL
6032case "x$ac_cv_prog_cc_c89" in
6033 x)
6034 { echo "$as_me:$LINENO: result: none needed" >&5
6035echo "${ECHO_T}none needed" >&6; } ;;
6036 xno)
6037 { echo "$as_me:$LINENO: result: unsupported" >&5
6038echo "${ECHO_T}unsupported" >&6; } ;;
6039 *)
6040 CC="$CC $ac_cv_prog_cc_c89"
6041 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6042echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6043esac
6044
6045
6046ac_ext=c
6047ac_cpp='$CPP $CPPFLAGS'
6048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050ac_compiler_gnu=$ac_cv_c_compiler_gnu
6051
6052ac_ext=cpp
6053ac_cpp='$CXXCPP $CPPFLAGS'
6054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6057if test -z "$CXX"; then
6058 if test -n "$CCC"; then
6059 CXX=$CCC
6060 else
6061 if test -n "$ac_tool_prefix"; then
6062 for ac_prog in g++
6063 do
6064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6065set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6066{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068if test "${ac_cv_prog_CXX+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071 if test -n "$CXX"; then
6072 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6073else
6074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075for as_dir in $PATH
6076do
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006080 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 +00006081 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 break 2
6084 fi
6085done
6086done
6087IFS=$as_save_IFS
6088
6089fi
6090fi
6091CXX=$ac_cv_prog_CXX
6092if test -n "$CXX"; then
6093 { echo "$as_me:$LINENO: result: $CXX" >&5
6094echo "${ECHO_T}$CXX" >&6; }
6095else
6096 { echo "$as_me:$LINENO: result: no" >&5
6097echo "${ECHO_T}no" >&6; }
6098fi
6099
6100
6101 test -n "$CXX" && break
6102 done
6103fi
6104if test -z "$CXX"; then
6105 ac_ct_CXX=$CXX
6106 for ac_prog in g++
6107do
6108 # Extract the first word of "$ac_prog", so it can be a program name with args.
6109set dummy $ac_prog; ac_word=$2
6110{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6112if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115 if test -n "$ac_ct_CXX"; then
6116 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6117else
6118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119for as_dir in $PATH
6120do
6121 IFS=$as_save_IFS
6122 test -z "$as_dir" && as_dir=.
6123 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006124 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 +00006125 ac_cv_prog_ac_ct_CXX="$ac_prog"
6126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6127 break 2
6128 fi
6129done
6130done
6131IFS=$as_save_IFS
6132
6133fi
6134fi
6135ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6136if test -n "$ac_ct_CXX"; then
6137 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6138echo "${ECHO_T}$ac_ct_CXX" >&6; }
6139else
6140 { echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6; }
6142fi
6143
6144
6145 test -n "$ac_ct_CXX" && break
6146done
6147
6148 if test "x$ac_ct_CXX" = x; then
6149 CXX="g++"
6150 else
6151 case $cross_compiling:$ac_tool_warned in
6152yes:)
6153{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6154whose name does not start with the host triplet. If you think this
6155configuration is useful to you, please write to autoconf@gnu.org." >&5
6156echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6157whose name does not start with the host triplet. If you think this
6158configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6159ac_tool_warned=yes ;;
6160esac
6161 CXX=$ac_ct_CXX
6162 fi
6163fi
6164
6165 fi
6166fi
6167# Provide some information about the compiler.
6168echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6169ac_compiler=`set X $ac_compile; echo $2`
6170{ (ac_try="$ac_compiler --version >&5"
6171case "(($ac_try" in
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6174esac
6175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6176 (eval "$ac_compiler --version >&5") 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }
6180{ (ac_try="$ac_compiler -v >&5"
6181case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184esac
6185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_compiler -v >&5") 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }
6190{ (ac_try="$ac_compiler -V >&5"
6191case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_compiler -V >&5") 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }
6200
6201{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6202echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6203if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205else
6206 cat >conftest.$ac_ext <<_ACEOF
6207/* confdefs.h. */
6208_ACEOF
6209cat confdefs.h >>conftest.$ac_ext
6210cat >>conftest.$ac_ext <<_ACEOF
6211/* end confdefs.h. */
6212
6213int
6214main ()
6215{
6216#ifndef __GNUC__
6217 choke me
6218#endif
6219
6220 ;
6221 return 0;
6222}
6223_ACEOF
6224rm -f conftest.$ac_objext
6225if { (ac_try="$ac_compile"
6226case "(($ac_try" in
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6229esac
6230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6231 (eval "$ac_compile") 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6239 { (case "(($ac_try" in
6240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241 *) ac_try_echo=$ac_try;;
6242esac
6243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6244 (eval "$ac_try") 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252esac
6253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_try") 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006258 ac_compiler_gnu=yes
6259else
6260 echo "$as_me: failed program was:" >&5
6261sed 's/^/| /' conftest.$ac_ext >&5
6262
6263 ac_compiler_gnu=no
6264fi
6265
6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6268
6269fi
6270{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6271echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6272GXX=`test $ac_compiler_gnu = yes && echo yes`
6273ac_test_CXXFLAGS=${CXXFLAGS+set}
6274ac_save_CXXFLAGS=$CXXFLAGS
6275{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6276echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6277if test "${ac_cv_prog_cxx_g+set}" = set; then
6278 echo $ECHO_N "(cached) $ECHO_C" >&6
6279else
6280 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6281 ac_cxx_werror_flag=yes
6282 ac_cv_prog_cxx_g=no
6283 CXXFLAGS="-g"
6284 cat >conftest.$ac_ext <<_ACEOF
6285/* confdefs.h. */
6286_ACEOF
6287cat confdefs.h >>conftest.$ac_ext
6288cat >>conftest.$ac_ext <<_ACEOF
6289/* end confdefs.h. */
6290
6291int
6292main ()
6293{
6294
6295 ;
6296 return 0;
6297}
6298_ACEOF
6299rm -f conftest.$ac_objext
6300if { (ac_try="$ac_compile"
6301case "(($ac_try" in
6302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303 *) ac_try_echo=$ac_try;;
6304esac
6305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306 (eval "$ac_compile") 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006312 (exit $ac_status); } &&
6313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6314 { (case "(($ac_try" in
6315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6316 *) ac_try_echo=$ac_try;;
6317esac
6318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6319 (eval "$ac_try") 2>&5
6320 ac_status=$?
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); }; } &&
6323 { ac_try='test -s conftest.$ac_objext'
6324 { (case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327esac
6328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_try") 2>&5
6330 ac_status=$?
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006333 ac_cv_prog_cxx_g=yes
6334else
6335 echo "$as_me: failed program was:" >&5
6336sed 's/^/| /' conftest.$ac_ext >&5
6337
6338 CXXFLAGS=""
6339 cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h. */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h. */
6345
6346int
6347main ()
6348{
6349
6350 ;
6351 return 0;
6352}
6353_ACEOF
6354rm -f conftest.$ac_objext
6355if { (ac_try="$ac_compile"
6356case "(($ac_try" in
6357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358 *) ac_try_echo=$ac_try;;
6359esac
6360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361 (eval "$ac_compile") 2>conftest.er1
6362 ac_status=$?
6363 grep -v '^ *+' conftest.er1 >conftest.err
6364 rm -f conftest.er1
6365 cat conftest.err >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006367 (exit $ac_status); } &&
6368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6369 { (case "(($ac_try" in
6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371 *) ac_try_echo=$ac_try;;
6372esac
6373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374 (eval "$ac_try") 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; } &&
6378 { ac_try='test -s conftest.$ac_objext'
6379 { (case "(($ac_try" in
6380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6382esac
6383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_try") 2>&5
6385 ac_status=$?
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006388 :
6389else
6390 echo "$as_me: failed program was:" >&5
6391sed 's/^/| /' conftest.$ac_ext >&5
6392
6393 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6394 CXXFLAGS="-g"
6395 cat >conftest.$ac_ext <<_ACEOF
6396/* confdefs.h. */
6397_ACEOF
6398cat confdefs.h >>conftest.$ac_ext
6399cat >>conftest.$ac_ext <<_ACEOF
6400/* end confdefs.h. */
6401
6402int
6403main ()
6404{
6405
6406 ;
6407 return 0;
6408}
6409_ACEOF
6410rm -f conftest.$ac_objext
6411if { (ac_try="$ac_compile"
6412case "(($ac_try" in
6413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6415esac
6416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_compile") 2>conftest.er1
6418 ac_status=$?
6419 grep -v '^ *+' conftest.er1 >conftest.err
6420 rm -f conftest.er1
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006423 (exit $ac_status); } &&
6424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6425 { (case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428esac
6429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_try") 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; } &&
6434 { ac_try='test -s conftest.$ac_objext'
6435 { (case "(($ac_try" in
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6438esac
6439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_try") 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006444 ac_cv_prog_cxx_g=yes
6445else
6446 echo "$as_me: failed program was:" >&5
6447sed 's/^/| /' conftest.$ac_ext >&5
6448
6449
6450fi
6451
6452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453fi
6454
6455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456fi
6457
6458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6459 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6460fi
6461{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6462echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6463if test "$ac_test_CXXFLAGS" = set; then
6464 CXXFLAGS=$ac_save_CXXFLAGS
6465elif test $ac_cv_prog_cxx_g = yes; then
6466 if test "$GXX" = yes; then
6467 CXXFLAGS="-g -O2"
6468 else
6469 CXXFLAGS="-g"
6470 fi
6471else
6472 if test "$GXX" = yes; then
6473 CXXFLAGS="-O2"
6474 else
6475 CXXFLAGS=
6476 fi
6477fi
6478ac_ext=c
6479ac_cpp='$CPP $CPPFLAGS'
6480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6482ac_compiler_gnu=$ac_cv_c_compiler_gnu
6483
Reid Spencera773bd52006-08-04 18:18:08 +00006484
6485{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6486echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6487if test "${lt_cv_path_NM+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489else
6490 if test -n "$NM"; then
6491 # Let the user override the test.
6492 lt_cv_path_NM="$NM"
6493else
6494 lt_nm_to_check="${ac_tool_prefix}nm"
6495 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6496 lt_nm_to_check="$lt_nm_to_check nm"
6497 fi
6498 for lt_tmp_nm in $lt_nm_to_check; do
6499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6500 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6501 IFS="$lt_save_ifs"
6502 test -z "$ac_dir" && ac_dir=.
6503 tmp_nm="$ac_dir/$lt_tmp_nm"
6504 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6505 # Check to see if the nm accepts a BSD-compat flag.
6506 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6507 # nm: unknown option "B" ignored
6508 # Tru64's nm complains that /dev/null is an invalid object file
6509 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6510 */dev/null* | *'Invalid file or object type'*)
6511 lt_cv_path_NM="$tmp_nm -B"
6512 break
6513 ;;
6514 *)
6515 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6516 */dev/null*)
6517 lt_cv_path_NM="$tmp_nm -p"
6518 break
6519 ;;
6520 *)
6521 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6522 continue # so that we can try to find one that supports BSD flags
6523 ;;
6524 esac
6525 ;;
6526 esac
6527 fi
6528 done
6529 IFS="$lt_save_ifs"
6530 done
6531 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6532fi
6533fi
6534{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6535echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6536NM="$lt_cv_path_NM"
6537
6538
6539
6540{ echo "$as_me:$LINENO: checking for GNU make" >&5
6541echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6542if test "${llvm_cv_gnu_make_command+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545 llvm_cv_gnu_make_command=''
6546 for a in "$MAKE" make gmake gnumake ; do
6547 if test -z "$a" ; then continue ; fi ;
6548 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6549 then
6550 llvm_cv_gnu_make_command=$a ;
6551 break;
6552 fi
6553 done
6554fi
6555{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6556echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6557 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6558 ifGNUmake='' ;
6559 else
6560 ifGNUmake='#' ;
6561 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6562echo "${ECHO_T}\"Not found\"" >&6; };
6563 fi
6564
6565
6566{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6567echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6568LN_S=$as_ln_s
6569if test "$LN_S" = "ln -s"; then
6570 { echo "$as_me:$LINENO: result: yes" >&5
6571echo "${ECHO_T}yes" >&6; }
6572else
6573 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6574echo "${ECHO_T}no, using $LN_S" >&6; }
6575fi
6576
6577# Extract the first word of "cmp", so it can be a program name with args.
6578set dummy cmp; ac_word=$2
6579{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6581if test "${ac_cv_path_CMP+set}" = set; then
6582 echo $ECHO_N "(cached) $ECHO_C" >&6
6583else
6584 case $CMP in
6585 [\\/]* | ?:[\\/]*)
6586 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6587 ;;
6588 *)
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590for as_dir in $PATH
6591do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006595 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 +00006596 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600done
6601done
6602IFS=$as_save_IFS
6603
6604 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6605 ;;
6606esac
6607fi
6608CMP=$ac_cv_path_CMP
6609if test -n "$CMP"; then
6610 { echo "$as_me:$LINENO: result: $CMP" >&5
6611echo "${ECHO_T}$CMP" >&6; }
6612else
6613 { echo "$as_me:$LINENO: result: no" >&5
6614echo "${ECHO_T}no" >&6; }
6615fi
6616
6617
6618# Extract the first word of "cp", so it can be a program name with args.
6619set dummy cp; ac_word=$2
6620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6622if test "${ac_cv_path_CP+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6624else
6625 case $CP in
6626 [\\/]* | ?:[\\/]*)
6627 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6628 ;;
6629 *)
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631for as_dir in $PATH
6632do
6633 IFS=$as_save_IFS
6634 test -z "$as_dir" && as_dir=.
6635 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006636 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 +00006637 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639 break 2
6640 fi
6641done
6642done
6643IFS=$as_save_IFS
6644
6645 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6646 ;;
6647esac
6648fi
6649CP=$ac_cv_path_CP
6650if test -n "$CP"; then
6651 { echo "$as_me:$LINENO: result: $CP" >&5
6652echo "${ECHO_T}$CP" >&6; }
6653else
6654 { echo "$as_me:$LINENO: result: no" >&5
6655echo "${ECHO_T}no" >&6; }
6656fi
6657
6658
6659# Extract the first word of "date", so it can be a program name with args.
6660set dummy date; ac_word=$2
6661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6663if test "${ac_cv_path_DATE+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665else
6666 case $DATE in
6667 [\\/]* | ?:[\\/]*)
6668 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6669 ;;
6670 *)
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672for as_dir in $PATH
6673do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006677 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 +00006678 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682done
6683done
6684IFS=$as_save_IFS
6685
6686 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6687 ;;
6688esac
6689fi
6690DATE=$ac_cv_path_DATE
6691if test -n "$DATE"; then
6692 { echo "$as_me:$LINENO: result: $DATE" >&5
6693echo "${ECHO_T}$DATE" >&6; }
6694else
6695 { echo "$as_me:$LINENO: result: no" >&5
6696echo "${ECHO_T}no" >&6; }
6697fi
6698
6699
6700# Extract the first word of "find", so it can be a program name with args.
6701set dummy find; ac_word=$2
6702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6704if test "${ac_cv_path_FIND+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6706else
6707 case $FIND in
6708 [\\/]* | ?:[\\/]*)
6709 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6710 ;;
6711 *)
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713for as_dir in $PATH
6714do
6715 IFS=$as_save_IFS
6716 test -z "$as_dir" && as_dir=.
6717 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006718 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 +00006719 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6721 break 2
6722 fi
6723done
6724done
6725IFS=$as_save_IFS
6726
6727 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6728 ;;
6729esac
6730fi
6731FIND=$ac_cv_path_FIND
6732if test -n "$FIND"; then
6733 { echo "$as_me:$LINENO: result: $FIND" >&5
6734echo "${ECHO_T}$FIND" >&6; }
6735else
6736 { echo "$as_me:$LINENO: result: no" >&5
6737echo "${ECHO_T}no" >&6; }
6738fi
6739
6740
6741# Extract the first word of "grep", so it can be a program name with args.
6742set dummy grep; ac_word=$2
6743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745if test "${ac_cv_path_GREP+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747else
6748 case $GREP in
6749 [\\/]* | ?:[\\/]*)
6750 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6751 ;;
6752 *)
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6754for as_dir in $PATH
6755do
6756 IFS=$as_save_IFS
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006759 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 +00006760 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 break 2
6763 fi
6764done
6765done
6766IFS=$as_save_IFS
6767
6768 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6769 ;;
6770esac
6771fi
6772GREP=$ac_cv_path_GREP
6773if test -n "$GREP"; then
6774 { echo "$as_me:$LINENO: result: $GREP" >&5
6775echo "${ECHO_T}$GREP" >&6; }
6776else
6777 { echo "$as_me:$LINENO: result: no" >&5
6778echo "${ECHO_T}no" >&6; }
6779fi
6780
6781
6782# Extract the first word of "mkdir", so it can be a program name with args.
6783set dummy mkdir; ac_word=$2
6784{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6786if test "${ac_cv_path_MKDIR+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6788else
6789 case $MKDIR in
6790 [\\/]* | ?:[\\/]*)
6791 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6792 ;;
6793 *)
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795for as_dir in $PATH
6796do
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006800 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 +00006801 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6804 fi
6805done
6806done
6807IFS=$as_save_IFS
6808
6809 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6810 ;;
6811esac
6812fi
6813MKDIR=$ac_cv_path_MKDIR
6814if test -n "$MKDIR"; then
6815 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6816echo "${ECHO_T}$MKDIR" >&6; }
6817else
6818 { echo "$as_me:$LINENO: result: no" >&5
6819echo "${ECHO_T}no" >&6; }
6820fi
6821
6822
6823# Extract the first word of "mv", so it can be a program name with args.
6824set dummy mv; ac_word=$2
6825{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6826echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827if test "${ac_cv_path_MV+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6829else
6830 case $MV in
6831 [\\/]* | ?:[\\/]*)
6832 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6833 ;;
6834 *)
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836for as_dir in $PATH
6837do
6838 IFS=$as_save_IFS
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006841 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 +00006842 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 break 2
6845 fi
6846done
6847done
6848IFS=$as_save_IFS
6849
6850 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6851 ;;
6852esac
6853fi
6854MV=$ac_cv_path_MV
6855if test -n "$MV"; then
6856 { echo "$as_me:$LINENO: result: $MV" >&5
6857echo "${ECHO_T}$MV" >&6; }
6858else
6859 { echo "$as_me:$LINENO: result: no" >&5
6860echo "${ECHO_T}no" >&6; }
6861fi
6862
6863
6864if test -n "$ac_tool_prefix"; then
6865 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6866set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6867{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869if test "${ac_cv_prog_RANLIB+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6871else
6872 if test -n "$RANLIB"; then
6873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6874else
6875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876for as_dir in $PATH
6877do
6878 IFS=$as_save_IFS
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006881 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 +00006882 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884 break 2
6885 fi
6886done
6887done
6888IFS=$as_save_IFS
6889
6890fi
6891fi
6892RANLIB=$ac_cv_prog_RANLIB
6893if test -n "$RANLIB"; then
6894 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6895echo "${ECHO_T}$RANLIB" >&6; }
6896else
6897 { echo "$as_me:$LINENO: result: no" >&5
6898echo "${ECHO_T}no" >&6; }
6899fi
6900
6901
6902fi
6903if test -z "$ac_cv_prog_RANLIB"; then
6904 ac_ct_RANLIB=$RANLIB
6905 # Extract the first word of "ranlib", so it can be a program name with args.
6906set dummy ranlib; ac_word=$2
6907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911else
6912 if test -n "$ac_ct_RANLIB"; then
6913 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6914else
6915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6916for as_dir in $PATH
6917do
6918 IFS=$as_save_IFS
6919 test -z "$as_dir" && as_dir=.
6920 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006921 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 +00006922 ac_cv_prog_ac_ct_RANLIB="ranlib"
6923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6924 break 2
6925 fi
6926done
6927done
6928IFS=$as_save_IFS
6929
6930fi
6931fi
6932ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6933if test -n "$ac_ct_RANLIB"; then
6934 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6935echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6936else
6937 { echo "$as_me:$LINENO: result: no" >&5
6938echo "${ECHO_T}no" >&6; }
6939fi
6940
6941 if test "x$ac_ct_RANLIB" = x; then
6942 RANLIB=":"
6943 else
6944 case $cross_compiling:$ac_tool_warned in
6945yes:)
6946{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6947whose name does not start with the host triplet. If you think this
6948configuration is useful to you, please write to autoconf@gnu.org." >&5
6949echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6950whose name does not start with the host triplet. If you think this
6951configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6952ac_tool_warned=yes ;;
6953esac
6954 RANLIB=$ac_ct_RANLIB
6955 fi
6956else
6957 RANLIB="$ac_cv_prog_RANLIB"
6958fi
6959
6960# Extract the first word of "rm", so it can be a program name with args.
6961set dummy rm; ac_word=$2
6962{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964if test "${ac_cv_path_RM+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966else
6967 case $RM in
6968 [\\/]* | ?:[\\/]*)
6969 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6970 ;;
6971 *)
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973for as_dir in $PATH
6974do
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006978 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 +00006979 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981 break 2
6982 fi
6983done
6984done
6985IFS=$as_save_IFS
6986
6987 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6988 ;;
6989esac
6990fi
6991RM=$ac_cv_path_RM
6992if test -n "$RM"; then
6993 { echo "$as_me:$LINENO: result: $RM" >&5
6994echo "${ECHO_T}$RM" >&6; }
6995else
6996 { echo "$as_me:$LINENO: result: no" >&5
6997echo "${ECHO_T}no" >&6; }
6998fi
6999
7000
7001# Extract the first word of "sed", so it can be a program name with args.
7002set dummy sed; ac_word=$2
7003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005if test "${ac_cv_path_SED+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007else
7008 case $SED in
7009 [\\/]* | ?:[\\/]*)
7010 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7011 ;;
7012 *)
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016 IFS=$as_save_IFS
7017 test -z "$as_dir" && as_dir=.
7018 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007019 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 +00007020 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022 break 2
7023 fi
7024done
7025done
7026IFS=$as_save_IFS
7027
7028 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7029 ;;
7030esac
7031fi
7032SED=$ac_cv_path_SED
7033if test -n "$SED"; then
7034 { echo "$as_me:$LINENO: result: $SED" >&5
7035echo "${ECHO_T}$SED" >&6; }
7036else
7037 { echo "$as_me:$LINENO: result: no" >&5
7038echo "${ECHO_T}no" >&6; }
7039fi
7040
7041
7042# Extract the first word of "tar", so it can be a program name with args.
7043set dummy tar; ac_word=$2
7044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7046if test "${ac_cv_path_TAR+set}" = set; then
7047 echo $ECHO_N "(cached) $ECHO_C" >&6
7048else
7049 case $TAR in
7050 [\\/]* | ?:[\\/]*)
7051 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7052 ;;
7053 *)
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007060 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 +00007061 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7064 fi
7065done
7066done
7067IFS=$as_save_IFS
7068
7069 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7070 ;;
7071esac
7072fi
7073TAR=$ac_cv_path_TAR
7074if test -n "$TAR"; then
7075 { echo "$as_me:$LINENO: result: $TAR" >&5
7076echo "${ECHO_T}$TAR" >&6; }
7077else
7078 { echo "$as_me:$LINENO: result: no" >&5
7079echo "${ECHO_T}no" >&6; }
7080fi
7081
7082
7083# Extract the first word of "pwd", so it can be a program name with args.
7084set dummy pwd; ac_word=$2
7085{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087if test "${ac_cv_path_BINPWD+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089else
7090 case $BINPWD in
7091 [\\/]* | ?:[\\/]*)
7092 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7093 ;;
7094 *)
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096for as_dir in $PATH
7097do
7098 IFS=$as_save_IFS
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007101 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 +00007102 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104 break 2
7105 fi
7106done
7107done
7108IFS=$as_save_IFS
7109
7110 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7111 ;;
7112esac
7113fi
7114BINPWD=$ac_cv_path_BINPWD
7115if test -n "$BINPWD"; then
7116 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7117echo "${ECHO_T}$BINPWD" >&6; }
7118else
7119 { echo "$as_me:$LINENO: result: no" >&5
7120echo "${ECHO_T}no" >&6; }
7121fi
7122
7123
7124
7125# Extract the first word of "Graphviz", so it can be a program name with args.
7126set dummy Graphviz; 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_GRAPHVIZ+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131else
7132 case $GRAPHVIZ in
7133 [\\/]* | ?:[\\/]*)
7134 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # 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_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7147 fi
7148done
7149done
7150IFS=$as_save_IFS
7151
7152 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7153 ;;
7154esac
7155fi
7156GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7157if test -n "$GRAPHVIZ"; then
7158 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7159echo "${ECHO_T}$GRAPHVIZ" >&6; }
7160else
7161 { echo "$as_me:$LINENO: result: no" >&5
7162echo "${ECHO_T}no" >&6; }
7163fi
7164
7165
7166if test "$GRAPHVIZ" != "echo Graphviz" ; then
7167
7168cat >>confdefs.h <<\_ACEOF
7169#define HAVE_GRAPHVIZ 1
7170_ACEOF
7171
Jeff Cohen28783c32007-01-12 18:22:38 +00007172 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007173 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7174 fi
7175
7176cat >>confdefs.h <<_ACEOF
7177#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7178_ACEOF
7179
7180fi
7181# Extract the first word of "dot", so it can be a program name with args.
7182set dummy dot; ac_word=$2
7183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185if test "${ac_cv_path_DOT+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187else
7188 case $DOT in
7189 [\\/]* | ?:[\\/]*)
7190 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7191 ;;
7192 *)
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196 IFS=$as_save_IFS
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007199 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 +00007200 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 break 2
7203 fi
7204done
7205done
7206IFS=$as_save_IFS
7207
7208 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7209 ;;
7210esac
7211fi
7212DOT=$ac_cv_path_DOT
7213if test -n "$DOT"; then
7214 { echo "$as_me:$LINENO: result: $DOT" >&5
7215echo "${ECHO_T}$DOT" >&6; }
7216else
7217 { echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6; }
7219fi
7220
7221
7222if test "$DOT" != "echo dot" ; then
7223
7224cat >>confdefs.h <<\_ACEOF
7225#define HAVE_DOT 1
7226_ACEOF
7227
Jeff Cohen28783c32007-01-12 18:22:38 +00007228 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007229 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7230 fi
7231
7232cat >>confdefs.h <<_ACEOF
7233#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7234_ACEOF
7235
7236fi
David Greenef0b9eff2009-07-09 17:16:26 +00007237# Extract the first word of "fdp", so it can be a program name with args.
7238set dummy fdp; ac_word=$2
7239{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7241if test "${ac_cv_path_FDP+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243else
7244 case $FDP in
7245 [\\/]* | ?:[\\/]*)
7246 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7247 ;;
7248 *)
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250for as_dir in $PATH
7251do
7252 IFS=$as_save_IFS
7253 test -z "$as_dir" && as_dir=.
7254 for ac_exec_ext in '' $ac_executable_extensions; do
7255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7256 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258 break 2
7259 fi
7260done
7261done
7262IFS=$as_save_IFS
7263
7264 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7265 ;;
7266esac
7267fi
7268FDP=$ac_cv_path_FDP
7269if test -n "$FDP"; then
7270 { echo "$as_me:$LINENO: result: $FDP" >&5
7271echo "${ECHO_T}$FDP" >&6; }
7272else
7273 { echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6; }
7275fi
7276
7277
7278if test "$FDP" != "echo fdp" ; then
7279
7280cat >>confdefs.h <<\_ACEOF
7281#define HAVE_FDP 1
7282_ACEOF
7283
7284 if test "$llvm_cv_os_type" = "MingW" ; then
7285 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7286 fi
7287
7288cat >>confdefs.h <<_ACEOF
7289#define LLVM_PATH_FDP "$FDP${EXEEXT}"
7290_ACEOF
7291
7292fi
7293# Extract the first word of "neato", so it can be a program name with args.
7294set dummy neato; ac_word=$2
7295{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7297if test "${ac_cv_path_NEATO+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7299else
7300 case $NEATO in
7301 [\\/]* | ?:[\\/]*)
7302 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7303 ;;
7304 *)
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7312 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 break 2
7315 fi
7316done
7317done
7318IFS=$as_save_IFS
7319
7320 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7321 ;;
7322esac
7323fi
7324NEATO=$ac_cv_path_NEATO
7325if test -n "$NEATO"; then
7326 { echo "$as_me:$LINENO: result: $NEATO" >&5
7327echo "${ECHO_T}$NEATO" >&6; }
7328else
7329 { echo "$as_me:$LINENO: result: no" >&5
7330echo "${ECHO_T}no" >&6; }
7331fi
7332
7333
7334if test "$NEATO" != "echo neato" ; then
7335
7336cat >>confdefs.h <<\_ACEOF
7337#define HAVE_NEATO 1
7338_ACEOF
7339
7340 if test "$llvm_cv_os_type" = "MingW" ; then
7341 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7342 fi
7343
7344cat >>confdefs.h <<_ACEOF
7345#define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7346_ACEOF
7347
7348fi
7349# Extract the first word of "twopi", so it can be a program name with args.
7350set dummy twopi; ac_word=$2
7351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7353if test "${ac_cv_path_TWOPI+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355else
7356 case $TWOPI in
7357 [\\/]* | ?:[\\/]*)
7358 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7359 ;;
7360 *)
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7368 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 break 2
7371 fi
7372done
7373done
7374IFS=$as_save_IFS
7375
7376 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7377 ;;
7378esac
7379fi
7380TWOPI=$ac_cv_path_TWOPI
7381if test -n "$TWOPI"; then
7382 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7383echo "${ECHO_T}$TWOPI" >&6; }
7384else
7385 { echo "$as_me:$LINENO: result: no" >&5
7386echo "${ECHO_T}no" >&6; }
7387fi
7388
7389
7390if test "$TWOPI" != "echo twopi" ; then
7391
7392cat >>confdefs.h <<\_ACEOF
7393#define HAVE_TWOPI 1
7394_ACEOF
7395
7396 if test "$llvm_cv_os_type" = "MingW" ; then
7397 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7398 fi
7399
7400cat >>confdefs.h <<_ACEOF
7401#define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7402_ACEOF
7403
7404fi
7405# Extract the first word of "circo", so it can be a program name with args.
7406set dummy circo; ac_word=$2
7407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7409if test "${ac_cv_path_CIRCO+set}" = set; then
7410 echo $ECHO_N "(cached) $ECHO_C" >&6
7411else
7412 case $CIRCO in
7413 [\\/]* | ?:[\\/]*)
7414 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7415 ;;
7416 *)
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418for as_dir in $PATH
7419do
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7427 fi
7428done
7429done
7430IFS=$as_save_IFS
7431
7432 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7433 ;;
7434esac
7435fi
7436CIRCO=$ac_cv_path_CIRCO
7437if test -n "$CIRCO"; then
7438 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7439echo "${ECHO_T}$CIRCO" >&6; }
7440else
7441 { echo "$as_me:$LINENO: result: no" >&5
7442echo "${ECHO_T}no" >&6; }
7443fi
7444
7445
7446if test "$CIRCO" != "echo circo" ; then
7447
7448cat >>confdefs.h <<\_ACEOF
7449#define HAVE_CIRCO 1
7450_ACEOF
7451
7452 if test "$llvm_cv_os_type" = "MingW" ; then
7453 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7454 fi
7455
7456cat >>confdefs.h <<_ACEOF
7457#define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7458_ACEOF
7459
7460fi
Reid Spencera773bd52006-08-04 18:18:08 +00007461for ac_prog in gv gsview32
7462do
7463 # Extract the first word of "$ac_prog", so it can be a program name with args.
7464set dummy $ac_prog; ac_word=$2
7465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467if test "${ac_cv_path_GV+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469else
7470 case $GV in
7471 [\\/]* | ?:[\\/]*)
7472 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7473 ;;
7474 *)
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007481 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 +00007482 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486done
7487done
7488IFS=$as_save_IFS
7489
7490 ;;
7491esac
7492fi
7493GV=$ac_cv_path_GV
7494if test -n "$GV"; then
7495 { echo "$as_me:$LINENO: result: $GV" >&5
7496echo "${ECHO_T}$GV" >&6; }
7497else
7498 { echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6; }
7500fi
7501
7502
7503 test -n "$GV" && break
7504done
7505test -n "$GV" || GV="echo gv"
7506
7507if test "$GV" != "echo gv" ; then
7508
7509cat >>confdefs.h <<\_ACEOF
7510#define HAVE_GV 1
7511_ACEOF
7512
Jeff Cohen28783c32007-01-12 18:22:38 +00007513 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007514 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7515 fi
7516
7517cat >>confdefs.h <<_ACEOF
7518#define LLVM_PATH_GV "$GV${EXEEXT}"
7519_ACEOF
7520
7521fi
7522# Extract the first word of "dotty", so it can be a program name with args.
7523set dummy dotty; ac_word=$2
7524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526if test "${ac_cv_path_DOTTY+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528else
7529 case $DOTTY in
7530 [\\/]* | ?:[\\/]*)
7531 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7532 ;;
7533 *)
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007541 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7544 fi
7545done
7546done
7547IFS=$as_save_IFS
7548
7549 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7550 ;;
7551esac
7552fi
7553DOTTY=$ac_cv_path_DOTTY
7554if test -n "$DOTTY"; then
7555 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7556echo "${ECHO_T}$DOTTY" >&6; }
7557else
7558 { echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6; }
7560fi
7561
7562
7563if test "$DOTTY" != "echo dotty" ; then
7564
7565cat >>confdefs.h <<\_ACEOF
7566#define HAVE_DOTTY 1
7567_ACEOF
7568
Jeff Cohen28783c32007-01-12 18:22:38 +00007569 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007570 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7571 fi
7572
7573cat >>confdefs.h <<_ACEOF
7574#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7575_ACEOF
7576
7577fi
7578
7579
7580# Extract the first word of "perl", so it can be a program name with args.
7581set dummy perl; ac_word=$2
7582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584if test "${ac_cv_path_PERL+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586else
7587 case $PERL in
7588 [\\/]* | ?:[\\/]*)
7589 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7590 ;;
7591 *)
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007598 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 +00007599 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603done
7604done
7605IFS=$as_save_IFS
7606
7607 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7608 ;;
7609esac
7610fi
7611PERL=$ac_cv_path_PERL
7612if test -n "$PERL"; then
7613 { echo "$as_me:$LINENO: result: $PERL" >&5
7614echo "${ECHO_T}$PERL" >&6; }
7615else
7616 { echo "$as_me:$LINENO: result: no" >&5
7617echo "${ECHO_T}no" >&6; }
7618fi
7619
7620
7621if test "$PERL" != "none"; then
7622 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7623echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7624 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7625 { echo "$as_me:$LINENO: result: yes" >&5
7626echo "${ECHO_T}yes" >&6; }
7627 else
7628 PERL=none
7629 { echo "$as_me:$LINENO: result: not found" >&5
7630echo "${ECHO_T}not found" >&6; }
7631 fi
7632fi
7633
7634
7635if test x"$PERL" = xnone; then
7636 HAVE_PERL=0
7637
Reid Spencer59807fa2007-05-17 18:11:03 +00007638 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7639echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7640 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007641else
7642 HAVE_PERL=1
7643
7644fi
7645
7646# Find a good install program. We prefer a C program (faster),
7647# so one script is as good as another. But avoid the broken or
7648# incompatible versions:
7649# SysV /etc/install, /usr/sbin/install
7650# SunOS /usr/etc/install
7651# IRIX /sbin/install
7652# AIX /bin/install
7653# AmigaOS /C/install, which installs bootblocks on floppy discs
7654# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7655# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7656# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7657# OS/2's system install, which has a completely different semantic
7658# ./install, which can be erroneously created by make from ./install.sh.
7659{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7660echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7661if test -z "$INSTALL"; then
7662if test "${ac_cv_path_install+set}" = set; then
7663 echo $ECHO_N "(cached) $ECHO_C" >&6
7664else
7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666for as_dir in $PATH
7667do
7668 IFS=$as_save_IFS
7669 test -z "$as_dir" && as_dir=.
7670 # Account for people who put trailing slashes in PATH elements.
7671case $as_dir/ in
7672 ./ | .// | /cC/* | \
7673 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7674 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7675 /usr/ucb/* ) ;;
7676 *)
7677 # OSF1 and SCO ODT 3.0 have their own names for install.
7678 # Don't use installbsd from OSF since it installs stuff as root
7679 # by default.
7680 for ac_prog in ginstall scoinst install; do
7681 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007682 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 +00007683 if test $ac_prog = install &&
7684 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7685 # AIX install. It has an incompatible calling convention.
7686 :
7687 elif test $ac_prog = install &&
7688 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7689 # program-specific install script used by HP pwplus--don't use.
7690 :
7691 else
7692 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7693 break 3
7694 fi
7695 fi
7696 done
7697 done
7698 ;;
7699esac
7700done
7701IFS=$as_save_IFS
7702
7703
7704fi
7705 if test "${ac_cv_path_install+set}" = set; then
7706 INSTALL=$ac_cv_path_install
7707 else
7708 # As a last resort, use the slow shell script. Don't cache a
7709 # value for INSTALL within a source directory, because that will
7710 # break other packages using the cache if that directory is
7711 # removed, or if the value is a relative name.
7712 INSTALL=$ac_install_sh
7713 fi
7714fi
7715{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7716echo "${ECHO_T}$INSTALL" >&6; }
7717
7718# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7719# It thinks the first close brace ends the variable substitution.
7720test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7721
7722test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7723
7724test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7725
7726
7727# Extract the first word of "bzip2", so it can be a program name with args.
7728set dummy bzip2; ac_word=$2
7729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7731if test "${ac_cv_path_BZIP2+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733else
7734 case $BZIP2 in
7735 [\\/]* | ?:[\\/]*)
7736 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7737 ;;
7738 *)
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007745 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 +00007746 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750done
7751done
7752IFS=$as_save_IFS
7753
Reid Spencera773bd52006-08-04 18:18:08 +00007754 ;;
7755esac
7756fi
7757BZIP2=$ac_cv_path_BZIP2
7758if test -n "$BZIP2"; then
7759 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7760echo "${ECHO_T}$BZIP2" >&6; }
7761else
7762 { echo "$as_me:$LINENO: result: no" >&5
7763echo "${ECHO_T}no" >&6; }
7764fi
7765
7766
7767# Extract the first word of "doxygen", so it can be a program name with args.
7768set dummy doxygen; ac_word=$2
7769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7771if test "${ac_cv_path_DOXYGEN+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773else
7774 case $DOXYGEN in
7775 [\\/]* | ?:[\\/]*)
7776 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7777 ;;
7778 *)
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007785 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 +00007786 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790done
7791done
7792IFS=$as_save_IFS
7793
Reid Spencera773bd52006-08-04 18:18:08 +00007794 ;;
7795esac
7796fi
7797DOXYGEN=$ac_cv_path_DOXYGEN
7798if test -n "$DOXYGEN"; then
7799 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7800echo "${ECHO_T}$DOXYGEN" >&6; }
7801else
7802 { echo "$as_me:$LINENO: result: no" >&5
7803echo "${ECHO_T}no" >&6; }
7804fi
7805
7806
Reid Spencera773bd52006-08-04 18:18:08 +00007807# Extract the first word of "groff", so it can be a program name with args.
7808set dummy groff; ac_word=$2
7809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7811if test "${ac_cv_path_GROFF+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7813else
7814 case $GROFF in
7815 [\\/]* | ?:[\\/]*)
7816 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7817 ;;
7818 *)
7819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820for as_dir in $PATH
7821do
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007825 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 +00007826 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830done
7831done
7832IFS=$as_save_IFS
7833
Reid Spencera773bd52006-08-04 18:18:08 +00007834 ;;
7835esac
7836fi
7837GROFF=$ac_cv_path_GROFF
7838if test -n "$GROFF"; then
7839 { echo "$as_me:$LINENO: result: $GROFF" >&5
7840echo "${ECHO_T}$GROFF" >&6; }
7841else
7842 { echo "$as_me:$LINENO: result: no" >&5
7843echo "${ECHO_T}no" >&6; }
7844fi
7845
7846
7847# Extract the first word of "gzip", so it can be a program name with args.
7848set dummy gzip; ac_word=$2
7849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7851if test "${ac_cv_path_GZIP+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7853else
7854 case $GZIP in
7855 [\\/]* | ?:[\\/]*)
7856 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7857 ;;
7858 *)
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860for as_dir in $PATH
7861do
7862 IFS=$as_save_IFS
7863 test -z "$as_dir" && as_dir=.
7864 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007865 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 +00007866 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7868 break 2
7869 fi
7870done
7871done
7872IFS=$as_save_IFS
7873
Reid Spencera773bd52006-08-04 18:18:08 +00007874 ;;
7875esac
7876fi
7877GZIP=$ac_cv_path_GZIP
7878if test -n "$GZIP"; then
7879 { echo "$as_me:$LINENO: result: $GZIP" >&5
7880echo "${ECHO_T}$GZIP" >&6; }
7881else
7882 { echo "$as_me:$LINENO: result: no" >&5
7883echo "${ECHO_T}no" >&6; }
7884fi
7885
7886
7887# Extract the first word of "pod2html", so it can be a program name with args.
7888set dummy pod2html; ac_word=$2
7889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7891if test "${ac_cv_path_POD2HTML+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893else
7894 case $POD2HTML in
7895 [\\/]* | ?:[\\/]*)
7896 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7897 ;;
7898 *)
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900for as_dir in $PATH
7901do
7902 IFS=$as_save_IFS
7903 test -z "$as_dir" && as_dir=.
7904 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007905 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 +00007906 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7908 break 2
7909 fi
7910done
7911done
7912IFS=$as_save_IFS
7913
Reid Spencera773bd52006-08-04 18:18:08 +00007914 ;;
7915esac
7916fi
7917POD2HTML=$ac_cv_path_POD2HTML
7918if test -n "$POD2HTML"; then
7919 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7920echo "${ECHO_T}$POD2HTML" >&6; }
7921else
7922 { echo "$as_me:$LINENO: result: no" >&5
7923echo "${ECHO_T}no" >&6; }
7924fi
7925
7926
7927# Extract the first word of "pod2man", so it can be a program name with args.
7928set dummy pod2man; ac_word=$2
7929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7931if test "${ac_cv_path_POD2MAN+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7933else
7934 case $POD2MAN in
7935 [\\/]* | ?:[\\/]*)
7936 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7937 ;;
7938 *)
7939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940for as_dir in $PATH
7941do
7942 IFS=$as_save_IFS
7943 test -z "$as_dir" && as_dir=.
7944 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007945 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 +00007946 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7948 break 2
7949 fi
7950done
7951done
7952IFS=$as_save_IFS
7953
Reid Spencera773bd52006-08-04 18:18:08 +00007954 ;;
7955esac
7956fi
7957POD2MAN=$ac_cv_path_POD2MAN
7958if test -n "$POD2MAN"; then
7959 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7960echo "${ECHO_T}$POD2MAN" >&6; }
7961else
7962 { echo "$as_me:$LINENO: result: no" >&5
7963echo "${ECHO_T}no" >&6; }
7964fi
7965
7966
7967# Extract the first word of "runtest", so it can be a program name with args.
7968set dummy runtest; ac_word=$2
7969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7971if test "${ac_cv_path_RUNTEST+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973else
7974 case $RUNTEST in
7975 [\\/]* | ?:[\\/]*)
7976 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7977 ;;
7978 *)
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980for as_dir in $PATH
7981do
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007985 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 +00007986 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 break 2
7989 fi
7990done
7991done
7992IFS=$as_save_IFS
7993
Reid Spencera773bd52006-08-04 18:18:08 +00007994 ;;
7995esac
7996fi
7997RUNTEST=$ac_cv_path_RUNTEST
7998if test -n "$RUNTEST"; then
7999 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8000echo "${ECHO_T}$RUNTEST" >&6; }
8001else
8002 { echo "$as_me:$LINENO: result: no" >&5
8003echo "${ECHO_T}no" >&6; }
8004fi
8005
8006
8007
8008no_itcl=true
8009{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8010echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8011
8012# Check whether --with-tclinclude was given.
8013if test "${with_tclinclude+set}" = set; then
8014 withval=$with_tclinclude; with_tclinclude=${withval}
8015else
8016 with_tclinclude=''
8017fi
8018
8019if test "${ac_cv_path_tclsh+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021else
8022
8023if test x"${with_tclinclude}" != x ; then
8024 if test -f ${with_tclinclude}/tclsh ; then
8025 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8026 elif test -f ${with_tclinclude}/src/tclsh ; then
8027 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8028 else
8029 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8030echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8031 { (exit 1); exit 1; }; }
8032 fi
8033fi
8034
8035if test x"${ac_cv_path_tclsh}" = x ; then
8036 { echo "$as_me:$LINENO: result: none" >&5
8037echo "${ECHO_T}none" >&6; }
8038 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
8039do
8040 # Extract the first word of "$ac_prog", so it can be a program name with args.
8041set dummy $ac_prog; ac_word=$2
8042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8044if test "${ac_cv_path_TCLSH+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8046else
8047 case $TCLSH in
8048 [\\/]* | ?:[\\/]*)
8049 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8050 ;;
8051 *)
8052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053for as_dir in $PATH
8054do
8055 IFS=$as_save_IFS
8056 test -z "$as_dir" && as_dir=.
8057 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008058 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 +00008059 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8061 break 2
8062 fi
8063done
8064done
8065IFS=$as_save_IFS
8066
8067 ;;
8068esac
8069fi
8070TCLSH=$ac_cv_path_TCLSH
8071if test -n "$TCLSH"; then
8072 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8073echo "${ECHO_T}$TCLSH" >&6; }
8074else
8075 { echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6; }
8077fi
8078
8079
8080 test -n "$TCLSH" && break
8081done
8082
8083 if test x"${TCLSH}" = x ; then
8084 ac_cv_path_tclsh='';
8085 else
8086 ac_cv_path_tclsh="${TCLSH}";
8087 fi
8088else
8089 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8090echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8091 TCLSH="${ac_cv_path_tclsh}"
8092
8093fi
8094
8095fi
8096
8097# Extract the first word of "zip", so it can be a program name with args.
8098set dummy zip; ac_word=$2
8099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101if test "${ac_cv_path_ZIP+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103else
8104 case $ZIP in
8105 [\\/]* | ?:[\\/]*)
8106 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8107 ;;
8108 *)
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110for as_dir in $PATH
8111do
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008115 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 +00008116 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8119 fi
8120done
8121done
8122IFS=$as_save_IFS
8123
Reid Spencera773bd52006-08-04 18:18:08 +00008124 ;;
8125esac
8126fi
8127ZIP=$ac_cv_path_ZIP
8128if test -n "$ZIP"; then
8129 { echo "$as_me:$LINENO: result: $ZIP" >&5
8130echo "${ECHO_T}$ZIP" >&6; }
8131else
8132 { echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6; }
8134fi
8135
8136
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008137for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008138do
8139 # Extract the first word of "$ac_prog", so it can be a program name with args.
8140set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008141{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8143if test "${ac_cv_path_OCAMLC+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145else
8146 case $OCAMLC in
8147 [\\/]* | ?:[\\/]*)
8148 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8149 ;;
8150 *)
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152for as_dir in $PATH
8153do
8154 IFS=$as_save_IFS
8155 test -z "$as_dir" && as_dir=.
8156 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008157 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 +00008158 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 break 2
8161 fi
8162done
8163done
8164IFS=$as_save_IFS
8165
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008166 ;;
8167esac
8168fi
8169OCAMLC=$ac_cv_path_OCAMLC
8170if test -n "$OCAMLC"; then
8171 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8172echo "${ECHO_T}$OCAMLC" >&6; }
8173else
8174 { echo "$as_me:$LINENO: result: no" >&5
8175echo "${ECHO_T}no" >&6; }
8176fi
8177
8178
Gordon Henriksene7072162008-03-07 18:20:01 +00008179 test -n "$OCAMLC" && break
8180done
8181
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008182for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008183do
8184 # Extract the first word of "$ac_prog", so it can be a program name with args.
8185set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008186{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8188if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8189 echo $ECHO_N "(cached) $ECHO_C" >&6
8190else
8191 case $OCAMLOPT in
8192 [\\/]* | ?:[\\/]*)
8193 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8194 ;;
8195 *)
8196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197for as_dir in $PATH
8198do
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
8201 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008202 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 +00008203 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 break 2
8206 fi
8207done
8208done
8209IFS=$as_save_IFS
8210
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008211 ;;
8212esac
8213fi
8214OCAMLOPT=$ac_cv_path_OCAMLOPT
8215if test -n "$OCAMLOPT"; then
8216 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8217echo "${ECHO_T}$OCAMLOPT" >&6; }
8218else
8219 { echo "$as_me:$LINENO: result: no" >&5
8220echo "${ECHO_T}no" >&6; }
8221fi
8222
8223
Gordon Henriksene7072162008-03-07 18:20:01 +00008224 test -n "$OCAMLOPT" && break
8225done
8226
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008227for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008228do
8229 # Extract the first word of "$ac_prog", so it can be a program name with args.
8230set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8233if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235else
8236 case $OCAMLDEP in
8237 [\\/]* | ?:[\\/]*)
8238 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8239 ;;
8240 *)
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242for as_dir in $PATH
8243do
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008247 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 +00008248 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 break 2
8251 fi
8252done
8253done
8254IFS=$as_save_IFS
8255
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008256 ;;
8257esac
8258fi
8259OCAMLDEP=$ac_cv_path_OCAMLDEP
8260if test -n "$OCAMLDEP"; then
8261 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8262echo "${ECHO_T}$OCAMLDEP" >&6; }
8263else
8264 { echo "$as_me:$LINENO: result: no" >&5
8265echo "${ECHO_T}no" >&6; }
8266fi
8267
8268
Gordon Henriksene7072162008-03-07 18:20:01 +00008269 test -n "$OCAMLDEP" && break
8270done
8271
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008272for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008273do
8274 # Extract the first word of "$ac_prog", so it can be a program name with args.
8275set dummy $ac_prog; ac_word=$2
8276{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8278if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8280else
8281 case $OCAMLDOC in
8282 [\\/]* | ?:[\\/]*)
8283 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8284 ;;
8285 *)
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287for as_dir in $PATH
8288do
8289 IFS=$as_save_IFS
8290 test -z "$as_dir" && as_dir=.
8291 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008292 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 +00008293 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 break 2
8296 fi
8297done
8298done
8299IFS=$as_save_IFS
8300
8301 ;;
8302esac
8303fi
8304OCAMLDOC=$ac_cv_path_OCAMLDOC
8305if test -n "$OCAMLDOC"; then
8306 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8307echo "${ECHO_T}$OCAMLDOC" >&6; }
8308else
8309 { echo "$as_me:$LINENO: result: no" >&5
8310echo "${ECHO_T}no" >&6; }
8311fi
8312
8313
8314 test -n "$OCAMLDOC" && break
8315done
8316
Torok Edwincc499a42008-10-22 09:56:27 +00008317for ac_prog in gas as
8318do
8319 # Extract the first word of "$ac_prog", so it can be a program name with args.
8320set dummy $ac_prog; ac_word=$2
8321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8323if test "${ac_cv_path_GAS+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325else
8326 case $GAS in
8327 [\\/]* | ?:[\\/]*)
8328 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8329 ;;
8330 *)
8331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8332for as_dir in $PATH
8333do
8334 IFS=$as_save_IFS
8335 test -z "$as_dir" && as_dir=.
8336 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008337 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 +00008338 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8340 break 2
8341 fi
8342done
8343done
8344IFS=$as_save_IFS
8345
8346 ;;
8347esac
8348fi
8349GAS=$ac_cv_path_GAS
8350if test -n "$GAS"; then
8351 { echo "$as_me:$LINENO: result: $GAS" >&5
8352echo "${ECHO_T}$GAS" >&6; }
8353else
8354 { echo "$as_me:$LINENO: result: no" >&5
8355echo "${ECHO_T}no" >&6; }
8356fi
8357
8358
8359 test -n "$GAS" && break
8360done
8361
Reid Spencera773bd52006-08-04 18:18:08 +00008362
8363{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8364echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8365if test "${llvm_cv_link_use_r+set}" = set; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8367else
8368 ac_ext=c
8369ac_cpp='$CPP $CPPFLAGS'
8370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8372ac_compiler_gnu=$ac_cv_c_compiler_gnu
8373
8374 oldcflags="$CFLAGS"
8375 CFLAGS="$CFLAGS -Wl,-R."
8376 cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h. */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h. */
8382
8383int
8384main ()
8385{
8386int main() { return 0; }
8387 ;
8388 return 0;
8389}
8390_ACEOF
8391rm -f conftest.$ac_objext conftest$ac_exeext
8392if { (ac_try="$ac_link"
8393case "(($ac_try" in
8394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8395 *) ac_try_echo=$ac_try;;
8396esac
8397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_link") 2>conftest.er1
8399 ac_status=$?
8400 grep -v '^ *+' conftest.er1 >conftest.err
8401 rm -f conftest.er1
8402 cat conftest.err >&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008404 (exit $ac_status); } &&
8405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8406 { (case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409esac
8410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_try") 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try='test -s conftest$ac_exeext'
8416 { (case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8419esac
8420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_try") 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008425 llvm_cv_link_use_r=yes
8426else
8427 echo "$as_me: failed program was:" >&5
8428sed 's/^/| /' conftest.$ac_ext >&5
8429
8430 llvm_cv_link_use_r=no
8431fi
8432
Bill Wendlingebcceee2009-04-18 11:20:33 +00008433rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008434 conftest$ac_exeext conftest.$ac_ext
8435 CFLAGS="$oldcflags"
8436 ac_ext=c
8437ac_cpp='$CPP $CPPFLAGS'
8438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8440ac_compiler_gnu=$ac_cv_c_compiler_gnu
8441
8442
8443fi
8444{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8445echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8446if test "$llvm_cv_link_use_r" = yes ; then
8447
8448cat >>confdefs.h <<\_ACEOF
8449#define HAVE_LINK_R 1
8450_ACEOF
8451
8452 fi
8453
8454
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008455{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8456echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8457if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8459else
8460 ac_ext=c
8461ac_cpp='$CPP $CPPFLAGS'
8462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8464ac_compiler_gnu=$ac_cv_c_compiler_gnu
8465
8466 oldcflags="$CFLAGS"
8467 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8468 cat >conftest.$ac_ext <<_ACEOF
8469/* confdefs.h. */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h. */
8474
8475int
8476main ()
8477{
8478int main() { return 0; }
8479 ;
8480 return 0;
8481}
8482_ACEOF
8483rm -f conftest.$ac_objext conftest$ac_exeext
8484if { (ac_try="$ac_link"
8485case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8488esac
8489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_link") 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008496 (exit $ac_status); } &&
8497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8498 { (case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8501esac
8502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8503 (eval "$ac_try") 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511esac
8512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_try") 2>&5
8514 ac_status=$?
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008517 llvm_cv_link_use_export_dynamic=yes
8518else
8519 echo "$as_me: failed program was:" >&5
8520sed 's/^/| /' conftest.$ac_ext >&5
8521
8522 llvm_cv_link_use_export_dynamic=no
8523fi
8524
Bill Wendlingebcceee2009-04-18 11:20:33 +00008525rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008526 conftest$ac_exeext conftest.$ac_ext
8527 CFLAGS="$oldcflags"
8528 ac_ext=c
8529ac_cpp='$CPP $CPPFLAGS'
8530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8532ac_compiler_gnu=$ac_cv_c_compiler_gnu
8533
8534
8535fi
8536{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8537echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8538if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8539
8540cat >>confdefs.h <<\_ACEOF
8541#define HAVE_LINK_EXPORT_DYNAMIC 1
8542_ACEOF
8543
8544 fi
8545
8546
Reid Spencera773bd52006-08-04 18:18:08 +00008547
8548
8549{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8550echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8551if test "${ac_cv_c_const+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8553else
8554 cat >conftest.$ac_ext <<_ACEOF
8555/* confdefs.h. */
8556_ACEOF
8557cat confdefs.h >>conftest.$ac_ext
8558cat >>conftest.$ac_ext <<_ACEOF
8559/* end confdefs.h. */
8560
8561int
8562main ()
8563{
8564/* FIXME: Include the comments suggested by Paul. */
8565#ifndef __cplusplus
8566 /* Ultrix mips cc rejects this. */
8567 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008568 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008569 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008570 char const *const *ccp;
8571 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008572 /* NEC SVR4.0.2 mips cc rejects this. */
8573 struct point {int x, y;};
8574 static struct point const zero = {0,0};
8575 /* AIX XL C 1.02.0.0 rejects this.
8576 It does not let you subtract one const X* pointer from another in
8577 an arm of an if-expression whose if-part is not a constant
8578 expression */
8579 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008580 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008581 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008582 ++ccp;
8583 p = (char**) ccp;
8584 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008585 { /* SCO 3.2v4 cc rejects this. */
8586 char *t;
8587 char const *s = 0 ? (char *) 0 : (char const *) 0;
8588
8589 *t++ = 0;
8590 if (s) return 0;
8591 }
8592 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8593 int x[] = {25, 17};
8594 const int *foo = &x[0];
8595 ++foo;
8596 }
8597 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8598 typedef const int *iptr;
8599 iptr p = 0;
8600 ++p;
8601 }
8602 { /* AIX XL C 1.02.0.0 rejects this saying
8603 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8604 struct s { int j; const int *ap[3]; };
8605 struct s *b; b->j = 5;
8606 }
8607 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8608 const int foo = 10;
8609 if (!foo) return 0;
8610 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008611 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008612#endif
8613
8614 ;
8615 return 0;
8616}
8617_ACEOF
8618rm -f conftest.$ac_objext
8619if { (ac_try="$ac_compile"
8620case "(($ac_try" in
8621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622 *) ac_try_echo=$ac_try;;
8623esac
8624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625 (eval "$ac_compile") 2>conftest.er1
8626 ac_status=$?
8627 grep -v '^ *+' conftest.er1 >conftest.err
8628 rm -f conftest.er1
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008631 (exit $ac_status); } &&
8632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8633 { (case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636esac
8637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_try") 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; } &&
8642 { ac_try='test -s conftest.$ac_objext'
8643 { (case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646esac
8647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_try") 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008652 ac_cv_c_const=yes
8653else
8654 echo "$as_me: failed program was:" >&5
8655sed 's/^/| /' conftest.$ac_ext >&5
8656
8657 ac_cv_c_const=no
8658fi
8659
8660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661fi
8662{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8663echo "${ECHO_T}$ac_cv_c_const" >&6; }
8664if test $ac_cv_c_const = no; then
8665
8666cat >>confdefs.h <<\_ACEOF
8667#define const
8668_ACEOF
8669
8670fi
8671
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008672
8673
8674
8675
8676
8677ac_header_dirent=no
8678for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8679 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008680{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8681echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684else
8685 cat >conftest.$ac_ext <<_ACEOF
8686/* confdefs.h. */
8687_ACEOF
8688cat confdefs.h >>conftest.$ac_ext
8689cat >>conftest.$ac_ext <<_ACEOF
8690/* end confdefs.h. */
8691#include <sys/types.h>
8692#include <$ac_hdr>
8693
8694int
8695main ()
8696{
8697if ((DIR *) 0)
8698return 0;
8699 ;
8700 return 0;
8701}
8702_ACEOF
8703rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008704if { (ac_try="$ac_compile"
8705case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8708esac
8709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008716 (exit $ac_status); } &&
8717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8718 { (case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8721esac
8722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_try") 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; } &&
8727 { ac_try='test -s conftest.$ac_objext'
8728 { (case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731esac
8732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_try") 2>&5
8734 ac_status=$?
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008737 eval "$as_ac_Header=yes"
8738else
8739 echo "$as_me: failed program was:" >&5
8740sed 's/^/| /' conftest.$ac_ext >&5
8741
Reid Spencera773bd52006-08-04 18:18:08 +00008742 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008743fi
Reid Spencera773bd52006-08-04 18:18:08 +00008744
8745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008746fi
Reid Spencera773bd52006-08-04 18:18:08 +00008747ac_res=`eval echo '${'$as_ac_Header'}'`
8748 { echo "$as_me:$LINENO: result: $ac_res" >&5
8749echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008750if test `eval echo '${'$as_ac_Header'}'` = yes; then
8751 cat >>confdefs.h <<_ACEOF
8752#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8753_ACEOF
8754
8755ac_header_dirent=$ac_hdr; break
8756fi
8757
8758done
8759# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8760if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008761 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8762echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008763if test "${ac_cv_search_opendir+set}" = set; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8765else
8766 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008767cat >conftest.$ac_ext <<_ACEOF
8768/* confdefs.h. */
8769_ACEOF
8770cat confdefs.h >>conftest.$ac_ext
8771cat >>conftest.$ac_ext <<_ACEOF
8772/* end confdefs.h. */
8773
Reid Spencera773bd52006-08-04 18:18:08 +00008774/* Override any GCC internal prototype to avoid an error.
8775 Use char because int might match the return type of a GCC
8776 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008777#ifdef __cplusplus
8778extern "C"
8779#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008780char opendir ();
8781int
8782main ()
8783{
Reid Spencera773bd52006-08-04 18:18:08 +00008784return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008785 ;
8786 return 0;
8787}
8788_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008789for ac_lib in '' dir; do
8790 if test -z "$ac_lib"; then
8791 ac_res="none required"
8792 else
8793 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008794 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008795 fi
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797if { (ac_try="$ac_link"
8798case "(($ac_try" in
8799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800 *) ac_try_echo=$ac_try;;
8801esac
8802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8803 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008804 ac_status=$?
8805 grep -v '^ *+' conftest.er1 >conftest.err
8806 rm -f conftest.er1
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008809 (exit $ac_status); } &&
8810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8811 { (case "(($ac_try" in
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8814esac
8815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_try") 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; } &&
8820 { ac_try='test -s conftest$ac_exeext'
8821 { (case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8824esac
8825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826 (eval "$ac_try") 2>&5
8827 ac_status=$?
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008830 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008831else
8832 echo "$as_me: failed program was:" >&5
8833sed 's/^/| /' conftest.$ac_ext >&5
8834
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008835
8836fi
8837
Bill Wendlingebcceee2009-04-18 11:20:33 +00008838rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008839 conftest$ac_exeext
8840 if test "${ac_cv_search_opendir+set}" = set; then
8841 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008842fi
John Criswell7a73b802003-06-30 21:59:07 +00008843done
Reid Spencera773bd52006-08-04 18:18:08 +00008844if test "${ac_cv_search_opendir+set}" = set; then
8845 :
8846else
8847 ac_cv_search_opendir=no
8848fi
8849rm conftest.$ac_ext
8850LIBS=$ac_func_search_save_LIBS
8851fi
8852{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8853echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8854ac_res=$ac_cv_search_opendir
8855if test "$ac_res" != no; then
8856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008857
Reid Spencera773bd52006-08-04 18:18:08 +00008858fi
8859
8860else
8861 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8862echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8863if test "${ac_cv_search_opendir+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8865else
8866 ac_func_search_save_LIBS=$LIBS
8867cat >conftest.$ac_ext <<_ACEOF
8868/* confdefs.h. */
8869_ACEOF
8870cat confdefs.h >>conftest.$ac_ext
8871cat >>conftest.$ac_ext <<_ACEOF
8872/* end confdefs.h. */
8873
8874/* Override any GCC internal prototype to avoid an error.
8875 Use char because int might match the return type of a GCC
8876 builtin and then its argument prototype would still apply. */
8877#ifdef __cplusplus
8878extern "C"
8879#endif
8880char opendir ();
8881int
8882main ()
8883{
8884return opendir ();
8885 ;
8886 return 0;
8887}
8888_ACEOF
8889for ac_lib in '' x; do
8890 if test -z "$ac_lib"; then
8891 ac_res="none required"
8892 else
8893 ac_res=-l$ac_lib
8894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8895 fi
8896 rm -f conftest.$ac_objext conftest$ac_exeext
8897if { (ac_try="$ac_link"
8898case "(($ac_try" in
8899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8900 *) ac_try_echo=$ac_try;;
8901esac
8902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8903 (eval "$ac_link") 2>conftest.er1
8904 ac_status=$?
8905 grep -v '^ *+' conftest.er1 >conftest.err
8906 rm -f conftest.er1
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008909 (exit $ac_status); } &&
8910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8911 { (case "(($ac_try" in
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8914esac
8915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8916 (eval "$ac_try") 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; } &&
8920 { ac_try='test -s conftest$ac_exeext'
8921 { (case "(($ac_try" in
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8924esac
8925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926 (eval "$ac_try") 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008930 ac_cv_search_opendir=$ac_res
8931else
8932 echo "$as_me: failed program was:" >&5
8933sed 's/^/| /' conftest.$ac_ext >&5
8934
8935
8936fi
8937
Bill Wendlingebcceee2009-04-18 11:20:33 +00008938rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008939 conftest$ac_exeext
8940 if test "${ac_cv_search_opendir+set}" = set; then
8941 break
8942fi
8943done
8944if test "${ac_cv_search_opendir+set}" = set; then
8945 :
8946else
8947 ac_cv_search_opendir=no
8948fi
8949rm conftest.$ac_ext
8950LIBS=$ac_func_search_save_LIBS
8951fi
8952{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8953echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8954ac_res=$ac_cv_search_opendir
8955if test "$ac_res" != no; then
8956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8957
8958fi
8959
8960fi
John Criswell7a73b802003-06-30 21:59:07 +00008961
8962
8963for ac_header in dlfcn.h
8964do
8965as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8969if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008970 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008971fi
Reid Spencera773bd52006-08-04 18:18:08 +00008972ac_res=`eval echo '${'$as_ac_Header'}'`
8973 { echo "$as_me:$LINENO: result: $ac_res" >&5
8974echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008975else
Brian Gaeke0a621332004-09-08 20:38:05 +00008976 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008977{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8978echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008979cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008980/* confdefs.h. */
8981_ACEOF
8982cat confdefs.h >>conftest.$ac_ext
8983cat >>conftest.$ac_ext <<_ACEOF
8984/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008985$ac_includes_default
8986#include <$ac_header>
8987_ACEOF
8988rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008989if { (ac_try="$ac_compile"
8990case "(($ac_try" in
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8993esac
8994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008996 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008997 grep -v '^ *+' conftest.er1 >conftest.err
8998 rm -f conftest.er1
8999 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00009000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9003 { (case "(($ac_try" in
9004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9005 *) ac_try_echo=$ac_try;;
9006esac
9007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9008 (eval "$ac_try") 2>&5
9009 ac_status=$?
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest.$ac_objext'
9013 { (case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9016esac
9017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_try") 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009022 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00009023else
9024 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009025sed 's/^/| /' conftest.$ac_ext >&5
9026
Reid Spencera773bd52006-08-04 18:18:08 +00009027 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00009028fi
Reid Spencera773bd52006-08-04 18:18:08 +00009029
9030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9032echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009033
9034# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00009035{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009037cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009038/* confdefs.h. */
9039_ACEOF
9040cat confdefs.h >>conftest.$ac_ext
9041cat >>conftest.$ac_ext <<_ACEOF
9042/* end confdefs.h. */
9043#include <$ac_header>
9044_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00009045if { (ac_try="$ac_cpp conftest.$ac_ext"
9046case "(($ac_try" in
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9049esac
9050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00009052 ac_status=$?
9053 grep -v '^ *+' conftest.er1 >conftest.err
9054 rm -f conftest.er1
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009057 (exit $ac_status); } >/dev/null; then
9058 if test -s conftest.err; then
9059 ac_cpp_err=$ac_c_preproc_warn_flag
9060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9061 else
9062 ac_cpp_err=
9063 fi
9064else
9065 ac_cpp_err=yes
9066fi
9067if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009068 ac_header_preproc=yes
9069else
9070 echo "$as_me: failed program was:" >&5
9071sed 's/^/| /' conftest.$ac_ext >&5
9072
9073 ac_header_preproc=no
9074fi
Reid Spencera773bd52006-08-04 18:18:08 +00009075
Brian Gaeke0a621332004-09-08 20:38:05 +00009076rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00009077{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9078echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009079
9080# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9082 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9084echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9086echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9087 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009088 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009089 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9091echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9093echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9095echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9097echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9099echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9101echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009102 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009103## ----------------------------------- ##
9104## Report this to llvmbugs@cs.uiuc.edu ##
9105## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009106_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009107 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009108 ;;
9109esac
Reid Spencera773bd52006-08-04 18:18:08 +00009110{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9112if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009113 echo $ECHO_N "(cached) $ECHO_C" >&6
9114else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009115 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009116fi
Reid Spencera773bd52006-08-04 18:18:08 +00009117ac_res=`eval echo '${'$as_ac_Header'}'`
9118 { echo "$as_me:$LINENO: result: $ac_res" >&5
9119echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009120
9121fi
John Criswell7a73b802003-06-30 21:59:07 +00009122if test `eval echo '${'$as_ac_Header'}'` = yes; then
9123 cat >>confdefs.h <<_ACEOF
9124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9125_ACEOF
9126
9127fi
9128
9129done
9130
Reid Spencera773bd52006-08-04 18:18:08 +00009131# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009132if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009133 enableval=$enable_ltdl_install;
9134fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009135
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009136
Bill Wendlingebcceee2009-04-18 11:20:33 +00009137
9138
9139if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009140 INSTALL_LTDL_TRUE=
9141 INSTALL_LTDL_FALSE='#'
9142else
9143 INSTALL_LTDL_TRUE='#'
9144 INSTALL_LTDL_FALSE=
9145fi
9146
Bill Wendlingebcceee2009-04-18 11:20:33 +00009147
9148
9149if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009150 CONVENIENCE_LTDL_TRUE=
9151 CONVENIENCE_LTDL_FALSE='#'
9152else
9153 CONVENIENCE_LTDL_TRUE='#'
9154 CONVENIENCE_LTDL_FALSE=
9155fi
9156
9157
Reid Spencera773bd52006-08-04 18:18:08 +00009158{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9159echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009160library_names_spec=
9161libname_spec='lib$name'
9162soname_spec=
9163shrext_cmds=".so"
9164postinstall_cmds=
9165postuninstall_cmds=
9166finish_cmds=
9167finish_eval=
9168shlibpath_var=
9169shlibpath_overrides_runpath=unknown
9170version_type=none
9171dynamic_linker="$host_os ld.so"
9172sys_lib_dlsearch_path_spec="/lib /usr/lib"
9173if test "$GCC" = yes; then
9174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9175 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9176 # if the path contains ";" then we assume it to be the separator
9177 # otherwise default to the standard path separator (i.e. ":") - it is
9178 # assumed that no part of a normal pathname contains ";" but that should
9179 # okay in the real world where ";" in dirpaths is itself problematic.
9180 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9181 else
9182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9183 fi
9184else
9185 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9186fi
9187need_lib_prefix=unknown
9188hardcode_into_libs=no
9189
9190# when you set need_version to no, make sure it does not cause -set_version
9191# flags to be left without arguments
9192need_version=unknown
9193
9194case $host_os in
9195aix3*)
9196 version_type=linux
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9198 shlibpath_var=LIBPATH
9199
9200 # AIX 3 has no versioning support, so we append a major version to the name.
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 ;;
9203
9204aix4* | aix5*)
9205 version_type=linux
9206 need_lib_prefix=no
9207 need_version=no
9208 hardcode_into_libs=yes
9209 if test "$host_cpu" = ia64; then
9210 # AIX 5 supports IA64
9211 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9212 shlibpath_var=LD_LIBRARY_PATH
9213 else
9214 # With GCC up to 2.95.x, collect2 would create an import file
9215 # for dependence libraries. The import file would start with
9216 # the line `#! .'. This would cause the generated library to
9217 # depend on `.', always an invalid library. This was fixed in
9218 # development snapshots of GCC prior to 3.0.
9219 case $host_os in
9220 aix4 | aix4.[01] | aix4.[01].*)
9221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9222 echo ' yes '
9223 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9224 :
9225 else
9226 can_build_shared=no
9227 fi
9228 ;;
9229 esac
9230 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9231 # soname into executable. Probably we can add versioning support to
9232 # collect2, so additional links can be useful in future.
9233 if test "$aix_use_runtimelinking" = yes; then
9234 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9235 # instead of lib<name>.a to let people know that these are not
9236 # typical AIX shared libraries.
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9238 else
9239 # We preserve .a as extension for shared libraries through AIX4.2
9240 # and later when we are not doing run time linking.
9241 library_names_spec='${libname}${release}.a $libname.a'
9242 soname_spec='${libname}${release}${shared_ext}$major'
9243 fi
9244 shlibpath_var=LIBPATH
9245 fi
9246 ;;
9247
9248amigaos*)
9249 library_names_spec='$libname.ixlibrary $libname.a'
9250 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9251 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'
9252 ;;
9253
9254beos*)
9255 library_names_spec='${libname}${shared_ext}'
9256 dynamic_linker="$host_os ld.so"
9257 shlibpath_var=LIBRARY_PATH
9258 ;;
9259
9260bsdi[45]*)
9261 version_type=linux
9262 need_version=no
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9264 soname_spec='${libname}${release}${shared_ext}$major'
9265 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9266 shlibpath_var=LD_LIBRARY_PATH
9267 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9268 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9269 # the default ld.so.conf also contains /usr/contrib/lib and
9270 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9271 # libtool to hard-code these into programs
9272 ;;
9273
9274cygwin* | mingw* | pw32*)
9275 version_type=windows
9276 shrext_cmds=".dll"
9277 need_version=no
9278 need_lib_prefix=no
9279
9280 case $GCC,$host_os in
9281 yes,cygwin* | yes,mingw* | yes,pw32*)
9282 library_names_spec='$libname.dll.a'
9283 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9284 postinstall_cmds='base_file=`basename \${file}`~
9285 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9286 dldir=$destdir/`dirname \$dlpath`~
9287 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009288 $install_prog $dir/$dlname \$dldir/$dlname~
9289 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009290 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9291 dlpath=$dir/\$dldll~
9292 $rm \$dlpath'
9293 shlibpath_overrides_runpath=yes
9294
9295 case $host_os in
9296 cygwin*)
9297 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9298 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9299 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9300 ;;
9301 mingw*)
9302 # MinGW DLLs use traditional 'lib' prefix
9303 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9304 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9305 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9306 # It is most probably a Windows format PATH printed by
9307 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9308 # path with ; separators, and with drive letters. We can handle the
9309 # drive letters (cygwin fileutils understands them), so leave them,
9310 # especially as we might pass files found there to a mingw objdump,
9311 # which wouldn't understand a cygwinified path. Ahh.
9312 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9313 else
9314 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9315 fi
9316 ;;
9317 pw32*)
9318 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009319 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 +00009320 ;;
9321 esac
9322 ;;
9323
9324 *)
9325 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9326 ;;
9327 esac
9328 dynamic_linker='Win32 ld.exe'
9329 # FIXME: first we should search . and the directory the executable is in
9330 shlibpath_var=PATH
9331 ;;
9332
9333darwin* | rhapsody*)
9334 dynamic_linker="$host_os dyld"
9335 version_type=darwin
9336 need_lib_prefix=no
9337 need_version=no
9338 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9339 soname_spec='${libname}${release}${major}$shared_ext'
9340 shlibpath_overrides_runpath=yes
9341 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009342 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009343 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9344 if test "$GCC" = yes; then
9345 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"`
9346 else
9347 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9348 fi
9349 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9350 ;;
9351
9352dgux*)
9353 version_type=linux
9354 need_lib_prefix=no
9355 need_version=no
9356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9357 soname_spec='${libname}${release}${shared_ext}$major'
9358 shlibpath_var=LD_LIBRARY_PATH
9359 ;;
9360
9361freebsd1*)
9362 dynamic_linker=no
9363 ;;
9364
9365kfreebsd*-gnu)
9366 version_type=linux
9367 need_lib_prefix=no
9368 need_version=no
9369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9370 soname_spec='${libname}${release}${shared_ext}$major'
9371 shlibpath_var=LD_LIBRARY_PATH
9372 shlibpath_overrides_runpath=no
9373 hardcode_into_libs=yes
9374 dynamic_linker='GNU ld.so'
9375 ;;
9376
Reid Spencera773bd52006-08-04 18:18:08 +00009377freebsd* | dragonfly*)
9378 # DragonFly does not have aout. When/if they implement a new
9379 # versioning mechanism, adjust this.
9380 if test -x /usr/bin/objformat; then
9381 objformat=`/usr/bin/objformat`
9382 else
9383 case $host_os in
9384 freebsd[123]*) objformat=aout ;;
9385 *) objformat=elf ;;
9386 esac
9387 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009388 version_type=freebsd-$objformat
9389 case $version_type in
9390 freebsd-elf*)
9391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9392 need_version=no
9393 need_lib_prefix=no
9394 ;;
9395 freebsd-*)
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9397 need_version=yes
9398 ;;
9399 esac
9400 shlibpath_var=LD_LIBRARY_PATH
9401 case $host_os in
9402 freebsd2*)
9403 shlibpath_overrides_runpath=yes
9404 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009405 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009406 shlibpath_overrides_runpath=yes
9407 hardcode_into_libs=yes
9408 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009409 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9410 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009411 shlibpath_overrides_runpath=no
9412 hardcode_into_libs=yes
9413 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009414 freebsd*) # from 4.6 on
9415 shlibpath_overrides_runpath=yes
9416 hardcode_into_libs=yes
9417 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009418 esac
9419 ;;
9420
9421gnu*)
9422 version_type=linux
9423 need_lib_prefix=no
9424 need_version=no
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 hardcode_into_libs=yes
9429 ;;
9430
9431hpux9* | hpux10* | hpux11*)
9432 # Give a soname corresponding to the major version so that dld.sl refuses to
9433 # link against other versions.
9434 version_type=sunos
9435 need_lib_prefix=no
9436 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009437 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009438 ia64*)
9439 shrext_cmds='.so'
9440 hardcode_into_libs=yes
9441 dynamic_linker="$host_os dld.so"
9442 shlibpath_var=LD_LIBRARY_PATH
9443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9445 soname_spec='${libname}${release}${shared_ext}$major'
9446 if test "X$HPUX_IA64_MODE" = X32; then
9447 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9448 else
9449 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9450 fi
9451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9452 ;;
9453 hppa*64*)
9454 shrext_cmds='.sl'
9455 hardcode_into_libs=yes
9456 dynamic_linker="$host_os dld.sl"
9457 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460 soname_spec='${libname}${release}${shared_ext}$major'
9461 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9463 ;;
9464 *)
9465 shrext_cmds='.sl'
9466 dynamic_linker="$host_os dld.sl"
9467 shlibpath_var=SHLIB_PATH
9468 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470 soname_spec='${libname}${release}${shared_ext}$major'
9471 ;;
9472 esac
9473 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9474 postinstall_cmds='chmod 555 $lib'
9475 ;;
9476
Reid Spencera773bd52006-08-04 18:18:08 +00009477interix3*)
9478 version_type=linux
9479 need_lib_prefix=no
9480 need_version=no
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9482 soname_spec='${libname}${release}${shared_ext}$major'
9483 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 shlibpath_overrides_runpath=no
9486 hardcode_into_libs=yes
9487 ;;
9488
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009489irix5* | irix6* | nonstopux*)
9490 case $host_os in
9491 nonstopux*) version_type=nonstopux ;;
9492 *)
9493 if test "$lt_cv_prog_gnu_ld" = yes; then
9494 version_type=linux
9495 else
9496 version_type=irix
9497 fi ;;
9498 esac
9499 need_lib_prefix=no
9500 need_version=no
9501 soname_spec='${libname}${release}${shared_ext}$major'
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9503 case $host_os in
9504 irix5* | nonstopux*)
9505 libsuff= shlibsuff=
9506 ;;
9507 *)
9508 case $LD in # libtool.m4 will add one of these switches to LD
9509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9510 libsuff= shlibsuff= libmagic=32-bit;;
9511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9512 libsuff=32 shlibsuff=N32 libmagic=N32;;
9513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9514 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9515 *) libsuff= shlibsuff= libmagic=never-match;;
9516 esac
9517 ;;
9518 esac
9519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9520 shlibpath_overrides_runpath=no
9521 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9522 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9523 hardcode_into_libs=yes
9524 ;;
9525
9526# No shared lib support for Linux oldld, aout, or coff.
9527linux*oldld* | linux*aout* | linux*coff*)
9528 dynamic_linker=no
9529 ;;
9530
9531# This must be Linux ELF.
9532linux*)
9533 version_type=linux
9534 need_lib_prefix=no
9535 need_version=no
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537 soname_spec='${libname}${release}${shared_ext}$major'
9538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9539 shlibpath_var=LD_LIBRARY_PATH
9540 shlibpath_overrides_runpath=no
9541 # This implies no fast_install, which is unacceptable.
9542 # Some rework will be needed to allow for fast_install
9543 # before this can be enabled.
9544 hardcode_into_libs=yes
9545
9546 # Append ld.so.conf contents to the search path
9547 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009548 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 +00009549 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9550 fi
9551
9552 # We used to test for /lib/ld.so.1 and disable shared libraries on
9553 # powerpc, because MkLinux only supported shared libraries with the
9554 # GNU dynamic linker. Since this was broken with cross compilers,
9555 # most powerpc-linux boxes support dynamic linking these days and
9556 # people can always --disable-shared, the test was removed, and we
9557 # assume the GNU/Linux dynamic linker is in use.
9558 dynamic_linker='GNU/Linux ld.so'
9559 ;;
9560
9561knetbsd*-gnu)
9562 version_type=linux
9563 need_lib_prefix=no
9564 need_version=no
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 shlibpath_var=LD_LIBRARY_PATH
9568 shlibpath_overrides_runpath=no
9569 hardcode_into_libs=yes
9570 dynamic_linker='GNU ld.so'
9571 ;;
9572
9573netbsd*)
9574 version_type=sunos
9575 need_lib_prefix=no
9576 need_version=no
9577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9580 dynamic_linker='NetBSD (a.out) ld.so'
9581 else
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 dynamic_linker='NetBSD ld.elf_so'
9585 fi
9586 shlibpath_var=LD_LIBRARY_PATH
9587 shlibpath_overrides_runpath=yes
9588 hardcode_into_libs=yes
9589 ;;
9590
9591newsos6)
9592 version_type=linux
9593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594 shlibpath_var=LD_LIBRARY_PATH
9595 shlibpath_overrides_runpath=yes
9596 ;;
9597
9598nto-qnx*)
9599 version_type=linux
9600 need_lib_prefix=no
9601 need_version=no
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 shlibpath_var=LD_LIBRARY_PATH
9605 shlibpath_overrides_runpath=yes
9606 ;;
9607
9608openbsd*)
9609 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009610 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009612 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9613 case $host_os in
9614 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9615 *) need_version=no ;;
9616 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9619 shlibpath_var=LD_LIBRARY_PATH
9620 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9621 case $host_os in
9622 openbsd2.[89] | openbsd2.[89].*)
9623 shlibpath_overrides_runpath=no
9624 ;;
9625 *)
9626 shlibpath_overrides_runpath=yes
9627 ;;
9628 esac
9629 else
9630 shlibpath_overrides_runpath=yes
9631 fi
9632 ;;
9633
9634os2*)
9635 libname_spec='$name'
9636 shrext_cmds=".dll"
9637 need_lib_prefix=no
9638 library_names_spec='$libname${shared_ext} $libname.a'
9639 dynamic_linker='OS/2 ld.exe'
9640 shlibpath_var=LIBPATH
9641 ;;
9642
9643osf3* | osf4* | osf5*)
9644 version_type=osf
9645 need_lib_prefix=no
9646 need_version=no
9647 soname_spec='${libname}${release}${shared_ext}$major'
9648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9649 shlibpath_var=LD_LIBRARY_PATH
9650 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9651 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9652 ;;
9653
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009654solaris*)
9655 version_type=linux
9656 need_lib_prefix=no
9657 need_version=no
9658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659 soname_spec='${libname}${release}${shared_ext}$major'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 shlibpath_overrides_runpath=yes
9662 hardcode_into_libs=yes
9663 # ldd complains unless libraries are executable
9664 postinstall_cmds='chmod +x $lib'
9665 ;;
9666
9667sunos4*)
9668 version_type=sunos
9669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9671 shlibpath_var=LD_LIBRARY_PATH
9672 shlibpath_overrides_runpath=yes
9673 if test "$with_gnu_ld" = yes; then
9674 need_lib_prefix=no
9675 fi
9676 need_version=yes
9677 ;;
9678
Reid Spencera773bd52006-08-04 18:18:08 +00009679sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009680 version_type=linux
9681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682 soname_spec='${libname}${release}${shared_ext}$major'
9683 shlibpath_var=LD_LIBRARY_PATH
9684 case $host_vendor in
9685 sni)
9686 shlibpath_overrides_runpath=no
9687 need_lib_prefix=no
9688 export_dynamic_flag_spec='${wl}-Blargedynsym'
9689 runpath_var=LD_RUN_PATH
9690 ;;
9691 siemens)
9692 need_lib_prefix=no
9693 ;;
9694 motorola)
9695 need_lib_prefix=no
9696 need_version=no
9697 shlibpath_overrides_runpath=no
9698 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9699 ;;
9700 esac
9701 ;;
9702
9703sysv4*MP*)
9704 if test -d /usr/nec ;then
9705 version_type=linux
9706 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9707 soname_spec='$libname${shared_ext}.$major'
9708 shlibpath_var=LD_LIBRARY_PATH
9709 fi
9710 ;;
9711
Reid Spencera773bd52006-08-04 18:18:08 +00009712sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9713 version_type=freebsd-elf
9714 need_lib_prefix=no
9715 need_version=no
9716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9717 soname_spec='${libname}${release}${shared_ext}$major'
9718 shlibpath_var=LD_LIBRARY_PATH
9719 hardcode_into_libs=yes
9720 if test "$with_gnu_ld" = yes; then
9721 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9722 shlibpath_overrides_runpath=no
9723 else
9724 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9725 shlibpath_overrides_runpath=yes
9726 case $host_os in
9727 sco3.2v5*)
9728 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9729 ;;
9730 esac
9731 fi
9732 sys_lib_dlsearch_path_spec='/usr/lib'
9733 ;;
9734
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009735uts4*)
9736 version_type=linux
9737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9738 soname_spec='${libname}${release}${shared_ext}$major'
9739 shlibpath_var=LD_LIBRARY_PATH
9740 ;;
9741
9742*)
9743 dynamic_linker=no
9744 ;;
9745esac
Reid Spencera773bd52006-08-04 18:18:08 +00009746{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9747echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009748test "$dynamic_linker" = no && can_build_shared=no
9749
Reid Spencera773bd52006-08-04 18:18:08 +00009750variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9751if test "$GCC" = yes; then
9752 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9753fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009754
Reid Spencera773bd52006-08-04 18:18:08 +00009755
9756{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9757echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009758if test "${libltdl_cv_shlibext+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9760else
9761
9762module=yes
9763eval libltdl_cv_shlibext=$shrext_cmds
9764
9765fi
Reid Spencera773bd52006-08-04 18:18:08 +00009766{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9767echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768if test -n "$libltdl_cv_shlibext"; then
9769
9770cat >>confdefs.h <<_ACEOF
9771#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9772_ACEOF
9773
9774fi
9775
9776
Reid Spencera773bd52006-08-04 18:18:08 +00009777{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9778echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009779if test "${libltdl_cv_shlibpath_var+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781else
9782 libltdl_cv_shlibpath_var="$shlibpath_var"
9783fi
Reid Spencera773bd52006-08-04 18:18:08 +00009784{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9785echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009786if test -n "$libltdl_cv_shlibpath_var"; then
9787
9788cat >>confdefs.h <<_ACEOF
9789#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9790_ACEOF
9791
9792fi
9793
9794
Reid Spencera773bd52006-08-04 18:18:08 +00009795{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9796echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009797if test "${libltdl_cv_sys_search_path+set}" = set; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9799else
9800 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9801fi
Reid Spencera773bd52006-08-04 18:18:08 +00009802{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9803echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009804if test -n "$libltdl_cv_sys_search_path"; then
9805 sys_search_path=
9806 for dir in $libltdl_cv_sys_search_path; do
9807 if test -z "$sys_search_path"; then
9808 sys_search_path="$dir"
9809 else
9810 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9811 fi
9812 done
9813
9814cat >>confdefs.h <<_ACEOF
9815#define LTDL_SYSSEARCHPATH "$sys_search_path"
9816_ACEOF
9817
9818fi
9819
Reid Spencera773bd52006-08-04 18:18:08 +00009820{ echo "$as_me:$LINENO: checking for objdir" >&5
9821echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009822if test "${libltdl_cv_objdir+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824else
9825 libltdl_cv_objdir="$objdir"
9826 if test -n "$objdir"; then
9827 :
9828 else
9829 rm -f .libs 2>/dev/null
9830 mkdir .libs 2>/dev/null
9831 if test -d .libs; then
9832 libltdl_cv_objdir=.libs
9833 else
9834 # MS-DOS does not allow filenames that begin with a dot.
9835 libltdl_cv_objdir=_libs
9836 fi
9837 rmdir .libs 2>/dev/null
9838 fi
9839
9840fi
Reid Spencera773bd52006-08-04 18:18:08 +00009841{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9842echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009843
9844cat >>confdefs.h <<_ACEOF
9845#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9846_ACEOF
9847
9848
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849
9850
9851
9852
9853# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009854{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9855echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009856if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9858else
9859
9860# These are sane defaults that work on at least a few old systems.
9861# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9862
9863# Character class describing NM global symbol codes.
9864symcode='[BCDEGRST]'
9865
9866# Regexp to match symbols that can be accessed directly from C.
9867sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9868
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009869# Transform an extracted symbol line into a proper C declaration
9870lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9871
9872# Transform an extracted symbol line into symbol name and symbol address
9873lt_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'"
9874
9875# Define system-specific variables.
9876case $host_os in
9877aix*)
9878 symcode='[BCDT]'
9879 ;;
9880cygwin* | mingw* | pw32*)
9881 symcode='[ABCDGISTW]'
9882 ;;
9883hpux*) # Its linker distinguishes data from code symbols
9884 if test "$host_cpu" = ia64; then
9885 symcode='[ABCDEGRST]'
9886 fi
9887 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9888 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'"
9889 ;;
9890linux*)
9891 if test "$host_cpu" = ia64; then
9892 symcode='[ABCDGIRSTW]'
9893 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9894 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'"
9895 fi
9896 ;;
9897irix* | nonstopux*)
9898 symcode='[BCDEGRST]'
9899 ;;
9900osf*)
9901 symcode='[BCDEGQRST]'
9902 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009903solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009904 symcode='[BDRT]'
9905 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009906sco3.2v5*)
9907 symcode='[DT]'
9908 ;;
9909sysv4.2uw2*)
9910 symcode='[DT]'
9911 ;;
9912sysv5* | sco5v6* | unixware* | OpenUNIX*)
9913 symcode='[ABDT]'
9914 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009915sysv4)
9916 symcode='[DFNSTU]'
9917 ;;
9918esac
9919
9920# Handle CRLF in mingw tool chain
9921opt_cr=
9922case $build_os in
9923mingw*)
9924 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9925 ;;
9926esac
9927
9928# If we're using GNU nm, then use its standard symbol codes.
9929case `$NM -V 2>&1` in
9930*GNU* | *'with BFD'*)
9931 symcode='[ABCDGIRSTW]' ;;
9932esac
9933
9934# Try without a prefix undercore, then with it.
9935for ac_symprfx in "" "_"; do
9936
Reid Spencera773bd52006-08-04 18:18:08 +00009937 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9938 symxfrm="\\1 $ac_symprfx\\2 \\2"
9939
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009940 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009941 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 +00009942
9943 # Check to see that the pipe works correctly.
9944 pipe_works=no
9945
9946 rm -f conftest*
9947 cat > conftest.$ac_ext <<EOF
9948#ifdef __cplusplus
9949extern "C" {
9950#endif
9951char nm_test_var;
9952void nm_test_func(){}
9953#ifdef __cplusplus
9954}
9955#endif
9956int main(){nm_test_var='a';nm_test_func();return(0);}
9957EOF
9958
9959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9960 (eval $ac_compile) 2>&5
9961 ac_status=$?
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; then
9964 # Now try to grab the symbols.
9965 nlist=conftest.nm
9966 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9967 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); } && test -s "$nlist"; then
9971 # Try sorting and uniquifying the output.
9972 if sort "$nlist" | uniq > "$nlist"T; then
9973 mv -f "$nlist"T "$nlist"
9974 else
9975 rm -f "$nlist"T
9976 fi
9977
9978 # Make sure that we snagged all the symbols we need.
9979 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9980 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9981 cat <<EOF > conftest.$ac_ext
9982#ifdef __cplusplus
9983extern "C" {
9984#endif
9985
9986EOF
9987 # Now generate the symbol file.
9988 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9989
9990 cat <<EOF >> conftest.$ac_ext
9991#if defined (__STDC__) && __STDC__
9992# define lt_ptr_t void *
9993#else
9994# define lt_ptr_t char *
9995# define const
9996#endif
9997
9998/* The mapping between symbol names and symbols. */
9999const struct {
10000 const char *name;
10001 lt_ptr_t address;
10002}
10003lt_preloaded_symbols[] =
10004{
10005EOF
10006 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10007 cat <<\EOF >> conftest.$ac_ext
10008 {0, (lt_ptr_t) 0}
10009};
10010
10011#ifdef __cplusplus
10012}
10013#endif
10014EOF
10015 # Now try linking the two files.
10016 mv conftest.$ac_objext conftstm.$ac_objext
10017 lt_save_LIBS="$LIBS"
10018 lt_save_CFLAGS="$CFLAGS"
10019 LIBS="conftstm.$ac_objext"
10020 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022 (eval $ac_link) 2>&5
10023 ac_status=$?
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10026 pipe_works=yes
10027 fi
10028 LIBS="$lt_save_LIBS"
10029 CFLAGS="$lt_save_CFLAGS"
10030 else
10031 echo "cannot find nm_test_func in $nlist" >&5
10032 fi
10033 else
10034 echo "cannot find nm_test_var in $nlist" >&5
10035 fi
10036 else
10037 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10038 fi
10039 else
10040 echo "$progname: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10042 fi
10043 rm -f conftest* conftst*
10044
10045 # Do not use the global_symbol_pipe unless it works.
10046 if test "$pipe_works" = yes; then
10047 break
10048 else
10049 lt_cv_sys_global_symbol_pipe=
10050 fi
10051done
10052
10053fi
10054
10055if test -z "$lt_cv_sys_global_symbol_pipe"; then
10056 lt_cv_sys_global_symbol_to_cdecl=
10057fi
10058if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000010059 { echo "$as_me:$LINENO: result: failed" >&5
10060echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010061else
Reid Spencera773bd52006-08-04 18:18:08 +000010062 { echo "$as_me:$LINENO: result: ok" >&5
10063echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010064fi
10065
10066
Reid Spencera773bd52006-08-04 18:18:08 +000010067{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10068echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010069if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10070 echo $ECHO_N "(cached) $ECHO_C" >&6
10071else
10072 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10073 libltdl_cv_preloaded_symbols=yes
10074 else
10075 libltdl_cv_preloaded_symbols=no
10076 fi
10077
10078fi
Reid Spencera773bd52006-08-04 18:18:08 +000010079{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10080echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10082
10083cat >>confdefs.h <<\_ACEOF
10084#define HAVE_PRELOADED_SYMBOLS 1
10085_ACEOF
10086
10087fi
10088
10089LIBADD_DL=
10090
10091ac_ext=c
10092ac_cpp='$CPP $CPPFLAGS'
10093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10095ac_compiler_gnu=$ac_cv_c_compiler_gnu
10096
10097
Reid Spencera773bd52006-08-04 18:18:08 +000010098{ echo "$as_me:$LINENO: checking for shl_load" >&5
10099echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010100if test "${ac_cv_func_shl_load+set}" = set; then
10101 echo $ECHO_N "(cached) $ECHO_C" >&6
10102else
10103 cat >conftest.$ac_ext <<_ACEOF
10104/* confdefs.h. */
10105_ACEOF
10106cat confdefs.h >>conftest.$ac_ext
10107cat >>conftest.$ac_ext <<_ACEOF
10108/* end confdefs.h. */
10109/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10111#define shl_load innocuous_shl_load
10112
10113/* System header to define __stub macros and hopefully few prototypes,
10114 which can conflict with char shl_load (); below.
10115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10116 <limits.h> exists even on freestanding compilers. */
10117
10118#ifdef __STDC__
10119# include <limits.h>
10120#else
10121# include <assert.h>
10122#endif
10123
10124#undef shl_load
10125
Reid Spencera773bd52006-08-04 18:18:08 +000010126/* Override any GCC internal prototype to avoid an error.
10127 Use char because int might match the return type of a GCC
10128 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010129#ifdef __cplusplus
10130extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010131#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132char shl_load ();
10133/* The GNU C library defines this for functions which it implements
10134 to always fail with ENOSYS. Some functions are actually named
10135 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010136#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010137choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010138#endif
10139
10140int
10141main ()
10142{
Reid Spencera773bd52006-08-04 18:18:08 +000010143return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010144 ;
10145 return 0;
10146}
10147_ACEOF
10148rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010149if { (ac_try="$ac_link"
10150case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10153esac
10154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010156 ac_status=$?
10157 grep -v '^ *+' conftest.er1 >conftest.err
10158 rm -f conftest.er1
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010161 (exit $ac_status); } &&
10162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10163 { (case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10166esac
10167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168 (eval "$ac_try") 2>&5
10169 ac_status=$?
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); }; } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (case "(($ac_try" in
10174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175 *) ac_try_echo=$ac_try;;
10176esac
10177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178 (eval "$ac_try") 2>&5
10179 ac_status=$?
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182 ac_cv_func_shl_load=yes
10183else
10184 echo "$as_me: failed program was:" >&5
10185sed 's/^/| /' conftest.$ac_ext >&5
10186
Reid Spencera773bd52006-08-04 18:18:08 +000010187 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010188fi
Reid Spencera773bd52006-08-04 18:18:08 +000010189
Bill Wendlingebcceee2009-04-18 11:20:33 +000010190rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191 conftest$ac_exeext conftest.$ac_ext
10192fi
Reid Spencera773bd52006-08-04 18:18:08 +000010193{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10194echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010195if test $ac_cv_func_shl_load = yes; then
10196
10197cat >>confdefs.h <<\_ACEOF
10198#define HAVE_SHL_LOAD 1
10199_ACEOF
10200
10201else
Reid Spencera773bd52006-08-04 18:18:08 +000010202 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10203echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10206else
10207 ac_check_lib_save_LIBS=$LIBS
10208LIBS="-ldld $LIBS"
10209cat >conftest.$ac_ext <<_ACEOF
10210/* confdefs.h. */
10211_ACEOF
10212cat confdefs.h >>conftest.$ac_ext
10213cat >>conftest.$ac_ext <<_ACEOF
10214/* end confdefs.h. */
10215
Reid Spencera773bd52006-08-04 18:18:08 +000010216/* Override any GCC internal prototype to avoid an error.
10217 Use char because int might match the return type of a GCC
10218 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010219#ifdef __cplusplus
10220extern "C"
10221#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010222char shl_load ();
10223int
10224main ()
10225{
Reid Spencera773bd52006-08-04 18:18:08 +000010226return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010227 ;
10228 return 0;
10229}
10230_ACEOF
10231rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010232if { (ac_try="$ac_link"
10233case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10236esac
10237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010239 ac_status=$?
10240 grep -v '^ *+' conftest.er1 >conftest.err
10241 rm -f conftest.er1
10242 cat conftest.err >&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010244 (exit $ac_status); } &&
10245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10246 { (case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10249esac
10250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10251 (eval "$ac_try") 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; } &&
10255 { ac_try='test -s conftest$ac_exeext'
10256 { (case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10259esac
10260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10261 (eval "$ac_try") 2>&5
10262 ac_status=$?
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265 ac_cv_lib_dld_shl_load=yes
10266else
10267 echo "$as_me: failed program was:" >&5
10268sed 's/^/| /' conftest.$ac_ext >&5
10269
Reid Spencera773bd52006-08-04 18:18:08 +000010270 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010271fi
Reid Spencera773bd52006-08-04 18:18:08 +000010272
Bill Wendlingebcceee2009-04-18 11:20:33 +000010273rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010274 conftest$ac_exeext conftest.$ac_ext
10275LIBS=$ac_check_lib_save_LIBS
10276fi
Reid Spencera773bd52006-08-04 18:18:08 +000010277{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10278echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010279if test $ac_cv_lib_dld_shl_load = yes; then
10280
10281cat >>confdefs.h <<\_ACEOF
10282#define HAVE_SHL_LOAD 1
10283_ACEOF
10284
10285 LIBADD_DL="$LIBADD_DL -ldld"
10286else
Reid Spencera773bd52006-08-04 18:18:08 +000010287 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10288echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010289if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10291else
10292 ac_check_lib_save_LIBS=$LIBS
10293LIBS="-ldl $LIBS"
10294cat >conftest.$ac_ext <<_ACEOF
10295/* confdefs.h. */
10296_ACEOF
10297cat confdefs.h >>conftest.$ac_ext
10298cat >>conftest.$ac_ext <<_ACEOF
10299/* end confdefs.h. */
10300
Reid Spencera773bd52006-08-04 18:18:08 +000010301/* Override any GCC internal prototype to avoid an error.
10302 Use char because int might match the return type of a GCC
10303 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010304#ifdef __cplusplus
10305extern "C"
10306#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010307char dlopen ();
10308int
10309main ()
10310{
Reid Spencera773bd52006-08-04 18:18:08 +000010311return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010312 ;
10313 return 0;
10314}
10315_ACEOF
10316rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010317if { (ac_try="$ac_link"
10318case "(($ac_try" in
10319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10321esac
10322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324 ac_status=$?
10325 grep -v '^ *+' conftest.er1 >conftest.err
10326 rm -f conftest.er1
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010329 (exit $ac_status); } &&
10330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10331 { (case "(($ac_try" in
10332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333 *) ac_try_echo=$ac_try;;
10334esac
10335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336 (eval "$ac_try") 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; } &&
10340 { ac_try='test -s conftest$ac_exeext'
10341 { (case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10344esac
10345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_try") 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010350 ac_cv_lib_dl_dlopen=yes
10351else
10352 echo "$as_me: failed program was:" >&5
10353sed 's/^/| /' conftest.$ac_ext >&5
10354
Reid Spencera773bd52006-08-04 18:18:08 +000010355 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010356fi
Reid Spencera773bd52006-08-04 18:18:08 +000010357
Bill Wendlingebcceee2009-04-18 11:20:33 +000010358rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010359 conftest$ac_exeext conftest.$ac_ext
10360LIBS=$ac_check_lib_save_LIBS
10361fi
Reid Spencera773bd52006-08-04 18:18:08 +000010362{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10363echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010364if test $ac_cv_lib_dl_dlopen = yes; then
10365
10366cat >>confdefs.h <<\_ACEOF
10367#define HAVE_LIBDL 1
10368_ACEOF
10369
10370 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10371else
10372 cat >conftest.$ac_ext <<_ACEOF
10373/* confdefs.h. */
10374_ACEOF
10375cat confdefs.h >>conftest.$ac_ext
10376cat >>conftest.$ac_ext <<_ACEOF
10377/* end confdefs.h. */
10378#if HAVE_DLFCN_H
10379# include <dlfcn.h>
10380#endif
10381
10382int
10383main ()
10384{
10385dlopen(0, 0);
10386 ;
10387 return 0;
10388}
10389_ACEOF
10390rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010391if { (ac_try="$ac_link"
10392case "(($ac_try" in
10393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10394 *) ac_try_echo=$ac_try;;
10395esac
10396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10397 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010398 ac_status=$?
10399 grep -v '^ *+' conftest.er1 >conftest.err
10400 rm -f conftest.er1
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010403 (exit $ac_status); } &&
10404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10405 { (case "(($ac_try" in
10406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407 *) ac_try_echo=$ac_try;;
10408esac
10409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410 (eval "$ac_try") 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; } &&
10414 { ac_try='test -s conftest$ac_exeext'
10415 { (case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10418esac
10419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_try") 2>&5
10421 ac_status=$?
10422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010424
10425cat >>confdefs.h <<\_ACEOF
10426#define HAVE_LIBDL 1
10427_ACEOF
10428 libltdl_cv_func_dlopen="yes"
10429else
10430 echo "$as_me: failed program was:" >&5
10431sed 's/^/| /' conftest.$ac_ext >&5
10432
Reid Spencera773bd52006-08-04 18:18:08 +000010433 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10434echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010435if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10437else
10438 ac_check_lib_save_LIBS=$LIBS
10439LIBS="-lsvld $LIBS"
10440cat >conftest.$ac_ext <<_ACEOF
10441/* confdefs.h. */
10442_ACEOF
10443cat confdefs.h >>conftest.$ac_ext
10444cat >>conftest.$ac_ext <<_ACEOF
10445/* end confdefs.h. */
10446
Reid Spencera773bd52006-08-04 18:18:08 +000010447/* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010450#ifdef __cplusplus
10451extern "C"
10452#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010453char dlopen ();
10454int
10455main ()
10456{
Reid Spencera773bd52006-08-04 18:18:08 +000010457return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010458 ;
10459 return 0;
10460}
10461_ACEOF
10462rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010463if { (ac_try="$ac_link"
10464case "(($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_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010470 ac_status=$?
10471 grep -v '^ *+' conftest.er1 >conftest.err
10472 rm -f conftest.er1
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010475 (exit $ac_status); } &&
10476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10477 { (case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10480esac
10481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_try") 2>&5
10483 ac_status=$?
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; } &&
10486 { ac_try='test -s conftest$ac_exeext'
10487 { (case "(($ac_try" in
10488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489 *) ac_try_echo=$ac_try;;
10490esac
10491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492 (eval "$ac_try") 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010496 ac_cv_lib_svld_dlopen=yes
10497else
10498 echo "$as_me: failed program was:" >&5
10499sed 's/^/| /' conftest.$ac_ext >&5
10500
Reid Spencera773bd52006-08-04 18:18:08 +000010501 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010502fi
Reid Spencera773bd52006-08-04 18:18:08 +000010503
Bill Wendlingebcceee2009-04-18 11:20:33 +000010504rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010505 conftest$ac_exeext conftest.$ac_ext
10506LIBS=$ac_check_lib_save_LIBS
10507fi
Reid Spencera773bd52006-08-04 18:18:08 +000010508{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10509echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010510if test $ac_cv_lib_svld_dlopen = yes; then
10511
10512cat >>confdefs.h <<\_ACEOF
10513#define HAVE_LIBDL 1
10514_ACEOF
10515
10516 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10517else
Reid Spencera773bd52006-08-04 18:18:08 +000010518 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10519echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010520if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10522else
10523 ac_check_lib_save_LIBS=$LIBS
10524LIBS="-ldld $LIBS"
10525cat >conftest.$ac_ext <<_ACEOF
10526/* confdefs.h. */
10527_ACEOF
10528cat confdefs.h >>conftest.$ac_ext
10529cat >>conftest.$ac_ext <<_ACEOF
10530/* end confdefs.h. */
10531
Reid Spencera773bd52006-08-04 18:18:08 +000010532/* Override any GCC internal prototype to avoid an error.
10533 Use char because int might match the return type of a GCC
10534 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010535#ifdef __cplusplus
10536extern "C"
10537#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010538char dld_link ();
10539int
10540main ()
10541{
Reid Spencera773bd52006-08-04 18:18:08 +000010542return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010543 ;
10544 return 0;
10545}
10546_ACEOF
10547rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010548if { (ac_try="$ac_link"
10549case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552esac
10553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010560 (exit $ac_status); } &&
10561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10562 { (case "(($ac_try" in
10563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10564 *) ac_try_echo=$ac_try;;
10565esac
10566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10567 (eval "$ac_try") 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; } &&
10571 { ac_try='test -s conftest$ac_exeext'
10572 { (case "(($ac_try" in
10573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574 *) ac_try_echo=$ac_try;;
10575esac
10576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_try") 2>&5
10578 ac_status=$?
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010581 ac_cv_lib_dld_dld_link=yes
10582else
10583 echo "$as_me: failed program was:" >&5
10584sed 's/^/| /' conftest.$ac_ext >&5
10585
Reid Spencera773bd52006-08-04 18:18:08 +000010586 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010587fi
Reid Spencera773bd52006-08-04 18:18:08 +000010588
Bill Wendlingebcceee2009-04-18 11:20:33 +000010589rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010590 conftest$ac_exeext conftest.$ac_ext
10591LIBS=$ac_check_lib_save_LIBS
10592fi
Reid Spencera773bd52006-08-04 18:18:08 +000010593{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10594echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010595if test $ac_cv_lib_dld_dld_link = yes; then
10596
10597cat >>confdefs.h <<\_ACEOF
10598#define HAVE_DLD 1
10599_ACEOF
10600
10601 LIBADD_DL="$LIBADD_DL -ldld"
10602else
Reid Spencera773bd52006-08-04 18:18:08 +000010603 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10604echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010605if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10607else
10608 cat >conftest.$ac_ext <<_ACEOF
10609/* confdefs.h. */
10610_ACEOF
10611cat confdefs.h >>conftest.$ac_ext
10612cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h. */
10614/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10616#define _dyld_func_lookup innocuous__dyld_func_lookup
10617
10618/* System header to define __stub macros and hopefully few prototypes,
10619 which can conflict with char _dyld_func_lookup (); below.
10620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10621 <limits.h> exists even on freestanding compilers. */
10622
10623#ifdef __STDC__
10624# include <limits.h>
10625#else
10626# include <assert.h>
10627#endif
10628
10629#undef _dyld_func_lookup
10630
Reid Spencera773bd52006-08-04 18:18:08 +000010631/* Override any GCC internal prototype to avoid an error.
10632 Use char because int might match the return type of a GCC
10633 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010634#ifdef __cplusplus
10635extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010636#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637char _dyld_func_lookup ();
10638/* The GNU C library defines this for functions which it implements
10639 to always fail with ENOSYS. Some functions are actually named
10640 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010641#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010642choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010643#endif
10644
10645int
10646main ()
10647{
Reid Spencera773bd52006-08-04 18:18:08 +000010648return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649 ;
10650 return 0;
10651}
10652_ACEOF
10653rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010654if { (ac_try="$ac_link"
10655case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658esac
10659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010661 ac_status=$?
10662 grep -v '^ *+' conftest.er1 >conftest.err
10663 rm -f conftest.er1
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010666 (exit $ac_status); } &&
10667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10668 { (case "(($ac_try" in
10669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670 *) ac_try_echo=$ac_try;;
10671esac
10672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673 (eval "$ac_try") 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; } &&
10677 { ac_try='test -s conftest$ac_exeext'
10678 { (case "(($ac_try" in
10679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10680 *) ac_try_echo=$ac_try;;
10681esac
10682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10683 (eval "$ac_try") 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687 ac_cv_func__dyld_func_lookup=yes
10688else
10689 echo "$as_me: failed program was:" >&5
10690sed 's/^/| /' conftest.$ac_ext >&5
10691
Reid Spencera773bd52006-08-04 18:18:08 +000010692 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010693fi
Reid Spencera773bd52006-08-04 18:18:08 +000010694
Bill Wendlingebcceee2009-04-18 11:20:33 +000010695rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010696 conftest$ac_exeext conftest.$ac_ext
10697fi
Reid Spencera773bd52006-08-04 18:18:08 +000010698{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10699echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010700if test $ac_cv_func__dyld_func_lookup = yes; then
10701
10702cat >>confdefs.h <<\_ACEOF
10703#define HAVE_DYLD 1
10704_ACEOF
10705
10706fi
10707
10708
10709fi
10710
10711
10712fi
10713
10714
10715fi
Reid Spencera773bd52006-08-04 18:18:08 +000010716
Bill Wendlingebcceee2009-04-18 11:20:33 +000010717rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010718 conftest$ac_exeext conftest.$ac_ext
10719
10720fi
10721
10722
10723fi
10724
10725
10726fi
10727
10728
10729if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10730then
10731 lt_save_LIBS="$LIBS"
10732 LIBS="$LIBS $LIBADD_DL"
10733
10734for ac_func in dlerror
10735do
10736as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010737{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10738echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10739if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741else
10742 cat >conftest.$ac_ext <<_ACEOF
10743/* confdefs.h. */
10744_ACEOF
10745cat confdefs.h >>conftest.$ac_ext
10746cat >>conftest.$ac_ext <<_ACEOF
10747/* end confdefs.h. */
10748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10750#define $ac_func innocuous_$ac_func
10751
10752/* System header to define __stub macros and hopefully few prototypes,
10753 which can conflict with char $ac_func (); below.
10754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10755 <limits.h> exists even on freestanding compilers. */
10756
10757#ifdef __STDC__
10758# include <limits.h>
10759#else
10760# include <assert.h>
10761#endif
10762
10763#undef $ac_func
10764
Reid Spencera773bd52006-08-04 18:18:08 +000010765/* Override any GCC internal prototype to avoid an error.
10766 Use char because int might match the return type of a GCC
10767 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010768#ifdef __cplusplus
10769extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010770#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010771char $ac_func ();
10772/* The GNU C library defines this for functions which it implements
10773 to always fail with ENOSYS. Some functions are actually named
10774 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010775#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010776choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010777#endif
10778
10779int
10780main ()
10781{
Reid Spencera773bd52006-08-04 18:18:08 +000010782return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010783 ;
10784 return 0;
10785}
10786_ACEOF
10787rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010788if { (ac_try="$ac_link"
10789case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792esac
10793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010800 (exit $ac_status); } &&
10801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10802 { (case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10805esac
10806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_try") 2>&5
10808 ac_status=$?
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }; } &&
10811 { ac_try='test -s conftest$ac_exeext'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815esac
10816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10818 ac_status=$?
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821 eval "$as_ac_var=yes"
10822else
10823 echo "$as_me: failed program was:" >&5
10824sed 's/^/| /' conftest.$ac_ext >&5
10825
Reid Spencera773bd52006-08-04 18:18:08 +000010826 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010827fi
Reid Spencera773bd52006-08-04 18:18:08 +000010828
Bill Wendlingebcceee2009-04-18 11:20:33 +000010829rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830 conftest$ac_exeext conftest.$ac_ext
10831fi
Reid Spencera773bd52006-08-04 18:18:08 +000010832ac_res=`eval echo '${'$as_ac_var'}'`
10833 { echo "$as_me:$LINENO: result: $ac_res" >&5
10834echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010835if test `eval echo '${'$as_ac_var'}'` = yes; then
10836 cat >>confdefs.h <<_ACEOF
10837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10838_ACEOF
10839
10840fi
10841done
10842
10843 LIBS="$lt_save_LIBS"
10844fi
10845ac_ext=c
10846ac_cpp='$CPP $CPPFLAGS'
10847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10849ac_compiler_gnu=$ac_cv_c_compiler_gnu
10850
10851
10852
Reid Spencera773bd52006-08-04 18:18:08 +000010853{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10854echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010855if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10857else
10858 ac_cv_sys_symbol_underscore=no
10859 cat > conftest.$ac_ext <<EOF
10860void nm_test_func(){}
10861int main(){nm_test_func;return 0;}
10862EOF
10863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10864 (eval $ac_compile) 2>&5
10865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; then
10868 # Now try to grab the symbols.
10869 ac_nlist=conftest.nm
10870 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10871 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } && test -s "$ac_nlist"; then
10875 # See whether the symbols have a leading underscore.
10876 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10877 ac_cv_sys_symbol_underscore=yes
10878 else
10879 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10880 :
10881 else
10882 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10883 fi
10884 fi
10885 else
10886 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10887 fi
10888 else
10889 echo "configure: failed program was:" >&5
10890 cat conftest.c >&5
10891 fi
10892 rm -rf conftest*
10893
10894fi
Reid Spencera773bd52006-08-04 18:18:08 +000010895{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10896echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010897
10898
10899if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10900 if test x"$libltdl_cv_func_dlopen" = xyes ||
10901 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010902 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10903echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904if test "${libltdl_cv_need_uscore+set}" = set; then
10905 echo $ECHO_N "(cached) $ECHO_C" >&6
10906else
10907 libltdl_cv_need_uscore=unknown
10908 save_LIBS="$LIBS"
10909 LIBS="$LIBS $LIBADD_DL"
10910 if test "$cross_compiling" = yes; then :
10911 libltdl_cv_need_uscore=cross
10912else
10913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10914 lt_status=$lt_dlunknown
10915 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000010916#line 10916 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010917#include "confdefs.h"
10918
10919#if HAVE_DLFCN_H
10920#include <dlfcn.h>
10921#endif
10922
10923#include <stdio.h>
10924
10925#ifdef RTLD_GLOBAL
10926# define LT_DLGLOBAL RTLD_GLOBAL
10927#else
10928# ifdef DL_GLOBAL
10929# define LT_DLGLOBAL DL_GLOBAL
10930# else
10931# define LT_DLGLOBAL 0
10932# endif
10933#endif
10934
10935/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10936 find out it does not work in some platform. */
10937#ifndef LT_DLLAZY_OR_NOW
10938# ifdef RTLD_LAZY
10939# define LT_DLLAZY_OR_NOW RTLD_LAZY
10940# else
10941# ifdef DL_LAZY
10942# define LT_DLLAZY_OR_NOW DL_LAZY
10943# else
10944# ifdef RTLD_NOW
10945# define LT_DLLAZY_OR_NOW RTLD_NOW
10946# else
10947# ifdef DL_NOW
10948# define LT_DLLAZY_OR_NOW DL_NOW
10949# else
10950# define LT_DLLAZY_OR_NOW 0
10951# endif
10952# endif
10953# endif
10954# endif
10955#endif
10956
10957#ifdef __cplusplus
10958extern "C" void exit (int);
10959#endif
10960
10961void fnord() { int i=42;}
10962int main ()
10963{
10964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10965 int status = $lt_dlunknown;
10966
10967 if (self)
10968 {
10969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10970 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10971 /* dlclose (self); */
10972 }
Reid Spencera773bd52006-08-04 18:18:08 +000010973 else
10974 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010975
10976 exit (status);
10977}
10978EOF
10979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10980 (eval $ac_link) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010984 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010985 lt_status=$?
10986 case x$lt_status in
10987 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10988 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010989 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010990 esac
10991 else :
10992 # compilation failed
10993
10994 fi
10995fi
10996rm -fr conftest*
10997
10998 LIBS="$save_LIBS"
10999
11000fi
Reid Spencera773bd52006-08-04 18:18:08 +000011001{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11002echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011003 fi
11004fi
11005
11006if test x"$libltdl_cv_need_uscore" = xyes; then
11007
11008cat >>confdefs.h <<\_ACEOF
11009#define NEED_USCORE 1
11010_ACEOF
11011
11012fi
11013
11014
Reid Spencera773bd52006-08-04 18:18:08 +000011015{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11016echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011017if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11018 echo $ECHO_N "(cached) $ECHO_C" >&6
11019else
11020 # PORTME does your system automatically load deplibs for dlopen?
11021 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11022 # For now, we just catch OSes we know something about -- in the
11023 # future, we'll try test this programmatically.
11024 libltdl_cv_sys_dlopen_deplibs=unknown
11025 case "$host_os" in
11026 aix3*|aix4.1.*|aix4.2.*)
11027 # Unknown whether this is true for these versions of AIX, but
11028 # we want this `case' here to explicitly catch those versions.
11029 libltdl_cv_sys_dlopen_deplibs=unknown
11030 ;;
11031 aix[45]*)
11032 libltdl_cv_sys_dlopen_deplibs=yes
11033 ;;
11034 darwin*)
11035 # Assuming the user has installed a libdl from somewhere, this is true
11036 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11037 libltdl_cv_sys_dlopen_deplibs=yes
11038 ;;
11039 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11040 # GNU and its variants, using gnu ld.so (Glibc)
11041 libltdl_cv_sys_dlopen_deplibs=yes
11042 ;;
11043 hpux10*|hpux11*)
11044 libltdl_cv_sys_dlopen_deplibs=yes
11045 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011046 interix*)
11047 libltdl_cv_sys_dlopen_deplibs=yes
11048 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011049 irix[12345]*|irix6.[01]*)
11050 # Catch all versions of IRIX before 6.2, and indicate that we don't
11051 # know how it worked for any of those versions.
11052 libltdl_cv_sys_dlopen_deplibs=unknown
11053 ;;
11054 irix*)
11055 # The case above catches anything before 6.2, and it's known that
11056 # at 6.2 and later dlopen does load deplibs.
11057 libltdl_cv_sys_dlopen_deplibs=yes
11058 ;;
11059 netbsd*)
11060 libltdl_cv_sys_dlopen_deplibs=yes
11061 ;;
11062 openbsd*)
11063 libltdl_cv_sys_dlopen_deplibs=yes
11064 ;;
11065 osf[1234]*)
11066 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11067 # it did *not* use an RPATH in a shared library to find objects the
11068 # library depends on, so we explictly say `no'.
11069 libltdl_cv_sys_dlopen_deplibs=no
11070 ;;
11071 osf5.0|osf5.0a|osf5.1)
11072 # dlopen *does* load deplibs and with the right loader patch applied
11073 # it even uses RPATH in a shared library to search for shared objects
11074 # that the library depends on, but there's no easy way to know if that
11075 # patch is installed. Since this is the case, all we can really
11076 # say is unknown -- it depends on the patch being installed. If
11077 # it is, this changes to `yes'. Without it, it would be `no'.
11078 libltdl_cv_sys_dlopen_deplibs=unknown
11079 ;;
11080 osf*)
11081 # the two cases above should catch all versions of osf <= 5.1. Read
11082 # the comments above for what we know about them.
11083 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11084 # is used to find them so we can finally say `yes'.
11085 libltdl_cv_sys_dlopen_deplibs=yes
11086 ;;
11087 solaris*)
11088 libltdl_cv_sys_dlopen_deplibs=yes
11089 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011090 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11091 libltdl_cv_sys_dlopen_deplibs=yes
11092 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011093 esac
11094
11095fi
Reid Spencera773bd52006-08-04 18:18:08 +000011096{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11097echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11099
11100cat >>confdefs.h <<\_ACEOF
11101#define LTDL_DLOPEN_DEPLIBS 1
11102_ACEOF
11103
11104fi
11105
11106
11107for ac_header in argz.h
11108do
11109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11113if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011114 echo $ECHO_N "(cached) $ECHO_C" >&6
11115fi
Reid Spencera773bd52006-08-04 18:18:08 +000011116ac_res=`eval echo '${'$as_ac_Header'}'`
11117 { echo "$as_me:$LINENO: result: $ac_res" >&5
11118echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011119else
11120 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011121{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011123cat >conftest.$ac_ext <<_ACEOF
11124/* confdefs.h. */
11125_ACEOF
11126cat confdefs.h >>conftest.$ac_ext
11127cat >>conftest.$ac_ext <<_ACEOF
11128/* end confdefs.h. */
11129$ac_includes_default
11130#include <$ac_header>
11131_ACEOF
11132rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011133if { (ac_try="$ac_compile"
11134case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11137esac
11138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011140 ac_status=$?
11141 grep -v '^ *+' conftest.er1 >conftest.err
11142 rm -f conftest.er1
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011145 (exit $ac_status); } &&
11146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11147 { (case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150esac
11151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_try") 2>&5
11153 ac_status=$?
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; } &&
11156 { ac_try='test -s conftest.$ac_objext'
11157 { (case "(($ac_try" in
11158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159 *) ac_try_echo=$ac_try;;
11160esac
11161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162 (eval "$ac_try") 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011166 ac_header_compiler=yes
11167else
11168 echo "$as_me: failed program was:" >&5
11169sed 's/^/| /' conftest.$ac_ext >&5
11170
Reid Spencera773bd52006-08-04 18:18:08 +000011171 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011172fi
Reid Spencera773bd52006-08-04 18:18:08 +000011173
11174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11176echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011177
11178# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011179{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011181cat >conftest.$ac_ext <<_ACEOF
11182/* confdefs.h. */
11183_ACEOF
11184cat confdefs.h >>conftest.$ac_ext
11185cat >>conftest.$ac_ext <<_ACEOF
11186/* end confdefs.h. */
11187#include <$ac_header>
11188_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011189if { (ac_try="$ac_cpp conftest.$ac_ext"
11190case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11193esac
11194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011196 ac_status=$?
11197 grep -v '^ *+' conftest.er1 >conftest.err
11198 rm -f conftest.er1
11199 cat conftest.err >&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011201 (exit $ac_status); } >/dev/null; then
11202 if test -s conftest.err; then
11203 ac_cpp_err=$ac_c_preproc_warn_flag
11204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11205 else
11206 ac_cpp_err=
11207 fi
11208else
11209 ac_cpp_err=yes
11210fi
11211if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011212 ac_header_preproc=yes
11213else
11214 echo "$as_me: failed program was:" >&5
11215sed 's/^/| /' conftest.$ac_ext >&5
11216
11217 ac_header_preproc=no
11218fi
Reid Spencera773bd52006-08-04 18:18:08 +000011219
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011220rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011221{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11222echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011223
11224# So? What about this header?
11225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11226 yes:no: )
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11231 ac_header_preproc=yes
11232 ;;
11233 no:yes:* )
11234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011246 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011247## ----------------------------------- ##
11248## Report this to llvmbugs@cs.uiuc.edu ##
11249## ----------------------------------- ##
11250_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011251 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011252 ;;
11253esac
Reid Spencera773bd52006-08-04 18:18:08 +000011254{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11256if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011257 echo $ECHO_N "(cached) $ECHO_C" >&6
11258else
11259 eval "$as_ac_Header=\$ac_header_preproc"
11260fi
Reid Spencera773bd52006-08-04 18:18:08 +000011261ac_res=`eval echo '${'$as_ac_Header'}'`
11262 { echo "$as_me:$LINENO: result: $ac_res" >&5
11263echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011264
11265fi
11266if test `eval echo '${'$as_ac_Header'}'` = yes; then
11267 cat >>confdefs.h <<_ACEOF
11268#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11269_ACEOF
11270
11271fi
11272
11273done
11274
11275
Reid Spencera773bd52006-08-04 18:18:08 +000011276{ echo "$as_me:$LINENO: checking for error_t" >&5
11277echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011278if test "${ac_cv_type_error_t+set}" = set; then
11279 echo $ECHO_N "(cached) $ECHO_C" >&6
11280else
11281 cat >conftest.$ac_ext <<_ACEOF
11282/* confdefs.h. */
11283_ACEOF
11284cat confdefs.h >>conftest.$ac_ext
11285cat >>conftest.$ac_ext <<_ACEOF
11286/* end confdefs.h. */
11287#if HAVE_ARGZ_H
11288# include <argz.h>
11289#endif
11290
Reid Spencera773bd52006-08-04 18:18:08 +000011291typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292int
11293main ()
11294{
Reid Spencera773bd52006-08-04 18:18:08 +000011295if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011296 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011297if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011298 return 0;
11299 ;
11300 return 0;
11301}
11302_ACEOF
11303rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011304if { (ac_try="$ac_compile"
11305case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11308esac
11309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311 ac_status=$?
11312 grep -v '^ *+' conftest.er1 >conftest.err
11313 rm -f conftest.er1
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011316 (exit $ac_status); } &&
11317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11318 { (case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11321esac
11322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_try") 2>&5
11324 ac_status=$?
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; } &&
11327 { ac_try='test -s conftest.$ac_objext'
11328 { (case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11331esac
11332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333 (eval "$ac_try") 2>&5
11334 ac_status=$?
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011337 ac_cv_type_error_t=yes
11338else
11339 echo "$as_me: failed program was:" >&5
11340sed 's/^/| /' conftest.$ac_ext >&5
11341
Reid Spencera773bd52006-08-04 18:18:08 +000011342 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011343fi
Reid Spencera773bd52006-08-04 18:18:08 +000011344
11345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011346fi
Reid Spencera773bd52006-08-04 18:18:08 +000011347{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11348echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011349if test $ac_cv_type_error_t = yes; then
11350
11351cat >>confdefs.h <<_ACEOF
11352#define HAVE_ERROR_T 1
11353_ACEOF
11354
11355
11356else
11357
11358cat >>confdefs.h <<\_ACEOF
11359#define error_t int
11360_ACEOF
11361
11362fi
11363
11364
11365
11366
11367
11368
11369
11370for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11371do
11372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011373{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11375if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011376 echo $ECHO_N "(cached) $ECHO_C" >&6
11377else
11378 cat >conftest.$ac_ext <<_ACEOF
11379/* confdefs.h. */
11380_ACEOF
11381cat confdefs.h >>conftest.$ac_ext
11382cat >>conftest.$ac_ext <<_ACEOF
11383/* end confdefs.h. */
11384/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11386#define $ac_func innocuous_$ac_func
11387
11388/* System header to define __stub macros and hopefully few prototypes,
11389 which can conflict with char $ac_func (); below.
11390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11391 <limits.h> exists even on freestanding compilers. */
11392
11393#ifdef __STDC__
11394# include <limits.h>
11395#else
11396# include <assert.h>
11397#endif
11398
11399#undef $ac_func
11400
Reid Spencera773bd52006-08-04 18:18:08 +000011401/* Override any GCC internal prototype to avoid an error.
11402 Use char because int might match the return type of a GCC
11403 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011404#ifdef __cplusplus
11405extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011406#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011407char $ac_func ();
11408/* The GNU C library defines this for functions which it implements
11409 to always fail with ENOSYS. Some functions are actually named
11410 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011411#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011413#endif
11414
11415int
11416main ()
11417{
Reid Spencera773bd52006-08-04 18:18:08 +000011418return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011419 ;
11420 return 0;
11421}
11422_ACEOF
11423rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011424if { (ac_try="$ac_link"
11425case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11428esac
11429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011436 (exit $ac_status); } &&
11437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11438 { (case "(($ac_try" in
11439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440 *) ac_try_echo=$ac_try;;
11441esac
11442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443 (eval "$ac_try") 2>&5
11444 ac_status=$?
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); }; } &&
11447 { ac_try='test -s conftest$ac_exeext'
11448 { (case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11451esac
11452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_try") 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011457 eval "$as_ac_var=yes"
11458else
11459 echo "$as_me: failed program was:" >&5
11460sed 's/^/| /' conftest.$ac_ext >&5
11461
Reid Spencera773bd52006-08-04 18:18:08 +000011462 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011463fi
Reid Spencera773bd52006-08-04 18:18:08 +000011464
Bill Wendlingebcceee2009-04-18 11:20:33 +000011465rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466 conftest$ac_exeext conftest.$ac_ext
11467fi
Reid Spencera773bd52006-08-04 18:18:08 +000011468ac_res=`eval echo '${'$as_ac_var'}'`
11469 { echo "$as_me:$LINENO: result: $ac_res" >&5
11470echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011471if test `eval echo '${'$as_ac_var'}'` = yes; then
11472 cat >>confdefs.h <<_ACEOF
11473#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11474_ACEOF
11475
11476fi
11477done
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11507 stdio.h unistd.h
11508do
11509as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011510if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11513if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011514 echo $ECHO_N "(cached) $ECHO_C" >&6
11515fi
Reid Spencera773bd52006-08-04 18:18:08 +000011516ac_res=`eval echo '${'$as_ac_Header'}'`
11517 { echo "$as_me:$LINENO: result: $ac_res" >&5
11518echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011519else
11520 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011521{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11522echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523cat >conftest.$ac_ext <<_ACEOF
11524/* confdefs.h. */
11525_ACEOF
11526cat confdefs.h >>conftest.$ac_ext
11527cat >>conftest.$ac_ext <<_ACEOF
11528/* end confdefs.h. */
11529$ac_includes_default
11530#include <$ac_header>
11531_ACEOF
11532rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011533if { (ac_try="$ac_compile"
11534case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11537esac
11538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011540 ac_status=$?
11541 grep -v '^ *+' conftest.er1 >conftest.err
11542 rm -f conftest.er1
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011545 (exit $ac_status); } &&
11546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11547 { (case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11550esac
11551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_try") 2>&5
11553 ac_status=$?
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; } &&
11556 { ac_try='test -s conftest.$ac_objext'
11557 { (case "(($ac_try" in
11558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559 *) ac_try_echo=$ac_try;;
11560esac
11561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_try") 2>&5
11563 ac_status=$?
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011566 ac_header_compiler=yes
11567else
11568 echo "$as_me: failed program was:" >&5
11569sed 's/^/| /' conftest.$ac_ext >&5
11570
Reid Spencera773bd52006-08-04 18:18:08 +000011571 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011572fi
Reid Spencera773bd52006-08-04 18:18:08 +000011573
11574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11575{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11576echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011577
11578# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011579{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11580echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011581cat >conftest.$ac_ext <<_ACEOF
11582/* confdefs.h. */
11583_ACEOF
11584cat confdefs.h >>conftest.$ac_ext
11585cat >>conftest.$ac_ext <<_ACEOF
11586/* end confdefs.h. */
11587#include <$ac_header>
11588_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011589if { (ac_try="$ac_cpp conftest.$ac_ext"
11590case "(($ac_try" in
11591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11592 *) ac_try_echo=$ac_try;;
11593esac
11594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011596 ac_status=$?
11597 grep -v '^ *+' conftest.er1 >conftest.err
11598 rm -f conftest.er1
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011601 (exit $ac_status); } >/dev/null; then
11602 if test -s conftest.err; then
11603 ac_cpp_err=$ac_c_preproc_warn_flag
11604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11605 else
11606 ac_cpp_err=
11607 fi
11608else
11609 ac_cpp_err=yes
11610fi
11611if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011612 ac_header_preproc=yes
11613else
11614 echo "$as_me: failed program was:" >&5
11615sed 's/^/| /' conftest.$ac_ext >&5
11616
11617 ac_header_preproc=no
11618fi
Reid Spencera773bd52006-08-04 18:18:08 +000011619
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011620rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011621{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11622echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011623
11624# So? What about this header?
11625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11626 yes:no: )
11627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11631 ac_header_preproc=yes
11632 ;;
11633 no:yes:* )
11634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011646 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011647## ----------------------------------- ##
11648## Report this to llvmbugs@cs.uiuc.edu ##
11649## ----------------------------------- ##
11650_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011651 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011652 ;;
11653esac
Reid Spencera773bd52006-08-04 18:18:08 +000011654{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658else
11659 eval "$as_ac_Header=\$ac_header_preproc"
11660fi
Reid Spencera773bd52006-08-04 18:18:08 +000011661ac_res=`eval echo '${'$as_ac_Header'}'`
11662 { echo "$as_me:$LINENO: result: $ac_res" >&5
11663echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011664
11665fi
11666if test `eval echo '${'$as_ac_Header'}'` = yes; then
11667 cat >>confdefs.h <<_ACEOF
11668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11669_ACEOF
11670
11671fi
11672
11673done
11674
11675
11676
11677
11678
11679for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11680do
11681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011686 echo $ECHO_N "(cached) $ECHO_C" >&6
11687fi
Reid Spencera773bd52006-08-04 18:18:08 +000011688ac_res=`eval echo '${'$as_ac_Header'}'`
11689 { echo "$as_me:$LINENO: result: $ac_res" >&5
11690echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011691else
11692 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011693{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011695cat >conftest.$ac_ext <<_ACEOF
11696/* confdefs.h. */
11697_ACEOF
11698cat confdefs.h >>conftest.$ac_ext
11699cat >>conftest.$ac_ext <<_ACEOF
11700/* end confdefs.h. */
11701$ac_includes_default
11702#include <$ac_header>
11703_ACEOF
11704rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011705if { (ac_try="$ac_compile"
11706case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709esac
11710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11722esac
11723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try='test -s conftest.$ac_objext'
11729 { (case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732esac
11733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_try") 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011738 ac_header_compiler=yes
11739else
11740 echo "$as_me: failed program was:" >&5
11741sed 's/^/| /' conftest.$ac_ext >&5
11742
Reid Spencera773bd52006-08-04 18:18:08 +000011743 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011744fi
Reid Spencera773bd52006-08-04 18:18:08 +000011745
11746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11747{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11748echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011749
11750# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011751{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011753cat >conftest.$ac_ext <<_ACEOF
11754/* confdefs.h. */
11755_ACEOF
11756cat confdefs.h >>conftest.$ac_ext
11757cat >>conftest.$ac_ext <<_ACEOF
11758/* end confdefs.h. */
11759#include <$ac_header>
11760_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011761if { (ac_try="$ac_cpp conftest.$ac_ext"
11762case "(($ac_try" in
11763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764 *) ac_try_echo=$ac_try;;
11765esac
11766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011768 ac_status=$?
11769 grep -v '^ *+' conftest.er1 >conftest.err
11770 rm -f conftest.er1
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011773 (exit $ac_status); } >/dev/null; then
11774 if test -s conftest.err; then
11775 ac_cpp_err=$ac_c_preproc_warn_flag
11776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11777 else
11778 ac_cpp_err=
11779 fi
11780else
11781 ac_cpp_err=yes
11782fi
11783if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784 ac_header_preproc=yes
11785else
11786 echo "$as_me: failed program was:" >&5
11787sed 's/^/| /' conftest.$ac_ext >&5
11788
11789 ac_header_preproc=no
11790fi
Reid Spencera773bd52006-08-04 18:18:08 +000011791
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011792rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011793{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11794echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011795
11796# So? What about this header?
11797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11798 yes:no: )
11799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11803 ac_header_preproc=yes
11804 ;;
11805 no:yes:* )
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11809echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11813echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011818 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011819## ----------------------------------- ##
11820## Report this to llvmbugs@cs.uiuc.edu ##
11821## ----------------------------------- ##
11822_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011823 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011824 ;;
11825esac
Reid Spencera773bd52006-08-04 18:18:08 +000011826{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011829 echo $ECHO_N "(cached) $ECHO_C" >&6
11830else
11831 eval "$as_ac_Header=\$ac_header_preproc"
11832fi
Reid Spencera773bd52006-08-04 18:18:08 +000011833ac_res=`eval echo '${'$as_ac_Header'}'`
11834 { echo "$as_me:$LINENO: result: $ac_res" >&5
11835echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011836
11837fi
11838if test `eval echo '${'$as_ac_Header'}'` = yes; then
11839 cat >>confdefs.h <<_ACEOF
11840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11841_ACEOF
11842
11843fi
11844
11845done
11846
11847
11848
11849for ac_header in string.h strings.h
11850do
11851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857fi
Reid Spencera773bd52006-08-04 18:18:08 +000011858ac_res=`eval echo '${'$as_ac_Header'}'`
11859 { echo "$as_me:$LINENO: result: $ac_res" >&5
11860echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011861else
11862 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011863{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011865cat >conftest.$ac_ext <<_ACEOF
11866/* confdefs.h. */
11867_ACEOF
11868cat confdefs.h >>conftest.$ac_ext
11869cat >>conftest.$ac_ext <<_ACEOF
11870/* end confdefs.h. */
11871$ac_includes_default
11872#include <$ac_header>
11873_ACEOF
11874rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011875if { (ac_try="$ac_compile"
11876case "(($ac_try" in
11877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878 *) ac_try_echo=$ac_try;;
11879esac
11880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011882 ac_status=$?
11883 grep -v '^ *+' conftest.er1 >conftest.err
11884 rm -f conftest.er1
11885 cat conftest.err >&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011887 (exit $ac_status); } &&
11888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11889 { (case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892esac
11893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_try") 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest.$ac_objext'
11899 { (case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902esac
11903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_try") 2>&5
11905 ac_status=$?
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011908 ac_header_compiler=yes
11909else
11910 echo "$as_me: failed program was:" >&5
11911sed 's/^/| /' conftest.$ac_ext >&5
11912
Reid Spencera773bd52006-08-04 18:18:08 +000011913 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011914fi
Reid Spencera773bd52006-08-04 18:18:08 +000011915
11916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11918echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011919
11920# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011921{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11922echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011923cat >conftest.$ac_ext <<_ACEOF
11924/* confdefs.h. */
11925_ACEOF
11926cat confdefs.h >>conftest.$ac_ext
11927cat >>conftest.$ac_ext <<_ACEOF
11928/* end confdefs.h. */
11929#include <$ac_header>
11930_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011931if { (ac_try="$ac_cpp conftest.$ac_ext"
11932case "(($ac_try" in
11933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11934 *) ac_try_echo=$ac_try;;
11935esac
11936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011938 ac_status=$?
11939 grep -v '^ *+' conftest.er1 >conftest.err
11940 rm -f conftest.er1
11941 cat conftest.err >&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011943 (exit $ac_status); } >/dev/null; then
11944 if test -s conftest.err; then
11945 ac_cpp_err=$ac_c_preproc_warn_flag
11946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11947 else
11948 ac_cpp_err=
11949 fi
11950else
11951 ac_cpp_err=yes
11952fi
11953if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011954 ac_header_preproc=yes
11955else
11956 echo "$as_me: failed program was:" >&5
11957sed 's/^/| /' conftest.$ac_ext >&5
11958
11959 ac_header_preproc=no
11960fi
Reid Spencera773bd52006-08-04 18:18:08 +000011961
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011962rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011963{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11964echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011965
11966# So? What about this header?
11967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11968 yes:no: )
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11970echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11972echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11973 ac_header_preproc=yes
11974 ;;
11975 no:yes:* )
11976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11977echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11979echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11981echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11983echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11985echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11987echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011988 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011989## ----------------------------------- ##
11990## Report this to llvmbugs@cs.uiuc.edu ##
11991## ----------------------------------- ##
11992_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011993 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011994 ;;
11995esac
Reid Spencera773bd52006-08-04 18:18:08 +000011996{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011999 echo $ECHO_N "(cached) $ECHO_C" >&6
12000else
12001 eval "$as_ac_Header=\$ac_header_preproc"
12002fi
Reid Spencera773bd52006-08-04 18:18:08 +000012003ac_res=`eval echo '${'$as_ac_Header'}'`
12004 { echo "$as_me:$LINENO: result: $ac_res" >&5
12005echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012006
12007fi
12008if test `eval echo '${'$as_ac_Header'}'` = yes; then
12009 cat >>confdefs.h <<_ACEOF
12010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12011_ACEOF
12012 break
12013fi
12014
12015done
12016
12017
12018
12019
12020for ac_func in strchr index
12021do
12022as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012023{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12024echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12025if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012026 echo $ECHO_N "(cached) $ECHO_C" >&6
12027else
12028 cat >conftest.$ac_ext <<_ACEOF
12029/* confdefs.h. */
12030_ACEOF
12031cat confdefs.h >>conftest.$ac_ext
12032cat >>conftest.$ac_ext <<_ACEOF
12033/* end confdefs.h. */
12034/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12036#define $ac_func innocuous_$ac_func
12037
12038/* System header to define __stub macros and hopefully few prototypes,
12039 which can conflict with char $ac_func (); below.
12040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12041 <limits.h> exists even on freestanding compilers. */
12042
12043#ifdef __STDC__
12044# include <limits.h>
12045#else
12046# include <assert.h>
12047#endif
12048
12049#undef $ac_func
12050
Reid Spencera773bd52006-08-04 18:18:08 +000012051/* Override any GCC internal prototype to avoid an error.
12052 Use char because int might match the return type of a GCC
12053 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012054#ifdef __cplusplus
12055extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012056#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012057char $ac_func ();
12058/* The GNU C library defines this for functions which it implements
12059 to always fail with ENOSYS. Some functions are actually named
12060 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012061#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012062choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012063#endif
12064
12065int
12066main ()
12067{
Reid Spencera773bd52006-08-04 18:18:08 +000012068return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012069 ;
12070 return 0;
12071}
12072_ACEOF
12073rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012074if { (ac_try="$ac_link"
12075case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12078esac
12079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012081 ac_status=$?
12082 grep -v '^ *+' conftest.er1 >conftest.err
12083 rm -f conftest.er1
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012086 (exit $ac_status); } &&
12087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12088 { (case "(($ac_try" in
12089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12091esac
12092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_try") 2>&5
12094 ac_status=$?
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); }; } &&
12097 { ac_try='test -s conftest$ac_exeext'
12098 { (case "(($ac_try" in
12099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100 *) ac_try_echo=$ac_try;;
12101esac
12102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103 (eval "$ac_try") 2>&5
12104 ac_status=$?
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012107 eval "$as_ac_var=yes"
12108else
12109 echo "$as_me: failed program was:" >&5
12110sed 's/^/| /' conftest.$ac_ext >&5
12111
Reid Spencera773bd52006-08-04 18:18:08 +000012112 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012113fi
Reid Spencera773bd52006-08-04 18:18:08 +000012114
Bill Wendlingebcceee2009-04-18 11:20:33 +000012115rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012116 conftest$ac_exeext conftest.$ac_ext
12117fi
Reid Spencera773bd52006-08-04 18:18:08 +000012118ac_res=`eval echo '${'$as_ac_var'}'`
12119 { echo "$as_me:$LINENO: result: $ac_res" >&5
12120echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012121if test `eval echo '${'$as_ac_var'}'` = yes; then
12122 cat >>confdefs.h <<_ACEOF
12123#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12124_ACEOF
12125 break
12126fi
12127done
12128
12129
12130
12131for ac_func in strrchr rindex
12132do
12133as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012134{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12135echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12136if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012137 echo $ECHO_N "(cached) $ECHO_C" >&6
12138else
12139 cat >conftest.$ac_ext <<_ACEOF
12140/* confdefs.h. */
12141_ACEOF
12142cat confdefs.h >>conftest.$ac_ext
12143cat >>conftest.$ac_ext <<_ACEOF
12144/* end confdefs.h. */
12145/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12147#define $ac_func innocuous_$ac_func
12148
12149/* System header to define __stub macros and hopefully few prototypes,
12150 which can conflict with char $ac_func (); below.
12151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12152 <limits.h> exists even on freestanding compilers. */
12153
12154#ifdef __STDC__
12155# include <limits.h>
12156#else
12157# include <assert.h>
12158#endif
12159
12160#undef $ac_func
12161
Reid Spencera773bd52006-08-04 18:18:08 +000012162/* Override any GCC internal prototype to avoid an error.
12163 Use char because int might match the return type of a GCC
12164 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012165#ifdef __cplusplus
12166extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012167#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012168char $ac_func ();
12169/* The GNU C library defines this for functions which it implements
12170 to always fail with ENOSYS. Some functions are actually named
12171 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012172#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012173choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012174#endif
12175
12176int
12177main ()
12178{
Reid Spencera773bd52006-08-04 18:18:08 +000012179return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012180 ;
12181 return 0;
12182}
12183_ACEOF
12184rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012185if { (ac_try="$ac_link"
12186case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12189esac
12190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012192 ac_status=$?
12193 grep -v '^ *+' conftest.er1 >conftest.err
12194 rm -f conftest.er1
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12199 { (case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202esac
12203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_try") 2>&5
12205 ac_status=$?
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); }; } &&
12208 { ac_try='test -s conftest$ac_exeext'
12209 { (case "(($ac_try" in
12210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211 *) ac_try_echo=$ac_try;;
12212esac
12213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214 (eval "$ac_try") 2>&5
12215 ac_status=$?
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012218 eval "$as_ac_var=yes"
12219else
12220 echo "$as_me: failed program was:" >&5
12221sed 's/^/| /' conftest.$ac_ext >&5
12222
Reid Spencera773bd52006-08-04 18:18:08 +000012223 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012224fi
Reid Spencera773bd52006-08-04 18:18:08 +000012225
Bill Wendlingebcceee2009-04-18 11:20:33 +000012226rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012227 conftest$ac_exeext conftest.$ac_ext
12228fi
Reid Spencera773bd52006-08-04 18:18:08 +000012229ac_res=`eval echo '${'$as_ac_var'}'`
12230 { echo "$as_me:$LINENO: result: $ac_res" >&5
12231echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012232if test `eval echo '${'$as_ac_var'}'` = yes; then
12233 cat >>confdefs.h <<_ACEOF
12234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12235_ACEOF
12236 break
12237fi
12238done
12239
12240
12241
12242for ac_func in memcpy bcopy
12243do
12244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012245{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12247if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012248 echo $ECHO_N "(cached) $ECHO_C" >&6
12249else
12250 cat >conftest.$ac_ext <<_ACEOF
12251/* confdefs.h. */
12252_ACEOF
12253cat confdefs.h >>conftest.$ac_ext
12254cat >>conftest.$ac_ext <<_ACEOF
12255/* end confdefs.h. */
12256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12258#define $ac_func innocuous_$ac_func
12259
12260/* System header to define __stub macros and hopefully few prototypes,
12261 which can conflict with char $ac_func (); below.
12262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12263 <limits.h> exists even on freestanding compilers. */
12264
12265#ifdef __STDC__
12266# include <limits.h>
12267#else
12268# include <assert.h>
12269#endif
12270
12271#undef $ac_func
12272
Reid Spencera773bd52006-08-04 18:18:08 +000012273/* Override any GCC internal prototype to avoid an error.
12274 Use char because int might match the return type of a GCC
12275 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012276#ifdef __cplusplus
12277extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012278#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012279char $ac_func ();
12280/* The GNU C library defines this for functions which it implements
12281 to always fail with ENOSYS. Some functions are actually named
12282 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012283#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012284choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012285#endif
12286
12287int
12288main ()
12289{
Reid Spencera773bd52006-08-04 18:18:08 +000012290return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012291 ;
12292 return 0;
12293}
12294_ACEOF
12295rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012296if { (ac_try="$ac_link"
12297case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12300esac
12301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012303 ac_status=$?
12304 grep -v '^ *+' conftest.er1 >conftest.err
12305 rm -f conftest.er1
12306 cat conftest.err >&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012308 (exit $ac_status); } &&
12309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12310 { (case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12313esac
12314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_try") 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; } &&
12319 { ac_try='test -s conftest$ac_exeext'
12320 { (case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323esac
12324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_try") 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012329 eval "$as_ac_var=yes"
12330else
12331 echo "$as_me: failed program was:" >&5
12332sed 's/^/| /' conftest.$ac_ext >&5
12333
Reid Spencera773bd52006-08-04 18:18:08 +000012334 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012335fi
Reid Spencera773bd52006-08-04 18:18:08 +000012336
Bill Wendlingebcceee2009-04-18 11:20:33 +000012337rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012338 conftest$ac_exeext conftest.$ac_ext
12339fi
Reid Spencera773bd52006-08-04 18:18:08 +000012340ac_res=`eval echo '${'$as_ac_var'}'`
12341 { echo "$as_me:$LINENO: result: $ac_res" >&5
12342echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012343if test `eval echo '${'$as_ac_var'}'` = yes; then
12344 cat >>confdefs.h <<_ACEOF
12345#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12346_ACEOF
12347 break
12348fi
12349done
12350
12351
12352
12353for ac_func in memmove strcmp
12354do
12355as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012356{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12357echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12358if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012359 echo $ECHO_N "(cached) $ECHO_C" >&6
12360else
12361 cat >conftest.$ac_ext <<_ACEOF
12362/* confdefs.h. */
12363_ACEOF
12364cat confdefs.h >>conftest.$ac_ext
12365cat >>conftest.$ac_ext <<_ACEOF
12366/* end confdefs.h. */
12367/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12369#define $ac_func innocuous_$ac_func
12370
12371/* System header to define __stub macros and hopefully few prototypes,
12372 which can conflict with char $ac_func (); below.
12373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12374 <limits.h> exists even on freestanding compilers. */
12375
12376#ifdef __STDC__
12377# include <limits.h>
12378#else
12379# include <assert.h>
12380#endif
12381
12382#undef $ac_func
12383
Reid Spencera773bd52006-08-04 18:18:08 +000012384/* Override any GCC internal prototype to avoid an error.
12385 Use char because int might match the return type of a GCC
12386 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012387#ifdef __cplusplus
12388extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012389#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012390char $ac_func ();
12391/* The GNU C library defines this for functions which it implements
12392 to always fail with ENOSYS. Some functions are actually named
12393 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012394#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012395choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012396#endif
12397
12398int
12399main ()
12400{
Reid Spencera773bd52006-08-04 18:18:08 +000012401return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012402 ;
12403 return 0;
12404}
12405_ACEOF
12406rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012407if { (ac_try="$ac_link"
12408case "(($ac_try" in
12409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12410 *) ac_try_echo=$ac_try;;
12411esac
12412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012414 ac_status=$?
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012419 (exit $ac_status); } &&
12420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12421 { (case "(($ac_try" in
12422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423 *) ac_try_echo=$ac_try;;
12424esac
12425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426 (eval "$ac_try") 2>&5
12427 ac_status=$?
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; } &&
12430 { ac_try='test -s conftest$ac_exeext'
12431 { (case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12434esac
12435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_try") 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440 eval "$as_ac_var=yes"
12441else
12442 echo "$as_me: failed program was:" >&5
12443sed 's/^/| /' conftest.$ac_ext >&5
12444
Reid Spencera773bd52006-08-04 18:18:08 +000012445 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012446fi
Reid Spencera773bd52006-08-04 18:18:08 +000012447
Bill Wendlingebcceee2009-04-18 11:20:33 +000012448rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012449 conftest$ac_exeext conftest.$ac_ext
12450fi
Reid Spencera773bd52006-08-04 18:18:08 +000012451ac_res=`eval echo '${'$as_ac_var'}'`
12452 { echo "$as_me:$LINENO: result: $ac_res" >&5
12453echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012454if test `eval echo '${'$as_ac_var'}'` = yes; then
12455 cat >>confdefs.h <<_ACEOF
12456#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12457_ACEOF
12458
12459fi
12460done
12461
12462
12463
12464
12465for ac_func in closedir opendir readdir
12466do
12467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012468{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12470if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472else
12473 cat >conftest.$ac_ext <<_ACEOF
12474/* confdefs.h. */
12475_ACEOF
12476cat confdefs.h >>conftest.$ac_ext
12477cat >>conftest.$ac_ext <<_ACEOF
12478/* end confdefs.h. */
12479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12481#define $ac_func innocuous_$ac_func
12482
12483/* System header to define __stub macros and hopefully few prototypes,
12484 which can conflict with char $ac_func (); below.
12485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12486 <limits.h> exists even on freestanding compilers. */
12487
12488#ifdef __STDC__
12489# include <limits.h>
12490#else
12491# include <assert.h>
12492#endif
12493
12494#undef $ac_func
12495
Reid Spencera773bd52006-08-04 18:18:08 +000012496/* Override any GCC internal prototype to avoid an error.
12497 Use char because int might match the return type of a GCC
12498 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012499#ifdef __cplusplus
12500extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012501#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012502char $ac_func ();
12503/* The GNU C library defines this for functions which it implements
12504 to always fail with ENOSYS. Some functions are actually named
12505 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012506#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012507choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012508#endif
12509
12510int
12511main ()
12512{
Reid Spencera773bd52006-08-04 18:18:08 +000012513return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012514 ;
12515 return 0;
12516}
12517_ACEOF
12518rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012519if { (ac_try="$ac_link"
12520case "(($ac_try" in
12521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12522 *) ac_try_echo=$ac_try;;
12523esac
12524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12525 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012526 ac_status=$?
12527 grep -v '^ *+' conftest.er1 >conftest.err
12528 rm -f conftest.er1
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12533 { (case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12536esac
12537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_try") 2>&5
12539 ac_status=$?
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; } &&
12542 { ac_try='test -s conftest$ac_exeext'
12543 { (case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12546esac
12547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12548 (eval "$ac_try") 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012552 eval "$as_ac_var=yes"
12553else
12554 echo "$as_me: failed program was:" >&5
12555sed 's/^/| /' conftest.$ac_ext >&5
12556
Reid Spencera773bd52006-08-04 18:18:08 +000012557 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012558fi
Reid Spencera773bd52006-08-04 18:18:08 +000012559
Bill Wendlingebcceee2009-04-18 11:20:33 +000012560rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012561 conftest$ac_exeext conftest.$ac_ext
12562fi
Reid Spencera773bd52006-08-04 18:18:08 +000012563ac_res=`eval echo '${'$as_ac_var'}'`
12564 { echo "$as_me:$LINENO: result: $ac_res" >&5
12565echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012566if test `eval echo '${'$as_ac_var'}'` = yes; then
12567 cat >>confdefs.h <<_ACEOF
12568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12569_ACEOF
12570
12571fi
12572done
12573
12574
Reid Spencera773bd52006-08-04 18:18:08 +000012575# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012576if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012577 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012578 case $enableval in
12579 yes) enable_shared=yes ;;
12580 no) enable_shared=no ;;
12581 *)
12582 enable_shared=no
12583 # Look at the argument we got. We use all the common list separators.
12584 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12585 for pkg in $enableval; do
12586 IFS="$lt_save_ifs"
12587 if test "X$pkg" = "X$p"; then
12588 enable_shared=yes
12589 fi
12590 done
12591 IFS="$lt_save_ifs"
12592 ;;
12593 esac
12594else
12595 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012596fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012597
Reid Spencera773bd52006-08-04 18:18:08 +000012598
12599# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012600if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012601 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012602 case $enableval in
12603 yes) enable_static=yes ;;
12604 no) enable_static=no ;;
12605 *)
12606 enable_static=no
12607 # Look at the argument we got. We use all the common list separators.
12608 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12609 for pkg in $enableval; do
12610 IFS="$lt_save_ifs"
12611 if test "X$pkg" = "X$p"; then
12612 enable_static=yes
12613 fi
12614 done
12615 IFS="$lt_save_ifs"
12616 ;;
12617 esac
12618else
12619 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012620fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012621
Reid Spencera773bd52006-08-04 18:18:08 +000012622
12623# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012624if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012625 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012626 case $enableval in
12627 yes) enable_fast_install=yes ;;
12628 no) enable_fast_install=no ;;
12629 *)
12630 enable_fast_install=no
12631 # Look at the argument we got. We use all the common list separators.
12632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12633 for pkg in $enableval; do
12634 IFS="$lt_save_ifs"
12635 if test "X$pkg" = "X$p"; then
12636 enable_fast_install=yes
12637 fi
12638 done
12639 IFS="$lt_save_ifs"
12640 ;;
12641 esac
12642else
12643 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012644fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012645
Reid Spencera773bd52006-08-04 18:18:08 +000012646
12647{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12648echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012649if test "${lt_cv_path_SED+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12651else
12652 # Loop through the user's path and test for sed and gsed.
12653# Then use that list of sed's as ones to test for truncation.
12654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655for as_dir in $PATH
12656do
12657 IFS=$as_save_IFS
12658 test -z "$as_dir" && as_dir=.
12659 for lt_ac_prog in sed gsed; do
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12662 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12663 fi
12664 done
12665 done
12666done
12667lt_ac_max=0
12668lt_ac_count=0
12669# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12670# along with /bin/sed that truncates output.
12671for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012672 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012673 cat /dev/null > conftest.in
12674 lt_ac_count=0
12675 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12676 # Check for GNU sed and select it if it is found.
12677 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12678 lt_cv_path_SED=$lt_ac_sed
12679 break
12680 fi
12681 while true; do
12682 cat conftest.in conftest.in >conftest.tmp
12683 mv conftest.tmp conftest.in
12684 cp conftest.in conftest.nl
12685 echo >>conftest.nl
12686 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12687 cmp -s conftest.out conftest.nl || break
12688 # 10000 chars as input seems more than enough
12689 test $lt_ac_count -gt 10 && break
12690 lt_ac_count=`expr $lt_ac_count + 1`
12691 if test $lt_ac_count -gt $lt_ac_max; then
12692 lt_ac_max=$lt_ac_count
12693 lt_cv_path_SED=$lt_ac_sed
12694 fi
12695 done
12696done
12697
12698fi
12699
12700SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012701{ echo "$as_me:$LINENO: result: $SED" >&5
12702echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012703
12704
Reid Spencera773bd52006-08-04 18:18:08 +000012705# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012706if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012707 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012708else
12709 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012710fi
12711
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012712ac_prog=ld
12713if test "$GCC" = yes; then
12714 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012715 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12716echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012717 case $host in
12718 *-*-mingw*)
12719 # gcc leaves a trailing carriage return which upsets mingw
12720 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12721 *)
12722 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12723 esac
12724 case $ac_prog in
12725 # Accept absolute paths.
12726 [\\/]* | ?:[\\/]*)
12727 re_direlt='/[^/][^/]*/\.\./'
12728 # Canonicalize the pathname of ld
12729 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12730 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12731 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12732 done
12733 test -z "$LD" && LD="$ac_prog"
12734 ;;
12735 "")
12736 # If it fails, then pretend we aren't using GCC.
12737 ac_prog=ld
12738 ;;
12739 *)
12740 # If it is relative, then search for the first ld in PATH.
12741 with_gnu_ld=unknown
12742 ;;
12743 esac
12744elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012745 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12746echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012747else
Reid Spencera773bd52006-08-04 18:18:08 +000012748 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12749echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012750fi
12751if test "${lt_cv_path_LD+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12753else
12754 if test -z "$LD"; then
12755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12756 for ac_dir in $PATH; do
12757 IFS="$lt_save_ifs"
12758 test -z "$ac_dir" && ac_dir=.
12759 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12760 lt_cv_path_LD="$ac_dir/$ac_prog"
12761 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012762 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012763 # Break only if it was the GNU/non-GNU ld that we prefer.
12764 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12765 *GNU* | *'with BFD'*)
12766 test "$with_gnu_ld" != no && break
12767 ;;
12768 *)
12769 test "$with_gnu_ld" != yes && break
12770 ;;
12771 esac
12772 fi
12773 done
12774 IFS="$lt_save_ifs"
12775else
12776 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12777fi
12778fi
12779
12780LD="$lt_cv_path_LD"
12781if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012782 { echo "$as_me:$LINENO: result: $LD" >&5
12783echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012784else
Reid Spencera773bd52006-08-04 18:18:08 +000012785 { echo "$as_me:$LINENO: result: no" >&5
12786echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012787fi
12788test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12789echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12790 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012791{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12792echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012793if test "${lt_cv_prog_gnu_ld+set}" = set; then
12794 echo $ECHO_N "(cached) $ECHO_C" >&6
12795else
Reid Spencera773bd52006-08-04 18:18:08 +000012796 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012797case `$LD -v 2>&1 </dev/null` in
12798*GNU* | *'with BFD'*)
12799 lt_cv_prog_gnu_ld=yes
12800 ;;
12801*)
12802 lt_cv_prog_gnu_ld=no
12803 ;;
12804esac
12805fi
Reid Spencera773bd52006-08-04 18:18:08 +000012806{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12807echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012808with_gnu_ld=$lt_cv_prog_gnu_ld
12809
12810
Reid Spencera773bd52006-08-04 18:18:08 +000012811{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12812echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012813if test "${lt_cv_ld_reload_flag+set}" = set; then
12814 echo $ECHO_N "(cached) $ECHO_C" >&6
12815else
12816 lt_cv_ld_reload_flag='-r'
12817fi
Reid Spencera773bd52006-08-04 18:18:08 +000012818{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12819echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012820reload_flag=$lt_cv_ld_reload_flag
12821case $reload_flag in
12822"" | " "*) ;;
12823*) reload_flag=" $reload_flag" ;;
12824esac
12825reload_cmds='$LD$reload_flag -o $output$reload_objs'
12826case $host_os in
12827 darwin*)
12828 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012829 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012830 else
12831 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12832 fi
12833 ;;
12834esac
12835
Reid Spencera773bd52006-08-04 18:18:08 +000012836{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12837echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012838if test "${lt_cv_deplibs_check_method+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12840else
12841 lt_cv_file_magic_cmd='$MAGIC_CMD'
12842lt_cv_file_magic_test_file=
12843lt_cv_deplibs_check_method='unknown'
12844# Need to set the preceding variable on all platforms that support
12845# interlibrary dependencies.
12846# 'none' -- dependencies not supported.
12847# `unknown' -- same as none, but documents that we really don't know.
12848# 'pass_all' -- all dependencies passed with no checks.
12849# 'test_compile' -- check by making test program.
12850# 'file_magic [[regex]]' -- check by looking for files in library path
12851# which responds to the $file_magic_cmd with a given extended regex.
12852# If you have `file' or equivalent on your system and you're not sure
12853# whether `pass_all' will *always* work, you probably want this one.
12854
12855case $host_os in
12856aix4* | aix5*)
12857 lt_cv_deplibs_check_method=pass_all
12858 ;;
12859
12860beos*)
12861 lt_cv_deplibs_check_method=pass_all
12862 ;;
12863
12864bsdi[45]*)
12865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12866 lt_cv_file_magic_cmd='/usr/bin/file -L'
12867 lt_cv_file_magic_test_file=/shlib/libc.so
12868 ;;
12869
12870cygwin*)
12871 # func_win32_libid is a shell function defined in ltmain.sh
12872 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12873 lt_cv_file_magic_cmd='func_win32_libid'
12874 ;;
12875
12876mingw* | pw32*)
12877 # Base MSYS/MinGW do not provide the 'file' command needed by
12878 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12879 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12880 lt_cv_file_magic_cmd='$OBJDUMP -f'
12881 ;;
12882
12883darwin* | rhapsody*)
12884 lt_cv_deplibs_check_method=pass_all
12885 ;;
12886
Reid Spencera773bd52006-08-04 18:18:08 +000012887freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012888 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12889 case $host_cpu in
12890 i*86 )
12891 # Not sure whether the presence of OpenBSD here was a mistake.
12892 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012893 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 +000012894 lt_cv_file_magic_cmd=/usr/bin/file
12895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12896 ;;
12897 esac
12898 else
12899 lt_cv_deplibs_check_method=pass_all
12900 fi
12901 ;;
12902
12903gnu*)
12904 lt_cv_deplibs_check_method=pass_all
12905 ;;
12906
12907hpux10.20* | hpux11*)
12908 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012909 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012910 ia64*)
12911 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12912 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12913 ;;
12914 hppa*64*)
12915 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]'
12916 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12917 ;;
12918 *)
12919 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12920 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12921 ;;
12922 esac
12923 ;;
12924
Reid Spencera773bd52006-08-04 18:18:08 +000012925interix3*)
12926 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12927 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12928 ;;
12929
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012930irix5* | irix6* | nonstopux*)
12931 case $LD in
12932 *-32|*"-32 ") libmagic=32-bit;;
12933 *-n32|*"-n32 ") libmagic=N32;;
12934 *-64|*"-64 ") libmagic=64-bit;;
12935 *) libmagic=never-match;;
12936 esac
12937 lt_cv_deplibs_check_method=pass_all
12938 ;;
12939
12940# This must be Linux ELF.
12941linux*)
12942 lt_cv_deplibs_check_method=pass_all
12943 ;;
12944
12945netbsd*)
12946 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12947 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12948 else
12949 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12950 fi
12951 ;;
12952
12953newos6*)
12954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12955 lt_cv_file_magic_cmd=/usr/bin/file
12956 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12957 ;;
12958
12959nto-qnx*)
12960 lt_cv_deplibs_check_method=unknown
12961 ;;
12962
12963openbsd*)
12964 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12965 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12966 else
12967 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12968 fi
12969 ;;
12970
12971osf3* | osf4* | osf5*)
12972 lt_cv_deplibs_check_method=pass_all
12973 ;;
12974
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012975solaris*)
12976 lt_cv_deplibs_check_method=pass_all
12977 ;;
12978
Reid Spencera773bd52006-08-04 18:18:08 +000012979sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012980 case $host_vendor in
12981 motorola)
12982 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]'
12983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12984 ;;
12985 ncr)
12986 lt_cv_deplibs_check_method=pass_all
12987 ;;
12988 sequent)
12989 lt_cv_file_magic_cmd='/bin/file'
12990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12991 ;;
12992 sni)
12993 lt_cv_file_magic_cmd='/bin/file'
12994 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12995 lt_cv_file_magic_test_file=/lib/libc.so
12996 ;;
12997 siemens)
12998 lt_cv_deplibs_check_method=pass_all
12999 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013000 pc)
13001 lt_cv_deplibs_check_method=pass_all
13002 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013003 esac
13004 ;;
13005
Reid Spencera773bd52006-08-04 18:18:08 +000013006sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013007 lt_cv_deplibs_check_method=pass_all
13008 ;;
13009esac
13010
13011fi
Reid Spencera773bd52006-08-04 18:18:08 +000013012{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
13013echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013014file_magic_cmd=$lt_cv_file_magic_cmd
13015deplibs_check_method=$lt_cv_deplibs_check_method
13016test -z "$deplibs_check_method" && deplibs_check_method=unknown
13017
13018
13019
13020# If no C compiler was specified, use CC.
13021LTCC=${LTCC-"$CC"}
13022
Reid Spencera773bd52006-08-04 18:18:08 +000013023# If no C compiler flags were specified, use CFLAGS.
13024LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13025
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013026# Allow CC to be a program name with arguments.
13027compiler=$CC
13028
Reid Spencera773bd52006-08-04 18:18:08 +000013029# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013030if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000013031 enableval=$enable_libtool_lock;
13032fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013033
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013034test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13035
13036# Some flags need to be propagated to the compiler or linker for good
13037# libtool support.
13038case $host in
13039ia64-*-hpux*)
13040 # Find out which ABI we are using.
13041 echo 'int i;' > conftest.$ac_ext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13043 (eval $ac_compile) 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; then
13047 case `/usr/bin/file conftest.$ac_objext` in
13048 *ELF-32*)
13049 HPUX_IA64_MODE="32"
13050 ;;
13051 *ELF-64*)
13052 HPUX_IA64_MODE="64"
13053 ;;
13054 esac
13055 fi
13056 rm -rf conftest*
13057 ;;
13058*-*-irix6*)
13059 # Find out which ABI we are using.
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000013060 echo '#line 13060 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13062 (eval $ac_compile) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; then
13066 if test "$lt_cv_prog_gnu_ld" = yes; then
13067 case `/usr/bin/file conftest.$ac_objext` in
13068 *32-bit*)
13069 LD="${LD-ld} -melf32bsmip"
13070 ;;
13071 *N32*)
13072 LD="${LD-ld} -melf32bmipn32"
13073 ;;
13074 *64-bit*)
13075 LD="${LD-ld} -melf64bmip"
13076 ;;
13077 esac
13078 else
13079 case `/usr/bin/file conftest.$ac_objext` in
13080 *32-bit*)
13081 LD="${LD-ld} -32"
13082 ;;
13083 *N32*)
13084 LD="${LD-ld} -n32"
13085 ;;
13086 *64-bit*)
13087 LD="${LD-ld} -64"
13088 ;;
13089 esac
13090 fi
13091 fi
13092 rm -rf conftest*
13093 ;;
13094
13095x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13096 # Find out which ABI we are using.
13097 echo 'int i;' > conftest.$ac_ext
13098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>&5
13100 ac_status=$?
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013103 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013104 *32-bit*)
13105 case $host in
13106 x86_64-*linux*)
13107 LD="${LD-ld} -m elf_i386"
13108 ;;
13109 ppc64-*linux*|powerpc64-*linux*)
13110 LD="${LD-ld} -m elf32ppclinux"
13111 ;;
13112 s390x-*linux*)
13113 LD="${LD-ld} -m elf_s390"
13114 ;;
13115 sparc64-*linux*)
13116 LD="${LD-ld} -m elf32_sparc"
13117 ;;
13118 esac
13119 ;;
13120 *64-bit*)
13121 case $host in
13122 x86_64-*linux*)
13123 LD="${LD-ld} -m elf_x86_64"
13124 ;;
13125 ppc*-*linux*|powerpc*-*linux*)
13126 LD="${LD-ld} -m elf64ppc"
13127 ;;
13128 s390*-*linux*)
13129 LD="${LD-ld} -m elf64_s390"
13130 ;;
13131 sparc*-*linux*)
13132 LD="${LD-ld} -m elf64_sparc"
13133 ;;
13134 esac
13135 ;;
13136 esac
13137 fi
13138 rm -rf conftest*
13139 ;;
13140
13141*-*-sco3.2v5*)
13142 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13143 SAVE_CFLAGS="$CFLAGS"
13144 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013145 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13146echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013147if test "${lt_cv_cc_needs_belf+set}" = set; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13149else
13150 ac_ext=c
13151ac_cpp='$CPP $CPPFLAGS'
13152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13154ac_compiler_gnu=$ac_cv_c_compiler_gnu
13155
13156 cat >conftest.$ac_ext <<_ACEOF
13157/* confdefs.h. */
13158_ACEOF
13159cat confdefs.h >>conftest.$ac_ext
13160cat >>conftest.$ac_ext <<_ACEOF
13161/* end confdefs.h. */
13162
Reid Spencera773bd52006-08-04 18:18:08 +000013163int
13164main ()
13165{
13166
13167 ;
13168 return 0;
13169}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013170_ACEOF
13171rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013172if { (ac_try="$ac_link"
13173case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176esac
13177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013184 (exit $ac_status); } &&
13185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13186 { (case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13189esac
13190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_try") 2>&5
13192 ac_status=$?
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; } &&
13195 { ac_try='test -s conftest$ac_exeext'
13196 { (case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13199esac
13200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_try") 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013205 lt_cv_cc_needs_belf=yes
13206else
13207 echo "$as_me: failed program was:" >&5
13208sed 's/^/| /' conftest.$ac_ext >&5
13209
Reid Spencera773bd52006-08-04 18:18:08 +000013210 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013211fi
Reid Spencera773bd52006-08-04 18:18:08 +000013212
Bill Wendlingebcceee2009-04-18 11:20:33 +000013213rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013214 conftest$ac_exeext conftest.$ac_ext
13215 ac_ext=c
13216ac_cpp='$CPP $CPPFLAGS'
13217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13219ac_compiler_gnu=$ac_cv_c_compiler_gnu
13220
13221fi
Reid Spencera773bd52006-08-04 18:18:08 +000013222{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13223echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013224 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13225 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13226 CFLAGS="$SAVE_CFLAGS"
13227 fi
13228 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013229sparc*-*solaris*)
13230 # Find out which ABI we are using.
13231 echo 'int i;' > conftest.$ac_ext
13232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13233 (eval $ac_compile) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }; then
13237 case `/usr/bin/file conftest.o` in
13238 *64-bit*)
13239 case $lt_cv_prog_gnu_ld in
13240 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13241 *) LD="${LD-ld} -64" ;;
13242 esac
13243 ;;
13244 esac
13245 fi
13246 rm -rf conftest*
13247 ;;
13248
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013249
13250esac
13251
13252need_locks="$enable_libtool_lock"
13253
13254
Reid Spencer2706f8c2004-09-19 23:53:36 +000013255
13256
13257if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13258 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13259 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013260 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013261ac_cpp='$CXXCPP $CPPFLAGS'
13262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013265{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13266echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013267if test -z "$CXXCPP"; then
13268 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270else
John Criswell47fdd832003-07-14 16:52:07 +000013271 # Double quotes because CXXCPP needs to be expanded
13272 for CXXCPP in "$CXX -E" "/lib/cpp"
13273 do
13274 ac_preproc_ok=false
13275for ac_cxx_preproc_warn_flag in '' yes
13276do
13277 # Use a header file that comes with gcc, so configuring glibc
13278 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013279 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13280 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013281 # On the NeXT, cc -E runs the code through the compiler's parser,
13282 # not just through cpp. "Syntax error" is here to catch this case.
13283 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013284/* confdefs.h. */
13285_ACEOF
13286cat confdefs.h >>conftest.$ac_ext
13287cat >>conftest.$ac_ext <<_ACEOF
13288/* end confdefs.h. */
13289#ifdef __STDC__
13290# include <limits.h>
13291#else
13292# include <assert.h>
13293#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013294 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013295_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013296if { (ac_try="$ac_cpp conftest.$ac_ext"
13297case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13300esac
13301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013303 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013304 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013308 (exit $ac_status); } >/dev/null; then
13309 if test -s conftest.err; then
13310 ac_cpp_err=$ac_cxx_preproc_warn_flag
13311 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13312 else
13313 ac_cpp_err=
13314 fi
13315else
13316 ac_cpp_err=yes
13317fi
13318if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013319 :
13320else
13321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013322sed 's/^/| /' conftest.$ac_ext >&5
13323
John Criswell47fdd832003-07-14 16:52:07 +000013324 # Broken: fails on valid input.
13325continue
13326fi
Reid Spencera773bd52006-08-04 18:18:08 +000013327
John Criswell47fdd832003-07-14 16:52:07 +000013328rm -f conftest.err conftest.$ac_ext
13329
Reid Spencera773bd52006-08-04 18:18:08 +000013330 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013331 # can be detected and how.
13332 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013333/* confdefs.h. */
13334_ACEOF
13335cat confdefs.h >>conftest.$ac_ext
13336cat >>conftest.$ac_ext <<_ACEOF
13337/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013338#include <ac_nonexistent.h>
13339_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013340if { (ac_try="$ac_cpp conftest.$ac_ext"
13341case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13344esac
13345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013347 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013348 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013352 (exit $ac_status); } >/dev/null; then
13353 if test -s conftest.err; then
13354 ac_cpp_err=$ac_cxx_preproc_warn_flag
13355 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13356 else
13357 ac_cpp_err=
13358 fi
13359else
13360 ac_cpp_err=yes
13361fi
13362if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013363 # Broken: success on invalid input.
13364continue
13365else
13366 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013367sed 's/^/| /' conftest.$ac_ext >&5
13368
John Criswell47fdd832003-07-14 16:52:07 +000013369 # Passes both tests.
13370ac_preproc_ok=:
13371break
13372fi
Reid Spencera773bd52006-08-04 18:18:08 +000013373
John Criswell47fdd832003-07-14 16:52:07 +000013374rm -f conftest.err conftest.$ac_ext
13375
13376done
13377# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13378rm -f conftest.err conftest.$ac_ext
13379if $ac_preproc_ok; then
13380 break
John Criswell7a73b802003-06-30 21:59:07 +000013381fi
13382
John Criswell47fdd832003-07-14 16:52:07 +000013383 done
13384 ac_cv_prog_CXXCPP=$CXXCPP
13385
13386fi
13387 CXXCPP=$ac_cv_prog_CXXCPP
13388else
13389 ac_cv_prog_CXXCPP=$CXXCPP
13390fi
Reid Spencera773bd52006-08-04 18:18:08 +000013391{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13392echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013393ac_preproc_ok=false
13394for ac_cxx_preproc_warn_flag in '' yes
13395do
13396 # Use a header file that comes with gcc, so configuring glibc
13397 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13399 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013400 # On the NeXT, cc -E runs the code through the compiler's parser,
13401 # not just through cpp. "Syntax error" is here to catch this case.
13402 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013403/* confdefs.h. */
13404_ACEOF
13405cat confdefs.h >>conftest.$ac_ext
13406cat >>conftest.$ac_ext <<_ACEOF
13407/* end confdefs.h. */
13408#ifdef __STDC__
13409# include <limits.h>
13410#else
13411# include <assert.h>
13412#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013413 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013414_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013415if { (ac_try="$ac_cpp conftest.$ac_ext"
13416case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419esac
13420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013422 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013423 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013424 rm -f conftest.er1
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013427 (exit $ac_status); } >/dev/null; then
13428 if test -s conftest.err; then
13429 ac_cpp_err=$ac_cxx_preproc_warn_flag
13430 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13431 else
13432 ac_cpp_err=
13433 fi
13434else
13435 ac_cpp_err=yes
13436fi
13437if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013438 :
13439else
13440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013441sed 's/^/| /' conftest.$ac_ext >&5
13442
John Criswell47fdd832003-07-14 16:52:07 +000013443 # Broken: fails on valid input.
13444continue
13445fi
Reid Spencera773bd52006-08-04 18:18:08 +000013446
John Criswell47fdd832003-07-14 16:52:07 +000013447rm -f conftest.err conftest.$ac_ext
13448
Reid Spencera773bd52006-08-04 18:18:08 +000013449 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013450 # can be detected and how.
13451 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013452/* confdefs.h. */
13453_ACEOF
13454cat confdefs.h >>conftest.$ac_ext
13455cat >>conftest.$ac_ext <<_ACEOF
13456/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013457#include <ac_nonexistent.h>
13458_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013459if { (ac_try="$ac_cpp conftest.$ac_ext"
13460case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13463esac
13464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013466 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013467 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013471 (exit $ac_status); } >/dev/null; then
13472 if test -s conftest.err; then
13473 ac_cpp_err=$ac_cxx_preproc_warn_flag
13474 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13475 else
13476 ac_cpp_err=
13477 fi
13478else
13479 ac_cpp_err=yes
13480fi
13481if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013482 # Broken: success on invalid input.
13483continue
13484else
13485 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013486sed 's/^/| /' conftest.$ac_ext >&5
13487
John Criswell47fdd832003-07-14 16:52:07 +000013488 # Passes both tests.
13489ac_preproc_ok=:
13490break
13491fi
Reid Spencera773bd52006-08-04 18:18:08 +000013492
John Criswell47fdd832003-07-14 16:52:07 +000013493rm -f conftest.err conftest.$ac_ext
13494
13495done
13496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13497rm -f conftest.err conftest.$ac_ext
13498if $ac_preproc_ok; then
13499 :
13500else
John Criswell0c38eaf2003-09-10 15:17:25 +000013501 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13502See \`config.log' for more details." >&5
13503echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13504See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013505 { (exit 1); exit 1; }; }
13506fi
13507
Reid Spencera773bd52006-08-04 18:18:08 +000013508ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013509ac_cpp='$CXXCPP $CPPFLAGS'
13510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13513
Reid Spencer2706f8c2004-09-19 23:53:36 +000013514fi
13515
John Criswell47fdd832003-07-14 16:52:07 +000013516
13517ac_ext=f
13518ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13519ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13520ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13521if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013522 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 +000013523 do
13524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13525set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013526{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013528if test "${ac_cv_prog_F77+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13530else
13531 if test -n "$F77"; then
13532 ac_cv_prog_F77="$F77" # Let the user override the test.
13533else
13534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535for as_dir in $PATH
13536do
13537 IFS=$as_save_IFS
13538 test -z "$as_dir" && as_dir=.
13539 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013540 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 +000013541 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13543 break 2
13544 fi
13545done
13546done
Reid Spencera773bd52006-08-04 18:18:08 +000013547IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013548
13549fi
13550fi
13551F77=$ac_cv_prog_F77
13552if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013553 { echo "$as_me:$LINENO: result: $F77" >&5
13554echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013555else
Reid Spencera773bd52006-08-04 18:18:08 +000013556 { echo "$as_me:$LINENO: result: no" >&5
13557echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013558fi
13559
Reid Spencera773bd52006-08-04 18:18:08 +000013560
John Criswell47fdd832003-07-14 16:52:07 +000013561 test -n "$F77" && break
13562 done
13563fi
13564if test -z "$F77"; then
13565 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013566 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 +000013567do
13568 # Extract the first word of "$ac_prog", so it can be a program name with args.
13569set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013572if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13574else
13575 if test -n "$ac_ct_F77"; then
13576 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13577else
13578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13579for as_dir in $PATH
13580do
13581 IFS=$as_save_IFS
13582 test -z "$as_dir" && as_dir=.
13583 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013584 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 +000013585 ac_cv_prog_ac_ct_F77="$ac_prog"
13586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 break 2
13588 fi
13589done
13590done
Reid Spencera773bd52006-08-04 18:18:08 +000013591IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013592
13593fi
13594fi
13595ac_ct_F77=$ac_cv_prog_ac_ct_F77
13596if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013597 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13598echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013599else
Reid Spencera773bd52006-08-04 18:18:08 +000013600 { echo "$as_me:$LINENO: result: no" >&5
13601echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013602fi
13603
Reid Spencera773bd52006-08-04 18:18:08 +000013604
John Criswell47fdd832003-07-14 16:52:07 +000013605 test -n "$ac_ct_F77" && break
13606done
13607
Reid Spencera773bd52006-08-04 18:18:08 +000013608 if test "x$ac_ct_F77" = x; then
13609 F77=""
13610 else
13611 case $cross_compiling:$ac_tool_warned in
13612yes:)
13613{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13614whose name does not start with the host triplet. If you think this
13615configuration is useful to you, please write to autoconf@gnu.org." >&5
13616echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13617whose name does not start with the host triplet. If you think this
13618configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13619ac_tool_warned=yes ;;
13620esac
13621 F77=$ac_ct_F77
13622 fi
John Criswell47fdd832003-07-14 16:52:07 +000013623fi
13624
13625
13626# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013627echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013628ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013629{ (ac_try="$ac_compiler --version >&5"
13630case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13633esac
13634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013636 ac_status=$?
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013639{ (ac_try="$ac_compiler -v >&5"
13640case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13643esac
13644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013649{ (ac_try="$ac_compiler -V >&5"
13650case "(($ac_try" in
13651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652 *) ac_try_echo=$ac_try;;
13653esac
13654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013656 ac_status=$?
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013659rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013660
13661# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013662# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013663ac_save_ext=$ac_ext
13664ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013665{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13666echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013667if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13669else
13670 cat >conftest.$ac_ext <<_ACEOF
13671 program main
13672#ifndef __GNUC__
13673 choke me
13674#endif
13675
13676 end
13677_ACEOF
13678rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013679if { (ac_try="$ac_compile"
13680case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13683esac
13684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013687 grep -v '^ *+' conftest.er1 >conftest.err
13688 rm -f conftest.er1
13689 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013691 (exit $ac_status); } &&
13692 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13693 { (case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13696esac
13697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_try") 2>&5
13699 ac_status=$?
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); }; } &&
13702 { ac_try='test -s conftest.$ac_objext'
13703 { (case "(($ac_try" in
13704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13705 *) ac_try_echo=$ac_try;;
13706esac
13707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_try") 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013712 ac_compiler_gnu=yes
13713else
13714 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013715sed 's/^/| /' conftest.$ac_ext >&5
13716
Reid Spencera773bd52006-08-04 18:18:08 +000013717 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013718fi
Reid Spencera773bd52006-08-04 18:18:08 +000013719
13720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013721ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13722
13723fi
Reid Spencera773bd52006-08-04 18:18:08 +000013724{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13725echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013726ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013727ac_test_FFLAGS=${FFLAGS+set}
13728ac_save_FFLAGS=$FFLAGS
13729FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013730{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13731echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013732if test "${ac_cv_prog_f77_g+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13734else
13735 FFLAGS=-g
13736cat >conftest.$ac_ext <<_ACEOF
13737 program main
13738
13739 end
13740_ACEOF
13741rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013742if { (ac_try="$ac_compile"
13743case "(($ac_try" in
13744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745 *) ac_try_echo=$ac_try;;
13746esac
13747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013749 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013750 grep -v '^ *+' conftest.er1 >conftest.err
13751 rm -f conftest.er1
13752 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013754 (exit $ac_status); } &&
13755 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13756 { (case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13759esac
13760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_try") 2>&5
13762 ac_status=$?
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); }; } &&
13765 { ac_try='test -s conftest.$ac_objext'
13766 { (case "(($ac_try" in
13767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 *) ac_try_echo=$ac_try;;
13769esac
13770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_try") 2>&5
13772 ac_status=$?
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013775 ac_cv_prog_f77_g=yes
13776else
13777 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013778sed 's/^/| /' conftest.$ac_ext >&5
13779
Reid Spencera773bd52006-08-04 18:18:08 +000013780 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013781fi
Reid Spencera773bd52006-08-04 18:18:08 +000013782
13783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013784
13785fi
Reid Spencera773bd52006-08-04 18:18:08 +000013786{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13787echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013788if test "$ac_test_FFLAGS" = set; then
13789 FFLAGS=$ac_save_FFLAGS
13790elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013791 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013792 FFLAGS="-g -O2"
13793 else
13794 FFLAGS="-g"
13795 fi
13796else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013797 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013798 FFLAGS="-O2"
13799 else
13800 FFLAGS=
13801 fi
13802fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013803
13804G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013805ac_ext=c
13806ac_cpp='$CPP $CPPFLAGS'
13807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809ac_compiler_gnu=$ac_cv_c_compiler_gnu
13810
13811
13812
13813# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13814
13815# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013816{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13817echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013818if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820else
13821 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013822 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013823
13824 case $build_os in
13825 msdosdjgpp*)
13826 # On DJGPP, this test can blow up pretty badly due to problems in libc
13827 # (any single argument exceeding 2000 bytes causes a buffer overrun
13828 # during glob expansion). Even if it were fixed, the result of this
13829 # check would be larger than it should be.
13830 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13831 ;;
13832
13833 gnu*)
13834 # Under GNU Hurd, this test is not required because there is
13835 # no limit to the length of command line arguments.
13836 # Libtool will interpret -1 as no limit whatsoever
13837 lt_cv_sys_max_cmd_len=-1;
13838 ;;
13839
13840 cygwin* | mingw*)
13841 # On Win9x/ME, this test blows up -- it succeeds, but takes
13842 # about 5 minutes as the teststring grows exponentially.
13843 # Worse, since 9x/ME are not pre-emptively multitasking,
13844 # you end up with a "frozen" computer, even though with patience
13845 # the test eventually succeeds (with a max line length of 256k).
13846 # Instead, let's just punt: use the minimum linelength reported by
13847 # all of the supported platforms: 8192 (on NT/2K/XP).
13848 lt_cv_sys_max_cmd_len=8192;
13849 ;;
13850
Reid Spencer2706f8c2004-09-19 23:53:36 +000013851 amigaos*)
13852 # On AmigaOS with pdksh, this test takes hours, literally.
13853 # So we just punt and use a minimum line length of 8192.
13854 lt_cv_sys_max_cmd_len=8192;
13855 ;;
13856
Reid Spencera773bd52006-08-04 18:18:08 +000013857 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013858 # This has been around since 386BSD, at least. Likely further.
13859 if test -x /sbin/sysctl; then
13860 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13861 elif test -x /usr/sbin/sysctl; then
13862 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13863 else
Reid Spencera773bd52006-08-04 18:18:08 +000013864 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013865 fi
13866 # And add a safety zone
13867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013869 ;;
13870
Reid Spencera773bd52006-08-04 18:18:08 +000013871 interix*)
13872 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13873 lt_cv_sys_max_cmd_len=196608
13874 ;;
13875
13876 osf*)
13877 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13878 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13879 # nice to cause kernel panics so lets avoid the loop below.
13880 # First set a reasonable default.
13881 lt_cv_sys_max_cmd_len=16384
13882 #
13883 if test -x /sbin/sysconfig; then
13884 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13885 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13886 esac
13887 fi
13888 ;;
13889 sco3.2v5*)
13890 lt_cv_sys_max_cmd_len=102400
13891 ;;
13892 sysv5* | sco5v6* | sysv4.2uw2*)
13893 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13894 if test -n "$kargmax"; then
13895 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13896 else
13897 lt_cv_sys_max_cmd_len=32768
13898 fi
13899 ;;
13900 *)
John Criswell47fdd832003-07-14 16:52:07 +000013901 # If test is not a shell built-in, we'll probably end up computing a
13902 # maximum length that is only half of the actual maximum length, but
13903 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013904 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13905 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13906 = "XX$teststring") >/dev/null 2>&1 &&
13907 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013908 lt_cv_sys_max_cmd_len=$new_result &&
13909 test $i != 17 # 1/2 MB should be enough
13910 do
13911 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013912 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013913 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013914 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013915 # Add a significant safety factor because C++ compilers can tack on massive
13916 # amounts of additional arguments before passing them to the linker.
13917 # It appears as though 1/2 is a usable value.
13918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13919 ;;
13920 esac
13921
13922fi
13923
13924if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013925 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13926echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013927else
Reid Spencera773bd52006-08-04 18:18:08 +000013928 { echo "$as_me:$LINENO: result: none" >&5
13929echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013930fi
13931
13932
13933
13934
13935# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013936{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13937echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013938if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13940else
13941
13942# These are sane defaults that work on at least a few old systems.
13943# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13944
13945# Character class describing NM global symbol codes.
13946symcode='[BCDEGRST]'
13947
13948# Regexp to match symbols that can be accessed directly from C.
13949sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13950
John Criswell47fdd832003-07-14 16:52:07 +000013951# Transform an extracted symbol line into a proper C declaration
13952lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13953
13954# Transform an extracted symbol line into symbol name and symbol address
13955lt_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'"
13956
13957# Define system-specific variables.
13958case $host_os in
13959aix*)
13960 symcode='[BCDT]'
13961 ;;
13962cygwin* | mingw* | pw32*)
13963 symcode='[ABCDGISTW]'
13964 ;;
13965hpux*) # Its linker distinguishes data from code symbols
13966 if test "$host_cpu" = ia64; then
13967 symcode='[ABCDEGRST]'
13968 fi
13969 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13970 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'"
13971 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013972linux*)
13973 if test "$host_cpu" = ia64; then
13974 symcode='[ABCDGIRSTW]'
13975 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13976 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'"
13977 fi
13978 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013979irix* | nonstopux*)
13980 symcode='[BCDEGRST]'
13981 ;;
13982osf*)
13983 symcode='[BCDEGQRST]'
13984 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013985solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013986 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013987 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013988sco3.2v5*)
13989 symcode='[DT]'
13990 ;;
13991sysv4.2uw2*)
13992 symcode='[DT]'
13993 ;;
13994sysv5* | sco5v6* | unixware* | OpenUNIX*)
13995 symcode='[ABDT]'
13996 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013997sysv4)
13998 symcode='[DFNSTU]'
13999 ;;
14000esac
14001
14002# Handle CRLF in mingw tool chain
14003opt_cr=
14004case $build_os in
14005mingw*)
14006 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14007 ;;
14008esac
14009
14010# If we're using GNU nm, then use its standard symbol codes.
14011case `$NM -V 2>&1` in
14012*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014013 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000014014esac
14015
14016# Try without a prefix undercore, then with it.
14017for ac_symprfx in "" "_"; do
14018
Reid Spencera773bd52006-08-04 18:18:08 +000014019 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14020 symxfrm="\\1 $ac_symprfx\\2 \\2"
14021
John Criswell47fdd832003-07-14 16:52:07 +000014022 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000014023 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 +000014024
14025 # Check to see that the pipe works correctly.
14026 pipe_works=no
14027
14028 rm -f conftest*
14029 cat > conftest.$ac_ext <<EOF
14030#ifdef __cplusplus
14031extern "C" {
14032#endif
14033char nm_test_var;
14034void nm_test_func(){}
14035#ifdef __cplusplus
14036}
14037#endif
14038int main(){nm_test_var='a';nm_test_func();return(0);}
14039EOF
14040
14041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14042 (eval $ac_compile) 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; then
14046 # Now try to grab the symbols.
14047 nlist=conftest.nm
14048 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
14049 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } && test -s "$nlist"; then
14053 # Try sorting and uniquifying the output.
14054 if sort "$nlist" | uniq > "$nlist"T; then
14055 mv -f "$nlist"T "$nlist"
14056 else
14057 rm -f "$nlist"T
14058 fi
14059
14060 # Make sure that we snagged all the symbols we need.
14061 if grep ' nm_test_var$' "$nlist" >/dev/null; then
14062 if grep ' nm_test_func$' "$nlist" >/dev/null; then
14063 cat <<EOF > conftest.$ac_ext
14064#ifdef __cplusplus
14065extern "C" {
14066#endif
14067
14068EOF
14069 # Now generate the symbol file.
14070 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
14071
14072 cat <<EOF >> conftest.$ac_ext
14073#if defined (__STDC__) && __STDC__
14074# define lt_ptr_t void *
14075#else
14076# define lt_ptr_t char *
14077# define const
14078#endif
14079
14080/* The mapping between symbol names and symbols. */
14081const struct {
14082 const char *name;
14083 lt_ptr_t address;
14084}
14085lt_preloaded_symbols[] =
14086{
14087EOF
14088 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14089 cat <<\EOF >> conftest.$ac_ext
14090 {0, (lt_ptr_t) 0}
14091};
14092
14093#ifdef __cplusplus
14094}
14095#endif
14096EOF
14097 # Now try linking the two files.
14098 mv conftest.$ac_objext conftstm.$ac_objext
14099 lt_save_LIBS="$LIBS"
14100 lt_save_CFLAGS="$CFLAGS"
14101 LIBS="conftstm.$ac_objext"
14102 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14104 (eval $ac_link) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14108 pipe_works=yes
14109 fi
14110 LIBS="$lt_save_LIBS"
14111 CFLAGS="$lt_save_CFLAGS"
14112 else
14113 echo "cannot find nm_test_func in $nlist" >&5
14114 fi
14115 else
14116 echo "cannot find nm_test_var in $nlist" >&5
14117 fi
14118 else
14119 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14120 fi
14121 else
14122 echo "$progname: failed program was:" >&5
14123 cat conftest.$ac_ext >&5
14124 fi
14125 rm -f conftest* conftst*
14126
14127 # Do not use the global_symbol_pipe unless it works.
14128 if test "$pipe_works" = yes; then
14129 break
14130 else
14131 lt_cv_sys_global_symbol_pipe=
14132 fi
14133done
14134
14135fi
14136
14137if test -z "$lt_cv_sys_global_symbol_pipe"; then
14138 lt_cv_sys_global_symbol_to_cdecl=
14139fi
14140if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014141 { echo "$as_me:$LINENO: result: failed" >&5
14142echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014143else
Reid Spencera773bd52006-08-04 18:18:08 +000014144 { echo "$as_me:$LINENO: result: ok" >&5
14145echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014146fi
14147
Reid Spencera773bd52006-08-04 18:18:08 +000014148{ echo "$as_me:$LINENO: checking for objdir" >&5
14149echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014150if test "${lt_cv_objdir+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14152else
14153 rm -f .libs 2>/dev/null
14154mkdir .libs 2>/dev/null
14155if test -d .libs; then
14156 lt_cv_objdir=.libs
14157else
14158 # MS-DOS does not allow filenames that begin with a dot.
14159 lt_cv_objdir=_libs
14160fi
14161rmdir .libs 2>/dev/null
14162fi
Reid Spencera773bd52006-08-04 18:18:08 +000014163{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14164echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014165objdir=$lt_cv_objdir
14166
14167
14168
14169
14170
14171case $host_os in
14172aix3*)
14173 # AIX sometimes has problems with the GCC collect2 program. For some
14174 # reason, if we set the COLLECT_NAMES environment variable, the problems
14175 # vanish in a puff of smoke.
14176 if test "X${COLLECT_NAMES+set}" != Xset; then
14177 COLLECT_NAMES=
14178 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014179 fi
14180 ;;
14181esac
14182
John Criswell47fdd832003-07-14 16:52:07 +000014183# Sed substitution that helps us do robust quoting. It backslashifies
14184# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014185Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014186sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14187
14188# Same as above, but do not quote variable references.
14189double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14190
14191# Sed substitution to delay expansion of an escaped shell variable in a
14192# double_quote_subst'ed string.
14193delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14194
14195# Sed substitution to avoid accidental globbing in evaled expressions
14196no_glob_subst='s/\*/\\\*/g'
14197
14198# Constants:
14199rm="rm -f"
14200
14201# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014202default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014203can_build_shared=yes
14204
Reid Spencera773bd52006-08-04 18:18:08 +000014205# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014206# which needs '.lib').
14207libext=a
14208ltmain="$ac_aux_dir/ltmain.sh"
14209ofile="$default_ofile"
14210with_gnu_ld="$lt_cv_prog_gnu_ld"
14211
14212if test -n "$ac_tool_prefix"; then
14213 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14214set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014217if test "${ac_cv_prog_AR+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219else
14220 if test -n "$AR"; then
14221 ac_cv_prog_AR="$AR" # Let the user override the test.
14222else
14223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14224for as_dir in $PATH
14225do
14226 IFS=$as_save_IFS
14227 test -z "$as_dir" && as_dir=.
14228 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014229 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 +000014230 ac_cv_prog_AR="${ac_tool_prefix}ar"
14231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14232 break 2
14233 fi
14234done
14235done
Reid Spencera773bd52006-08-04 18:18:08 +000014236IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014237
14238fi
14239fi
14240AR=$ac_cv_prog_AR
14241if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014242 { echo "$as_me:$LINENO: result: $AR" >&5
14243echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014244else
Reid Spencera773bd52006-08-04 18:18:08 +000014245 { echo "$as_me:$LINENO: result: no" >&5
14246echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014247fi
14248
Reid Spencera773bd52006-08-04 18:18:08 +000014249
John Criswell47fdd832003-07-14 16:52:07 +000014250fi
14251if test -z "$ac_cv_prog_AR"; then
14252 ac_ct_AR=$AR
14253 # Extract the first word of "ar", so it can be a program name with args.
14254set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014255{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014257if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14259else
14260 if test -n "$ac_ct_AR"; then
14261 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14262else
14263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14264for as_dir in $PATH
14265do
14266 IFS=$as_save_IFS
14267 test -z "$as_dir" && as_dir=.
14268 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014269 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 +000014270 ac_cv_prog_ac_ct_AR="ar"
14271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14272 break 2
14273 fi
14274done
14275done
Reid Spencera773bd52006-08-04 18:18:08 +000014276IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014277
John Criswell47fdd832003-07-14 16:52:07 +000014278fi
14279fi
14280ac_ct_AR=$ac_cv_prog_ac_ct_AR
14281if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014282 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14283echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014284else
Reid Spencera773bd52006-08-04 18:18:08 +000014285 { echo "$as_me:$LINENO: result: no" >&5
14286echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014287fi
14288
Reid Spencera773bd52006-08-04 18:18:08 +000014289 if test "x$ac_ct_AR" = x; then
14290 AR="false"
14291 else
14292 case $cross_compiling:$ac_tool_warned in
14293yes:)
14294{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14295whose name does not start with the host triplet. If you think this
14296configuration is useful to you, please write to autoconf@gnu.org." >&5
14297echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14298whose name does not start with the host triplet. If you think this
14299configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14300ac_tool_warned=yes ;;
14301esac
14302 AR=$ac_ct_AR
14303 fi
John Criswell47fdd832003-07-14 16:52:07 +000014304else
14305 AR="$ac_cv_prog_AR"
14306fi
14307
John Criswell7a73b802003-06-30 21:59:07 +000014308if test -n "$ac_tool_prefix"; then
14309 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14310set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014311{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014313if test "${ac_cv_prog_RANLIB+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14315else
14316 if test -n "$RANLIB"; then
14317 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14318else
14319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14320for as_dir in $PATH
14321do
14322 IFS=$as_save_IFS
14323 test -z "$as_dir" && as_dir=.
14324 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014325 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 +000014326 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14328 break 2
14329 fi
14330done
14331done
Reid Spencera773bd52006-08-04 18:18:08 +000014332IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014333
14334fi
14335fi
14336RANLIB=$ac_cv_prog_RANLIB
14337if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014338 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14339echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014340else
Reid Spencera773bd52006-08-04 18:18:08 +000014341 { echo "$as_me:$LINENO: result: no" >&5
14342echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014343fi
14344
Reid Spencera773bd52006-08-04 18:18:08 +000014345
John Criswell7a73b802003-06-30 21:59:07 +000014346fi
14347if test -z "$ac_cv_prog_RANLIB"; then
14348 ac_ct_RANLIB=$RANLIB
14349 # Extract the first word of "ranlib", so it can be a program name with args.
14350set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014353if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14354 echo $ECHO_N "(cached) $ECHO_C" >&6
14355else
14356 if test -n "$ac_ct_RANLIB"; then
14357 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14358else
14359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360for as_dir in $PATH
14361do
14362 IFS=$as_save_IFS
14363 test -z "$as_dir" && as_dir=.
14364 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014365 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 +000014366 ac_cv_prog_ac_ct_RANLIB="ranlib"
14367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14368 break 2
14369 fi
14370done
14371done
Reid Spencera773bd52006-08-04 18:18:08 +000014372IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014373
John Criswell7a73b802003-06-30 21:59:07 +000014374fi
14375fi
14376ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14377if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014378 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14379echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014380else
Reid Spencera773bd52006-08-04 18:18:08 +000014381 { echo "$as_me:$LINENO: result: no" >&5
14382echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014383fi
14384
Reid Spencera773bd52006-08-04 18:18:08 +000014385 if test "x$ac_ct_RANLIB" = x; then
14386 RANLIB=":"
14387 else
14388 case $cross_compiling:$ac_tool_warned in
14389yes:)
14390{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14391whose name does not start with the host triplet. If you think this
14392configuration is useful to you, please write to autoconf@gnu.org." >&5
14393echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14394whose name does not start with the host triplet. If you think this
14395configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14396ac_tool_warned=yes ;;
14397esac
14398 RANLIB=$ac_ct_RANLIB
14399 fi
John Criswell7a73b802003-06-30 21:59:07 +000014400else
14401 RANLIB="$ac_cv_prog_RANLIB"
14402fi
14403
14404if test -n "$ac_tool_prefix"; then
14405 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14406set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014409if test "${ac_cv_prog_STRIP+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14411else
14412 if test -n "$STRIP"; then
14413 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14414else
14415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416for as_dir in $PATH
14417do
14418 IFS=$as_save_IFS
14419 test -z "$as_dir" && as_dir=.
14420 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014421 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 +000014422 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14424 break 2
14425 fi
14426done
14427done
Reid Spencera773bd52006-08-04 18:18:08 +000014428IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014429
14430fi
14431fi
14432STRIP=$ac_cv_prog_STRIP
14433if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014434 { echo "$as_me:$LINENO: result: $STRIP" >&5
14435echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014436else
Reid Spencera773bd52006-08-04 18:18:08 +000014437 { echo "$as_me:$LINENO: result: no" >&5
14438echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014439fi
14440
Reid Spencera773bd52006-08-04 18:18:08 +000014441
John Criswell7a73b802003-06-30 21:59:07 +000014442fi
14443if test -z "$ac_cv_prog_STRIP"; then
14444 ac_ct_STRIP=$STRIP
14445 # Extract the first word of "strip", so it can be a program name with args.
14446set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014449if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451else
14452 if test -n "$ac_ct_STRIP"; then
14453 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14454else
14455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14456for as_dir in $PATH
14457do
14458 IFS=$as_save_IFS
14459 test -z "$as_dir" && as_dir=.
14460 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014461 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 +000014462 ac_cv_prog_ac_ct_STRIP="strip"
14463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14464 break 2
14465 fi
14466done
14467done
Reid Spencera773bd52006-08-04 18:18:08 +000014468IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014469
John Criswell7a73b802003-06-30 21:59:07 +000014470fi
14471fi
14472ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14473if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014474 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14475echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014476else
Reid Spencera773bd52006-08-04 18:18:08 +000014477 { echo "$as_me:$LINENO: result: no" >&5
14478echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014479fi
14480
Reid Spencera773bd52006-08-04 18:18:08 +000014481 if test "x$ac_ct_STRIP" = x; then
14482 STRIP=":"
14483 else
14484 case $cross_compiling:$ac_tool_warned in
14485yes:)
14486{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14487whose name does not start with the host triplet. If you think this
14488configuration is useful to you, please write to autoconf@gnu.org." >&5
14489echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14490whose name does not start with the host triplet. If you think this
14491configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14492ac_tool_warned=yes ;;
14493esac
14494 STRIP=$ac_ct_STRIP
14495 fi
John Criswell7a73b802003-06-30 21:59:07 +000014496else
14497 STRIP="$ac_cv_prog_STRIP"
14498fi
14499
14500
John Criswell7a73b802003-06-30 21:59:07 +000014501old_CC="$CC"
14502old_CFLAGS="$CFLAGS"
14503
14504# Set sane defaults for various variables
14505test -z "$AR" && AR=ar
14506test -z "$AR_FLAGS" && AR_FLAGS=cru
14507test -z "$AS" && AS=as
14508test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014509test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014510test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014511test -z "$DLLTOOL" && DLLTOOL=dlltool
14512test -z "$LD" && LD=ld
14513test -z "$LN_S" && LN_S="ln -s"
14514test -z "$MAGIC_CMD" && MAGIC_CMD=file
14515test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014516test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014517test -z "$OBJDUMP" && OBJDUMP=objdump
14518test -z "$RANLIB" && RANLIB=:
14519test -z "$STRIP" && STRIP=:
14520test -z "$ac_objext" && ac_objext=o
14521
John Criswell7a73b802003-06-30 21:59:07 +000014522# Determine commands to create old-style static archives.
14523old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14524old_postinstall_cmds='chmod 644 $oldlib'
14525old_postuninstall_cmds=
14526
14527if test -n "$RANLIB"; then
14528 case $host_os in
14529 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014530 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014531 ;;
14532 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014533 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014534 ;;
14535 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014536 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014537fi
14538
Reid Spencera773bd52006-08-04 18:18:08 +000014539for cc_temp in $compiler""; do
14540 case $cc_temp in
14541 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14542 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14543 \-*) ;;
14544 *) break;;
14545 esac
14546done
14547cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14548
Reid Spencer2706f8c2004-09-19 23:53:36 +000014549
John Criswell47fdd832003-07-14 16:52:07 +000014550# Only perform the check for file, if the check method requires it
14551case $deplibs_check_method in
14552file_magic*)
14553 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014554 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14555echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014556if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14557 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014558else
John Criswell47fdd832003-07-14 16:52:07 +000014559 case $MAGIC_CMD in
14560[\\/*] | ?:[\\/]*)
14561 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14562 ;;
14563*)
14564 lt_save_MAGIC_CMD="$MAGIC_CMD"
14565 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14566 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14567 for ac_dir in $ac_dummy; do
14568 IFS="$lt_save_ifs"
14569 test -z "$ac_dir" && ac_dir=.
14570 if test -f $ac_dir/${ac_tool_prefix}file; then
14571 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14572 if test -n "$file_magic_test_file"; then
14573 case $deplibs_check_method in
14574 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014575 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14577 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14578 $EGREP "$file_magic_regex" > /dev/null; then
14579 :
14580 else
14581 cat <<EOF 1>&2
14582
14583*** Warning: the command libtool uses to detect shared libraries,
14584*** $file_magic_cmd, produces output that libtool cannot recognize.
14585*** The result is that libtool may fail to recognize shared libraries
14586*** as such. This will affect the creation of libtool libraries that
14587*** depend on shared libraries, but programs linked with such libtool
14588*** libraries will work regardless of this problem. Nevertheless, you
14589*** may want to report the problem to your system manager and/or to
14590*** bug-libtool@gnu.org
14591
14592EOF
14593 fi ;;
14594 esac
14595 fi
14596 break
14597 fi
14598 done
14599 IFS="$lt_save_ifs"
14600 MAGIC_CMD="$lt_save_MAGIC_CMD"
14601 ;;
14602esac
John Criswell7a73b802003-06-30 21:59:07 +000014603fi
John Criswell7a73b802003-06-30 21:59:07 +000014604
John Criswell47fdd832003-07-14 16:52:07 +000014605MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14606if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014607 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14608echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014609else
Reid Spencera773bd52006-08-04 18:18:08 +000014610 { echo "$as_me:$LINENO: result: no" >&5
14611echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014612fi
John Criswell7a73b802003-06-30 21:59:07 +000014613
John Criswell47fdd832003-07-14 16:52:07 +000014614if test -z "$lt_cv_path_MAGIC_CMD"; then
14615 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014616 { echo "$as_me:$LINENO: checking for file" >&5
14617echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014618if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14620else
14621 case $MAGIC_CMD in
14622[\\/*] | ?:[\\/]*)
14623 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14624 ;;
14625*)
14626 lt_save_MAGIC_CMD="$MAGIC_CMD"
14627 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14628 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14629 for ac_dir in $ac_dummy; do
14630 IFS="$lt_save_ifs"
14631 test -z "$ac_dir" && ac_dir=.
14632 if test -f $ac_dir/file; then
14633 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14634 if test -n "$file_magic_test_file"; then
14635 case $deplibs_check_method in
14636 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014637 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014638 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14639 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14640 $EGREP "$file_magic_regex" > /dev/null; then
14641 :
14642 else
14643 cat <<EOF 1>&2
14644
14645*** Warning: the command libtool uses to detect shared libraries,
14646*** $file_magic_cmd, produces output that libtool cannot recognize.
14647*** The result is that libtool may fail to recognize shared libraries
14648*** as such. This will affect the creation of libtool libraries that
14649*** depend on shared libraries, but programs linked with such libtool
14650*** libraries will work regardless of this problem. Nevertheless, you
14651*** may want to report the problem to your system manager and/or to
14652*** bug-libtool@gnu.org
14653
14654EOF
14655 fi ;;
14656 esac
14657 fi
14658 break
14659 fi
14660 done
14661 IFS="$lt_save_ifs"
14662 MAGIC_CMD="$lt_save_MAGIC_CMD"
14663 ;;
14664esac
14665fi
14666
14667MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14668if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014669 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14670echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014671else
Reid Spencera773bd52006-08-04 18:18:08 +000014672 { echo "$as_me:$LINENO: result: no" >&5
14673echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014674fi
14675
14676 else
14677 MAGIC_CMD=:
14678 fi
14679fi
14680
14681 fi
14682 ;;
14683esac
14684
Reid Spencer17795972004-11-18 09:47:37 +000014685enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014686enable_win32_dll=no
14687
Reid Spencera773bd52006-08-04 18:18:08 +000014688# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014689if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014690 enableval=$enable_libtool_lock;
14691fi
John Criswell47fdd832003-07-14 16:52:07 +000014692
John Criswell47fdd832003-07-14 16:52:07 +000014693test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14694
John Criswell7a73b802003-06-30 21:59:07 +000014695
Reid Spencera773bd52006-08-04 18:18:08 +000014696# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014697if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014698 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014699else
14700 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014701fi
14702
John Criswell7a73b802003-06-30 21:59:07 +000014703test -z "$pic_mode" && pic_mode=default
14704
John Criswell47fdd832003-07-14 16:52:07 +000014705# Use C for the default configuration in the libtool script
14706tagname=
14707lt_save_CC="$CC"
14708ac_ext=c
14709ac_cpp='$CPP $CPPFLAGS'
14710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14712ac_compiler_gnu=$ac_cv_c_compiler_gnu
14713
14714
14715# Source file extension for C test sources.
14716ac_ext=c
14717
14718# Object file extension for compiled C test sources.
14719objext=o
14720objext=$objext
14721
14722# Code to be used in simple compile tests
14723lt_simple_compile_test_code="int some_variable = 0;\n"
14724
14725# Code to be used in simple link tests
14726lt_simple_link_test_code='int main(){return(0);}\n'
14727
14728
14729# If no C compiler was specified, use CC.
14730LTCC=${LTCC-"$CC"}
14731
Reid Spencera773bd52006-08-04 18:18:08 +000014732# If no C compiler flags were specified, use CFLAGS.
14733LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14734
John Criswell47fdd832003-07-14 16:52:07 +000014735# Allow CC to be a program name with arguments.
14736compiler=$CC
14737
14738
Reid Spencera773bd52006-08-04 18:18:08 +000014739# save warnings/boilerplate of simple test code
14740ac_outfile=conftest.$ac_objext
14741printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14742eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14743_lt_compiler_boilerplate=`cat conftest.err`
14744$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014745
Reid Spencera773bd52006-08-04 18:18:08 +000014746ac_outfile=conftest.$ac_objext
14747printf "$lt_simple_link_test_code" >conftest.$ac_ext
14748eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14749_lt_linker_boilerplate=`cat conftest.err`
14750$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014751
14752
John Criswell47fdd832003-07-14 16:52:07 +000014753
14754lt_prog_compiler_no_builtin_flag=
14755
14756if test "$GCC" = yes; then
14757 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14758
Reid Spencer2706f8c2004-09-19 23:53:36 +000014759
Reid Spencera773bd52006-08-04 18:18:08 +000014760{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14761echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014762if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764else
14765 lt_cv_prog_compiler_rtti_exceptions=no
14766 ac_outfile=conftest.$ac_objext
14767 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14768 lt_compiler_flag="-fno-rtti -fno-exceptions"
14769 # Insert the option either (1) after the last *FLAGS variable, or
14770 # (2) before a word containing "conftest.", or (3) at the end.
14771 # Note that $ac_compile itself does not contain backslashes and begins
14772 # with a dollar sign (not a hyphen), so the echo should work correctly.
14773 # The option is referenced via a variable to avoid confusing sed.
14774 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14777 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000014778 (eval echo "\"\$as_me:14778: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014779 (eval "$lt_compile" 2>conftest.err)
14780 ac_status=$?
14781 cat conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000014782 echo "$as_me:14782: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014783 if (exit $ac_status) && test -s "$ac_outfile"; then
14784 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014785 # So say no if there are warnings other than the usual output.
14786 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14787 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14788 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014789 lt_cv_prog_compiler_rtti_exceptions=yes
14790 fi
14791 fi
14792 $rm conftest*
14793
14794fi
Reid Spencera773bd52006-08-04 18:18:08 +000014795{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14796echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014797
14798if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14799 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14800else
14801 :
14802fi
14803
14804fi
14805
14806lt_prog_compiler_wl=
14807lt_prog_compiler_pic=
14808lt_prog_compiler_static=
14809
Reid Spencera773bd52006-08-04 18:18:08 +000014810{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14811echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014812
14813 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014814 lt_prog_compiler_wl='-Wl,'
14815 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014816
14817 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014818 aix*)
14819 # All AIX code is PIC.
14820 if test "$host_cpu" = ia64; then
14821 # AIX 5 now supports IA64 processor
14822 lt_prog_compiler_static='-Bstatic'
14823 fi
John Criswell7a73b802003-06-30 21:59:07 +000014824 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014825
John Criswell7a73b802003-06-30 21:59:07 +000014826 amigaos*)
14827 # FIXME: we need at least 68020 code to build shared libraries, but
14828 # adding the `-m68020' flag to GCC prevents building anything better,
14829 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014830 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014831 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014832
14833 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014834 # PIC is the default for these OSes.
14835 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014836
14837 mingw* | pw32* | os2*)
14838 # This hack is so that the source file can tell whether it is being
14839 # built for inclusion in a dll (and should export symbols for example).
14840 lt_prog_compiler_pic='-DDLL_EXPORT'
14841 ;;
14842
John Criswell7a73b802003-06-30 21:59:07 +000014843 darwin* | rhapsody*)
14844 # PIC is the default on this platform
14845 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014846 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014847 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014848
Reid Spencera773bd52006-08-04 18:18:08 +000014849 interix3*)
14850 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14851 # Instead, we relocate shared libraries at runtime.
14852 ;;
14853
John Criswell47fdd832003-07-14 16:52:07 +000014854 msdosdjgpp*)
14855 # Just because we use GCC doesn't mean we suddenly get shared libraries
14856 # on systems that don't support them.
14857 lt_prog_compiler_can_build_shared=no
14858 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014859 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014860
John Criswell7a73b802003-06-30 21:59:07 +000014861 sysv4*MP*)
14862 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014863 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014864 fi
14865 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014866
14867 hpux*)
14868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14869 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014870 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014871 hppa*64*|ia64*)
14872 # +Z the default
14873 ;;
14874 *)
14875 lt_prog_compiler_pic='-fPIC'
14876 ;;
14877 esac
14878 ;;
14879
John Criswell7a73b802003-06-30 21:59:07 +000014880 *)
John Criswell47fdd832003-07-14 16:52:07 +000014881 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014882 ;;
14883 esac
14884 else
John Criswell47fdd832003-07-14 16:52:07 +000014885 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014886 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014887 aix*)
14888 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014889 if test "$host_cpu" = ia64; then
14890 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014891 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014892 else
John Criswell47fdd832003-07-14 16:52:07 +000014893 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014894 fi
14895 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014896 darwin*)
14897 # PIC is the default on this platform
14898 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014899 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014900 xlc*)
14901 lt_prog_compiler_pic='-qnocommon'
14902 lt_prog_compiler_wl='-Wl,'
14903 ;;
14904 esac
14905 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014906
John Criswell47fdd832003-07-14 16:52:07 +000014907 mingw* | pw32* | os2*)
14908 # This hack is so that the source file can tell whether it is being
14909 # built for inclusion in a dll (and should export symbols for example).
14910 lt_prog_compiler_pic='-DDLL_EXPORT'
14911 ;;
14912
John Criswell7a73b802003-06-30 21:59:07 +000014913 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014914 lt_prog_compiler_wl='-Wl,'
14915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14916 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014917 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014918 hppa*64*|ia64*)
14919 # +Z the default
14920 ;;
14921 *)
14922 lt_prog_compiler_pic='+Z'
14923 ;;
14924 esac
14925 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14926 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014927 ;;
14928
John Criswell47fdd832003-07-14 16:52:07 +000014929 irix5* | irix6* | nonstopux*)
14930 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014931 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014932 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014933 ;;
14934
14935 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014936 lt_prog_compiler_pic='-KPIC'
14937 lt_prog_compiler_static='-Bstatic'
14938 ;;
14939
14940 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014941 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014942 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014943 lt_prog_compiler_wl='-Wl,'
14944 lt_prog_compiler_pic='-KPIC'
14945 lt_prog_compiler_static='-static'
14946 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014947 pgcc* | pgf77* | pgf90* | pgf95*)
14948 # Portland Group compilers (*not* the Pentium gcc compiler,
14949 # which looks to be a dead project)
14950 lt_prog_compiler_wl='-Wl,'
14951 lt_prog_compiler_pic='-fpic'
14952 lt_prog_compiler_static='-Bstatic'
14953 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014954 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014955 lt_prog_compiler_wl='-Wl,'
14956 # All Alpha code is PIC.
14957 lt_prog_compiler_static='-non_shared'
14958 ;;
14959 esac
John Criswell7a73b802003-06-30 21:59:07 +000014960 ;;
14961
14962 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014963 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014964 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014965 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014966 ;;
14967
John Criswell7a73b802003-06-30 21:59:07 +000014968 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014969 lt_prog_compiler_pic='-KPIC'
14970 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014971 case $cc_basename in
14972 f77* | f90* | f95*)
14973 lt_prog_compiler_wl='-Qoption ld ';;
14974 *)
14975 lt_prog_compiler_wl='-Wl,';;
14976 esac
John Criswell7a73b802003-06-30 21:59:07 +000014977 ;;
14978
14979 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014980 lt_prog_compiler_wl='-Qoption ld '
14981 lt_prog_compiler_pic='-PIC'
14982 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014983 ;;
14984
Reid Spencera773bd52006-08-04 18:18:08 +000014985 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014986 lt_prog_compiler_wl='-Wl,'
14987 lt_prog_compiler_pic='-KPIC'
14988 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014989 ;;
14990
14991 sysv4*MP*)
14992 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014993 lt_prog_compiler_pic='-Kconform_pic'
14994 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014995 fi
14996 ;;
14997
Reid Spencera773bd52006-08-04 18:18:08 +000014998 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14999 lt_prog_compiler_wl='-Wl,'
15000 lt_prog_compiler_pic='-KPIC'
15001 lt_prog_compiler_static='-Bstatic'
15002 ;;
15003
15004 unicos*)
15005 lt_prog_compiler_wl='-Wl,'
15006 lt_prog_compiler_can_build_shared=no
15007 ;;
15008
John Criswell47fdd832003-07-14 16:52:07 +000015009 uts4*)
15010 lt_prog_compiler_pic='-pic'
15011 lt_prog_compiler_static='-Bstatic'
15012 ;;
15013
John Criswell7a73b802003-06-30 21:59:07 +000015014 *)
John Criswell47fdd832003-07-14 16:52:07 +000015015 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015016 ;;
15017 esac
15018 fi
15019
Reid Spencera773bd52006-08-04 18:18:08 +000015020{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
15021echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015022
John Criswell47fdd832003-07-14 16:52:07 +000015023#
15024# Check to make sure the PIC flag actually works.
15025#
15026if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015027
Reid Spencera773bd52006-08-04 18:18:08 +000015028{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15029echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015030if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015031 echo $ECHO_N "(cached) $ECHO_C" >&6
15032else
John Criswell47fdd832003-07-14 16:52:07 +000015033 lt_prog_compiler_pic_works=no
15034 ac_outfile=conftest.$ac_objext
15035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15036 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15037 # Insert the option either (1) after the last *FLAGS variable, or
15038 # (2) before a word containing "conftest.", or (3) at the end.
15039 # Note that $ac_compile itself does not contain backslashes and begins
15040 # with a dollar sign (not a hyphen), so the echo should work correctly.
15041 # The option is referenced via a variable to avoid confusing sed.
15042 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15045 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000015046 (eval echo "\"\$as_me:15046: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015047 (eval "$lt_compile" 2>conftest.err)
15048 ac_status=$?
15049 cat conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000015050 echo "$as_me:15050: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015051 if (exit $ac_status) && test -s "$ac_outfile"; then
15052 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000015053 # So say no if there are warnings other than the usual output.
15054 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15056 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015057 lt_prog_compiler_pic_works=yes
15058 fi
15059 fi
15060 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015061
John Criswell47fdd832003-07-14 16:52:07 +000015062fi
Reid Spencera773bd52006-08-04 18:18:08 +000015063{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
15064echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015065
John Criswell47fdd832003-07-14 16:52:07 +000015066if test x"$lt_prog_compiler_pic_works" = xyes; then
15067 case $lt_prog_compiler_pic in
15068 "" | " "*) ;;
15069 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15070 esac
John Criswell7a73b802003-06-30 21:59:07 +000015071else
John Criswell47fdd832003-07-14 16:52:07 +000015072 lt_prog_compiler_pic=
15073 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015074fi
15075
John Criswell7a73b802003-06-30 21:59:07 +000015076fi
Reid Spencera773bd52006-08-04 18:18:08 +000015077case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015078 # For platforms which do not support PIC, -DPIC is meaningless:
15079 *djgpp*)
15080 lt_prog_compiler_pic=
15081 ;;
15082 *)
15083 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15084 ;;
15085esac
John Criswell7a73b802003-06-30 21:59:07 +000015086
Reid Spencera773bd52006-08-04 18:18:08 +000015087#
15088# Check to make sure the static flag actually works.
15089#
15090wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15091{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15092echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15093if test "${lt_prog_compiler_static_works+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15095else
15096 lt_prog_compiler_static_works=no
15097 save_LDFLAGS="$LDFLAGS"
15098 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15099 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15100 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15101 # The linker can only warn and ignore the option if not recognized
15102 # So say no if there are warnings
15103 if test -s conftest.err; then
15104 # Append any errors to the config.log.
15105 cat conftest.err 1>&5
15106 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15108 if diff conftest.exp conftest.er2 >/dev/null; then
15109 lt_prog_compiler_static_works=yes
15110 fi
15111 else
15112 lt_prog_compiler_static_works=yes
15113 fi
15114 fi
15115 $rm conftest*
15116 LDFLAGS="$save_LDFLAGS"
15117
15118fi
15119{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15120echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15121
15122if test x"$lt_prog_compiler_static_works" = xyes; then
15123 :
15124else
15125 lt_prog_compiler_static=
15126fi
15127
15128
15129{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15130echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015131if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015132 echo $ECHO_N "(cached) $ECHO_C" >&6
15133else
John Criswell47fdd832003-07-14 16:52:07 +000015134 lt_cv_prog_compiler_c_o=no
15135 $rm -r conftest 2>/dev/null
15136 mkdir conftest
15137 cd conftest
15138 mkdir out
15139 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015140
John Criswell47fdd832003-07-14 16:52:07 +000015141 lt_compiler_flag="-o out/conftest2.$ac_objext"
15142 # Insert the option either (1) after the last *FLAGS variable, or
15143 # (2) before a word containing "conftest.", or (3) at the end.
15144 # Note that $ac_compile itself does not contain backslashes and begins
15145 # with a dollar sign (not a hyphen), so the echo should work correctly.
15146 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15149 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000015150 (eval echo "\"\$as_me:15150: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015151 (eval "$lt_compile" 2>out/conftest.err)
15152 ac_status=$?
15153 cat out/conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000015154 echo "$as_me:15154: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015155 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15156 then
15157 # The compiler can only warn and ignore the option if not recognized
15158 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015159 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15160 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15161 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015162 lt_cv_prog_compiler_c_o=yes
15163 fi
15164 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015165 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015166 $rm conftest*
15167 # SGI C++ compiler will create directory out/ii_files/ for
15168 # template instantiation
15169 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15170 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015171 cd ..
15172 rmdir conftest
15173 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015174
15175fi
Reid Spencera773bd52006-08-04 18:18:08 +000015176{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15177echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015178
John Criswell7a73b802003-06-30 21:59:07 +000015179
John Criswell7a73b802003-06-30 21:59:07 +000015180hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015181if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015182 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015183 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15184echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015185 hard_links=yes
15186 $rm conftest*
15187 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15188 touch conftest.a
15189 ln conftest.a conftest.b 2>&5 || hard_links=no
15190 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015191 { echo "$as_me:$LINENO: result: $hard_links" >&5
15192echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015193 if test "$hard_links" = no; then
15194 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15195echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15196 need_locks=warn
15197 fi
15198else
15199 need_locks=no
15200fi
John Criswell7a73b802003-06-30 21:59:07 +000015201
Reid Spencera773bd52006-08-04 18:18:08 +000015202{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15203echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015204
15205 runpath_var=
15206 allow_undefined_flag=
15207 enable_shared_with_static_runtimes=no
15208 archive_cmds=
15209 archive_expsym_cmds=
15210 old_archive_From_new_cmds=
15211 old_archive_from_expsyms_cmds=
15212 export_dynamic_flag_spec=
15213 whole_archive_flag_spec=
15214 thread_safe_flag_spec=
15215 hardcode_libdir_flag_spec=
15216 hardcode_libdir_flag_spec_ld=
15217 hardcode_libdir_separator=
15218 hardcode_direct=no
15219 hardcode_minus_L=no
15220 hardcode_shlibpath_var=unsupported
15221 link_all_deplibs=unknown
15222 hardcode_automatic=no
15223 module_cmds=
15224 module_expsym_cmds=
15225 always_export_symbols=no
15226 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15227 # include_expsyms should be a list of space-separated symbols to be *always*
15228 # included in the symbol list
15229 include_expsyms=
15230 # exclude_expsyms can be an extended regexp of symbols to exclude
15231 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15232 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15233 # as well as any symbol that contains `d'.
15234 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15235 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15236 # platforms (ab)use it in PIC code, but their linkers get confused if
15237 # the symbol is explicitly referenced. Since portable code cannot
15238 # rely on this symbol name, it's probably fine to never include it in
15239 # preloaded symbol tables.
15240 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015241 # Just being paranoid about ensuring that cc_basename is set.
15242 for cc_temp in $compiler""; do
15243 case $cc_temp in
15244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15246 \-*) ;;
15247 *) break;;
15248 esac
15249done
15250cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015251
15252 case $host_os in
15253 cygwin* | mingw* | pw32*)
15254 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15255 # When not using gcc, we currently assume that we are using
15256 # Microsoft Visual C++.
15257 if test "$GCC" != yes; then
15258 with_gnu_ld=no
15259 fi
15260 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015261 interix*)
15262 # we just hope/assume this is gcc and not c89 (= MSVC++)
15263 with_gnu_ld=yes
15264 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015265 openbsd*)
15266 with_gnu_ld=no
15267 ;;
15268 esac
15269
15270 ld_shlibs=yes
15271 if test "$with_gnu_ld" = yes; then
15272 # If archive_cmds runs LD, not CC, wlarc should be empty
15273 wlarc='${wl}'
15274
Reid Spencera773bd52006-08-04 18:18:08 +000015275 # Set some defaults for GNU ld with shared library support. These
15276 # are reset later if shared libraries are not supported. Putting them
15277 # here allows them to be overridden if necessary.
15278 runpath_var=LD_RUN_PATH
15279 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15280 export_dynamic_flag_spec='${wl}--export-dynamic'
15281 # ancient GNU ld didn't support --whole-archive et. al.
15282 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15283 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15284 else
15285 whole_archive_flag_spec=
15286 fi
15287 supports_anon_versioning=no
15288 case `$LD -v 2>/dev/null` in
15289 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15290 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15291 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15292 *\ 2.11.*) ;; # other 2.11 versions
15293 *) supports_anon_versioning=yes ;;
15294 esac
15295
John Criswell47fdd832003-07-14 16:52:07 +000015296 # See if GNU ld supports shared libraries.
15297 case $host_os in
15298 aix3* | aix4* | aix5*)
15299 # On AIX/PPC, the GNU linker is very broken
15300 if test "$host_cpu" != ia64; then
15301 ld_shlibs=no
15302 cat <<EOF 1>&2
15303
15304*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15305*** to be unable to reliably create shared libraries on AIX.
15306*** Therefore, libtool is disabling shared libraries support. If you
15307*** really care for shared libraries, you may want to modify your PATH
15308*** so that a non-GNU linker is found, and then restart.
15309
15310EOF
15311 fi
15312 ;;
15313
15314 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015315 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 +000015316 hardcode_libdir_flag_spec='-L$libdir'
15317 hardcode_minus_L=yes
15318
15319 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15320 # that the semantics of dynamic libraries on AmigaOS, at least up
15321 # to version 4, is to share data among multiple programs linked
15322 # with the same dynamic library. Since this doesn't match the
15323 # behavior of shared libraries on other platforms, we can't use
15324 # them.
15325 ld_shlibs=no
15326 ;;
15327
15328 beos*)
15329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15330 allow_undefined_flag=unsupported
15331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15332 # support --undefined. This deserves some investigation. FIXME
15333 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15334 else
15335 ld_shlibs=no
15336 fi
15337 ;;
15338
15339 cygwin* | mingw* | pw32*)
15340 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15341 # as there is no search path for DLLs.
15342 hardcode_libdir_flag_spec='-L$libdir'
15343 allow_undefined_flag=unsupported
15344 always_export_symbols=no
15345 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015346 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 +000015347
15348 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015349 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 +000015350 # If the export-symbols file already is a .def file (1st line
15351 # is EXPORTS), use it as is; otherwise, prepend...
15352 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15353 cp $export_symbols $output_objdir/$soname.def;
15354 else
15355 echo EXPORTS > $output_objdir/$soname.def;
15356 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015357 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015358 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15359 else
15360 ld_shlibs=no
15361 fi
15362 ;;
15363
15364 interix3*)
15365 hardcode_direct=no
15366 hardcode_shlibpath_var=no
15367 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15368 export_dynamic_flag_spec='${wl}-E'
15369 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15370 # Instead, shared libraries are loaded at an image base (0x10000000 by
15371 # default) and relocated if they conflict, which is a slow very memory
15372 # consuming and fragmenting process. To avoid this, we pick a random,
15373 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15374 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15375 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15376 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'
15377 ;;
15378
15379 linux*)
15380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15381 tmp_addflag=
15382 case $cc_basename,$host_cpu in
15383 pgcc*) # Portland Group C compiler
15384 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'
15385 tmp_addflag=' $pic_flag'
15386 ;;
15387 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15388 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'
15389 tmp_addflag=' $pic_flag -Mnomain' ;;
15390 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15391 tmp_addflag=' -i_dynamic' ;;
15392 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15393 tmp_addflag=' -i_dynamic -nofor_main' ;;
15394 ifc* | ifort*) # Intel Fortran compiler
15395 tmp_addflag=' -nofor_main' ;;
15396 esac
15397 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15398
15399 if test $supports_anon_versioning = yes; then
15400 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15402 $echo "local: *; };" >> $output_objdir/$libname.ver~
15403 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15404 fi
John Criswell47fdd832003-07-14 16:52:07 +000015405 else
15406 ld_shlibs=no
15407 fi
15408 ;;
15409
15410 netbsd*)
15411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15412 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15413 wlarc=
15414 else
15415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15417 fi
15418 ;;
15419
Reid Spencera773bd52006-08-04 18:18:08 +000015420 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015421 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15422 ld_shlibs=no
15423 cat <<EOF 1>&2
15424
15425*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15426*** create shared libraries on Solaris systems. Therefore, libtool
15427*** is disabling shared libraries support. We urge you to upgrade GNU
15428*** binutils to release 2.9.1 or newer. Another option is to modify
15429*** your PATH or compiler configuration so that the native linker is
15430*** used, and then restart.
15431
15432EOF
15433 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15434 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15435 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15436 else
15437 ld_shlibs=no
15438 fi
15439 ;;
15440
Reid Spencera773bd52006-08-04 18:18:08 +000015441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15442 case `$LD -v 2>&1` in
15443 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15444 ld_shlibs=no
15445 cat <<_LT_EOF 1>&2
15446
15447*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15448*** reliably create shared libraries on SCO systems. Therefore, libtool
15449*** is disabling shared libraries support. We urge you to upgrade GNU
15450*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15451*** your PATH or compiler configuration so that the native linker is
15452*** used, and then restart.
15453
15454_LT_EOF
15455 ;;
15456 *)
15457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15458 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15460 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15461 else
15462 ld_shlibs=no
15463 fi
15464 ;;
15465 esac
15466 ;;
15467
John Criswell47fdd832003-07-14 16:52:07 +000015468 sunos4*)
15469 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15470 wlarc=
15471 hardcode_direct=yes
15472 hardcode_shlibpath_var=no
15473 ;;
15474
15475 *)
15476 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15479 else
15480 ld_shlibs=no
15481 fi
15482 ;;
15483 esac
15484
Reid Spencera773bd52006-08-04 18:18:08 +000015485 if test "$ld_shlibs" = no; then
15486 runpath_var=
15487 hardcode_libdir_flag_spec=
15488 export_dynamic_flag_spec=
15489 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015490 fi
15491 else
15492 # PORTME fill in a description of your system's linker (not GNU ld)
15493 case $host_os in
15494 aix3*)
15495 allow_undefined_flag=unsupported
15496 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015497 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 +000015498 # Note: this linker hardcodes the directories in LIBPATH if there
15499 # are no directories specified by -L.
15500 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015501 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015502 # Neither direct hardcoding nor static linking is supported with a
15503 # broken collect2.
15504 hardcode_direct=unsupported
15505 fi
15506 ;;
15507
15508 aix4* | aix5*)
15509 if test "$host_cpu" = ia64; then
15510 # On IA64, the linker does run time linking by default, so we don't
15511 # have to do anything special.
15512 aix_use_runtimelinking=no
15513 exp_sym_flag='-Bexport'
15514 no_entry_flag=""
15515 else
15516 # If we're using GNU nm, then we don't want the "-C" option.
15517 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15518 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15519 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'
15520 else
15521 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'
15522 fi
15523 aix_use_runtimelinking=no
15524
15525 # Test if we are trying to use run time linking or normal
15526 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15527 # need to do runtime linking.
15528 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15529 for ld_flag in $LDFLAGS; do
15530 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15531 aix_use_runtimelinking=yes
15532 break
15533 fi
15534 done
Reid Spencera773bd52006-08-04 18:18:08 +000015535 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015536 esac
15537
15538 exp_sym_flag='-bexport'
15539 no_entry_flag='-bnoentry'
15540 fi
15541
15542 # When large executables or shared objects are built, AIX ld can
15543 # have problems creating the table of contents. If linking a library
15544 # or program results in "error TOC overflow" add -mminimal-toc to
15545 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15546 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15547
15548 archive_cmds=''
15549 hardcode_direct=yes
15550 hardcode_libdir_separator=':'
15551 link_all_deplibs=yes
15552
15553 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015554 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015555 # We only want to do this on AIX 4.2 and lower, the check
15556 # below for broken collect2 doesn't work under 4.3+
15557 collect2name=`${CC} -print-prog-name=collect2`
15558 if test -f "$collect2name" && \
15559 strings "$collect2name" | grep resolve_lib_name >/dev/null
15560 then
15561 # We have reworked collect2
15562 hardcode_direct=yes
15563 else
15564 # We have old collect2
15565 hardcode_direct=unsupported
15566 # It fails to find uninstalled libraries when the uninstalled
15567 # path is not listed in the libpath. Setting hardcode_minus_L
15568 # to unsupported forces relinking
15569 hardcode_minus_L=yes
15570 hardcode_libdir_flag_spec='-L$libdir'
15571 hardcode_libdir_separator=
15572 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015573 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015574 esac
15575 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015576 if test "$aix_use_runtimelinking" = yes; then
15577 shared_flag="$shared_flag "'${wl}-G'
15578 fi
John Criswell47fdd832003-07-14 16:52:07 +000015579 else
15580 # not using gcc
15581 if test "$host_cpu" = ia64; then
15582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15583 # chokes on -Wl,-G. The following line is correct:
15584 shared_flag='-G'
15585 else
Reid Spencera773bd52006-08-04 18:18:08 +000015586 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015587 shared_flag='${wl}-G'
15588 else
15589 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015590 fi
John Criswell47fdd832003-07-14 16:52:07 +000015591 fi
15592 fi
15593
15594 # It seems that -bexpall does not export symbols beginning with
15595 # underscore (_), so it is better to generate a list of symbols to export.
15596 always_export_symbols=yes
15597 if test "$aix_use_runtimelinking" = yes; then
15598 # Warning - without using the other runtime loading flags (-brtl),
15599 # -berok will link without error, but may produce a broken library.
15600 allow_undefined_flag='-berok'
15601 # Determine the default libpath from the value encoded in an empty executable.
15602 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015603/* confdefs.h. */
15604_ACEOF
15605cat confdefs.h >>conftest.$ac_ext
15606cat >>conftest.$ac_ext <<_ACEOF
15607/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015608
John Criswell7a73b802003-06-30 21:59:07 +000015609int
15610main ()
15611{
John Criswell47fdd832003-07-14 16:52:07 +000015612
John Criswell7a73b802003-06-30 21:59:07 +000015613 ;
15614 return 0;
15615}
15616_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015617rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015618if { (ac_try="$ac_link"
15619case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15622esac
15623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015625 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015626 grep -v '^ *+' conftest.er1 >conftest.err
15627 rm -f conftest.er1
15628 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015630 (exit $ac_status); } &&
15631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15632 { (case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15635esac
15636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_try") 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest$ac_exeext'
15642 { (case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15645esac
15646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_try") 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015651
John Criswell47fdd832003-07-14 16:52:07 +000015652aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15653}'`
15654# Check for a 64-bit object if we didn't find anything.
15655if 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; }
15656}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015657else
15658 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015659sed 's/^/| /' conftest.$ac_ext >&5
15660
Reid Spencera773bd52006-08-04 18:18:08 +000015661
John Criswell7a73b802003-06-30 21:59:07 +000015662fi
Reid Spencera773bd52006-08-04 18:18:08 +000015663
Bill Wendlingebcceee2009-04-18 11:20:33 +000015664rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015665 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015666if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015667
John Criswell47fdd832003-07-14 16:52:07 +000015668 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015669 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 +000015670 else
15671 if test "$host_cpu" = ia64; then
15672 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15673 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015674 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 +000015675 else
15676 # Determine the default libpath from the value encoded in an empty executable.
15677 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015678/* confdefs.h. */
15679_ACEOF
15680cat confdefs.h >>conftest.$ac_ext
15681cat >>conftest.$ac_ext <<_ACEOF
15682/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015683
John Criswell47fdd832003-07-14 16:52:07 +000015684int
15685main ()
15686{
John Criswell7a73b802003-06-30 21:59:07 +000015687
John Criswell47fdd832003-07-14 16:52:07 +000015688 ;
15689 return 0;
15690}
15691_ACEOF
15692rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015693if { (ac_try="$ac_link"
15694case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15697esac
15698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015700 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015701 grep -v '^ *+' conftest.er1 >conftest.err
15702 rm -f conftest.er1
15703 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015705 (exit $ac_status); } &&
15706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15707 { (case "(($ac_try" in
15708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15709 *) ac_try_echo=$ac_try;;
15710esac
15711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15712 (eval "$ac_try") 2>&5
15713 ac_status=$?
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; } &&
15716 { ac_try='test -s conftest$ac_exeext'
15717 { (case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15720esac
15721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_try") 2>&5
15723 ac_status=$?
15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015726
John Criswell47fdd832003-07-14 16:52:07 +000015727aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15728}'`
15729# Check for a 64-bit object if we didn't find anything.
15730if 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; }
15731}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015732else
John Criswell47fdd832003-07-14 16:52:07 +000015733 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015734sed 's/^/| /' conftest.$ac_ext >&5
15735
Reid Spencera773bd52006-08-04 18:18:08 +000015736
John Criswell47fdd832003-07-14 16:52:07 +000015737fi
Reid Spencera773bd52006-08-04 18:18:08 +000015738
Bill Wendlingebcceee2009-04-18 11:20:33 +000015739rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015740 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015741if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015742
John Criswell47fdd832003-07-14 16:52:07 +000015743 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15744 # Warning - without using the other run time loading flags,
15745 # -berok will link without error, but may produce a broken library.
15746 no_undefined_flag=' ${wl}-bernotok'
15747 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015748 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015749 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015750 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015751 # This is similar to how AIX traditionally builds its shared libraries.
15752 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 +000015753 fi
15754 fi
John Criswell7a73b802003-06-30 21:59:07 +000015755 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015756
15757 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015758 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 +000015759 hardcode_libdir_flag_spec='-L$libdir'
15760 hardcode_minus_L=yes
15761 # see comment about different semantics on the GNU ld section
15762 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015763 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015764
Reid Spencer2706f8c2004-09-19 23:53:36 +000015765 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015766 export_dynamic_flag_spec=-rdynamic
15767 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015768
John Criswell47fdd832003-07-14 16:52:07 +000015769 cygwin* | mingw* | pw32*)
15770 # When not using gcc, we currently assume that we are using
15771 # Microsoft Visual C++.
15772 # hardcode_libdir_flag_spec is actually meaningless, as there is
15773 # no search path for DLLs.
15774 hardcode_libdir_flag_spec=' '
15775 allow_undefined_flag=unsupported
15776 # Tell ltmain to make .lib files, not .a files.
15777 libext=lib
15778 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015779 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015780 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015781 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015782 # The linker will automatically build a .lib file if we build a DLL.
15783 old_archive_From_new_cmds='true'
15784 # FIXME: Should let the user specify the lib program.
15785 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15786 fix_srcfile_path='`cygpath -w "$srcfile"`'
15787 enable_shared_with_static_runtimes=yes
15788 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015789
John Criswell47fdd832003-07-14 16:52:07 +000015790 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015791 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015792 rhapsody* | darwin1.[012])
15793 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15794 ;;
15795 *) # Darwin 1.3 on
15796 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15797 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15798 else
15799 case ${MACOSX_DEPLOYMENT_TARGET} in
15800 10.[012])
15801 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15802 ;;
15803 10.*)
15804 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15805 ;;
15806 esac
15807 fi
15808 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015809 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015810 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015811 hardcode_direct=no
15812 hardcode_automatic=yes
15813 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015814 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015815 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015816 if test "$GCC" = yes ; then
15817 output_verbose_link_cmd='echo'
15818 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15819 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015820 # 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 +000015821 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}'
15822 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 +000015823 else
Reid Spencera773bd52006-08-04 18:18:08 +000015824 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015825 xlc*)
15826 output_verbose_link_cmd='echo'
15827 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15828 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015829 # 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 +000015830 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}'
15831 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 +000015832 ;;
15833 *)
15834 ld_shlibs=no
15835 ;;
15836 esac
John Criswell7a73b802003-06-30 21:59:07 +000015837 fi
John Criswell47fdd832003-07-14 16:52:07 +000015838 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015839
John Criswell47fdd832003-07-14 16:52:07 +000015840 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015842 hardcode_libdir_flag_spec='-L$libdir'
15843 hardcode_shlibpath_var=no
15844 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015845
John Criswell47fdd832003-07-14 16:52:07 +000015846 freebsd1*)
15847 ld_shlibs=no
15848 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015849
John Criswell47fdd832003-07-14 16:52:07 +000015850 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15851 # support. Future versions do this automatically, but an explicit c++rt0.o
15852 # does not break anything, and helps significantly (at the cost of a little
15853 # extra space).
15854 freebsd2.2*)
15855 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15856 hardcode_libdir_flag_spec='-R$libdir'
15857 hardcode_direct=yes
15858 hardcode_shlibpath_var=no
15859 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015860
John Criswell47fdd832003-07-14 16:52:07 +000015861 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15862 freebsd2*)
15863 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15864 hardcode_direct=yes
15865 hardcode_minus_L=yes
15866 hardcode_shlibpath_var=no
15867 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015868
John Criswell47fdd832003-07-14 16:52:07 +000015869 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015870 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015871 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15872 hardcode_libdir_flag_spec='-R$libdir'
15873 hardcode_direct=yes
15874 hardcode_shlibpath_var=no
15875 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015876
John Criswell47fdd832003-07-14 16:52:07 +000015877 hpux9*)
15878 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015879 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 +000015880 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015881 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 +000015882 fi
15883 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15884 hardcode_libdir_separator=:
15885 hardcode_direct=yes
15886
15887 # hardcode_minus_L: Not really in the search PATH,
15888 # but as the default location of the library.
15889 hardcode_minus_L=yes
15890 export_dynamic_flag_spec='${wl}-E'
15891 ;;
15892
Reid Spencera773bd52006-08-04 18:18:08 +000015893 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015894 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015895 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15896 else
15897 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15898 fi
15899 if test "$with_gnu_ld" = no; then
15900 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15901 hardcode_libdir_separator=:
15902
15903 hardcode_direct=yes
15904 export_dynamic_flag_spec='${wl}-E'
15905
15906 # hardcode_minus_L: Not really in the search PATH,
15907 # but as the default location of the library.
15908 hardcode_minus_L=yes
15909 fi
15910 ;;
15911
15912 hpux11*)
15913 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15914 case $host_cpu in
15915 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015916 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15917 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015918 ia64*)
15919 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15920 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015921 *)
15922 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15923 ;;
15924 esac
15925 else
Reid Spencera773bd52006-08-04 18:18:08 +000015926 case $host_cpu in
15927 hppa*64*)
15928 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15929 ;;
15930 ia64*)
15931 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015932 ;;
15933 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015934 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 +000015935 ;;
15936 esac
15937 fi
15938 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015939 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15940 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015941
Reid Spencera773bd52006-08-04 18:18:08 +000015942 case $host_cpu in
15943 hppa*64*|ia64*)
15944 hardcode_libdir_flag_spec_ld='+b $libdir'
15945 hardcode_direct=no
15946 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015947 ;;
15948 *)
John Criswell47fdd832003-07-14 16:52:07 +000015949 hardcode_direct=yes
15950 export_dynamic_flag_spec='${wl}-E'
15951
15952 # hardcode_minus_L: Not really in the search PATH,
15953 # but as the default location of the library.
15954 hardcode_minus_L=yes
15955 ;;
15956 esac
15957 fi
15958 ;;
15959
15960 irix5* | irix6* | nonstopux*)
15961 if test "$GCC" = yes; then
15962 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'
15963 else
15964 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'
15965 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15966 fi
15967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15968 hardcode_libdir_separator=:
15969 link_all_deplibs=yes
15970 ;;
15971
15972 netbsd*)
15973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15975 else
15976 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15977 fi
15978 hardcode_libdir_flag_spec='-R$libdir'
15979 hardcode_direct=yes
15980 hardcode_shlibpath_var=no
15981 ;;
15982
15983 newsos6)
15984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15985 hardcode_direct=yes
15986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15987 hardcode_libdir_separator=:
15988 hardcode_shlibpath_var=no
15989 ;;
15990
15991 openbsd*)
15992 hardcode_direct=yes
15993 hardcode_shlibpath_var=no
15994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15995 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015996 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 +000015997 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15998 export_dynamic_flag_spec='${wl}-E'
15999 else
16000 case $host_os in
16001 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16002 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16003 hardcode_libdir_flag_spec='-R$libdir'
16004 ;;
16005 *)
16006 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16007 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16008 ;;
16009 esac
16010 fi
16011 ;;
16012
16013 os2*)
16014 hardcode_libdir_flag_spec='-L$libdir'
16015 hardcode_minus_L=yes
16016 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016017 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 +000016018 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16019 ;;
16020
16021 osf3*)
16022 if test "$GCC" = yes; then
16023 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16024 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'
16025 else
16026 allow_undefined_flag=' -expect_unresolved \*'
16027 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'
16028 fi
16029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16030 hardcode_libdir_separator=:
16031 ;;
16032
16033 osf4* | osf5*) # as osf3* with the addition of -msym flag
16034 if test "$GCC" = yes; then
16035 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16036 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'
16037 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16038 else
16039 allow_undefined_flag=' -expect_unresolved \*'
16040 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 +000016041 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 +000016042 $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 +000016043
John Criswell47fdd832003-07-14 16:52:07 +000016044 # Both c and cxx compiler support -rpath directly
16045 hardcode_libdir_flag_spec='-rpath $libdir'
16046 fi
16047 hardcode_libdir_separator=:
16048 ;;
16049
John Criswell47fdd832003-07-14 16:52:07 +000016050 solaris*)
16051 no_undefined_flag=' -z text'
16052 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016053 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000016054 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016055 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16056 $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 +000016057 else
Reid Spencera773bd52006-08-04 18:18:08 +000016058 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000016059 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016060 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16061 $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 +000016062 fi
16063 hardcode_libdir_flag_spec='-R$libdir'
16064 hardcode_shlibpath_var=no
16065 case $host_os in
16066 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016067 *)
16068 # The compiler driver will combine linker options so we
16069 # cannot just pass the convience library names through
16070 # without $wl, iff we do not link with $LD.
16071 # Luckily, gcc supports the same syntax we need for Sun Studio.
16072 # Supported since Solaris 2.6 (maybe 2.5.1?)
16073 case $wlarc in
16074 '')
16075 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
16076 *)
16077 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' ;;
16078 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000016079 esac
16080 link_all_deplibs=yes
16081 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016082
John Criswell47fdd832003-07-14 16:52:07 +000016083 sunos4*)
16084 if test "x$host_vendor" = xsequent; then
16085 # Use $CC to link under sequent, because it throws in some extra .o
16086 # files that make .init and .fini sections work.
16087 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16088 else
16089 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16090 fi
16091 hardcode_libdir_flag_spec='-L$libdir'
16092 hardcode_direct=yes
16093 hardcode_minus_L=yes
16094 hardcode_shlibpath_var=no
16095 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016096
John Criswell47fdd832003-07-14 16:52:07 +000016097 sysv4)
16098 case $host_vendor in
16099 sni)
16100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16101 hardcode_direct=yes # is this really true???
16102 ;;
16103 siemens)
16104 ## LD is ld it makes a PLAMLIB
16105 ## CC just makes a GrossModule.
16106 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16107 reload_cmds='$CC -r -o $output$reload_objs'
16108 hardcode_direct=no
16109 ;;
16110 motorola)
16111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16112 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16113 ;;
16114 esac
16115 runpath_var='LD_RUN_PATH'
16116 hardcode_shlibpath_var=no
16117 ;;
16118
16119 sysv4.3*)
16120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16121 hardcode_shlibpath_var=no
16122 export_dynamic_flag_spec='-Bexport'
16123 ;;
16124
16125 sysv4*MP*)
16126 if test -d /usr/nec; then
16127 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16128 hardcode_shlibpath_var=no
16129 runpath_var=LD_RUN_PATH
16130 hardcode_runpath_var=yes
16131 ld_shlibs=yes
16132 fi
16133 ;;
16134
Reid Spencera773bd52006-08-04 18:18:08 +000016135 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16136 no_undefined_flag='${wl}-z,text'
16137 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016138 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016139 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016140
John Criswell47fdd832003-07-14 16:52:07 +000016141 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016142 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16143 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 +000016144 else
Reid Spencera773bd52006-08-04 18:18:08 +000016145 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16146 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 +000016147 fi
John Criswell47fdd832003-07-14 16:52:07 +000016148 ;;
16149
Reid Spencera773bd52006-08-04 18:18:08 +000016150 sysv5* | sco3.2v5* | sco5v6*)
16151 # Note: We can NOT use -z defs as we might desire, because we do not
16152 # link with -lc, and that would cause any symbols used from libc to
16153 # always be unresolved, which means just about no library would
16154 # ever link correctly. If we're not using GNU ld we use -z text
16155 # though, which does catch some bad symbols but isn't as heavy-handed
16156 # as -z defs.
16157 no_undefined_flag='${wl}-z,text'
16158 allow_undefined_flag='${wl}-z,nodefs'
16159 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016160 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016161 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16162 hardcode_libdir_separator=':'
16163 link_all_deplibs=yes
16164 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016165 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016166
16167 if test "$GCC" = yes; then
16168 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16169 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 else
16171 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16172 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16173 fi
John Criswell47fdd832003-07-14 16:52:07 +000016174 ;;
16175
16176 uts4*)
16177 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16178 hardcode_libdir_flag_spec='-L$libdir'
16179 hardcode_shlibpath_var=no
16180 ;;
16181
16182 *)
16183 ld_shlibs=no
16184 ;;
16185 esac
16186 fi
16187
Reid Spencera773bd52006-08-04 18:18:08 +000016188{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16189echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016190test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016191
John Criswell47fdd832003-07-14 16:52:07 +000016192#
16193# Do we need to explicitly link libc?
16194#
16195case "x$archive_cmds_need_lc" in
16196x|xyes)
16197 # Assume -lc should be added
16198 archive_cmds_need_lc=yes
16199
16200 if test "$enable_shared" = yes && test "$GCC" = yes; then
16201 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016202 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016203 # FIXME: we may have to deal with multi-command sequences.
16204 ;;
16205 '$CC '*)
16206 # Test whether the compiler implicitly links with -lc since on some
16207 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16208 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016209 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16210echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016211 $rm conftest*
16212 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16213
16214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16215 (eval $ac_compile) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } 2>conftest.err; then
16219 soname=conftest
16220 lib=conftest
16221 libobjs=conftest.$ac_objext
16222 deplibs=
16223 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016224 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016225 compiler_flags=-v
16226 linker_flags=-v
16227 verstring=
16228 output_objdir=.
16229 libname=conftest
16230 lt_save_allow_undefined_flag=$allow_undefined_flag
16231 allow_undefined_flag=
16232 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16233 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16234 ac_status=$?
16235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236 (exit $ac_status); }
16237 then
16238 archive_cmds_need_lc=no
16239 else
16240 archive_cmds_need_lc=yes
16241 fi
16242 allow_undefined_flag=$lt_save_allow_undefined_flag
16243 else
16244 cat conftest.err 1>&5
16245 fi
16246 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016247 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16248echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016249 ;;
16250 esac
16251 fi
16252 ;;
16253esac
16254
Reid Spencera773bd52006-08-04 18:18:08 +000016255{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16256echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016257library_names_spec=
16258libname_spec='lib$name'
16259soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016260shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016261postinstall_cmds=
16262postuninstall_cmds=
16263finish_cmds=
16264finish_eval=
16265shlibpath_var=
16266shlibpath_overrides_runpath=unknown
16267version_type=none
16268dynamic_linker="$host_os ld.so"
16269sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016270if test "$GCC" = yes; then
16271 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16272 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16273 # if the path contains ";" then we assume it to be the separator
16274 # otherwise default to the standard path separator (i.e. ":") - it is
16275 # assumed that no part of a normal pathname contains ";" but that should
16276 # okay in the real world where ";" in dirpaths is itself problematic.
16277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16278 else
16279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16280 fi
16281else
16282 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16283fi
16284need_lib_prefix=unknown
16285hardcode_into_libs=no
16286
16287# when you set need_version to no, make sure it does not cause -set_version
16288# flags to be left without arguments
16289need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016290
16291case $host_os in
16292aix3*)
16293 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016295 shlibpath_var=LIBPATH
16296
John Criswell47fdd832003-07-14 16:52:07 +000016297 # AIX 3 has no versioning support, so we append a major version to the name.
16298 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016299 ;;
16300
16301aix4* | aix5*)
16302 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016303 need_lib_prefix=no
16304 need_version=no
16305 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016306 if test "$host_cpu" = ia64; then
16307 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016308 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016309 shlibpath_var=LD_LIBRARY_PATH
16310 else
16311 # With GCC up to 2.95.x, collect2 would create an import file
16312 # for dependence libraries. The import file would start with
16313 # the line `#! .'. This would cause the generated library to
16314 # depend on `.', always an invalid library. This was fixed in
16315 # development snapshots of GCC prior to 3.0.
16316 case $host_os in
16317 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016318 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16319 echo ' yes '
16320 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16321 :
16322 else
16323 can_build_shared=no
16324 fi
16325 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016326 esac
John Criswell47fdd832003-07-14 16:52:07 +000016327 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16328 # soname into executable. Probably we can add versioning support to
16329 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016330 if test "$aix_use_runtimelinking" = yes; then
16331 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16332 # instead of lib<name>.a to let people know that these are not
16333 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016335 else
16336 # We preserve .a as extension for shared libraries through AIX4.2
16337 # and later when we are not doing run time linking.
16338 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016339 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016340 fi
16341 shlibpath_var=LIBPATH
16342 fi
16343 ;;
16344
16345amigaos*)
16346 library_names_spec='$libname.ixlibrary $libname.a'
16347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016348 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 +000016349 ;;
16350
16351beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016352 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016353 dynamic_linker="$host_os ld.so"
16354 shlibpath_var=LIBRARY_PATH
16355 ;;
16356
Reid Spencer2706f8c2004-09-19 23:53:36 +000016357bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016358 version_type=linux
16359 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16361 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016362 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16363 shlibpath_var=LD_LIBRARY_PATH
16364 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16365 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016366 # the default ld.so.conf also contains /usr/contrib/lib and
16367 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16368 # libtool to hard-code these into programs
16369 ;;
16370
16371cygwin* | mingw* | pw32*)
16372 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016373 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016374 need_version=no
16375 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016376
John Criswell7a73b802003-06-30 21:59:07 +000016377 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016378 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016379 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016381 postinstall_cmds='base_file=`basename \${file}`~
16382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16383 dldir=$destdir/`dirname \$dlpath`~
16384 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016385 $install_prog $dir/$dlname \$dldir/$dlname~
16386 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016387 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16388 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016389 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016390 shlibpath_overrides_runpath=yes
16391
16392 case $host_os in
16393 cygwin*)
16394 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16395 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 +000016396 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016397 ;;
16398 mingw*)
16399 # MinGW DLLs use traditional 'lib' prefix
16400 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16401 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16402 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16403 # It is most probably a Windows format PATH printed by
16404 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16405 # path with ; separators, and with drive letters. We can handle the
16406 # drive letters (cygwin fileutils understands them), so leave them,
16407 # especially as we might pass files found there to a mingw objdump,
16408 # which wouldn't understand a cygwinified path. Ahh.
16409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16410 else
16411 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16412 fi
16413 ;;
16414 pw32*)
16415 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016416 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 +000016417 ;;
16418 esac
John Criswell7a73b802003-06-30 21:59:07 +000016419 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016420
John Criswell7a73b802003-06-30 21:59:07 +000016421 *)
John Criswell47fdd832003-07-14 16:52:07 +000016422 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016423 ;;
16424 esac
16425 dynamic_linker='Win32 ld.exe'
16426 # FIXME: first we should search . and the directory the executable is in
16427 shlibpath_var=PATH
16428 ;;
16429
16430darwin* | rhapsody*)
16431 dynamic_linker="$host_os dyld"
16432 version_type=darwin
16433 need_lib_prefix=no
16434 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016435 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016436 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016437 shlibpath_overrides_runpath=yes
16438 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016439 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016440 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016441 if test "$GCC" = yes; then
16442 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"`
16443 else
16444 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016445 fi
16446 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16447 ;;
16448
16449dgux*)
16450 version_type=linux
16451 need_lib_prefix=no
16452 need_version=no
16453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16454 soname_spec='${libname}${release}${shared_ext}$major'
16455 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016456 ;;
16457
16458freebsd1*)
16459 dynamic_linker=no
16460 ;;
16461
Reid Spencer2706f8c2004-09-19 23:53:36 +000016462kfreebsd*-gnu)
16463 version_type=linux
16464 need_lib_prefix=no
16465 need_version=no
16466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16467 soname_spec='${libname}${release}${shared_ext}$major'
16468 shlibpath_var=LD_LIBRARY_PATH
16469 shlibpath_overrides_runpath=no
16470 hardcode_into_libs=yes
16471 dynamic_linker='GNU ld.so'
16472 ;;
16473
Reid Spencera773bd52006-08-04 18:18:08 +000016474freebsd* | dragonfly*)
16475 # DragonFly does not have aout. When/if they implement a new
16476 # versioning mechanism, adjust this.
16477 if test -x /usr/bin/objformat; then
16478 objformat=`/usr/bin/objformat`
16479 else
16480 case $host_os in
16481 freebsd[123]*) objformat=aout ;;
16482 *) objformat=elf ;;
16483 esac
16484 fi
John Criswell7a73b802003-06-30 21:59:07 +000016485 version_type=freebsd-$objformat
16486 case $version_type in
16487 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016489 need_version=no
16490 need_lib_prefix=no
16491 ;;
16492 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016493 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016494 need_version=yes
16495 ;;
16496 esac
16497 shlibpath_var=LD_LIBRARY_PATH
16498 case $host_os in
16499 freebsd2*)
16500 shlibpath_overrides_runpath=yes
16501 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016502 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016503 shlibpath_overrides_runpath=yes
16504 hardcode_into_libs=yes
16505 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016506 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16507 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016508 shlibpath_overrides_runpath=no
16509 hardcode_into_libs=yes
16510 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016511 freebsd*) # from 4.6 on
16512 shlibpath_overrides_runpath=yes
16513 hardcode_into_libs=yes
16514 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016515 esac
16516 ;;
16517
16518gnu*)
16519 version_type=linux
16520 need_lib_prefix=no
16521 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16523 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016524 shlibpath_var=LD_LIBRARY_PATH
16525 hardcode_into_libs=yes
16526 ;;
16527
16528hpux9* | hpux10* | hpux11*)
16529 # Give a soname corresponding to the major version so that dld.sl refuses to
16530 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016531 version_type=sunos
16532 need_lib_prefix=no
16533 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016534 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016535 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016536 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016537 hardcode_into_libs=yes
16538 dynamic_linker="$host_os dld.so"
16539 shlibpath_var=LD_LIBRARY_PATH
16540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 if test "X$HPUX_IA64_MODE" = X32; then
16544 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16545 else
16546 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16547 fi
16548 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16549 ;;
16550 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016551 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016552 hardcode_into_libs=yes
16553 dynamic_linker="$host_os dld.sl"
16554 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16555 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16557 soname_spec='${libname}${release}${shared_ext}$major'
16558 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16560 ;;
16561 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016562 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016563 dynamic_linker="$host_os dld.sl"
16564 shlibpath_var=SHLIB_PATH
16565 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567 soname_spec='${libname}${release}${shared_ext}$major'
16568 ;;
16569 esac
John Criswell7a73b802003-06-30 21:59:07 +000016570 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16571 postinstall_cmds='chmod 555 $lib'
16572 ;;
16573
Reid Spencera773bd52006-08-04 18:18:08 +000016574interix3*)
16575 version_type=linux
16576 need_lib_prefix=no
16577 need_version=no
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16579 soname_spec='${libname}${release}${shared_ext}$major'
16580 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16581 shlibpath_var=LD_LIBRARY_PATH
16582 shlibpath_overrides_runpath=no
16583 hardcode_into_libs=yes
16584 ;;
16585
John Criswell47fdd832003-07-14 16:52:07 +000016586irix5* | irix6* | nonstopux*)
16587 case $host_os in
16588 nonstopux*) version_type=nonstopux ;;
16589 *)
16590 if test "$lt_cv_prog_gnu_ld" = yes; then
16591 version_type=linux
16592 else
16593 version_type=irix
16594 fi ;;
16595 esac
John Criswell7a73b802003-06-30 21:59:07 +000016596 need_lib_prefix=no
16597 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016598 soname_spec='${libname}${release}${shared_ext}$major'
16599 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 +000016600 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016601 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016602 libsuff= shlibsuff=
16603 ;;
16604 *)
16605 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016606 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16607 libsuff= shlibsuff= libmagic=32-bit;;
16608 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16609 libsuff=32 shlibsuff=N32 libmagic=N32;;
16610 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16611 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016612 *) libsuff= shlibsuff= libmagic=never-match;;
16613 esac
16614 ;;
16615 esac
16616 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16617 shlibpath_overrides_runpath=no
16618 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16619 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016620 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016621 ;;
16622
16623# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016624linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016625 dynamic_linker=no
16626 ;;
16627
16628# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016629linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016630 version_type=linux
16631 need_lib_prefix=no
16632 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16634 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16636 shlibpath_var=LD_LIBRARY_PATH
16637 shlibpath_overrides_runpath=no
16638 # This implies no fast_install, which is unacceptable.
16639 # Some rework will be needed to allow for fast_install
16640 # before this can be enabled.
16641 hardcode_into_libs=yes
16642
Reid Spencer2706f8c2004-09-19 23:53:36 +000016643 # Append ld.so.conf contents to the search path
16644 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016645 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 +000016646 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16647 fi
16648
John Criswell7a73b802003-06-30 21:59:07 +000016649 # We used to test for /lib/ld.so.1 and disable shared libraries on
16650 # powerpc, because MkLinux only supported shared libraries with the
16651 # GNU dynamic linker. Since this was broken with cross compilers,
16652 # most powerpc-linux boxes support dynamic linking these days and
16653 # people can always --disable-shared, the test was removed, and we
16654 # assume the GNU/Linux dynamic linker is in use.
16655 dynamic_linker='GNU/Linux ld.so'
16656 ;;
16657
Reid Spencer2706f8c2004-09-19 23:53:36 +000016658knetbsd*-gnu)
16659 version_type=linux
16660 need_lib_prefix=no
16661 need_version=no
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16663 soname_spec='${libname}${release}${shared_ext}$major'
16664 shlibpath_var=LD_LIBRARY_PATH
16665 shlibpath_overrides_runpath=no
16666 hardcode_into_libs=yes
16667 dynamic_linker='GNU ld.so'
16668 ;;
16669
John Criswell7a73b802003-06-30 21:59:07 +000016670netbsd*)
16671 version_type=sunos
16672 need_lib_prefix=no
16673 need_version=no
16674 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16677 dynamic_linker='NetBSD (a.out) ld.so'
16678 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016680 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016681 dynamic_linker='NetBSD ld.elf_so'
16682 fi
16683 shlibpath_var=LD_LIBRARY_PATH
16684 shlibpath_overrides_runpath=yes
16685 hardcode_into_libs=yes
16686 ;;
16687
16688newsos6)
16689 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16691 shlibpath_var=LD_LIBRARY_PATH
16692 shlibpath_overrides_runpath=yes
16693 ;;
16694
Reid Spencer2706f8c2004-09-19 23:53:36 +000016695nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016696 version_type=linux
16697 need_lib_prefix=no
16698 need_version=no
16699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16700 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016701 shlibpath_var=LD_LIBRARY_PATH
16702 shlibpath_overrides_runpath=yes
16703 ;;
16704
16705openbsd*)
16706 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016707 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016708 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016709 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16710 case $host_os in
16711 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16712 *) need_version=no ;;
16713 esac
John Criswell47fdd832003-07-14 16:52:07 +000016714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16716 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016717 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 +000016718 case $host_os in
16719 openbsd2.[89] | openbsd2.[89].*)
16720 shlibpath_overrides_runpath=no
16721 ;;
16722 *)
16723 shlibpath_overrides_runpath=yes
16724 ;;
16725 esac
John Criswell7a73b802003-06-30 21:59:07 +000016726 else
16727 shlibpath_overrides_runpath=yes
16728 fi
John Criswell7a73b802003-06-30 21:59:07 +000016729 ;;
16730
16731os2*)
16732 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016733 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016734 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016735 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016736 dynamic_linker='OS/2 ld.exe'
16737 shlibpath_var=LIBPATH
16738 ;;
16739
16740osf3* | osf4* | osf5*)
16741 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016742 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016743 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016744 soname_spec='${libname}${release}${shared_ext}$major'
16745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016746 shlibpath_var=LD_LIBRARY_PATH
16747 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16748 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16749 ;;
16750
John Criswell7a73b802003-06-30 21:59:07 +000016751solaris*)
16752 version_type=linux
16753 need_lib_prefix=no
16754 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16756 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016757 shlibpath_var=LD_LIBRARY_PATH
16758 shlibpath_overrides_runpath=yes
16759 hardcode_into_libs=yes
16760 # ldd complains unless libraries are executable
16761 postinstall_cmds='chmod +x $lib'
16762 ;;
16763
16764sunos4*)
16765 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16768 shlibpath_var=LD_LIBRARY_PATH
16769 shlibpath_overrides_runpath=yes
16770 if test "$with_gnu_ld" = yes; then
16771 need_lib_prefix=no
16772 fi
16773 need_version=yes
16774 ;;
16775
Reid Spencera773bd52006-08-04 18:18:08 +000016776sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016777 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16779 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016780 shlibpath_var=LD_LIBRARY_PATH
16781 case $host_vendor in
16782 sni)
16783 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016784 need_lib_prefix=no
16785 export_dynamic_flag_spec='${wl}-Blargedynsym'
16786 runpath_var=LD_RUN_PATH
16787 ;;
16788 siemens)
16789 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016790 ;;
16791 motorola)
16792 need_lib_prefix=no
16793 need_version=no
16794 shlibpath_overrides_runpath=no
16795 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16796 ;;
16797 esac
16798 ;;
16799
John Criswell7a73b802003-06-30 21:59:07 +000016800sysv4*MP*)
16801 if test -d /usr/nec ;then
16802 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016803 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16804 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016805 shlibpath_var=LD_LIBRARY_PATH
16806 fi
16807 ;;
16808
Reid Spencera773bd52006-08-04 18:18:08 +000016809sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16810 version_type=freebsd-elf
16811 need_lib_prefix=no
16812 need_version=no
16813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16814 soname_spec='${libname}${release}${shared_ext}$major'
16815 shlibpath_var=LD_LIBRARY_PATH
16816 hardcode_into_libs=yes
16817 if test "$with_gnu_ld" = yes; then
16818 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16819 shlibpath_overrides_runpath=no
16820 else
16821 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16822 shlibpath_overrides_runpath=yes
16823 case $host_os in
16824 sco3.2v5*)
16825 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16826 ;;
16827 esac
16828 fi
16829 sys_lib_dlsearch_path_spec='/usr/lib'
16830 ;;
16831
John Criswell47fdd832003-07-14 16:52:07 +000016832uts4*)
16833 version_type=linux
16834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16835 soname_spec='${libname}${release}${shared_ext}$major'
16836 shlibpath_var=LD_LIBRARY_PATH
16837 ;;
16838
John Criswell7a73b802003-06-30 21:59:07 +000016839*)
16840 dynamic_linker=no
16841 ;;
16842esac
Reid Spencera773bd52006-08-04 18:18:08 +000016843{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16844echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016845test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016846
Reid Spencera773bd52006-08-04 18:18:08 +000016847variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16848if test "$GCC" = yes; then
16849 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16850fi
16851
16852{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16853echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016854hardcode_action=
16855if test -n "$hardcode_libdir_flag_spec" || \
16856 test -n "$runpath_var" || \
16857 test "X$hardcode_automatic" = "Xyes" ; then
16858
16859 # We can hardcode non-existant directories.
16860 if test "$hardcode_direct" != no &&
16861 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16862 # have to relink, otherwise we might link with an installed library
16863 # when we should be linking with a yet-to-be-installed one
16864 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16865 test "$hardcode_minus_L" != no; then
16866 # Linking always hardcodes the temporary library directory.
16867 hardcode_action=relink
16868 else
16869 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16870 hardcode_action=immediate
16871 fi
16872else
16873 # We cannot hardcode anything, or else we can only hardcode existing
16874 # directories.
16875 hardcode_action=unsupported
16876fi
Reid Spencera773bd52006-08-04 18:18:08 +000016877{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16878echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016879
16880if test "$hardcode_action" = relink; then
16881 # Fast installation is not supported
16882 enable_fast_install=no
16883elif test "$shlibpath_overrides_runpath" = yes ||
16884 test "$enable_shared" = no; then
16885 # Fast installation is not necessary
16886 enable_fast_install=needless
16887fi
16888
16889striplib=
16890old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016891{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16892echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016893if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16894 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16895 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016896 { echo "$as_me:$LINENO: result: yes" >&5
16897echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016898else
16899# FIXME - insert some real tests, host_os isn't really good enough
16900 case $host_os in
16901 darwin*)
16902 if test -n "$STRIP" ; then
16903 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016904 { echo "$as_me:$LINENO: result: yes" >&5
16905echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016906 else
Reid Spencera773bd52006-08-04 18:18:08 +000016907 { echo "$as_me:$LINENO: result: no" >&5
16908echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016909fi
16910 ;;
16911 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016912 { echo "$as_me:$LINENO: result: no" >&5
16913echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016914 ;;
16915 esac
16916fi
16917
John Criswell7a73b802003-06-30 21:59:07 +000016918if test "x$enable_dlopen" != xyes; then
16919 enable_dlopen=unknown
16920 enable_dlopen_self=unknown
16921 enable_dlopen_self_static=unknown
16922else
16923 lt_cv_dlopen=no
16924 lt_cv_dlopen_libs=
16925
16926 case $host_os in
16927 beos*)
16928 lt_cv_dlopen="load_add_on"
16929 lt_cv_dlopen_libs=
16930 lt_cv_dlopen_self=yes
16931 ;;
16932
John Criswell47fdd832003-07-14 16:52:07 +000016933 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016934 lt_cv_dlopen="LoadLibrary"
16935 lt_cv_dlopen_libs=
16936 ;;
16937
John Criswell47fdd832003-07-14 16:52:07 +000016938 cygwin*)
16939 lt_cv_dlopen="dlopen"
16940 lt_cv_dlopen_libs=
16941 ;;
16942
16943 darwin*)
16944 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016945 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16946echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016947if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16949else
16950 ac_check_lib_save_LIBS=$LIBS
16951LIBS="-ldl $LIBS"
16952cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016953/* confdefs.h. */
16954_ACEOF
16955cat confdefs.h >>conftest.$ac_ext
16956cat >>conftest.$ac_ext <<_ACEOF
16957/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016958
Reid Spencera773bd52006-08-04 18:18:08 +000016959/* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016962#ifdef __cplusplus
16963extern "C"
16964#endif
John Criswell47fdd832003-07-14 16:52:07 +000016965char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016966int
16967main ()
16968{
Reid Spencera773bd52006-08-04 18:18:08 +000016969return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016970 ;
16971 return 0;
16972}
16973_ACEOF
16974rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016975if { (ac_try="$ac_link"
16976case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16979esac
16980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016982 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016983 grep -v '^ *+' conftest.er1 >conftest.err
16984 rm -f conftest.er1
16985 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016987 (exit $ac_status); } &&
16988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16989 { (case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16992esac
16993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_try") 2>&5
16995 ac_status=$?
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); }; } &&
16998 { ac_try='test -s conftest$ac_exeext'
16999 { (case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002esac
17003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_try") 2>&5
17005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000017008 ac_cv_lib_dl_dlopen=yes
17009else
17010 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017011sed 's/^/| /' conftest.$ac_ext >&5
17012
Reid Spencera773bd52006-08-04 18:18:08 +000017013 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000017014fi
Reid Spencera773bd52006-08-04 18:18:08 +000017015
Bill Wendlingebcceee2009-04-18 11:20:33 +000017016rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017017 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017018LIBS=$ac_check_lib_save_LIBS
17019fi
Reid Spencera773bd52006-08-04 18:18:08 +000017020{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17021echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017022if test $ac_cv_lib_dl_dlopen = yes; then
17023 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17024else
17025
17026 lt_cv_dlopen="dyld"
17027 lt_cv_dlopen_libs=
17028 lt_cv_dlopen_self=yes
17029
17030fi
17031
17032 ;;
17033
John Criswell7a73b802003-06-30 21:59:07 +000017034 *)
Reid Spencera773bd52006-08-04 18:18:08 +000017035 { echo "$as_me:$LINENO: checking for shl_load" >&5
17036echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017037if test "${ac_cv_func_shl_load+set}" = set; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17039else
17040 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017041/* confdefs.h. */
17042_ACEOF
17043cat confdefs.h >>conftest.$ac_ext
17044cat >>conftest.$ac_ext <<_ACEOF
17045/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017046/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17048#define shl_load innocuous_shl_load
17049
John Criswell7a73b802003-06-30 21:59:07 +000017050/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017051 which can conflict with char shl_load (); below.
17052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17053 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017054
John Criswell0c38eaf2003-09-10 15:17:25 +000017055#ifdef __STDC__
17056# include <limits.h>
17057#else
17058# include <assert.h>
17059#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017060
17061#undef shl_load
17062
Reid Spencera773bd52006-08-04 18:18:08 +000017063/* Override any GCC internal prototype to avoid an error.
17064 Use char because int might match the return type of a GCC
17065 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017066#ifdef __cplusplus
17067extern "C"
17068#endif
John Criswell7a73b802003-06-30 21:59:07 +000017069char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017070/* The GNU C library defines this for functions which it implements
17071 to always fail with ENOSYS. Some functions are actually named
17072 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017073#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000017074choke me
John Criswell7a73b802003-06-30 21:59:07 +000017075#endif
17076
John Criswell0c38eaf2003-09-10 15:17:25 +000017077int
17078main ()
17079{
Reid Spencera773bd52006-08-04 18:18:08 +000017080return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017081 ;
17082 return 0;
17083}
17084_ACEOF
17085rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017086if { (ac_try="$ac_link"
17087case "(($ac_try" in
17088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089 *) ac_try_echo=$ac_try;;
17090esac
17091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017093 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017094 grep -v '^ *+' conftest.er1 >conftest.err
17095 rm -f conftest.er1
17096 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017098 (exit $ac_status); } &&
17099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17100 { (case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17103esac
17104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_try") 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; } &&
17109 { ac_try='test -s conftest$ac_exeext'
17110 { (case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17113esac
17114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_try") 2>&5
17116 ac_status=$?
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017119 ac_cv_func_shl_load=yes
17120else
17121 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017122sed 's/^/| /' conftest.$ac_ext >&5
17123
Reid Spencera773bd52006-08-04 18:18:08 +000017124 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017125fi
Reid Spencera773bd52006-08-04 18:18:08 +000017126
Bill Wendlingebcceee2009-04-18 11:20:33 +000017127rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017128 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017129fi
Reid Spencera773bd52006-08-04 18:18:08 +000017130{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17131echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017132if test $ac_cv_func_shl_load = yes; then
17133 lt_cv_dlopen="shl_load"
17134else
Reid Spencera773bd52006-08-04 18:18:08 +000017135 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17136echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017137if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17139else
17140 ac_check_lib_save_LIBS=$LIBS
17141LIBS="-ldld $LIBS"
17142cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017143/* confdefs.h. */
17144_ACEOF
17145cat confdefs.h >>conftest.$ac_ext
17146cat >>conftest.$ac_ext <<_ACEOF
17147/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017148
Reid Spencera773bd52006-08-04 18:18:08 +000017149/* Override any GCC internal prototype to avoid an error.
17150 Use char because int might match the return type of a GCC
17151 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017152#ifdef __cplusplus
17153extern "C"
17154#endif
John Criswell7a73b802003-06-30 21:59:07 +000017155char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017156int
17157main ()
17158{
Reid Spencera773bd52006-08-04 18:18:08 +000017159return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017160 ;
17161 return 0;
17162}
17163_ACEOF
17164rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017165if { (ac_try="$ac_link"
17166case "(($ac_try" in
17167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17168 *) ac_try_echo=$ac_try;;
17169esac
17170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17171 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017172 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017173 grep -v '^ *+' conftest.er1 >conftest.err
17174 rm -f conftest.er1
17175 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017177 (exit $ac_status); } &&
17178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17179 { (case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17182esac
17183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_try") 2>&5
17185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; } &&
17188 { ac_try='test -s conftest$ac_exeext'
17189 { (case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17192esac
17193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194 (eval "$ac_try") 2>&5
17195 ac_status=$?
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017198 ac_cv_lib_dld_shl_load=yes
17199else
17200 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017201sed 's/^/| /' conftest.$ac_ext >&5
17202
Reid Spencera773bd52006-08-04 18:18:08 +000017203 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017204fi
Reid Spencera773bd52006-08-04 18:18:08 +000017205
Bill Wendlingebcceee2009-04-18 11:20:33 +000017206rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017207 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017208LIBS=$ac_check_lib_save_LIBS
17209fi
Reid Spencera773bd52006-08-04 18:18:08 +000017210{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17211echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017212if test $ac_cv_lib_dld_shl_load = yes; then
17213 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17214else
Reid Spencera773bd52006-08-04 18:18:08 +000017215 { echo "$as_me:$LINENO: checking for dlopen" >&5
17216echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017217if test "${ac_cv_func_dlopen+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17219else
17220 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017221/* confdefs.h. */
17222_ACEOF
17223cat confdefs.h >>conftest.$ac_ext
17224cat >>conftest.$ac_ext <<_ACEOF
17225/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017226/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17228#define dlopen innocuous_dlopen
17229
John Criswell7a73b802003-06-30 21:59:07 +000017230/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017231 which can conflict with char dlopen (); below.
17232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17233 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017234
John Criswell0c38eaf2003-09-10 15:17:25 +000017235#ifdef __STDC__
17236# include <limits.h>
17237#else
17238# include <assert.h>
17239#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017240
17241#undef dlopen
17242
Reid Spencera773bd52006-08-04 18:18:08 +000017243/* Override any GCC internal prototype to avoid an error.
17244 Use char because int might match the return type of a GCC
17245 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017246#ifdef __cplusplus
17247extern "C"
17248#endif
John Criswell7a73b802003-06-30 21:59:07 +000017249char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017250/* The GNU C library defines this for functions which it implements
17251 to always fail with ENOSYS. Some functions are actually named
17252 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017253#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017254choke me
John Criswell7a73b802003-06-30 21:59:07 +000017255#endif
17256
John Criswell0c38eaf2003-09-10 15:17:25 +000017257int
17258main ()
17259{
Reid Spencera773bd52006-08-04 18:18:08 +000017260return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017261 ;
17262 return 0;
17263}
17264_ACEOF
17265rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017266if { (ac_try="$ac_link"
17267case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17270esac
17271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017273 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017274 grep -v '^ *+' conftest.er1 >conftest.err
17275 rm -f conftest.er1
17276 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017278 (exit $ac_status); } &&
17279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17280 { (case "(($ac_try" in
17281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282 *) ac_try_echo=$ac_try;;
17283esac
17284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285 (eval "$ac_try") 2>&5
17286 ac_status=$?
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); }; } &&
17289 { ac_try='test -s conftest$ac_exeext'
17290 { (case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17293esac
17294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_try") 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017299 ac_cv_func_dlopen=yes
17300else
17301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017302sed 's/^/| /' conftest.$ac_ext >&5
17303
Reid Spencera773bd52006-08-04 18:18:08 +000017304 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017305fi
Reid Spencera773bd52006-08-04 18:18:08 +000017306
Bill Wendlingebcceee2009-04-18 11:20:33 +000017307rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017308 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017309fi
Reid Spencera773bd52006-08-04 18:18:08 +000017310{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17311echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017312if test $ac_cv_func_dlopen = yes; then
17313 lt_cv_dlopen="dlopen"
17314else
Reid Spencera773bd52006-08-04 18:18:08 +000017315 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17316echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017317if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17318 echo $ECHO_N "(cached) $ECHO_C" >&6
17319else
17320 ac_check_lib_save_LIBS=$LIBS
17321LIBS="-ldl $LIBS"
17322cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017323/* confdefs.h. */
17324_ACEOF
17325cat confdefs.h >>conftest.$ac_ext
17326cat >>conftest.$ac_ext <<_ACEOF
17327/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017328
Reid Spencera773bd52006-08-04 18:18:08 +000017329/* Override any GCC internal prototype to avoid an error.
17330 Use char because int might match the return type of a GCC
17331 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017332#ifdef __cplusplus
17333extern "C"
17334#endif
John Criswell7a73b802003-06-30 21:59:07 +000017335char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017336int
17337main ()
17338{
Reid Spencera773bd52006-08-04 18:18:08 +000017339return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017340 ;
17341 return 0;
17342}
17343_ACEOF
17344rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017345if { (ac_try="$ac_link"
17346case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17349esac
17350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017352 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017353 grep -v '^ *+' conftest.er1 >conftest.err
17354 rm -f conftest.er1
17355 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017357 (exit $ac_status); } &&
17358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17359 { (case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17362esac
17363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_try") 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; } &&
17368 { ac_try='test -s conftest$ac_exeext'
17369 { (case "(($ac_try" in
17370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371 *) ac_try_echo=$ac_try;;
17372esac
17373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374 (eval "$ac_try") 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017378 ac_cv_lib_dl_dlopen=yes
17379else
17380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017381sed 's/^/| /' conftest.$ac_ext >&5
17382
Reid Spencera773bd52006-08-04 18:18:08 +000017383 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017384fi
Reid Spencera773bd52006-08-04 18:18:08 +000017385
Bill Wendlingebcceee2009-04-18 11:20:33 +000017386rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017387 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017388LIBS=$ac_check_lib_save_LIBS
17389fi
Reid Spencera773bd52006-08-04 18:18:08 +000017390{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17391echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017392if test $ac_cv_lib_dl_dlopen = yes; then
17393 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17394else
Reid Spencera773bd52006-08-04 18:18:08 +000017395 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17396echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017397if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17398 echo $ECHO_N "(cached) $ECHO_C" >&6
17399else
17400 ac_check_lib_save_LIBS=$LIBS
17401LIBS="-lsvld $LIBS"
17402cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017403/* confdefs.h. */
17404_ACEOF
17405cat confdefs.h >>conftest.$ac_ext
17406cat >>conftest.$ac_ext <<_ACEOF
17407/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017408
Reid Spencera773bd52006-08-04 18:18:08 +000017409/* Override any GCC internal prototype to avoid an error.
17410 Use char because int might match the return type of a GCC
17411 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017412#ifdef __cplusplus
17413extern "C"
17414#endif
John Criswell7a73b802003-06-30 21:59:07 +000017415char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017416int
17417main ()
17418{
Reid Spencera773bd52006-08-04 18:18:08 +000017419return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017420 ;
17421 return 0;
17422}
17423_ACEOF
17424rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017425if { (ac_try="$ac_link"
17426case "(($ac_try" in
17427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428 *) ac_try_echo=$ac_try;;
17429esac
17430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017433 grep -v '^ *+' conftest.er1 >conftest.err
17434 rm -f conftest.er1
17435 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017437 (exit $ac_status); } &&
17438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17439 { (case "(($ac_try" in
17440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441 *) ac_try_echo=$ac_try;;
17442esac
17443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17444 (eval "$ac_try") 2>&5
17445 ac_status=$?
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); }; } &&
17448 { ac_try='test -s conftest$ac_exeext'
17449 { (case "(($ac_try" in
17450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451 *) ac_try_echo=$ac_try;;
17452esac
17453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454 (eval "$ac_try") 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017458 ac_cv_lib_svld_dlopen=yes
17459else
17460 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017461sed 's/^/| /' conftest.$ac_ext >&5
17462
Reid Spencera773bd52006-08-04 18:18:08 +000017463 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017464fi
Reid Spencera773bd52006-08-04 18:18:08 +000017465
Bill Wendlingebcceee2009-04-18 11:20:33 +000017466rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017467 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017468LIBS=$ac_check_lib_save_LIBS
17469fi
Reid Spencera773bd52006-08-04 18:18:08 +000017470{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17471echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017472if test $ac_cv_lib_svld_dlopen = yes; then
17473 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17474else
Reid Spencera773bd52006-08-04 18:18:08 +000017475 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17476echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017477if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17478 echo $ECHO_N "(cached) $ECHO_C" >&6
17479else
17480 ac_check_lib_save_LIBS=$LIBS
17481LIBS="-ldld $LIBS"
17482cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017483/* confdefs.h. */
17484_ACEOF
17485cat confdefs.h >>conftest.$ac_ext
17486cat >>conftest.$ac_ext <<_ACEOF
17487/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017488
Reid Spencera773bd52006-08-04 18:18:08 +000017489/* Override any GCC internal prototype to avoid an error.
17490 Use char because int might match the return type of a GCC
17491 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017492#ifdef __cplusplus
17493extern "C"
17494#endif
John Criswell7a73b802003-06-30 21:59:07 +000017495char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017496int
17497main ()
17498{
Reid Spencera773bd52006-08-04 18:18:08 +000017499return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017500 ;
17501 return 0;
17502}
17503_ACEOF
17504rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017505if { (ac_try="$ac_link"
17506case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17509esac
17510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017512 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017513 grep -v '^ *+' conftest.er1 >conftest.err
17514 rm -f conftest.er1
17515 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017517 (exit $ac_status); } &&
17518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17519 { (case "(($ac_try" in
17520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17521 *) ac_try_echo=$ac_try;;
17522esac
17523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17524 (eval "$ac_try") 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; } &&
17528 { ac_try='test -s conftest$ac_exeext'
17529 { (case "(($ac_try" in
17530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17531 *) ac_try_echo=$ac_try;;
17532esac
17533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17534 (eval "$ac_try") 2>&5
17535 ac_status=$?
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017538 ac_cv_lib_dld_dld_link=yes
17539else
17540 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017541sed 's/^/| /' conftest.$ac_ext >&5
17542
Reid Spencera773bd52006-08-04 18:18:08 +000017543 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017544fi
Reid Spencera773bd52006-08-04 18:18:08 +000017545
Bill Wendlingebcceee2009-04-18 11:20:33 +000017546rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017547 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017548LIBS=$ac_check_lib_save_LIBS
17549fi
Reid Spencera773bd52006-08-04 18:18:08 +000017550{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17551echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017552if test $ac_cv_lib_dld_dld_link = yes; then
17553 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17554fi
17555
17556
17557fi
17558
17559
17560fi
17561
17562
17563fi
17564
17565
17566fi
17567
17568
17569fi
17570
17571 ;;
17572 esac
17573
17574 if test "x$lt_cv_dlopen" != xno; then
17575 enable_dlopen=yes
17576 else
17577 enable_dlopen=no
17578 fi
17579
17580 case $lt_cv_dlopen in
17581 dlopen)
17582 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017583 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017584
17585 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017586 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017587
17588 save_LIBS="$LIBS"
17589 LIBS="$lt_cv_dlopen_libs $LIBS"
17590
Reid Spencera773bd52006-08-04 18:18:08 +000017591 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17592echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017593if test "${lt_cv_dlopen_self+set}" = set; then
17594 echo $ECHO_N "(cached) $ECHO_C" >&6
17595else
17596 if test "$cross_compiling" = yes; then :
17597 lt_cv_dlopen_self=cross
17598else
John Criswell47fdd832003-07-14 16:52:07 +000017599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017600 lt_status=$lt_dlunknown
17601 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000017602#line 17602 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017603#include "confdefs.h"
17604
17605#if HAVE_DLFCN_H
17606#include <dlfcn.h>
17607#endif
17608
17609#include <stdio.h>
17610
17611#ifdef RTLD_GLOBAL
17612# define LT_DLGLOBAL RTLD_GLOBAL
17613#else
17614# ifdef DL_GLOBAL
17615# define LT_DLGLOBAL DL_GLOBAL
17616# else
17617# define LT_DLGLOBAL 0
17618# endif
17619#endif
17620
17621/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17622 find out it does not work in some platform. */
17623#ifndef LT_DLLAZY_OR_NOW
17624# ifdef RTLD_LAZY
17625# define LT_DLLAZY_OR_NOW RTLD_LAZY
17626# else
17627# ifdef DL_LAZY
17628# define LT_DLLAZY_OR_NOW DL_LAZY
17629# else
17630# ifdef RTLD_NOW
17631# define LT_DLLAZY_OR_NOW RTLD_NOW
17632# else
17633# ifdef DL_NOW
17634# define LT_DLLAZY_OR_NOW DL_NOW
17635# else
17636# define LT_DLLAZY_OR_NOW 0
17637# endif
17638# endif
17639# endif
17640# endif
17641#endif
17642
17643#ifdef __cplusplus
17644extern "C" void exit (int);
17645#endif
17646
17647void fnord() { int i=42;}
17648int main ()
17649{
17650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17651 int status = $lt_dlunknown;
17652
17653 if (self)
17654 {
17655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17656 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17657 /* dlclose (self); */
17658 }
Reid Spencera773bd52006-08-04 18:18:08 +000017659 else
17660 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017661
17662 exit (status);
17663}
17664EOF
17665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17666 (eval $ac_link) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017670 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017671 lt_status=$?
17672 case x$lt_status in
17673 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17674 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017675 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017676 esac
17677 else :
17678 # compilation failed
17679 lt_cv_dlopen_self=no
17680 fi
17681fi
17682rm -fr conftest*
17683
17684
17685fi
Reid Spencera773bd52006-08-04 18:18:08 +000017686{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17687echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017688
17689 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017690 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17691 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17692echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017693if test "${lt_cv_dlopen_self_static+set}" = set; then
17694 echo $ECHO_N "(cached) $ECHO_C" >&6
17695else
17696 if test "$cross_compiling" = yes; then :
17697 lt_cv_dlopen_self_static=cross
17698else
John Criswell47fdd832003-07-14 16:52:07 +000017699 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017700 lt_status=$lt_dlunknown
17701 cat > conftest.$ac_ext <<EOF
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000017702#line 17702 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017703#include "confdefs.h"
17704
17705#if HAVE_DLFCN_H
17706#include <dlfcn.h>
17707#endif
17708
17709#include <stdio.h>
17710
17711#ifdef RTLD_GLOBAL
17712# define LT_DLGLOBAL RTLD_GLOBAL
17713#else
17714# ifdef DL_GLOBAL
17715# define LT_DLGLOBAL DL_GLOBAL
17716# else
17717# define LT_DLGLOBAL 0
17718# endif
17719#endif
17720
17721/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17722 find out it does not work in some platform. */
17723#ifndef LT_DLLAZY_OR_NOW
17724# ifdef RTLD_LAZY
17725# define LT_DLLAZY_OR_NOW RTLD_LAZY
17726# else
17727# ifdef DL_LAZY
17728# define LT_DLLAZY_OR_NOW DL_LAZY
17729# else
17730# ifdef RTLD_NOW
17731# define LT_DLLAZY_OR_NOW RTLD_NOW
17732# else
17733# ifdef DL_NOW
17734# define LT_DLLAZY_OR_NOW DL_NOW
17735# else
17736# define LT_DLLAZY_OR_NOW 0
17737# endif
17738# endif
17739# endif
17740# endif
17741#endif
17742
17743#ifdef __cplusplus
17744extern "C" void exit (int);
17745#endif
17746
17747void fnord() { int i=42;}
17748int main ()
17749{
17750 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17751 int status = $lt_dlunknown;
17752
17753 if (self)
17754 {
17755 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17756 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17757 /* dlclose (self); */
17758 }
Reid Spencera773bd52006-08-04 18:18:08 +000017759 else
17760 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017761
17762 exit (status);
17763}
17764EOF
17765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17766 (eval $ac_link) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017770 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017771 lt_status=$?
17772 case x$lt_status in
17773 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17774 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017775 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017776 esac
17777 else :
17778 # compilation failed
17779 lt_cv_dlopen_self_static=no
17780 fi
17781fi
17782rm -fr conftest*
17783
17784
17785fi
Reid Spencera773bd52006-08-04 18:18:08 +000017786{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17787echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017788 fi
17789
17790 CPPFLAGS="$save_CPPFLAGS"
17791 LDFLAGS="$save_LDFLAGS"
17792 LIBS="$save_LIBS"
17793 ;;
17794 esac
17795
17796 case $lt_cv_dlopen_self in
17797 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17798 *) enable_dlopen_self=unknown ;;
17799 esac
17800
17801 case $lt_cv_dlopen_self_static in
17802 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17803 *) enable_dlopen_self_static=unknown ;;
17804 esac
17805fi
17806
17807
Reid Spencera773bd52006-08-04 18:18:08 +000017808# Report which library types will actually be built
17809{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17810echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17811{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17812echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017813
Reid Spencera773bd52006-08-04 18:18:08 +000017814{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17815echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017816test "$can_build_shared" = "no" && enable_shared=no
17817
17818# On AIX, shared libraries and static libraries use the same namespace, and
17819# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017820case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017821aix3*)
17822 test "$enable_shared" = yes && enable_static=no
17823 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017824 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017825 postinstall_cmds='$RANLIB $lib'
17826 fi
17827 ;;
17828
Reid Spencer2706f8c2004-09-19 23:53:36 +000017829aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017830 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17831 test "$enable_shared" = yes && enable_static=no
17832 fi
John Criswell7a73b802003-06-30 21:59:07 +000017833 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017834esac
Reid Spencera773bd52006-08-04 18:18:08 +000017835{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17836echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017837
Reid Spencera773bd52006-08-04 18:18:08 +000017838{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17839echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017840# Make sure either enable_shared or enable_static is yes.
17841test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017842{ echo "$as_me:$LINENO: result: $enable_static" >&5
17843echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017844
17845# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017846# libtool distribution, otherwise you forgot to ship ltmain.sh
17847# with your package, and you will get complaints that there are
17848# no rules to generate ltmain.sh.
17849if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017850 # See if we are running on zsh, and set the options which allow our commands through
17851 # without removal of \ escapes.
17852 if test -n "${ZSH_VERSION+set}" ; then
17853 setopt NO_GLOB_SUBST
17854 fi
John Criswell7a73b802003-06-30 21:59:07 +000017855 # Now quote all the things that may contain metacharacters while being
17856 # careful not to overquote the AC_SUBSTed values. We take copies of the
17857 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017858 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 +000017859 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017860 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17861 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17862 deplibs_check_method reload_flag reload_cmds need_locks \
17863 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17864 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017865 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017866 old_postinstall_cmds old_postuninstall_cmds \
17867 compiler \
17868 CC \
17869 LD \
17870 lt_prog_compiler_wl \
17871 lt_prog_compiler_pic \
17872 lt_prog_compiler_static \
17873 lt_prog_compiler_no_builtin_flag \
17874 export_dynamic_flag_spec \
17875 thread_safe_flag_spec \
17876 whole_archive_flag_spec \
17877 enable_shared_with_static_runtimes \
17878 old_archive_cmds \
17879 old_archive_from_new_cmds \
17880 predep_objects \
17881 postdep_objects \
17882 predeps \
17883 postdeps \
17884 compiler_lib_search_path \
17885 archive_cmds \
17886 archive_expsym_cmds \
17887 postinstall_cmds \
17888 postuninstall_cmds \
17889 old_archive_from_expsyms_cmds \
17890 allow_undefined_flag \
17891 no_undefined_flag \
17892 export_symbols_cmds \
17893 hardcode_libdir_flag_spec \
17894 hardcode_libdir_flag_spec_ld \
17895 hardcode_libdir_separator \
17896 hardcode_automatic \
17897 module_cmds \
17898 module_expsym_cmds \
17899 lt_cv_prog_compiler_c_o \
17900 exclude_expsyms \
17901 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017902
17903 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017904 old_archive_cmds | \
17905 old_archive_from_new_cmds | \
17906 archive_cmds | \
17907 archive_expsym_cmds | \
17908 module_cmds | \
17909 module_expsym_cmds | \
17910 old_archive_from_expsyms_cmds | \
17911 export_symbols_cmds | \
17912 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017913 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017914 old_postinstall_cmds | old_postuninstall_cmds | \
17915 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017916 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017917 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 +000017918 ;;
17919 *)
17920 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17921 ;;
17922 esac
17923 done
17924
John Criswell47fdd832003-07-14 16:52:07 +000017925 case $lt_echo in
17926 *'\$0 --fallback-echo"')
17927 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17928 ;;
17929 esac
17930
17931cfgfile="${ofile}T"
17932 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17933 $rm -f "$cfgfile"
17934 { echo "$as_me:$LINENO: creating $ofile" >&5
17935echo "$as_me: creating $ofile" >&6;}
17936
17937 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017938#! $SHELL
17939
John Criswell47fdd832003-07-14 16:52:07 +000017940# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017941# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17942# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17943#
John Criswell47fdd832003-07-14 16:52:07 +000017944# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17945# Free Software Foundation, Inc.
17946#
17947# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017948# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17949#
17950# This program is free software; you can redistribute it and/or modify
17951# it under the terms of the GNU General Public License as published by
17952# the Free Software Foundation; either version 2 of the License, or
17953# (at your option) any later version.
17954#
17955# This program is distributed in the hope that it will be useful, but
17956# WITHOUT ANY WARRANTY; without even the implied warranty of
17957# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17958# General Public License for more details.
17959#
17960# You should have received a copy of the GNU General Public License
17961# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017962# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017963#
17964# As a special exception to the GNU General Public License, if you
17965# distribute this file as part of a program that contains a
17966# configuration script generated by Autoconf, you may include it under
17967# the same distribution terms that you use for the rest of that program.
17968
John Criswell47fdd832003-07-14 16:52:07 +000017969# A sed program that does not truncate output.
17970SED=$lt_SED
17971
John Criswell7a73b802003-06-30 21:59:07 +000017972# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017973Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017974
17975# The HP-UX ksh and POSIX shell print the target directory to stdout
17976# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017977(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017978
John Criswell47fdd832003-07-14 16:52:07 +000017979# The names of the tagged configurations supported by this script.
17980available_tags=
17981
John Criswell7a73b802003-06-30 21:59:07 +000017982# ### BEGIN LIBTOOL CONFIG
17983
17984# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17985
17986# Shell to use when invoking shell scripts.
17987SHELL=$lt_SHELL
17988
17989# Whether or not to build shared libraries.
17990build_libtool_libs=$enable_shared
17991
17992# Whether or not to build static libraries.
17993build_old_libs=$enable_static
17994
17995# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017996build_libtool_need_lc=$archive_cmds_need_lc
17997
17998# Whether or not to disallow shared libs when runtime libs are static
17999allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000018000
18001# Whether or not to optimize for fast installation.
18002fast_install=$enable_fast_install
18003
18004# The host system.
18005host_alias=$host_alias
18006host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000018007host_os=$host_os
18008
18009# The build system.
18010build_alias=$build_alias
18011build=$build
18012build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000018013
18014# An echo program that does not interpret backslashes.
18015echo=$lt_echo
18016
18017# The archiver.
18018AR=$lt_AR
18019AR_FLAGS=$lt_AR_FLAGS
18020
John Criswell47fdd832003-07-14 16:52:07 +000018021# A C compiler.
18022LTCC=$lt_LTCC
18023
Reid Spencera773bd52006-08-04 18:18:08 +000018024# LTCC compiler flags.
18025LTCFLAGS=$lt_LTCFLAGS
18026
John Criswell47fdd832003-07-14 16:52:07 +000018027# A language-specific compiler.
18028CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000018029
18030# Is the compiler the GNU C compiler?
18031with_gcc=$GCC
18032
John Criswell47fdd832003-07-14 16:52:07 +000018033# An ERE matcher.
18034EGREP=$lt_EGREP
18035
John Criswell7a73b802003-06-30 21:59:07 +000018036# The linker used to build libraries.
18037LD=$lt_LD
18038
18039# Whether we need hard or soft links.
18040LN_S=$lt_LN_S
18041
18042# A BSD-compatible nm program.
18043NM=$lt_NM
18044
18045# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018046STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000018047
18048# Used to examine libraries when file_magic_cmd begins "file"
18049MAGIC_CMD=$MAGIC_CMD
18050
18051# Used on cygwin: DLL creation program.
18052DLLTOOL="$DLLTOOL"
18053
18054# Used on cygwin: object dumper.
18055OBJDUMP="$OBJDUMP"
18056
18057# Used on cygwin: assembler.
18058AS="$AS"
18059
18060# The name of the directory that contains temporary libtool files.
18061objdir=$objdir
18062
18063# How to create reloadable object files.
18064reload_flag=$lt_reload_flag
18065reload_cmds=$lt_reload_cmds
18066
18067# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000018068wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000018069
18070# Object file suffix (normally "o").
18071objext="$ac_objext"
18072
18073# Old archive suffix (normally "a").
18074libext="$libext"
18075
John Criswell47fdd832003-07-14 16:52:07 +000018076# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018077shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018078
John Criswell7a73b802003-06-30 21:59:07 +000018079# Executable file suffix (normally "").
18080exeext="$exeext"
18081
18082# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018083pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018084pic_mode=$pic_mode
18085
John Criswell47fdd832003-07-14 16:52:07 +000018086# What is the maximum length of a command?
18087max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018088
John Criswell47fdd832003-07-14 16:52:07 +000018089# Does compiler simultaneously support -c and -o options?
18090compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018091
Reid Spencera773bd52006-08-04 18:18:08 +000018092# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018093need_locks=$lt_need_locks
18094
18095# Do we need the lib prefix for modules?
18096need_lib_prefix=$need_lib_prefix
18097
18098# Do we need a version for libraries?
18099need_version=$need_version
18100
18101# Whether dlopen is supported.
18102dlopen_support=$enable_dlopen
18103
18104# Whether dlopen of programs is supported.
18105dlopen_self=$enable_dlopen_self
18106
18107# Whether dlopen of statically linked programs is supported.
18108dlopen_self_static=$enable_dlopen_self_static
18109
18110# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018111link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018112
18113# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018114no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018115
18116# Compiler flag to allow reflexive dlopens.
18117export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18118
18119# Compiler flag to generate shared objects directly from archives.
18120whole_archive_flag_spec=$lt_whole_archive_flag_spec
18121
18122# Compiler flag to generate thread-safe objects.
18123thread_safe_flag_spec=$lt_thread_safe_flag_spec
18124
18125# Library versioning type.
18126version_type=$version_type
18127
18128# Format of library name prefix.
18129libname_spec=$lt_libname_spec
18130
18131# List of archive names. First name is the real one, the rest are links.
18132# The last name is the one that the linker finds with -lNAME.
18133library_names_spec=$lt_library_names_spec
18134
18135# The coded name of the library, if different from the real name.
18136soname_spec=$lt_soname_spec
18137
18138# Commands used to build and install an old-style archive.
18139RANLIB=$lt_RANLIB
18140old_archive_cmds=$lt_old_archive_cmds
18141old_postinstall_cmds=$lt_old_postinstall_cmds
18142old_postuninstall_cmds=$lt_old_postuninstall_cmds
18143
18144# Create an old-style archive from a shared archive.
18145old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18146
18147# Create a temporary old-style archive to link instead of a shared archive.
18148old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18149
18150# Commands used to build and install a shared archive.
18151archive_cmds=$lt_archive_cmds
18152archive_expsym_cmds=$lt_archive_expsym_cmds
18153postinstall_cmds=$lt_postinstall_cmds
18154postuninstall_cmds=$lt_postuninstall_cmds
18155
John Criswell47fdd832003-07-14 16:52:07 +000018156# Commands used to build a loadable module (assumed same as above if empty)
18157module_cmds=$lt_module_cmds
18158module_expsym_cmds=$lt_module_expsym_cmds
18159
John Criswell7a73b802003-06-30 21:59:07 +000018160# Commands to strip libraries.
18161old_striplib=$lt_old_striplib
18162striplib=$lt_striplib
18163
John Criswell47fdd832003-07-14 16:52:07 +000018164# Dependencies to place before the objects being linked to create a
18165# shared library.
18166predep_objects=$lt_predep_objects
18167
18168# Dependencies to place after the objects being linked to create a
18169# shared library.
18170postdep_objects=$lt_postdep_objects
18171
18172# Dependencies to place before the objects being linked to create a
18173# shared library.
18174predeps=$lt_predeps
18175
18176# Dependencies to place after the objects being linked to create a
18177# shared library.
18178postdeps=$lt_postdeps
18179
18180# The library search path used internally by the compiler when linking
18181# a shared library.
18182compiler_lib_search_path=$lt_compiler_lib_search_path
18183
John Criswell7a73b802003-06-30 21:59:07 +000018184# Method to check whether dependent libraries are shared objects.
18185deplibs_check_method=$lt_deplibs_check_method
18186
18187# Command to use when deplibs_check_method == file_magic.
18188file_magic_cmd=$lt_file_magic_cmd
18189
18190# Flag that allows shared libraries with undefined symbols to be built.
18191allow_undefined_flag=$lt_allow_undefined_flag
18192
18193# Flag that forces no undefined symbols.
18194no_undefined_flag=$lt_no_undefined_flag
18195
18196# Commands used to finish a libtool library installation in a directory.
18197finish_cmds=$lt_finish_cmds
18198
18199# Same as above, but a single script fragment to be evaled but not shown.
18200finish_eval=$lt_finish_eval
18201
18202# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018203global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018204
18205# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018206global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018207
18208# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018209global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018210
18211# This is the shared library runtime path variable.
18212runpath_var=$runpath_var
18213
18214# This is the shared library path variable.
18215shlibpath_var=$shlibpath_var
18216
18217# Is shlibpath searched before the hard-coded library search path?
18218shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18219
18220# How to hardcode a shared library path into an executable.
18221hardcode_action=$hardcode_action
18222
18223# Whether we should hardcode library paths into libraries.
18224hardcode_into_libs=$hardcode_into_libs
18225
18226# Flag to hardcode \$libdir into a binary during linking.
18227# This must work even if \$libdir does not exist.
18228hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18229
John Criswell47fdd832003-07-14 16:52:07 +000018230# If ld is used when linking, flag to hardcode \$libdir into
18231# a binary during linking. This must work even if \$libdir does
18232# not exist.
18233hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18234
John Criswell7a73b802003-06-30 21:59:07 +000018235# Whether we need a single -rpath flag with a separated argument.
18236hardcode_libdir_separator=$lt_hardcode_libdir_separator
18237
John Criswell47fdd832003-07-14 16:52:07 +000018238# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018239# resulting binary.
18240hardcode_direct=$hardcode_direct
18241
18242# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18243# resulting binary.
18244hardcode_minus_L=$hardcode_minus_L
18245
18246# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18247# the resulting binary.
18248hardcode_shlibpath_var=$hardcode_shlibpath_var
18249
John Criswell47fdd832003-07-14 16:52:07 +000018250# Set to yes if building a shared library automatically hardcodes DIR into the library
18251# and all subsequent libraries and executables linked against it.
18252hardcode_automatic=$hardcode_automatic
18253
John Criswell7a73b802003-06-30 21:59:07 +000018254# Variables whose values should be saved in libtool wrapper scripts and
18255# restored at relink time.
18256variables_saved_for_relink="$variables_saved_for_relink"
18257
18258# Whether libtool must link a program against all its dependency libraries.
18259link_all_deplibs=$link_all_deplibs
18260
18261# Compile-time system search path for libraries
18262sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18263
18264# Run-time system search path for libraries
18265sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18266
18267# Fix the shell variable \$srcfile for the compiler.
18268fix_srcfile_path="$fix_srcfile_path"
18269
18270# Set to yes if exported symbols are required.
18271always_export_symbols=$always_export_symbols
18272
18273# The commands to list exported symbols.
18274export_symbols_cmds=$lt_export_symbols_cmds
18275
18276# The commands to extract the exported symbol list from a shared archive.
18277extract_expsyms_cmds=$lt_extract_expsyms_cmds
18278
18279# Symbols that should not be listed in the preloaded symbols.
18280exclude_expsyms=$lt_exclude_expsyms
18281
18282# Symbols that must always be exported.
18283include_expsyms=$lt_include_expsyms
18284
18285# ### END LIBTOOL CONFIG
18286
18287__EOF__
18288
John Criswell47fdd832003-07-14 16:52:07 +000018289
John Criswell7a73b802003-06-30 21:59:07 +000018290 case $host_os in
18291 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018292 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018293
18294# AIX sometimes has problems with the GCC collect2 program. For some
18295# reason, if we set the COLLECT_NAMES environment variable, the problems
18296# vanish in a puff of smoke.
18297if test "X${COLLECT_NAMES+set}" != Xset; then
18298 COLLECT_NAMES=
18299 export COLLECT_NAMES
18300fi
18301EOF
18302 ;;
18303 esac
18304
John Criswell7a73b802003-06-30 21:59:07 +000018305 # We use sed instead of cat because bash on DJGPP gets confused if
18306 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18307 # text mode, it properly converts lines to CR/LF. This bash problem
18308 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018309 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018310
John Criswell47fdd832003-07-14 16:52:07 +000018311 mv -f "$cfgfile" "$ofile" || \
18312 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018313 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018314
18315else
18316 # If there is no Makefile yet, we rely on a make rule to execute
18317 # `config.status --recheck' to rerun these tests and create the
18318 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018319 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18320 if test -f "$ltmain_in"; then
18321 test -f Makefile && make "$ltmain"
18322 fi
John Criswell7a73b802003-06-30 21:59:07 +000018323fi
John Criswell7a73b802003-06-30 21:59:07 +000018324
18325
John Criswell47fdd832003-07-14 16:52:07 +000018326ac_ext=c
18327ac_cpp='$CPP $CPPFLAGS'
18328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18330ac_compiler_gnu=$ac_cv_c_compiler_gnu
18331
18332CC="$lt_save_CC"
18333
18334
Reid Spencera773bd52006-08-04 18:18:08 +000018335# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018336if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018337 withval=$with_tags; tagnames="$withval"
18338fi
18339
John Criswell47fdd832003-07-14 16:52:07 +000018340
18341if test -f "$ltmain" && test -n "$tagnames"; then
18342 if test ! -f "${ofile}"; then
18343 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18344echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18345 fi
18346
18347 if test -z "$LTCC"; then
18348 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18349 if test -z "$LTCC"; then
18350 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18351echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18352 else
18353 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18354echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18355 fi
18356 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018357 if test -z "$LTCFLAGS"; then
18358 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18359 fi
John Criswell47fdd832003-07-14 16:52:07 +000018360
18361 # Extract list of available tagged configurations in $ofile.
18362 # Note that this assumes the entire list is on one line.
18363 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18364
18365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18366 for tagname in $tagnames; do
18367 IFS="$lt_save_ifs"
18368 # Check whether tagname contains only valid characters
18369 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18370 "") ;;
18371 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18372echo "$as_me: error: invalid tag name: $tagname" >&2;}
18373 { (exit 1); exit 1; }; }
18374 ;;
18375 esac
18376
18377 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18378 then
18379 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18380echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18381 { (exit 1); exit 1; }; }
18382 fi
18383
18384 # Update the list of available tags.
18385 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018386 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018387
18388 case $tagname in
18389 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018390 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18391 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18392 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018393 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018394ac_cpp='$CXXCPP $CPPFLAGS'
18395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18398
18399
18400
18401
18402archive_cmds_need_lc_CXX=no
18403allow_undefined_flag_CXX=
18404always_export_symbols_CXX=no
18405archive_expsym_cmds_CXX=
18406export_dynamic_flag_spec_CXX=
18407hardcode_direct_CXX=no
18408hardcode_libdir_flag_spec_CXX=
18409hardcode_libdir_flag_spec_ld_CXX=
18410hardcode_libdir_separator_CXX=
18411hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018412hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018413hardcode_automatic_CXX=no
18414module_cmds_CXX=
18415module_expsym_cmds_CXX=
18416link_all_deplibs_CXX=unknown
18417old_archive_cmds_CXX=$old_archive_cmds
18418no_undefined_flag_CXX=
18419whole_archive_flag_spec_CXX=
18420enable_shared_with_static_runtimes_CXX=no
18421
18422# Dependencies to place before and after the object being linked:
18423predep_objects_CXX=
18424postdep_objects_CXX=
18425predeps_CXX=
18426postdeps_CXX=
18427compiler_lib_search_path_CXX=
18428
18429# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018430ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018431
18432# Object file extension for compiled C++ test sources.
18433objext=o
18434objext_CXX=$objext
18435
18436# Code to be used in simple compile tests
18437lt_simple_compile_test_code="int some_variable = 0;\n"
18438
18439# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018440lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018441
18442# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18443
18444# If no C compiler was specified, use CC.
18445LTCC=${LTCC-"$CC"}
18446
Reid Spencera773bd52006-08-04 18:18:08 +000018447# If no C compiler flags were specified, use CFLAGS.
18448LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18449
John Criswell47fdd832003-07-14 16:52:07 +000018450# Allow CC to be a program name with arguments.
18451compiler=$CC
18452
18453
Reid Spencera773bd52006-08-04 18:18:08 +000018454# save warnings/boilerplate of simple test code
18455ac_outfile=conftest.$ac_objext
18456printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18457eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18458_lt_compiler_boilerplate=`cat conftest.err`
18459$rm conftest*
18460
18461ac_outfile=conftest.$ac_objext
18462printf "$lt_simple_link_test_code" >conftest.$ac_ext
18463eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18464_lt_linker_boilerplate=`cat conftest.err`
18465$rm conftest*
18466
18467
John Criswell47fdd832003-07-14 16:52:07 +000018468# Allow CC to be a program name with arguments.
18469lt_save_CC=$CC
18470lt_save_LD=$LD
18471lt_save_GCC=$GCC
18472GCC=$GXX
18473lt_save_with_gnu_ld=$with_gnu_ld
18474lt_save_path_LD=$lt_cv_path_LD
18475if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18476 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18477else
Reid Spencera773bd52006-08-04 18:18:08 +000018478 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018479fi
18480if test -n "${lt_cv_path_LDCXX+set}"; then
18481 lt_cv_path_LD=$lt_cv_path_LDCXX
18482else
Reid Spencera773bd52006-08-04 18:18:08 +000018483 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018484fi
18485test -z "${LDCXX+set}" || LD=$LDCXX
18486CC=${CXX-"c++"}
18487compiler=$CC
18488compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018489for cc_temp in $compiler""; do
18490 case $cc_temp in
18491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18493 \-*) ;;
18494 *) break;;
18495 esac
18496done
18497cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18498
John Criswell47fdd832003-07-14 16:52:07 +000018499
18500# We don't want -fno-exception wen compiling C++ code, so set the
18501# no_builtin_flag separately
18502if test "$GXX" = yes; then
18503 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18504else
18505 lt_prog_compiler_no_builtin_flag_CXX=
18506fi
18507
18508if test "$GXX" = yes; then
18509 # Set up default GNU C++ configuration
18510
18511
Reid Spencera773bd52006-08-04 18:18:08 +000018512# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018513if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018514 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018515else
18516 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018517fi
18518
John Criswell47fdd832003-07-14 16:52:07 +000018519ac_prog=ld
18520if test "$GCC" = yes; then
18521 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018522 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18523echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018524 case $host in
18525 *-*-mingw*)
18526 # gcc leaves a trailing carriage return which upsets mingw
18527 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18528 *)
18529 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18530 esac
18531 case $ac_prog in
18532 # Accept absolute paths.
18533 [\\/]* | ?:[\\/]*)
18534 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018535 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018536 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18537 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18538 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18539 done
18540 test -z "$LD" && LD="$ac_prog"
18541 ;;
18542 "")
18543 # If it fails, then pretend we aren't using GCC.
18544 ac_prog=ld
18545 ;;
18546 *)
18547 # If it is relative, then search for the first ld in PATH.
18548 with_gnu_ld=unknown
18549 ;;
18550 esac
18551elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018552 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18553echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018554else
Reid Spencera773bd52006-08-04 18:18:08 +000018555 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18556echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018557fi
18558if test "${lt_cv_path_LD+set}" = set; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560else
18561 if test -z "$LD"; then
18562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18563 for ac_dir in $PATH; do
18564 IFS="$lt_save_ifs"
18565 test -z "$ac_dir" && ac_dir=.
18566 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18567 lt_cv_path_LD="$ac_dir/$ac_prog"
18568 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018569 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018570 # Break only if it was the GNU/non-GNU ld that we prefer.
18571 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18572 *GNU* | *'with BFD'*)
18573 test "$with_gnu_ld" != no && break
18574 ;;
18575 *)
18576 test "$with_gnu_ld" != yes && break
18577 ;;
18578 esac
18579 fi
18580 done
18581 IFS="$lt_save_ifs"
18582else
18583 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18584fi
18585fi
18586
18587LD="$lt_cv_path_LD"
18588if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018589 { echo "$as_me:$LINENO: result: $LD" >&5
18590echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018591else
Reid Spencera773bd52006-08-04 18:18:08 +000018592 { echo "$as_me:$LINENO: result: no" >&5
18593echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018594fi
18595test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18596echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18597 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018598{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18599echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018600if test "${lt_cv_prog_gnu_ld+set}" = set; then
18601 echo $ECHO_N "(cached) $ECHO_C" >&6
18602else
Reid Spencera773bd52006-08-04 18:18:08 +000018603 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018604case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018605*GNU* | *'with BFD'*)
18606 lt_cv_prog_gnu_ld=yes
18607 ;;
18608*)
18609 lt_cv_prog_gnu_ld=no
18610 ;;
18611esac
18612fi
Reid Spencera773bd52006-08-04 18:18:08 +000018613{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18614echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018615with_gnu_ld=$lt_cv_prog_gnu_ld
18616
18617
18618
18619 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18620 # archiving commands below assume that GNU ld is being used.
18621 if test "$with_gnu_ld" = yes; then
18622 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18623 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'
18624
18625 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18626 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18627
18628 # If archive_cmds runs LD, not CC, wlarc should be empty
18629 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18630 # investigate it a little bit more. (MM)
18631 wlarc='${wl}'
18632
18633 # ancient GNU ld didn't support --whole-archive et. al.
18634 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18635 grep 'no-whole-archive' > /dev/null; then
18636 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18637 else
18638 whole_archive_flag_spec_CXX=
18639 fi
18640 else
18641 with_gnu_ld=no
18642 wlarc=
18643
18644 # A generic and very simple default shared library creation
18645 # command for GNU C++ for the case where it uses the native
18646 # linker, instead of GNU ld. If possible, this setting should
18647 # overridden to take advantage of the native linker features on
18648 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018649 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018650 fi
18651
18652 # Commands to make compiler produce verbose output that lists
18653 # what "hidden" libraries, object files and flags are used when
18654 # linking a shared library.
18655 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18656
18657else
18658 GXX=no
18659 with_gnu_ld=no
18660 wlarc=
18661fi
18662
18663# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018664{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18665echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018666ld_shlibs_CXX=yes
18667case $host_os in
18668 aix3*)
18669 # FIXME: insert proper C++ library support
18670 ld_shlibs_CXX=no
18671 ;;
18672 aix4* | aix5*)
18673 if test "$host_cpu" = ia64; then
18674 # On IA64, the linker does run time linking by default, so we don't
18675 # have to do anything special.
18676 aix_use_runtimelinking=no
18677 exp_sym_flag='-Bexport'
18678 no_entry_flag=""
18679 else
18680 aix_use_runtimelinking=no
18681
18682 # Test if we are trying to use run time linking or normal
18683 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18684 # need to do runtime linking.
18685 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18686 for ld_flag in $LDFLAGS; do
18687 case $ld_flag in
18688 *-brtl*)
18689 aix_use_runtimelinking=yes
18690 break
18691 ;;
18692 esac
18693 done
Reid Spencera773bd52006-08-04 18:18:08 +000018694 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018695 esac
18696
18697 exp_sym_flag='-bexport'
18698 no_entry_flag='-bnoentry'
18699 fi
18700
18701 # When large executables or shared objects are built, AIX ld can
18702 # have problems creating the table of contents. If linking a library
18703 # or program results in "error TOC overflow" add -mminimal-toc to
18704 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18705 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18706
18707 archive_cmds_CXX=''
18708 hardcode_direct_CXX=yes
18709 hardcode_libdir_separator_CXX=':'
18710 link_all_deplibs_CXX=yes
18711
18712 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018713 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018714 # We only want to do this on AIX 4.2 and lower, the check
18715 # below for broken collect2 doesn't work under 4.3+
18716 collect2name=`${CC} -print-prog-name=collect2`
18717 if test -f "$collect2name" && \
18718 strings "$collect2name" | grep resolve_lib_name >/dev/null
18719 then
18720 # We have reworked collect2
18721 hardcode_direct_CXX=yes
18722 else
18723 # We have old collect2
18724 hardcode_direct_CXX=unsupported
18725 # It fails to find uninstalled libraries when the uninstalled
18726 # path is not listed in the libpath. Setting hardcode_minus_L
18727 # to unsupported forces relinking
18728 hardcode_minus_L_CXX=yes
18729 hardcode_libdir_flag_spec_CXX='-L$libdir'
18730 hardcode_libdir_separator_CXX=
18731 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018732 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018733 esac
18734 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018735 if test "$aix_use_runtimelinking" = yes; then
18736 shared_flag="$shared_flag "'${wl}-G'
18737 fi
John Criswell47fdd832003-07-14 16:52:07 +000018738 else
18739 # not using gcc
18740 if test "$host_cpu" = ia64; then
18741 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18742 # chokes on -Wl,-G. The following line is correct:
18743 shared_flag='-G'
18744 else
18745 if test "$aix_use_runtimelinking" = yes; then
18746 shared_flag='${wl}-G'
18747 else
18748 shared_flag='${wl}-bM:SRE'
18749 fi
18750 fi
18751 fi
18752
18753 # It seems that -bexpall does not export symbols beginning with
18754 # underscore (_), so it is better to generate a list of symbols to export.
18755 always_export_symbols_CXX=yes
18756 if test "$aix_use_runtimelinking" = yes; then
18757 # Warning - without using the other runtime loading flags (-brtl),
18758 # -berok will link without error, but may produce a broken library.
18759 allow_undefined_flag_CXX='-berok'
18760 # Determine the default libpath from the value encoded in an empty executable.
18761 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018762/* confdefs.h. */
18763_ACEOF
18764cat confdefs.h >>conftest.$ac_ext
18765cat >>conftest.$ac_ext <<_ACEOF
18766/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018767
John Criswell47fdd832003-07-14 16:52:07 +000018768int
18769main ()
18770{
18771
18772 ;
18773 return 0;
18774}
18775_ACEOF
18776rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018777if { (ac_try="$ac_link"
18778case "(($ac_try" in
18779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780 *) ac_try_echo=$ac_try;;
18781esac
18782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018784 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018785 grep -v '^ *+' conftest.er1 >conftest.err
18786 rm -f conftest.er1
18787 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018789 (exit $ac_status); } &&
18790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18791 { (case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18794esac
18795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_try") 2>&5
18797 ac_status=$?
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; } &&
18800 { ac_try='test -s conftest$ac_exeext'
18801 { (case "(($ac_try" in
18802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803 *) ac_try_echo=$ac_try;;
18804esac
18805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806 (eval "$ac_try") 2>&5
18807 ac_status=$?
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018810
18811aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18812}'`
18813# Check for a 64-bit object if we didn't find anything.
18814if 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; }
18815}'`; fi
18816else
18817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018818sed 's/^/| /' conftest.$ac_ext >&5
18819
Reid Spencera773bd52006-08-04 18:18:08 +000018820
John Criswell47fdd832003-07-14 16:52:07 +000018821fi
Reid Spencera773bd52006-08-04 18:18:08 +000018822
Bill Wendlingebcceee2009-04-18 11:20:33 +000018823rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018824 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018825if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18826
18827 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18828
Reid Spencera773bd52006-08-04 18:18:08 +000018829 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 +000018830 else
18831 if test "$host_cpu" = ia64; then
18832 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18833 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018834 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 +000018835 else
18836 # Determine the default libpath from the value encoded in an empty executable.
18837 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018838/* confdefs.h. */
18839_ACEOF
18840cat confdefs.h >>conftest.$ac_ext
18841cat >>conftest.$ac_ext <<_ACEOF
18842/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018843
John Criswell47fdd832003-07-14 16:52:07 +000018844int
18845main ()
18846{
18847
18848 ;
18849 return 0;
18850}
18851_ACEOF
18852rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018853if { (ac_try="$ac_link"
18854case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18857esac
18858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018860 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018861 grep -v '^ *+' conftest.er1 >conftest.err
18862 rm -f conftest.er1
18863 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018865 (exit $ac_status); } &&
18866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18867 { (case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18870esac
18871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_try") 2>&5
18873 ac_status=$?
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; } &&
18876 { ac_try='test -s conftest$ac_exeext'
18877 { (case "(($ac_try" in
18878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18879 *) ac_try_echo=$ac_try;;
18880esac
18881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18882 (eval "$ac_try") 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018886
18887aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18888}'`
18889# Check for a 64-bit object if we didn't find anything.
18890if 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; }
18891}'`; fi
18892else
18893 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018894sed 's/^/| /' conftest.$ac_ext >&5
18895
Reid Spencera773bd52006-08-04 18:18:08 +000018896
John Criswell47fdd832003-07-14 16:52:07 +000018897fi
Reid Spencera773bd52006-08-04 18:18:08 +000018898
Bill Wendlingebcceee2009-04-18 11:20:33 +000018899rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018900 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018901if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18902
18903 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18904 # Warning - without using the other run time loading flags,
18905 # -berok will link without error, but may produce a broken library.
18906 no_undefined_flag_CXX=' ${wl}-bernotok'
18907 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018908 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018909 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018910 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018911 # This is similar to how AIX traditionally builds its shared libraries.
18912 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 +000018913 fi
18914 fi
18915 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018916
18917 beos*)
18918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18919 allow_undefined_flag_CXX=unsupported
18920 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18921 # support --undefined. This deserves some investigation. FIXME
18922 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18923 else
18924 ld_shlibs_CXX=no
18925 fi
18926 ;;
18927
John Criswell47fdd832003-07-14 16:52:07 +000018928 chorus*)
18929 case $cc_basename in
18930 *)
18931 # FIXME: insert proper C++ library support
18932 ld_shlibs_CXX=no
18933 ;;
18934 esac
18935 ;;
18936
18937 cygwin* | mingw* | pw32*)
18938 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18939 # as there is no search path for DLLs.
18940 hardcode_libdir_flag_spec_CXX='-L$libdir'
18941 allow_undefined_flag_CXX=unsupported
18942 always_export_symbols_CXX=no
18943 enable_shared_with_static_runtimes_CXX=yes
18944
18945 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018946 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 +000018947 # If the export-symbols file already is a .def file (1st line
18948 # is EXPORTS), use it as is; otherwise, prepend...
18949 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18950 cp $export_symbols $output_objdir/$soname.def;
18951 else
18952 echo EXPORTS > $output_objdir/$soname.def;
18953 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018954 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018955 $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 +000018956 else
18957 ld_shlibs_CXX=no
18958 fi
18959 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018960 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018961 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018962 rhapsody* | darwin1.[012])
18963 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18964 ;;
18965 *) # Darwin 1.3 on
18966 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18967 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18968 else
18969 case ${MACOSX_DEPLOYMENT_TARGET} in
18970 10.[012])
18971 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18972 ;;
18973 10.*)
18974 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18975 ;;
18976 esac
18977 fi
18978 ;;
18979 esac
18980 archive_cmds_need_lc_CXX=no
18981 hardcode_direct_CXX=no
18982 hardcode_automatic_CXX=yes
18983 hardcode_shlibpath_var_CXX=unsupported
18984 whole_archive_flag_spec_CXX=''
18985 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018986
Reid Spencer2706f8c2004-09-19 23:53:36 +000018987 if test "$GXX" = yes ; then
18988 lt_int_apple_cc_single_mod=no
18989 output_verbose_link_cmd='echo'
18990 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18991 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018992 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018993 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018994 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 +000018995 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018996 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 +000018997 fi
18998 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018999 # 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 +000019000 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019001 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 +000019002 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019003 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 +000019004 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000019005 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 +000019006 else
Reid Spencera773bd52006-08-04 18:18:08 +000019007 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019008 xlc*)
19009 output_verbose_link_cmd='echo'
19010 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'
19011 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000019012 # 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 +000019013 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}'
19014 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 +000019015 ;;
19016 *)
19017 ld_shlibs_CXX=no
19018 ;;
19019 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000019020 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019021 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019022
19023 dgux*)
19024 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019025 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019026 # FIXME: insert proper C++ library support
19027 ld_shlibs_CXX=no
19028 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019029 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019030 # Green Hills C++ Compiler
19031 # FIXME: insert proper C++ library support
19032 ld_shlibs_CXX=no
19033 ;;
19034 *)
19035 # FIXME: insert proper C++ library support
19036 ld_shlibs_CXX=no
19037 ;;
19038 esac
19039 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019040 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000019041 # C++ shared libraries reported to be fairly broken before switch to ELF
19042 ld_shlibs_CXX=no
19043 ;;
19044 freebsd-elf*)
19045 archive_cmds_need_lc_CXX=no
19046 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019047 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019048 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19049 # conventions
19050 ld_shlibs_CXX=yes
19051 ;;
19052 gnu*)
19053 ;;
19054 hpux9*)
19055 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19056 hardcode_libdir_separator_CXX=:
19057 export_dynamic_flag_spec_CXX='${wl}-E'
19058 hardcode_direct_CXX=yes
19059 hardcode_minus_L_CXX=yes # Not in the search PATH,
19060 # but as the default
19061 # location of the library.
19062
19063 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019064 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019065 # FIXME: insert proper C++ library support
19066 ld_shlibs_CXX=no
19067 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019068 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019069 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 +000019070 # Commands to make compiler produce verbose output that lists
19071 # what "hidden" libraries, object files and flags are used when
19072 # linking a shared library.
19073 #
19074 # There doesn't appear to be a way to prevent this compiler from
19075 # explicitly linking system object files so we need to strip them
19076 # from the output so that they don't get included in the library
19077 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000019078 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 +000019079 ;;
19080 *)
19081 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019082 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 +000019083 else
19084 # FIXME: insert proper C++ library support
19085 ld_shlibs_CXX=no
19086 fi
19087 ;;
19088 esac
19089 ;;
19090 hpux10*|hpux11*)
19091 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019092 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19093 hardcode_libdir_separator_CXX=:
19094
19095 case $host_cpu in
19096 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019097 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019098 ;;
19099 *)
John Criswell47fdd832003-07-14 16:52:07 +000019100 export_dynamic_flag_spec_CXX='${wl}-E'
19101 ;;
19102 esac
19103 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019104 case $host_cpu in
19105 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019106 hardcode_direct_CXX=no
19107 hardcode_shlibpath_var_CXX=no
19108 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019109 *)
19110 hardcode_direct_CXX=yes
19111 hardcode_minus_L_CXX=yes # Not in the search PATH,
19112 # but as the default
19113 # location of the library.
19114 ;;
19115 esac
19116
19117 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019118 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019119 # FIXME: insert proper C++ library support
19120 ld_shlibs_CXX=no
19121 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019122 aCC*)
19123 case $host_cpu in
19124 hppa*64*)
19125 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19126 ;;
19127 ia64*)
19128 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 +000019129 ;;
19130 *)
19131 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19132 ;;
19133 esac
19134 # Commands to make compiler produce verbose output that lists
19135 # what "hidden" libraries, object files and flags are used when
19136 # linking a shared library.
19137 #
19138 # There doesn't appear to be a way to prevent this compiler from
19139 # explicitly linking system object files so we need to strip them
19140 # from the output so that they don't get included in the library
19141 # dependencies.
19142 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'
19143 ;;
19144 *)
19145 if test "$GXX" = yes; then
19146 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019147 case $host_cpu in
19148 hppa*64*)
19149 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19150 ;;
19151 ia64*)
19152 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 +000019153 ;;
19154 *)
19155 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'
19156 ;;
19157 esac
19158 fi
19159 else
19160 # FIXME: insert proper C++ library support
19161 ld_shlibs_CXX=no
19162 fi
19163 ;;
19164 esac
19165 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019166 interix3*)
19167 hardcode_direct_CXX=no
19168 hardcode_shlibpath_var_CXX=no
19169 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19170 export_dynamic_flag_spec_CXX='${wl}-E'
19171 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19172 # Instead, shared libraries are loaded at an image base (0x10000000 by
19173 # default) and relocated if they conflict, which is a slow very memory
19174 # consuming and fragmenting process. To avoid this, we pick a random,
19175 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19176 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19177 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'
19178 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'
19179 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019180 irix5* | irix6*)
19181 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019182 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019183 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019184 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 +000019185
19186 # Archives containing C++ object files must be created using
19187 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19188 # necessary to make sure instantiated templates are included
19189 # in the archive.
19190 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19191 ;;
19192 *)
19193 if test "$GXX" = yes; then
19194 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019195 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 +000019196 else
19197 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'
19198 fi
19199 fi
19200 link_all_deplibs_CXX=yes
19201 ;;
19202 esac
19203 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19204 hardcode_libdir_separator_CXX=:
19205 ;;
19206 linux*)
19207 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019208 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019209 # Kuck and Associates, Inc. (KAI) C++ Compiler
19210
19211 # KCC will only create a shared library if the output file
19212 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19213 # to its proper name (with version) after linking.
19214 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'
19215 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'
19216 # Commands to make compiler produce verbose output that lists
19217 # what "hidden" libraries, object files and flags are used when
19218 # linking a shared library.
19219 #
19220 # There doesn't appear to be a way to prevent this compiler from
19221 # explicitly linking system object files so we need to strip them
19222 # from the output so that they don't get included in the library
19223 # dependencies.
19224 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'
19225
19226 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19227 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19228
19229 # Archives containing C++ object files must be created using
19230 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19231 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19232 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019233 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019234 # Intel C++
19235 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019236 # version 8.0 and above of icpc choke on multiply defined symbols
19237 # if we add $predep_objects and $postdep_objects, however 7.1 and
19238 # earlier do not add the objects themselves.
19239 case `$CC -V 2>&1` in
19240 *"Version 7."*)
19241 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19242 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'
19243 ;;
19244 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019245 tmp_idyn=
19246 case $host_cpu in
19247 ia64*) tmp_idyn=' -i_dynamic';;
19248 esac
19249 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19250 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 +000019251 ;;
19252 esac
John Criswell47fdd832003-07-14 16:52:07 +000019253 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019254 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19255 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19256 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19257 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019258 pgCC*)
19259 # Portland Group C++ compiler
19260 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19261 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'
19262
19263 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19264 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19265 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'
19266 ;;
19267 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019268 # Compaq C++
19269 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19270 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'
19271
19272 runpath_var=LD_RUN_PATH
19273 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19274 hardcode_libdir_separator_CXX=:
19275
19276 # Commands to make compiler produce verbose output that lists
19277 # what "hidden" libraries, object files and flags are used when
19278 # linking a shared library.
19279 #
19280 # There doesn't appear to be a way to prevent this compiler from
19281 # explicitly linking system object files so we need to strip them
19282 # from the output so that they don't get included in the library
19283 # dependencies.
19284 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'
19285 ;;
19286 esac
19287 ;;
19288 lynxos*)
19289 # FIXME: insert proper C++ library support
19290 ld_shlibs_CXX=no
19291 ;;
19292 m88k*)
19293 # FIXME: insert proper C++ library support
19294 ld_shlibs_CXX=no
19295 ;;
19296 mvs*)
19297 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019298 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019299 # FIXME: insert proper C++ library support
19300 ld_shlibs_CXX=no
19301 ;;
19302 *)
19303 # FIXME: insert proper C++ library support
19304 ld_shlibs_CXX=no
19305 ;;
19306 esac
19307 ;;
19308 netbsd*)
19309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19310 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19311 wlarc=
19312 hardcode_libdir_flag_spec_CXX='-R$libdir'
19313 hardcode_direct_CXX=yes
19314 hardcode_shlibpath_var_CXX=no
19315 fi
19316 # Workaround some broken pre-1.5 toolchains
19317 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19318 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019319 openbsd2*)
19320 # C++ shared libraries are fairly broken
19321 ld_shlibs_CXX=no
19322 ;;
19323 openbsd*)
19324 hardcode_direct_CXX=yes
19325 hardcode_shlibpath_var_CXX=no
19326 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19328 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19329 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19330 export_dynamic_flag_spec_CXX='${wl}-E'
19331 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19332 fi
19333 output_verbose_link_cmd='echo'
19334 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019335 osf3*)
19336 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019337 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019338 # Kuck and Associates, Inc. (KAI) C++ Compiler
19339
19340 # KCC will only create a shared library if the output file
19341 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19342 # to its proper name (with version) after linking.
19343 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'
19344
19345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19346 hardcode_libdir_separator_CXX=:
19347
19348 # Archives containing C++ object files must be created using
19349 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19350 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19351
19352 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019353 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019354 # Rational C++ 2.4.1
19355 # FIXME: insert proper C++ library support
19356 ld_shlibs_CXX=no
19357 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019358 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019359 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019360 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 +000019361
19362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19363 hardcode_libdir_separator_CXX=:
19364
19365 # Commands to make compiler produce verbose output that lists
19366 # what "hidden" libraries, object files and flags are used when
19367 # linking a shared library.
19368 #
19369 # There doesn't appear to be a way to prevent this compiler from
19370 # explicitly linking system object files so we need to strip them
19371 # from the output so that they don't get included in the library
19372 # dependencies.
19373 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'
19374 ;;
19375 *)
19376 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19377 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019378 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 +000019379
19380 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19381 hardcode_libdir_separator_CXX=:
19382
19383 # Commands to make compiler produce verbose output that lists
19384 # what "hidden" libraries, object files and flags are used when
19385 # linking a shared library.
19386 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19387
19388 else
19389 # FIXME: insert proper C++ library support
19390 ld_shlibs_CXX=no
19391 fi
19392 ;;
19393 esac
19394 ;;
19395 osf4* | osf5*)
19396 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019397 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019398 # Kuck and Associates, Inc. (KAI) C++ Compiler
19399
19400 # KCC will only create a shared library if the output file
19401 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19402 # to its proper name (with version) after linking.
19403 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'
19404
19405 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19406 hardcode_libdir_separator_CXX=:
19407
19408 # Archives containing C++ object files must be created using
19409 # the KAI C++ compiler.
19410 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19411 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019412 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019413 # Rational C++ 2.4.1
19414 # FIXME: insert proper C++ library support
19415 ld_shlibs_CXX=no
19416 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019417 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019418 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019419 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 +000019420 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19421 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019422 $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 +000019423 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019424
19425 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19426 hardcode_libdir_separator_CXX=:
19427
19428 # Commands to make compiler produce verbose output that lists
19429 # what "hidden" libraries, object files and flags are used when
19430 # linking a shared library.
19431 #
19432 # There doesn't appear to be a way to prevent this compiler from
19433 # explicitly linking system object files so we need to strip them
19434 # from the output so that they don't get included in the library
19435 # dependencies.
19436 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'
19437 ;;
19438 *)
19439 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19440 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019441 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 +000019442
19443 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19444 hardcode_libdir_separator_CXX=:
19445
19446 # Commands to make compiler produce verbose output that lists
19447 # what "hidden" libraries, object files and flags are used when
19448 # linking a shared library.
19449 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19450
19451 else
19452 # FIXME: insert proper C++ library support
19453 ld_shlibs_CXX=no
19454 fi
19455 ;;
19456 esac
19457 ;;
19458 psos*)
19459 # FIXME: insert proper C++ library support
19460 ld_shlibs_CXX=no
19461 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019462 sunos4*)
19463 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019464 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019465 # Sun C++ 4.x
19466 # FIXME: insert proper C++ library support
19467 ld_shlibs_CXX=no
19468 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019469 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019470 # Lucid
19471 # FIXME: insert proper C++ library support
19472 ld_shlibs_CXX=no
19473 ;;
19474 *)
19475 # FIXME: insert proper C++ library support
19476 ld_shlibs_CXX=no
19477 ;;
19478 esac
19479 ;;
19480 solaris*)
19481 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019482 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019483 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019484 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019485 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019486 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 +000019487 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 +000019488 $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 +000019489
19490 hardcode_libdir_flag_spec_CXX='-R$libdir'
19491 hardcode_shlibpath_var_CXX=no
19492 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019493 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019494 *)
19495 # The C++ compiler is used as linker so we must use $wl
19496 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019497 # linker. We must also pass each convience library through
19498 # to the system linker between allextract/defaultextract.
19499 # The C++ compiler will combine linker options so we
19500 # cannot just pass the convience library names through
19501 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019502 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019503 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 +000019504 ;;
19505 esac
19506 link_all_deplibs_CXX=yes
19507
Reid Spencera773bd52006-08-04 18:18:08 +000019508 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019509
19510 # Archives containing C++ object files must be created using
19511 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19512 # necessary to make sure instantiated templates are included
19513 # in the archive.
19514 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19515 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019516 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019517 # Green Hills C++ Compiler
19518 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19519
19520 # The C++ compiler must be used to create the archive.
19521 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19522 ;;
19523 *)
19524 # GNU C++ compiler with Solaris linker
19525 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19526 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19527 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019528 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 +000019529 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19530 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19531
John Criswell47fdd832003-07-14 16:52:07 +000019532 # Commands to make compiler produce verbose output that lists
19533 # what "hidden" libraries, object files and flags are used when
19534 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019535 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019536 else
19537 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19538 # platform.
19539 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 +000019540 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19541 $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 +000019542
19543 # Commands to make compiler produce verbose output that lists
19544 # what "hidden" libraries, object files and flags are used when
19545 # linking a shared library.
19546 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19547 fi
19548
19549 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19550 fi
19551 ;;
19552 esac
19553 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019554 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19555 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019556 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019557 hardcode_shlibpath_var_CXX=no
19558 runpath_var='LD_RUN_PATH'
19559
19560 case $cc_basename in
19561 CC*)
19562 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19563 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19564 ;;
19565 *)
19566 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19567 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19568 ;;
19569 esac
19570 ;;
19571 sysv5* | sco3.2v5* | sco5v6*)
19572 # Note: We can NOT use -z defs as we might desire, because we do not
19573 # link with -lc, and that would cause any symbols used from libc to
19574 # always be unresolved, which means just about no library would
19575 # ever link correctly. If we're not using GNU ld we use -z text
19576 # though, which does catch some bad symbols but isn't as heavy-handed
19577 # as -z defs.
19578 # For security reasons, it is highly recommended that you always
19579 # use absolute paths for naming shared libraries, and exclude the
19580 # DT_RUNPATH tag from executables and libraries. But doing so
19581 # requires that you compile everything twice, which is a pain.
19582 # So that behaviour is only enabled if SCOABSPATH is set to a
19583 # non-empty value in the environment. Most likely only useful for
19584 # creating official distributions of packages.
19585 # This is a hack until libtool officially supports absolute path
19586 # names for shared libraries.
19587 no_undefined_flag_CXX='${wl}-z,text'
19588 allow_undefined_flag_CXX='${wl}-z,nodefs'
19589 archive_cmds_need_lc_CXX=no
19590 hardcode_shlibpath_var_CXX=no
19591 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19592 hardcode_libdir_separator_CXX=':'
19593 link_all_deplibs_CXX=yes
19594 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19595 runpath_var='LD_RUN_PATH'
19596
19597 case $cc_basename in
19598 CC*)
19599 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19600 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19601 ;;
19602 *)
19603 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19604 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19605 ;;
19606 esac
John Criswell47fdd832003-07-14 16:52:07 +000019607 ;;
19608 tandem*)
19609 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019610 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019611 # NonStop-UX NCC 3.20
19612 # FIXME: insert proper C++ library support
19613 ld_shlibs_CXX=no
19614 ;;
19615 *)
19616 # FIXME: insert proper C++ library support
19617 ld_shlibs_CXX=no
19618 ;;
19619 esac
19620 ;;
19621 vxworks*)
19622 # FIXME: insert proper C++ library support
19623 ld_shlibs_CXX=no
19624 ;;
19625 *)
19626 # FIXME: insert proper C++ library support
19627 ld_shlibs_CXX=no
19628 ;;
19629esac
Reid Spencera773bd52006-08-04 18:18:08 +000019630{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19631echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019632test "$ld_shlibs_CXX" = no && can_build_shared=no
19633
19634GCC_CXX="$GXX"
19635LD_CXX="$LD"
19636
John Criswell47fdd832003-07-14 16:52:07 +000019637
19638cat > conftest.$ac_ext <<EOF
19639class Foo
19640{
19641public:
19642 Foo (void) { a = 0; }
19643private:
19644 int a;
19645};
19646EOF
19647
19648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19649 (eval $ac_compile) 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; then
19653 # Parse the compiler output and extract the necessary
19654 # objects, libraries and library flags.
19655
19656 # Sentinel used to keep track of whether or not we are before
19657 # the conftest object file.
19658 pre_test_object_deps_done=no
19659
19660 # The `*' in the case matches for architectures that use `case' in
19661 # $output_verbose_cmd can trigger glob expansion during the loop
19662 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019663 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019664
19665 for p in `eval $output_verbose_link_cmd`; do
19666 case $p in
19667
19668 -L* | -R* | -l*)
19669 # Some compilers place space between "-{L,R}" and the path.
19670 # Remove the space.
19671 if test $p = "-L" \
19672 || test $p = "-R"; then
19673 prev=$p
19674 continue
19675 else
19676 prev=
19677 fi
19678
19679 if test "$pre_test_object_deps_done" = no; then
19680 case $p in
19681 -L* | -R*)
19682 # Internal compiler library paths should come after those
19683 # provided the user. The postdeps already come after the
19684 # user supplied libs so there is no need to process them.
19685 if test -z "$compiler_lib_search_path_CXX"; then
19686 compiler_lib_search_path_CXX="${prev}${p}"
19687 else
19688 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19689 fi
19690 ;;
19691 # The "-l" case would never come before the object being
19692 # linked, so don't bother handling this case.
19693 esac
19694 else
19695 if test -z "$postdeps_CXX"; then
19696 postdeps_CXX="${prev}${p}"
19697 else
19698 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19699 fi
19700 fi
19701 ;;
19702
19703 *.$objext)
19704 # This assumes that the test object file only shows up
19705 # once in the compiler output.
19706 if test "$p" = "conftest.$objext"; then
19707 pre_test_object_deps_done=yes
19708 continue
19709 fi
19710
19711 if test "$pre_test_object_deps_done" = no; then
19712 if test -z "$predep_objects_CXX"; then
19713 predep_objects_CXX="$p"
19714 else
19715 predep_objects_CXX="$predep_objects_CXX $p"
19716 fi
19717 else
19718 if test -z "$postdep_objects_CXX"; then
19719 postdep_objects_CXX="$p"
19720 else
19721 postdep_objects_CXX="$postdep_objects_CXX $p"
19722 fi
19723 fi
19724 ;;
19725
19726 *) ;; # Ignore the rest.
19727
19728 esac
19729 done
19730
19731 # Clean up.
19732 rm -f a.out a.exe
19733else
19734 echo "libtool.m4: error: problem compiling CXX test program"
19735fi
19736
19737$rm -f confest.$objext
19738
Reid Spencera773bd52006-08-04 18:18:08 +000019739# PORTME: override above test on systems where it is broken
19740case $host_os in
19741interix3*)
19742 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19743 # hack all around it, let's just trust "g++" to DTRT.
19744 predep_objects_CXX=
19745 postdep_objects_CXX=
19746 postdeps_CXX=
19747 ;;
19748
19749solaris*)
19750 case $cc_basename in
19751 CC*)
19752 # Adding this requires a known-good setup of shared libraries for
19753 # Sun compiler versions before 5.6, else PIC objects from an old
19754 # archive will be linked into the output, leading to subtle bugs.
19755 postdeps_CXX='-lCstd -lCrun'
19756 ;;
19757 esac
19758 ;;
19759esac
19760
19761
John Criswell47fdd832003-07-14 16:52:07 +000019762case " $postdeps_CXX " in
19763*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19764esac
19765
19766lt_prog_compiler_wl_CXX=
19767lt_prog_compiler_pic_CXX=
19768lt_prog_compiler_static_CXX=
19769
Reid Spencera773bd52006-08-04 18:18:08 +000019770{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19771echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019772
19773 # C++ specific cases for pic, static, wl, etc.
19774 if test "$GXX" = yes; then
19775 lt_prog_compiler_wl_CXX='-Wl,'
19776 lt_prog_compiler_static_CXX='-static'
19777
19778 case $host_os in
19779 aix*)
19780 # All AIX code is PIC.
19781 if test "$host_cpu" = ia64; then
19782 # AIX 5 now supports IA64 processor
19783 lt_prog_compiler_static_CXX='-Bstatic'
19784 fi
19785 ;;
19786 amigaos*)
19787 # FIXME: we need at least 68020 code to build shared libraries, but
19788 # adding the `-m68020' flag to GCC prevents building anything better,
19789 # like `-m68040'.
19790 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19791 ;;
19792 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19793 # PIC is the default for these OSes.
19794 ;;
19795 mingw* | os2* | pw32*)
19796 # This hack is so that the source file can tell whether it is being
19797 # built for inclusion in a dll (and should export symbols for example).
19798 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19799 ;;
19800 darwin* | rhapsody*)
19801 # PIC is the default on this platform
19802 # Common symbols not allowed in MH_DYLIB files
19803 lt_prog_compiler_pic_CXX='-fno-common'
19804 ;;
19805 *djgpp*)
19806 # DJGPP does not support shared libraries at all
19807 lt_prog_compiler_pic_CXX=
19808 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019809 interix3*)
19810 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19811 # Instead, we relocate shared libraries at runtime.
19812 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019813 sysv4*MP*)
19814 if test -d /usr/nec; then
19815 lt_prog_compiler_pic_CXX=-Kconform_pic
19816 fi
19817 ;;
19818 hpux*)
19819 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19820 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019821 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019822 hppa*64*|ia64*)
19823 ;;
19824 *)
19825 lt_prog_compiler_pic_CXX='-fPIC'
19826 ;;
19827 esac
19828 ;;
19829 *)
19830 lt_prog_compiler_pic_CXX='-fPIC'
19831 ;;
19832 esac
19833 else
19834 case $host_os in
19835 aix4* | aix5*)
19836 # All AIX code is PIC.
19837 if test "$host_cpu" = ia64; then
19838 # AIX 5 now supports IA64 processor
19839 lt_prog_compiler_static_CXX='-Bstatic'
19840 else
19841 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19842 fi
19843 ;;
19844 chorus*)
19845 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019846 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019847 # Green Hills C++ Compiler
19848 # _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"
19849 ;;
19850 esac
19851 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019852 darwin*)
19853 # PIC is the default on this platform
19854 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019855 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019856 xlc*)
19857 lt_prog_compiler_pic_CXX='-qnocommon'
19858 lt_prog_compiler_wl_CXX='-Wl,'
19859 ;;
19860 esac
19861 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019862 dgux*)
19863 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019864 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019865 lt_prog_compiler_pic_CXX='-KPIC'
19866 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019867 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019868 # Green Hills C++ Compiler
19869 lt_prog_compiler_pic_CXX='-pic'
19870 ;;
19871 *)
19872 ;;
19873 esac
19874 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019875 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019876 # FreeBSD uses GNU C++
19877 ;;
19878 hpux9* | hpux10* | hpux11*)
19879 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019880 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019881 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019882 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019883 if test "$host_cpu" != ia64; then
19884 lt_prog_compiler_pic_CXX='+Z'
19885 fi
19886 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019887 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019888 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019889 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19890 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019891 hppa*64*|ia64*)
19892 # +Z the default
19893 ;;
19894 *)
19895 lt_prog_compiler_pic_CXX='+Z'
19896 ;;
19897 esac
19898 ;;
19899 *)
19900 ;;
19901 esac
19902 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019903 interix*)
19904 # This is c89, which is MS Visual C++ (no shared libs)
19905 # Anyone wants to do a port?
19906 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019907 irix5* | irix6* | nonstopux*)
19908 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019909 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019910 lt_prog_compiler_wl_CXX='-Wl,'
19911 lt_prog_compiler_static_CXX='-non_shared'
19912 # CC pic flag -KPIC is the default.
19913 ;;
19914 *)
19915 ;;
19916 esac
19917 ;;
19918 linux*)
19919 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019920 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019921 # KAI C++ Compiler
19922 lt_prog_compiler_wl_CXX='--backend -Wl,'
19923 lt_prog_compiler_pic_CXX='-fPIC'
19924 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019925 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019926 # Intel C++
19927 lt_prog_compiler_wl_CXX='-Wl,'
19928 lt_prog_compiler_pic_CXX='-KPIC'
19929 lt_prog_compiler_static_CXX='-static'
19930 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019931 pgCC*)
19932 # Portland Group C++ compiler.
19933 lt_prog_compiler_wl_CXX='-Wl,'
19934 lt_prog_compiler_pic_CXX='-fpic'
19935 lt_prog_compiler_static_CXX='-Bstatic'
19936 ;;
19937 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019938 # Compaq C++
19939 # Make sure the PIC flag is empty. It appears that all Alpha
19940 # Linux and Compaq Tru64 Unix objects are PIC.
19941 lt_prog_compiler_pic_CXX=
19942 lt_prog_compiler_static_CXX='-non_shared'
19943 ;;
19944 *)
19945 ;;
19946 esac
19947 ;;
19948 lynxos*)
19949 ;;
19950 m88k*)
19951 ;;
19952 mvs*)
19953 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019954 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019955 lt_prog_compiler_pic_CXX='-W c,exportall'
19956 ;;
19957 *)
19958 ;;
19959 esac
19960 ;;
19961 netbsd*)
19962 ;;
19963 osf3* | osf4* | osf5*)
19964 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019965 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019966 lt_prog_compiler_wl_CXX='--backend -Wl,'
19967 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019968 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019969 # Rational C++ 2.4.1
19970 lt_prog_compiler_pic_CXX='-pic'
19971 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019972 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019973 # Digital/Compaq C++
19974 lt_prog_compiler_wl_CXX='-Wl,'
19975 # Make sure the PIC flag is empty. It appears that all Alpha
19976 # Linux and Compaq Tru64 Unix objects are PIC.
19977 lt_prog_compiler_pic_CXX=
19978 lt_prog_compiler_static_CXX='-non_shared'
19979 ;;
19980 *)
19981 ;;
19982 esac
19983 ;;
19984 psos*)
19985 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019986 solaris*)
19987 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019988 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019989 # Sun C++ 4.2, 5.x and Centerline C++
19990 lt_prog_compiler_pic_CXX='-KPIC'
19991 lt_prog_compiler_static_CXX='-Bstatic'
19992 lt_prog_compiler_wl_CXX='-Qoption ld '
19993 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019994 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019995 # Green Hills C++ Compiler
19996 lt_prog_compiler_pic_CXX='-PIC'
19997 ;;
19998 *)
19999 ;;
20000 esac
20001 ;;
20002 sunos4*)
20003 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020004 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000020005 # Sun C++ 4.x
20006 lt_prog_compiler_pic_CXX='-pic'
20007 lt_prog_compiler_static_CXX='-Bstatic'
20008 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020009 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000020010 # Lucid
20011 lt_prog_compiler_pic_CXX='-pic'
20012 ;;
20013 *)
20014 ;;
20015 esac
20016 ;;
20017 tandem*)
20018 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000020019 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000020020 # NonStop-UX NCC 3.20
20021 lt_prog_compiler_pic_CXX='-KPIC'
20022 ;;
20023 *)
20024 ;;
20025 esac
20026 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020027 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20028 case $cc_basename in
20029 CC*)
20030 lt_prog_compiler_wl_CXX='-Wl,'
20031 lt_prog_compiler_pic_CXX='-KPIC'
20032 lt_prog_compiler_static_CXX='-Bstatic'
20033 ;;
20034 esac
John Criswell47fdd832003-07-14 16:52:07 +000020035 ;;
20036 vxworks*)
20037 ;;
20038 *)
20039 lt_prog_compiler_can_build_shared_CXX=no
20040 ;;
20041 esac
20042 fi
20043
Reid Spencera773bd52006-08-04 18:18:08 +000020044{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20045echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020046
20047#
20048# Check to make sure the PIC flag actually works.
20049#
20050if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020051
Reid Spencera773bd52006-08-04 18:18:08 +000020052{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20053echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020054if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20056else
20057 lt_prog_compiler_pic_works_CXX=no
20058 ac_outfile=conftest.$ac_objext
20059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20060 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20061 # Insert the option either (1) after the last *FLAGS variable, or
20062 # (2) before a word containing "conftest.", or (3) at the end.
20063 # Note that $ac_compile itself does not contain backslashes and begins
20064 # with a dollar sign (not a hyphen), so the echo should work correctly.
20065 # The option is referenced via a variable to avoid confusing sed.
20066 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20069 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020070 (eval echo "\"\$as_me:20070: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020071 (eval "$lt_compile" 2>conftest.err)
20072 ac_status=$?
20073 cat conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020074 echo "$as_me:20074: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020075 if (exit $ac_status) && test -s "$ac_outfile"; then
20076 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000020077 # So say no if there are warnings other than the usual output.
20078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020081 lt_prog_compiler_pic_works_CXX=yes
20082 fi
20083 fi
20084 $rm conftest*
20085
20086fi
Reid Spencera773bd52006-08-04 18:18:08 +000020087{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20088echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020089
20090if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20091 case $lt_prog_compiler_pic_CXX in
20092 "" | " "*) ;;
20093 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20094 esac
20095else
20096 lt_prog_compiler_pic_CXX=
20097 lt_prog_compiler_can_build_shared_CXX=no
20098fi
20099
20100fi
Reid Spencera773bd52006-08-04 18:18:08 +000020101case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020102 # For platforms which do not support PIC, -DPIC is meaningless:
20103 *djgpp*)
20104 lt_prog_compiler_pic_CXX=
20105 ;;
20106 *)
20107 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20108 ;;
20109esac
20110
Reid Spencera773bd52006-08-04 18:18:08 +000020111#
20112# Check to make sure the static flag actually works.
20113#
20114wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20115{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20116echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20117if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20119else
20120 lt_prog_compiler_static_works_CXX=no
20121 save_LDFLAGS="$LDFLAGS"
20122 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20123 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20124 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20125 # The linker can only warn and ignore the option if not recognized
20126 # So say no if there are warnings
20127 if test -s conftest.err; then
20128 # Append any errors to the config.log.
20129 cat conftest.err 1>&5
20130 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20132 if diff conftest.exp conftest.er2 >/dev/null; then
20133 lt_prog_compiler_static_works_CXX=yes
20134 fi
20135 else
20136 lt_prog_compiler_static_works_CXX=yes
20137 fi
20138 fi
20139 $rm conftest*
20140 LDFLAGS="$save_LDFLAGS"
20141
20142fi
20143{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20144echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20145
20146if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20147 :
20148else
20149 lt_prog_compiler_static_CXX=
20150fi
20151
20152
20153{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20154echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020155if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20157else
20158 lt_cv_prog_compiler_c_o_CXX=no
20159 $rm -r conftest 2>/dev/null
20160 mkdir conftest
20161 cd conftest
20162 mkdir out
20163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20164
John Criswell47fdd832003-07-14 16:52:07 +000020165 lt_compiler_flag="-o out/conftest2.$ac_objext"
20166 # Insert the option either (1) after the last *FLAGS variable, or
20167 # (2) before a word containing "conftest.", or (3) at the end.
20168 # Note that $ac_compile itself does not contain backslashes and begins
20169 # with a dollar sign (not a hyphen), so the echo should work correctly.
20170 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20173 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020174 (eval echo "\"\$as_me:20174: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020175 (eval "$lt_compile" 2>out/conftest.err)
20176 ac_status=$?
20177 cat out/conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000020178 echo "$as_me:20178: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20180 then
20181 # The compiler can only warn and ignore the option if not recognized
20182 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020183 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020186 lt_cv_prog_compiler_c_o_CXX=yes
20187 fi
20188 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020189 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020190 $rm conftest*
20191 # SGI C++ compiler will create directory out/ii_files/ for
20192 # template instantiation
20193 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20194 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020195 cd ..
20196 rmdir conftest
20197 $rm conftest*
20198
20199fi
Reid Spencera773bd52006-08-04 18:18:08 +000020200{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20201echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020202
20203
20204hard_links="nottested"
20205if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20206 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020207 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20208echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020209 hard_links=yes
20210 $rm conftest*
20211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20212 touch conftest.a
20213 ln conftest.a conftest.b 2>&5 || hard_links=no
20214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020215 { echo "$as_me:$LINENO: result: $hard_links" >&5
20216echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020217 if test "$hard_links" = no; then
20218 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20219echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20220 need_locks=warn
20221 fi
20222else
20223 need_locks=no
20224fi
20225
Reid Spencera773bd52006-08-04 18:18:08 +000020226{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20227echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020228
20229 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20230 case $host_os in
20231 aix4* | aix5*)
20232 # If we're using GNU nm, then we don't want the "-C" option.
20233 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20234 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20235 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'
20236 else
20237 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'
20238 fi
20239 ;;
20240 pw32*)
20241 export_symbols_cmds_CXX="$ltdll_cmds"
20242 ;;
20243 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020244 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 +000020245 ;;
20246 *)
20247 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20248 ;;
20249 esac
20250
Reid Spencera773bd52006-08-04 18:18:08 +000020251{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20252echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020253test "$ld_shlibs_CXX" = no && can_build_shared=no
20254
John Criswell47fdd832003-07-14 16:52:07 +000020255#
20256# Do we need to explicitly link libc?
20257#
20258case "x$archive_cmds_need_lc_CXX" in
20259x|xyes)
20260 # Assume -lc should be added
20261 archive_cmds_need_lc_CXX=yes
20262
20263 if test "$enable_shared" = yes && test "$GCC" = yes; then
20264 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020265 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020266 # FIXME: we may have to deal with multi-command sequences.
20267 ;;
20268 '$CC '*)
20269 # Test whether the compiler implicitly links with -lc since on some
20270 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20271 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020272 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20273echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020274 $rm conftest*
20275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20276
20277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20278 (eval $ac_compile) 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } 2>conftest.err; then
20282 soname=conftest
20283 lib=conftest
20284 libobjs=conftest.$ac_objext
20285 deplibs=
20286 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020287 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020288 compiler_flags=-v
20289 linker_flags=-v
20290 verstring=
20291 output_objdir=.
20292 libname=conftest
20293 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20294 allow_undefined_flag_CXX=
20295 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20296 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }
20300 then
20301 archive_cmds_need_lc_CXX=no
20302 else
20303 archive_cmds_need_lc_CXX=yes
20304 fi
20305 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20306 else
20307 cat conftest.err 1>&5
20308 fi
20309 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020310 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20311echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020312 ;;
20313 esac
20314 fi
20315 ;;
20316esac
20317
Reid Spencera773bd52006-08-04 18:18:08 +000020318{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20319echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020320library_names_spec=
20321libname_spec='lib$name'
20322soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020323shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020324postinstall_cmds=
20325postuninstall_cmds=
20326finish_cmds=
20327finish_eval=
20328shlibpath_var=
20329shlibpath_overrides_runpath=unknown
20330version_type=none
20331dynamic_linker="$host_os ld.so"
20332sys_lib_dlsearch_path_spec="/lib /usr/lib"
20333if test "$GCC" = yes; then
20334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20335 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20336 # if the path contains ";" then we assume it to be the separator
20337 # otherwise default to the standard path separator (i.e. ":") - it is
20338 # assumed that no part of a normal pathname contains ";" but that should
20339 # okay in the real world where ";" in dirpaths is itself problematic.
20340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20341 else
20342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20343 fi
20344else
20345 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20346fi
20347need_lib_prefix=unknown
20348hardcode_into_libs=no
20349
20350# when you set need_version to no, make sure it does not cause -set_version
20351# flags to be left without arguments
20352need_version=unknown
20353
20354case $host_os in
20355aix3*)
20356 version_type=linux
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20358 shlibpath_var=LIBPATH
20359
20360 # AIX 3 has no versioning support, so we append a major version to the name.
20361 soname_spec='${libname}${release}${shared_ext}$major'
20362 ;;
20363
20364aix4* | aix5*)
20365 version_type=linux
20366 need_lib_prefix=no
20367 need_version=no
20368 hardcode_into_libs=yes
20369 if test "$host_cpu" = ia64; then
20370 # AIX 5 supports IA64
20371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20372 shlibpath_var=LD_LIBRARY_PATH
20373 else
20374 # With GCC up to 2.95.x, collect2 would create an import file
20375 # for dependence libraries. The import file would start with
20376 # the line `#! .'. This would cause the generated library to
20377 # depend on `.', always an invalid library. This was fixed in
20378 # development snapshots of GCC prior to 3.0.
20379 case $host_os in
20380 aix4 | aix4.[01] | aix4.[01].*)
20381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20382 echo ' yes '
20383 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20384 :
20385 else
20386 can_build_shared=no
20387 fi
20388 ;;
20389 esac
20390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20391 # soname into executable. Probably we can add versioning support to
20392 # collect2, so additional links can be useful in future.
20393 if test "$aix_use_runtimelinking" = yes; then
20394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20395 # instead of lib<name>.a to let people know that these are not
20396 # typical AIX shared libraries.
20397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20398 else
20399 # We preserve .a as extension for shared libraries through AIX4.2
20400 # and later when we are not doing run time linking.
20401 library_names_spec='${libname}${release}.a $libname.a'
20402 soname_spec='${libname}${release}${shared_ext}$major'
20403 fi
20404 shlibpath_var=LIBPATH
20405 fi
20406 ;;
20407
20408amigaos*)
20409 library_names_spec='$libname.ixlibrary $libname.a'
20410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020411 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 +000020412 ;;
20413
20414beos*)
20415 library_names_spec='${libname}${shared_ext}'
20416 dynamic_linker="$host_os ld.so"
20417 shlibpath_var=LIBRARY_PATH
20418 ;;
20419
Reid Spencer2706f8c2004-09-19 23:53:36 +000020420bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020421 version_type=linux
20422 need_version=no
20423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20424 soname_spec='${libname}${release}${shared_ext}$major'
20425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20426 shlibpath_var=LD_LIBRARY_PATH
20427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20429 # the default ld.so.conf also contains /usr/contrib/lib and
20430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20431 # libtool to hard-code these into programs
20432 ;;
20433
20434cygwin* | mingw* | pw32*)
20435 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020436 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020437 need_version=no
20438 need_lib_prefix=no
20439
20440 case $GCC,$host_os in
20441 yes,cygwin* | yes,mingw* | yes,pw32*)
20442 library_names_spec='$libname.dll.a'
20443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020444 postinstall_cmds='base_file=`basename \${file}`~
20445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20446 dldir=$destdir/`dirname \$dlpath`~
20447 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020448 $install_prog $dir/$dlname \$dldir/$dlname~
20449 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20451 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020452 $rm \$dlpath'
20453 shlibpath_overrides_runpath=yes
20454
20455 case $host_os in
20456 cygwin*)
20457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20458 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 +000020459 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020460 ;;
20461 mingw*)
20462 # MinGW DLLs use traditional 'lib' prefix
20463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20465 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20466 # It is most probably a Windows format PATH printed by
20467 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20468 # path with ; separators, and with drive letters. We can handle the
20469 # drive letters (cygwin fileutils understands them), so leave them,
20470 # especially as we might pass files found there to a mingw objdump,
20471 # which wouldn't understand a cygwinified path. Ahh.
20472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20473 else
20474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20475 fi
20476 ;;
20477 pw32*)
20478 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020479 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 +000020480 ;;
20481 esac
20482 ;;
20483
20484 *)
20485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20486 ;;
20487 esac
20488 dynamic_linker='Win32 ld.exe'
20489 # FIXME: first we should search . and the directory the executable is in
20490 shlibpath_var=PATH
20491 ;;
20492
20493darwin* | rhapsody*)
20494 dynamic_linker="$host_os dyld"
20495 version_type=darwin
20496 need_lib_prefix=no
20497 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020498 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020499 soname_spec='${libname}${release}${major}$shared_ext'
20500 shlibpath_overrides_runpath=yes
20501 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020502 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020503 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020504 if test "$GCC" = yes; then
20505 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"`
20506 else
20507 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020508 fi
20509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20510 ;;
20511
20512dgux*)
20513 version_type=linux
20514 need_lib_prefix=no
20515 need_version=no
20516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20517 soname_spec='${libname}${release}${shared_ext}$major'
20518 shlibpath_var=LD_LIBRARY_PATH
20519 ;;
20520
20521freebsd1*)
20522 dynamic_linker=no
20523 ;;
20524
Reid Spencer2706f8c2004-09-19 23:53:36 +000020525kfreebsd*-gnu)
20526 version_type=linux
20527 need_lib_prefix=no
20528 need_version=no
20529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20530 soname_spec='${libname}${release}${shared_ext}$major'
20531 shlibpath_var=LD_LIBRARY_PATH
20532 shlibpath_overrides_runpath=no
20533 hardcode_into_libs=yes
20534 dynamic_linker='GNU ld.so'
20535 ;;
20536
Reid Spencera773bd52006-08-04 18:18:08 +000020537freebsd* | dragonfly*)
20538 # DragonFly does not have aout. When/if they implement a new
20539 # versioning mechanism, adjust this.
20540 if test -x /usr/bin/objformat; then
20541 objformat=`/usr/bin/objformat`
20542 else
20543 case $host_os in
20544 freebsd[123]*) objformat=aout ;;
20545 *) objformat=elf ;;
20546 esac
20547 fi
John Criswell47fdd832003-07-14 16:52:07 +000020548 version_type=freebsd-$objformat
20549 case $version_type in
20550 freebsd-elf*)
20551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20552 need_version=no
20553 need_lib_prefix=no
20554 ;;
20555 freebsd-*)
20556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20557 need_version=yes
20558 ;;
20559 esac
20560 shlibpath_var=LD_LIBRARY_PATH
20561 case $host_os in
20562 freebsd2*)
20563 shlibpath_overrides_runpath=yes
20564 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020565 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020566 shlibpath_overrides_runpath=yes
20567 hardcode_into_libs=yes
20568 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020569 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20570 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020571 shlibpath_overrides_runpath=no
20572 hardcode_into_libs=yes
20573 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020574 freebsd*) # from 4.6 on
20575 shlibpath_overrides_runpath=yes
20576 hardcode_into_libs=yes
20577 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020578 esac
20579 ;;
20580
20581gnu*)
20582 version_type=linux
20583 need_lib_prefix=no
20584 need_version=no
20585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20586 soname_spec='${libname}${release}${shared_ext}$major'
20587 shlibpath_var=LD_LIBRARY_PATH
20588 hardcode_into_libs=yes
20589 ;;
20590
20591hpux9* | hpux10* | hpux11*)
20592 # Give a soname corresponding to the major version so that dld.sl refuses to
20593 # link against other versions.
20594 version_type=sunos
20595 need_lib_prefix=no
20596 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020597 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020598 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020599 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020600 hardcode_into_libs=yes
20601 dynamic_linker="$host_os dld.so"
20602 shlibpath_var=LD_LIBRARY_PATH
20603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20605 soname_spec='${libname}${release}${shared_ext}$major'
20606 if test "X$HPUX_IA64_MODE" = X32; then
20607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20608 else
20609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20610 fi
20611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20612 ;;
20613 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020614 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020615 hardcode_into_libs=yes
20616 dynamic_linker="$host_os dld.sl"
20617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20620 soname_spec='${libname}${release}${shared_ext}$major'
20621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20623 ;;
20624 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020625 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020626 dynamic_linker="$host_os dld.sl"
20627 shlibpath_var=SHLIB_PATH
20628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20630 soname_spec='${libname}${release}${shared_ext}$major'
20631 ;;
20632 esac
20633 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20634 postinstall_cmds='chmod 555 $lib'
20635 ;;
20636
Reid Spencera773bd52006-08-04 18:18:08 +000020637interix3*)
20638 version_type=linux
20639 need_lib_prefix=no
20640 need_version=no
20641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20642 soname_spec='${libname}${release}${shared_ext}$major'
20643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20644 shlibpath_var=LD_LIBRARY_PATH
20645 shlibpath_overrides_runpath=no
20646 hardcode_into_libs=yes
20647 ;;
20648
John Criswell47fdd832003-07-14 16:52:07 +000020649irix5* | irix6* | nonstopux*)
20650 case $host_os in
20651 nonstopux*) version_type=nonstopux ;;
20652 *)
20653 if test "$lt_cv_prog_gnu_ld" = yes; then
20654 version_type=linux
20655 else
20656 version_type=irix
20657 fi ;;
20658 esac
20659 need_lib_prefix=no
20660 need_version=no
20661 soname_spec='${libname}${release}${shared_ext}$major'
20662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20663 case $host_os in
20664 irix5* | nonstopux*)
20665 libsuff= shlibsuff=
20666 ;;
20667 *)
20668 case $LD in # libtool.m4 will add one of these switches to LD
20669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20670 libsuff= shlibsuff= libmagic=32-bit;;
20671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20672 libsuff=32 shlibsuff=N32 libmagic=N32;;
20673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20675 *) libsuff= shlibsuff= libmagic=never-match;;
20676 esac
20677 ;;
20678 esac
20679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20680 shlibpath_overrides_runpath=no
20681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20683 hardcode_into_libs=yes
20684 ;;
20685
20686# No shared lib support for Linux oldld, aout, or coff.
20687linux*oldld* | linux*aout* | linux*coff*)
20688 dynamic_linker=no
20689 ;;
20690
20691# This must be Linux ELF.
20692linux*)
20693 version_type=linux
20694 need_lib_prefix=no
20695 need_version=no
20696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20697 soname_spec='${libname}${release}${shared_ext}$major'
20698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20699 shlibpath_var=LD_LIBRARY_PATH
20700 shlibpath_overrides_runpath=no
20701 # This implies no fast_install, which is unacceptable.
20702 # Some rework will be needed to allow for fast_install
20703 # before this can be enabled.
20704 hardcode_into_libs=yes
20705
Reid Spencer2706f8c2004-09-19 23:53:36 +000020706 # Append ld.so.conf contents to the search path
20707 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020708 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 +000020709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20710 fi
20711
John Criswell47fdd832003-07-14 16:52:07 +000020712 # We used to test for /lib/ld.so.1 and disable shared libraries on
20713 # powerpc, because MkLinux only supported shared libraries with the
20714 # GNU dynamic linker. Since this was broken with cross compilers,
20715 # most powerpc-linux boxes support dynamic linking these days and
20716 # people can always --disable-shared, the test was removed, and we
20717 # assume the GNU/Linux dynamic linker is in use.
20718 dynamic_linker='GNU/Linux ld.so'
20719 ;;
20720
Reid Spencer2706f8c2004-09-19 23:53:36 +000020721knetbsd*-gnu)
20722 version_type=linux
20723 need_lib_prefix=no
20724 need_version=no
20725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20726 soname_spec='${libname}${release}${shared_ext}$major'
20727 shlibpath_var=LD_LIBRARY_PATH
20728 shlibpath_overrides_runpath=no
20729 hardcode_into_libs=yes
20730 dynamic_linker='GNU ld.so'
20731 ;;
20732
John Criswell47fdd832003-07-14 16:52:07 +000020733netbsd*)
20734 version_type=sunos
20735 need_lib_prefix=no
20736 need_version=no
20737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20740 dynamic_linker='NetBSD (a.out) ld.so'
20741 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020743 soname_spec='${libname}${release}${shared_ext}$major'
20744 dynamic_linker='NetBSD ld.elf_so'
20745 fi
20746 shlibpath_var=LD_LIBRARY_PATH
20747 shlibpath_overrides_runpath=yes
20748 hardcode_into_libs=yes
20749 ;;
20750
20751newsos6)
20752 version_type=linux
20753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20754 shlibpath_var=LD_LIBRARY_PATH
20755 shlibpath_overrides_runpath=yes
20756 ;;
20757
Reid Spencer2706f8c2004-09-19 23:53:36 +000020758nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020759 version_type=linux
20760 need_lib_prefix=no
20761 need_version=no
20762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20763 soname_spec='${libname}${release}${shared_ext}$major'
20764 shlibpath_var=LD_LIBRARY_PATH
20765 shlibpath_overrides_runpath=yes
20766 ;;
20767
20768openbsd*)
20769 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020770 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020771 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020772 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20773 case $host_os in
20774 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20775 *) need_version=no ;;
20776 esac
John Criswell47fdd832003-07-14 16:52:07 +000020777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20779 shlibpath_var=LD_LIBRARY_PATH
20780 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20781 case $host_os in
20782 openbsd2.[89] | openbsd2.[89].*)
20783 shlibpath_overrides_runpath=no
20784 ;;
20785 *)
20786 shlibpath_overrides_runpath=yes
20787 ;;
20788 esac
20789 else
20790 shlibpath_overrides_runpath=yes
20791 fi
20792 ;;
20793
20794os2*)
20795 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020796 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020797 need_lib_prefix=no
20798 library_names_spec='$libname${shared_ext} $libname.a'
20799 dynamic_linker='OS/2 ld.exe'
20800 shlibpath_var=LIBPATH
20801 ;;
20802
20803osf3* | osf4* | osf5*)
20804 version_type=osf
20805 need_lib_prefix=no
20806 need_version=no
20807 soname_spec='${libname}${release}${shared_ext}$major'
20808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20809 shlibpath_var=LD_LIBRARY_PATH
20810 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20811 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20812 ;;
20813
John Criswell47fdd832003-07-14 16:52:07 +000020814solaris*)
20815 version_type=linux
20816 need_lib_prefix=no
20817 need_version=no
20818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20819 soname_spec='${libname}${release}${shared_ext}$major'
20820 shlibpath_var=LD_LIBRARY_PATH
20821 shlibpath_overrides_runpath=yes
20822 hardcode_into_libs=yes
20823 # ldd complains unless libraries are executable
20824 postinstall_cmds='chmod +x $lib'
20825 ;;
20826
20827sunos4*)
20828 version_type=sunos
20829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20831 shlibpath_var=LD_LIBRARY_PATH
20832 shlibpath_overrides_runpath=yes
20833 if test "$with_gnu_ld" = yes; then
20834 need_lib_prefix=no
20835 fi
20836 need_version=yes
20837 ;;
20838
Reid Spencera773bd52006-08-04 18:18:08 +000020839sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020840 version_type=linux
20841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20842 soname_spec='${libname}${release}${shared_ext}$major'
20843 shlibpath_var=LD_LIBRARY_PATH
20844 case $host_vendor in
20845 sni)
20846 shlibpath_overrides_runpath=no
20847 need_lib_prefix=no
20848 export_dynamic_flag_spec='${wl}-Blargedynsym'
20849 runpath_var=LD_RUN_PATH
20850 ;;
20851 siemens)
20852 need_lib_prefix=no
20853 ;;
20854 motorola)
20855 need_lib_prefix=no
20856 need_version=no
20857 shlibpath_overrides_runpath=no
20858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20859 ;;
20860 esac
20861 ;;
20862
20863sysv4*MP*)
20864 if test -d /usr/nec ;then
20865 version_type=linux
20866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20867 soname_spec='$libname${shared_ext}.$major'
20868 shlibpath_var=LD_LIBRARY_PATH
20869 fi
20870 ;;
20871
Reid Spencera773bd52006-08-04 18:18:08 +000020872sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20873 version_type=freebsd-elf
20874 need_lib_prefix=no
20875 need_version=no
20876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20877 soname_spec='${libname}${release}${shared_ext}$major'
20878 shlibpath_var=LD_LIBRARY_PATH
20879 hardcode_into_libs=yes
20880 if test "$with_gnu_ld" = yes; then
20881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20882 shlibpath_overrides_runpath=no
20883 else
20884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20885 shlibpath_overrides_runpath=yes
20886 case $host_os in
20887 sco3.2v5*)
20888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20889 ;;
20890 esac
20891 fi
20892 sys_lib_dlsearch_path_spec='/usr/lib'
20893 ;;
20894
John Criswell47fdd832003-07-14 16:52:07 +000020895uts4*)
20896 version_type=linux
20897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20898 soname_spec='${libname}${release}${shared_ext}$major'
20899 shlibpath_var=LD_LIBRARY_PATH
20900 ;;
20901
20902*)
20903 dynamic_linker=no
20904 ;;
20905esac
Reid Spencera773bd52006-08-04 18:18:08 +000020906{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20907echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020908test "$dynamic_linker" = no && can_build_shared=no
20909
Reid Spencera773bd52006-08-04 18:18:08 +000020910variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20911if test "$GCC" = yes; then
20912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20913fi
20914
20915{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20916echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020917hardcode_action_CXX=
20918if test -n "$hardcode_libdir_flag_spec_CXX" || \
20919 test -n "$runpath_var_CXX" || \
20920 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20921
20922 # We can hardcode non-existant directories.
20923 if test "$hardcode_direct_CXX" != no &&
20924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20925 # have to relink, otherwise we might link with an installed library
20926 # when we should be linking with a yet-to-be-installed one
20927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20928 test "$hardcode_minus_L_CXX" != no; then
20929 # Linking always hardcodes the temporary library directory.
20930 hardcode_action_CXX=relink
20931 else
20932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20933 hardcode_action_CXX=immediate
20934 fi
20935else
20936 # We cannot hardcode anything, or else we can only hardcode existing
20937 # directories.
20938 hardcode_action_CXX=unsupported
20939fi
Reid Spencera773bd52006-08-04 18:18:08 +000020940{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20941echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020942
20943if test "$hardcode_action_CXX" = relink; then
20944 # Fast installation is not supported
20945 enable_fast_install=no
20946elif test "$shlibpath_overrides_runpath" = yes ||
20947 test "$enable_shared" = no; then
20948 # Fast installation is not necessary
20949 enable_fast_install=needless
20950fi
20951
John Criswell47fdd832003-07-14 16:52:07 +000020952
20953# The else clause should only fire when bootstrapping the
20954# libtool distribution, otherwise you forgot to ship ltmain.sh
20955# with your package, and you will get complaints that there are
20956# no rules to generate ltmain.sh.
20957if test -f "$ltmain"; then
20958 # See if we are running on zsh, and set the options which allow our commands through
20959 # without removal of \ escapes.
20960 if test -n "${ZSH_VERSION+set}" ; then
20961 setopt NO_GLOB_SUBST
20962 fi
20963 # Now quote all the things that may contain metacharacters while being
20964 # careful not to overquote the AC_SUBSTed values. We take copies of the
20965 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020966 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 +000020967 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20970 deplibs_check_method reload_flag reload_cmds need_locks \
20971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20972 lt_cv_sys_global_symbol_to_c_name_address \
20973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20974 old_postinstall_cmds old_postuninstall_cmds \
20975 compiler_CXX \
20976 CC_CXX \
20977 LD_CXX \
20978 lt_prog_compiler_wl_CXX \
20979 lt_prog_compiler_pic_CXX \
20980 lt_prog_compiler_static_CXX \
20981 lt_prog_compiler_no_builtin_flag_CXX \
20982 export_dynamic_flag_spec_CXX \
20983 thread_safe_flag_spec_CXX \
20984 whole_archive_flag_spec_CXX \
20985 enable_shared_with_static_runtimes_CXX \
20986 old_archive_cmds_CXX \
20987 old_archive_from_new_cmds_CXX \
20988 predep_objects_CXX \
20989 postdep_objects_CXX \
20990 predeps_CXX \
20991 postdeps_CXX \
20992 compiler_lib_search_path_CXX \
20993 archive_cmds_CXX \
20994 archive_expsym_cmds_CXX \
20995 postinstall_cmds_CXX \
20996 postuninstall_cmds_CXX \
20997 old_archive_from_expsyms_cmds_CXX \
20998 allow_undefined_flag_CXX \
20999 no_undefined_flag_CXX \
21000 export_symbols_cmds_CXX \
21001 hardcode_libdir_flag_spec_CXX \
21002 hardcode_libdir_flag_spec_ld_CXX \
21003 hardcode_libdir_separator_CXX \
21004 hardcode_automatic_CXX \
21005 module_cmds_CXX \
21006 module_expsym_cmds_CXX \
21007 lt_cv_prog_compiler_c_o_CXX \
21008 exclude_expsyms_CXX \
21009 include_expsyms_CXX; do
21010
21011 case $var in
21012 old_archive_cmds_CXX | \
21013 old_archive_from_new_cmds_CXX | \
21014 archive_cmds_CXX | \
21015 archive_expsym_cmds_CXX | \
21016 module_cmds_CXX | \
21017 module_expsym_cmds_CXX | \
21018 old_archive_from_expsyms_cmds_CXX | \
21019 export_symbols_cmds_CXX | \
21020 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21021 postinstall_cmds | postuninstall_cmds | \
21022 old_postinstall_cmds | old_postuninstall_cmds | \
21023 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21024 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021025 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 +000021026 ;;
21027 *)
21028 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21029 ;;
21030 esac
21031 done
21032
21033 case $lt_echo in
21034 *'\$0 --fallback-echo"')
21035 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21036 ;;
21037 esac
21038
21039cfgfile="$ofile"
21040
21041 cat <<__EOF__ >> "$cfgfile"
21042# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21043
21044# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21045
21046# Shell to use when invoking shell scripts.
21047SHELL=$lt_SHELL
21048
21049# Whether or not to build shared libraries.
21050build_libtool_libs=$enable_shared
21051
21052# Whether or not to build static libraries.
21053build_old_libs=$enable_static
21054
21055# Whether or not to add -lc for building shared libraries.
21056build_libtool_need_lc=$archive_cmds_need_lc_CXX
21057
21058# Whether or not to disallow shared libs when runtime libs are static
21059allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21060
21061# Whether or not to optimize for fast installation.
21062fast_install=$enable_fast_install
21063
21064# The host system.
21065host_alias=$host_alias
21066host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000021067host_os=$host_os
21068
21069# The build system.
21070build_alias=$build_alias
21071build=$build
21072build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000021073
21074# An echo program that does not interpret backslashes.
21075echo=$lt_echo
21076
21077# The archiver.
21078AR=$lt_AR
21079AR_FLAGS=$lt_AR_FLAGS
21080
21081# A C compiler.
21082LTCC=$lt_LTCC
21083
Reid Spencera773bd52006-08-04 18:18:08 +000021084# LTCC compiler flags.
21085LTCFLAGS=$lt_LTCFLAGS
21086
John Criswell47fdd832003-07-14 16:52:07 +000021087# A language-specific compiler.
21088CC=$lt_compiler_CXX
21089
21090# Is the compiler the GNU C compiler?
21091with_gcc=$GCC_CXX
21092
21093# An ERE matcher.
21094EGREP=$lt_EGREP
21095
21096# The linker used to build libraries.
21097LD=$lt_LD_CXX
21098
21099# Whether we need hard or soft links.
21100LN_S=$lt_LN_S
21101
21102# A BSD-compatible nm program.
21103NM=$lt_NM
21104
21105# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021106STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021107
21108# Used to examine libraries when file_magic_cmd begins "file"
21109MAGIC_CMD=$MAGIC_CMD
21110
21111# Used on cygwin: DLL creation program.
21112DLLTOOL="$DLLTOOL"
21113
21114# Used on cygwin: object dumper.
21115OBJDUMP="$OBJDUMP"
21116
21117# Used on cygwin: assembler.
21118AS="$AS"
21119
21120# The name of the directory that contains temporary libtool files.
21121objdir=$objdir
21122
21123# How to create reloadable object files.
21124reload_flag=$lt_reload_flag
21125reload_cmds=$lt_reload_cmds
21126
21127# How to pass a linker flag through the compiler.
21128wl=$lt_lt_prog_compiler_wl_CXX
21129
21130# Object file suffix (normally "o").
21131objext="$ac_objext"
21132
21133# Old archive suffix (normally "a").
21134libext="$libext"
21135
21136# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021137shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021138
21139# Executable file suffix (normally "").
21140exeext="$exeext"
21141
21142# Additional compiler flags for building library objects.
21143pic_flag=$lt_lt_prog_compiler_pic_CXX
21144pic_mode=$pic_mode
21145
21146# What is the maximum length of a command?
21147max_cmd_len=$lt_cv_sys_max_cmd_len
21148
21149# Does compiler simultaneously support -c and -o options?
21150compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21151
Reid Spencera773bd52006-08-04 18:18:08 +000021152# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021153need_locks=$lt_need_locks
21154
21155# Do we need the lib prefix for modules?
21156need_lib_prefix=$need_lib_prefix
21157
21158# Do we need a version for libraries?
21159need_version=$need_version
21160
21161# Whether dlopen is supported.
21162dlopen_support=$enable_dlopen
21163
21164# Whether dlopen of programs is supported.
21165dlopen_self=$enable_dlopen_self
21166
21167# Whether dlopen of statically linked programs is supported.
21168dlopen_self_static=$enable_dlopen_self_static
21169
21170# Compiler flag to prevent dynamic linking.
21171link_static_flag=$lt_lt_prog_compiler_static_CXX
21172
21173# Compiler flag to turn off builtin functions.
21174no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21175
21176# Compiler flag to allow reflexive dlopens.
21177export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21178
21179# Compiler flag to generate shared objects directly from archives.
21180whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21181
21182# Compiler flag to generate thread-safe objects.
21183thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21184
21185# Library versioning type.
21186version_type=$version_type
21187
21188# Format of library name prefix.
21189libname_spec=$lt_libname_spec
21190
21191# List of archive names. First name is the real one, the rest are links.
21192# The last name is the one that the linker finds with -lNAME.
21193library_names_spec=$lt_library_names_spec
21194
21195# The coded name of the library, if different from the real name.
21196soname_spec=$lt_soname_spec
21197
21198# Commands used to build and install an old-style archive.
21199RANLIB=$lt_RANLIB
21200old_archive_cmds=$lt_old_archive_cmds_CXX
21201old_postinstall_cmds=$lt_old_postinstall_cmds
21202old_postuninstall_cmds=$lt_old_postuninstall_cmds
21203
21204# Create an old-style archive from a shared archive.
21205old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21206
21207# Create a temporary old-style archive to link instead of a shared archive.
21208old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21209
21210# Commands used to build and install a shared archive.
21211archive_cmds=$lt_archive_cmds_CXX
21212archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21213postinstall_cmds=$lt_postinstall_cmds
21214postuninstall_cmds=$lt_postuninstall_cmds
21215
21216# Commands used to build a loadable module (assumed same as above if empty)
21217module_cmds=$lt_module_cmds_CXX
21218module_expsym_cmds=$lt_module_expsym_cmds_CXX
21219
21220# Commands to strip libraries.
21221old_striplib=$lt_old_striplib
21222striplib=$lt_striplib
21223
21224# Dependencies to place before the objects being linked to create a
21225# shared library.
21226predep_objects=$lt_predep_objects_CXX
21227
21228# Dependencies to place after the objects being linked to create a
21229# shared library.
21230postdep_objects=$lt_postdep_objects_CXX
21231
21232# Dependencies to place before the objects being linked to create a
21233# shared library.
21234predeps=$lt_predeps_CXX
21235
21236# Dependencies to place after the objects being linked to create a
21237# shared library.
21238postdeps=$lt_postdeps_CXX
21239
21240# The library search path used internally by the compiler when linking
21241# a shared library.
21242compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21243
21244# Method to check whether dependent libraries are shared objects.
21245deplibs_check_method=$lt_deplibs_check_method
21246
21247# Command to use when deplibs_check_method == file_magic.
21248file_magic_cmd=$lt_file_magic_cmd
21249
21250# Flag that allows shared libraries with undefined symbols to be built.
21251allow_undefined_flag=$lt_allow_undefined_flag_CXX
21252
21253# Flag that forces no undefined symbols.
21254no_undefined_flag=$lt_no_undefined_flag_CXX
21255
21256# Commands used to finish a libtool library installation in a directory.
21257finish_cmds=$lt_finish_cmds
21258
21259# Same as above, but a single script fragment to be evaled but not shown.
21260finish_eval=$lt_finish_eval
21261
21262# Take the output of nm and produce a listing of raw symbols and C names.
21263global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21264
21265# Transform the output of nm in a proper C declaration
21266global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21267
21268# Transform the output of nm in a C name address pair
21269global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21270
21271# This is the shared library runtime path variable.
21272runpath_var=$runpath_var
21273
21274# This is the shared library path variable.
21275shlibpath_var=$shlibpath_var
21276
21277# Is shlibpath searched before the hard-coded library search path?
21278shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21279
21280# How to hardcode a shared library path into an executable.
21281hardcode_action=$hardcode_action_CXX
21282
21283# Whether we should hardcode library paths into libraries.
21284hardcode_into_libs=$hardcode_into_libs
21285
21286# Flag to hardcode \$libdir into a binary during linking.
21287# This must work even if \$libdir does not exist.
21288hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21289
21290# If ld is used when linking, flag to hardcode \$libdir into
21291# a binary during linking. This must work even if \$libdir does
21292# not exist.
21293hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21294
21295# Whether we need a single -rpath flag with a separated argument.
21296hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21297
21298# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21299# resulting binary.
21300hardcode_direct=$hardcode_direct_CXX
21301
21302# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21303# resulting binary.
21304hardcode_minus_L=$hardcode_minus_L_CXX
21305
21306# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21307# the resulting binary.
21308hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21309
21310# Set to yes if building a shared library automatically hardcodes DIR into the library
21311# and all subsequent libraries and executables linked against it.
21312hardcode_automatic=$hardcode_automatic_CXX
21313
21314# Variables whose values should be saved in libtool wrapper scripts and
21315# restored at relink time.
21316variables_saved_for_relink="$variables_saved_for_relink"
21317
21318# Whether libtool must link a program against all its dependency libraries.
21319link_all_deplibs=$link_all_deplibs_CXX
21320
21321# Compile-time system search path for libraries
21322sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21323
21324# Run-time system search path for libraries
21325sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21326
21327# Fix the shell variable \$srcfile for the compiler.
21328fix_srcfile_path="$fix_srcfile_path_CXX"
21329
21330# Set to yes if exported symbols are required.
21331always_export_symbols=$always_export_symbols_CXX
21332
21333# The commands to list exported symbols.
21334export_symbols_cmds=$lt_export_symbols_cmds_CXX
21335
21336# The commands to extract the exported symbol list from a shared archive.
21337extract_expsyms_cmds=$lt_extract_expsyms_cmds
21338
21339# Symbols that should not be listed in the preloaded symbols.
21340exclude_expsyms=$lt_exclude_expsyms_CXX
21341
21342# Symbols that must always be exported.
21343include_expsyms=$lt_include_expsyms_CXX
21344
21345# ### END LIBTOOL TAG CONFIG: $tagname
21346
21347__EOF__
21348
21349
21350else
21351 # If there is no Makefile yet, we rely on a make rule to execute
21352 # `config.status --recheck' to rerun these tests and create the
21353 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021354 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21355 if test -f "$ltmain_in"; then
21356 test -f Makefile && make "$ltmain"
21357 fi
John Criswell47fdd832003-07-14 16:52:07 +000021358fi
21359
21360
21361ac_ext=c
21362ac_cpp='$CPP $CPPFLAGS'
21363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21365ac_compiler_gnu=$ac_cv_c_compiler_gnu
21366
21367CC=$lt_save_CC
21368LDCXX=$LD
21369LD=$lt_save_LD
21370GCC=$lt_save_GCC
21371with_gnu_ldcxx=$with_gnu_ld
21372with_gnu_ld=$lt_save_with_gnu_ld
21373lt_cv_path_LDCXX=$lt_cv_path_LD
21374lt_cv_path_LD=$lt_save_path_LD
21375lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21376lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21377
21378 else
21379 tagname=""
21380 fi
21381 ;;
21382
21383 F77)
21384 if test -n "$F77" && test "X$F77" != "Xno"; then
21385
21386ac_ext=f
21387ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21388ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21389ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21390
21391
21392archive_cmds_need_lc_F77=no
21393allow_undefined_flag_F77=
21394always_export_symbols_F77=no
21395archive_expsym_cmds_F77=
21396export_dynamic_flag_spec_F77=
21397hardcode_direct_F77=no
21398hardcode_libdir_flag_spec_F77=
21399hardcode_libdir_flag_spec_ld_F77=
21400hardcode_libdir_separator_F77=
21401hardcode_minus_L_F77=no
21402hardcode_automatic_F77=no
21403module_cmds_F77=
21404module_expsym_cmds_F77=
21405link_all_deplibs_F77=unknown
21406old_archive_cmds_F77=$old_archive_cmds
21407no_undefined_flag_F77=
21408whole_archive_flag_spec_F77=
21409enable_shared_with_static_runtimes_F77=no
21410
21411# Source file extension for f77 test sources.
21412ac_ext=f
21413
21414# Object file extension for compiled f77 test sources.
21415objext=o
21416objext_F77=$objext
21417
21418# Code to be used in simple compile tests
21419lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21420
21421# Code to be used in simple link tests
21422lt_simple_link_test_code=" program t\n end\n"
21423
21424# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21425
21426# If no C compiler was specified, use CC.
21427LTCC=${LTCC-"$CC"}
21428
Reid Spencera773bd52006-08-04 18:18:08 +000021429# If no C compiler flags were specified, use CFLAGS.
21430LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21431
John Criswell47fdd832003-07-14 16:52:07 +000021432# Allow CC to be a program name with arguments.
21433compiler=$CC
21434
21435
Reid Spencera773bd52006-08-04 18:18:08 +000021436# save warnings/boilerplate of simple test code
21437ac_outfile=conftest.$ac_objext
21438printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21439eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21440_lt_compiler_boilerplate=`cat conftest.err`
21441$rm conftest*
21442
21443ac_outfile=conftest.$ac_objext
21444printf "$lt_simple_link_test_code" >conftest.$ac_ext
21445eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21446_lt_linker_boilerplate=`cat conftest.err`
21447$rm conftest*
21448
21449
John Criswell47fdd832003-07-14 16:52:07 +000021450# Allow CC to be a program name with arguments.
21451lt_save_CC="$CC"
21452CC=${F77-"f77"}
21453compiler=$CC
21454compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021455for cc_temp in $compiler""; do
21456 case $cc_temp in
21457 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21458 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21459 \-*) ;;
21460 *) break;;
21461 esac
21462done
21463cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021464
John Criswell47fdd832003-07-14 16:52:07 +000021465
Reid Spencera773bd52006-08-04 18:18:08 +000021466{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21467echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21468{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21469echo "${ECHO_T}$can_build_shared" >&6; }
21470
21471{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21472echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021473test "$can_build_shared" = "no" && enable_shared=no
21474
21475# On AIX, shared libraries and static libraries use the same namespace, and
21476# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021477case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021478aix3*)
21479 test "$enable_shared" = yes && enable_static=no
21480 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021481 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021482 postinstall_cmds='$RANLIB $lib'
21483 fi
21484 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021485aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021486 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21487 test "$enable_shared" = yes && enable_static=no
21488 fi
John Criswell47fdd832003-07-14 16:52:07 +000021489 ;;
21490esac
Reid Spencera773bd52006-08-04 18:18:08 +000021491{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21492echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021493
Reid Spencera773bd52006-08-04 18:18:08 +000021494{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21495echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021496# Make sure either enable_shared or enable_static is yes.
21497test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021498{ echo "$as_me:$LINENO: result: $enable_static" >&5
21499echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021500
21501GCC_F77="$G77"
21502LD_F77="$LD"
21503
21504lt_prog_compiler_wl_F77=
21505lt_prog_compiler_pic_F77=
21506lt_prog_compiler_static_F77=
21507
Reid Spencera773bd52006-08-04 18:18:08 +000021508{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21509echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021510
21511 if test "$GCC" = yes; then
21512 lt_prog_compiler_wl_F77='-Wl,'
21513 lt_prog_compiler_static_F77='-static'
21514
21515 case $host_os in
21516 aix*)
21517 # All AIX code is PIC.
21518 if test "$host_cpu" = ia64; then
21519 # AIX 5 now supports IA64 processor
21520 lt_prog_compiler_static_F77='-Bstatic'
21521 fi
21522 ;;
21523
21524 amigaos*)
21525 # FIXME: we need at least 68020 code to build shared libraries, but
21526 # adding the `-m68020' flag to GCC prevents building anything better,
21527 # like `-m68040'.
21528 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21529 ;;
21530
21531 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21532 # PIC is the default for these OSes.
21533 ;;
21534
21535 mingw* | pw32* | os2*)
21536 # This hack is so that the source file can tell whether it is being
21537 # built for inclusion in a dll (and should export symbols for example).
21538 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21539 ;;
21540
21541 darwin* | rhapsody*)
21542 # PIC is the default on this platform
21543 # Common symbols not allowed in MH_DYLIB files
21544 lt_prog_compiler_pic_F77='-fno-common'
21545 ;;
21546
Reid Spencera773bd52006-08-04 18:18:08 +000021547 interix3*)
21548 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21549 # Instead, we relocate shared libraries at runtime.
21550 ;;
21551
John Criswell47fdd832003-07-14 16:52:07 +000021552 msdosdjgpp*)
21553 # Just because we use GCC doesn't mean we suddenly get shared libraries
21554 # on systems that don't support them.
21555 lt_prog_compiler_can_build_shared_F77=no
21556 enable_shared=no
21557 ;;
21558
21559 sysv4*MP*)
21560 if test -d /usr/nec; then
21561 lt_prog_compiler_pic_F77=-Kconform_pic
21562 fi
21563 ;;
21564
21565 hpux*)
21566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21567 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021568 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021569 hppa*64*|ia64*)
21570 # +Z the default
21571 ;;
21572 *)
21573 lt_prog_compiler_pic_F77='-fPIC'
21574 ;;
21575 esac
21576 ;;
21577
21578 *)
21579 lt_prog_compiler_pic_F77='-fPIC'
21580 ;;
21581 esac
21582 else
21583 # PORTME Check for flag to pass linker flags through the system compiler.
21584 case $host_os in
21585 aix*)
21586 lt_prog_compiler_wl_F77='-Wl,'
21587 if test "$host_cpu" = ia64; then
21588 # AIX 5 now supports IA64 processor
21589 lt_prog_compiler_static_F77='-Bstatic'
21590 else
21591 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21592 fi
21593 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021594 darwin*)
21595 # PIC is the default on this platform
21596 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021597 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021598 xlc*)
21599 lt_prog_compiler_pic_F77='-qnocommon'
21600 lt_prog_compiler_wl_F77='-Wl,'
21601 ;;
21602 esac
21603 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021604
21605 mingw* | pw32* | os2*)
21606 # This hack is so that the source file can tell whether it is being
21607 # built for inclusion in a dll (and should export symbols for example).
21608 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21609 ;;
21610
21611 hpux9* | hpux10* | hpux11*)
21612 lt_prog_compiler_wl_F77='-Wl,'
21613 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21614 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021615 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021616 hppa*64*|ia64*)
21617 # +Z the default
21618 ;;
21619 *)
21620 lt_prog_compiler_pic_F77='+Z'
21621 ;;
21622 esac
21623 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21624 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21625 ;;
21626
21627 irix5* | irix6* | nonstopux*)
21628 lt_prog_compiler_wl_F77='-Wl,'
21629 # PIC (with -KPIC) is the default.
21630 lt_prog_compiler_static_F77='-non_shared'
21631 ;;
21632
21633 newsos6)
21634 lt_prog_compiler_pic_F77='-KPIC'
21635 lt_prog_compiler_static_F77='-Bstatic'
21636 ;;
21637
21638 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021639 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021640 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021641 lt_prog_compiler_wl_F77='-Wl,'
21642 lt_prog_compiler_pic_F77='-KPIC'
21643 lt_prog_compiler_static_F77='-static'
21644 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021645 pgcc* | pgf77* | pgf90* | pgf95*)
21646 # Portland Group compilers (*not* the Pentium gcc compiler,
21647 # which looks to be a dead project)
21648 lt_prog_compiler_wl_F77='-Wl,'
21649 lt_prog_compiler_pic_F77='-fpic'
21650 lt_prog_compiler_static_F77='-Bstatic'
21651 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021652 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021653 lt_prog_compiler_wl_F77='-Wl,'
21654 # All Alpha code is PIC.
21655 lt_prog_compiler_static_F77='-non_shared'
21656 ;;
21657 esac
21658 ;;
21659
21660 osf3* | osf4* | osf5*)
21661 lt_prog_compiler_wl_F77='-Wl,'
21662 # All OSF/1 code is PIC.
21663 lt_prog_compiler_static_F77='-non_shared'
21664 ;;
21665
John Criswell47fdd832003-07-14 16:52:07 +000021666 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021667 lt_prog_compiler_pic_F77='-KPIC'
21668 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021669 case $cc_basename in
21670 f77* | f90* | f95*)
21671 lt_prog_compiler_wl_F77='-Qoption ld ';;
21672 *)
21673 lt_prog_compiler_wl_F77='-Wl,';;
21674 esac
John Criswell47fdd832003-07-14 16:52:07 +000021675 ;;
21676
21677 sunos4*)
21678 lt_prog_compiler_wl_F77='-Qoption ld '
21679 lt_prog_compiler_pic_F77='-PIC'
21680 lt_prog_compiler_static_F77='-Bstatic'
21681 ;;
21682
Reid Spencera773bd52006-08-04 18:18:08 +000021683 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021684 lt_prog_compiler_wl_F77='-Wl,'
21685 lt_prog_compiler_pic_F77='-KPIC'
21686 lt_prog_compiler_static_F77='-Bstatic'
21687 ;;
21688
21689 sysv4*MP*)
21690 if test -d /usr/nec ;then
21691 lt_prog_compiler_pic_F77='-Kconform_pic'
21692 lt_prog_compiler_static_F77='-Bstatic'
21693 fi
21694 ;;
21695
Reid Spencera773bd52006-08-04 18:18:08 +000021696 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21697 lt_prog_compiler_wl_F77='-Wl,'
21698 lt_prog_compiler_pic_F77='-KPIC'
21699 lt_prog_compiler_static_F77='-Bstatic'
21700 ;;
21701
21702 unicos*)
21703 lt_prog_compiler_wl_F77='-Wl,'
21704 lt_prog_compiler_can_build_shared_F77=no
21705 ;;
21706
John Criswell47fdd832003-07-14 16:52:07 +000021707 uts4*)
21708 lt_prog_compiler_pic_F77='-pic'
21709 lt_prog_compiler_static_F77='-Bstatic'
21710 ;;
21711
21712 *)
21713 lt_prog_compiler_can_build_shared_F77=no
21714 ;;
21715 esac
21716 fi
21717
Reid Spencera773bd52006-08-04 18:18:08 +000021718{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21719echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021720
21721#
21722# Check to make sure the PIC flag actually works.
21723#
21724if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021725
Reid Spencera773bd52006-08-04 18:18:08 +000021726{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21727echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021728if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21730else
21731 lt_prog_compiler_pic_works_F77=no
21732 ac_outfile=conftest.$ac_objext
21733 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21734 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21735 # Insert the option either (1) after the last *FLAGS variable, or
21736 # (2) before a word containing "conftest.", or (3) at the end.
21737 # Note that $ac_compile itself does not contain backslashes and begins
21738 # with a dollar sign (not a hyphen), so the echo should work correctly.
21739 # The option is referenced via a variable to avoid confusing sed.
21740 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21743 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021744 (eval echo "\"\$as_me:21744: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021745 (eval "$lt_compile" 2>conftest.err)
21746 ac_status=$?
21747 cat conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021748 echo "$as_me:21748: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021749 if (exit $ac_status) && test -s "$ac_outfile"; then
21750 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021751 # So say no if there are warnings other than the usual output.
21752 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21754 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021755 lt_prog_compiler_pic_works_F77=yes
21756 fi
21757 fi
21758 $rm conftest*
21759
21760fi
Reid Spencera773bd52006-08-04 18:18:08 +000021761{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21762echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021763
21764if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21765 case $lt_prog_compiler_pic_F77 in
21766 "" | " "*) ;;
21767 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21768 esac
21769else
21770 lt_prog_compiler_pic_F77=
21771 lt_prog_compiler_can_build_shared_F77=no
21772fi
21773
21774fi
Reid Spencera773bd52006-08-04 18:18:08 +000021775case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021776 # For platforms which do not support PIC, -DPIC is meaningless:
21777 *djgpp*)
21778 lt_prog_compiler_pic_F77=
21779 ;;
21780 *)
21781 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21782 ;;
21783esac
21784
Reid Spencera773bd52006-08-04 18:18:08 +000021785#
21786# Check to make sure the static flag actually works.
21787#
21788wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21789{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21790echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21791if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21793else
21794 lt_prog_compiler_static_works_F77=no
21795 save_LDFLAGS="$LDFLAGS"
21796 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21797 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21798 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21799 # The linker can only warn and ignore the option if not recognized
21800 # So say no if there are warnings
21801 if test -s conftest.err; then
21802 # Append any errors to the config.log.
21803 cat conftest.err 1>&5
21804 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21805 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21806 if diff conftest.exp conftest.er2 >/dev/null; then
21807 lt_prog_compiler_static_works_F77=yes
21808 fi
21809 else
21810 lt_prog_compiler_static_works_F77=yes
21811 fi
21812 fi
21813 $rm conftest*
21814 LDFLAGS="$save_LDFLAGS"
21815
21816fi
21817{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21818echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21819
21820if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21821 :
21822else
21823 lt_prog_compiler_static_F77=
21824fi
21825
21826
21827{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21828echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021829if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21831else
21832 lt_cv_prog_compiler_c_o_F77=no
21833 $rm -r conftest 2>/dev/null
21834 mkdir conftest
21835 cd conftest
21836 mkdir out
21837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21838
John Criswell47fdd832003-07-14 16:52:07 +000021839 lt_compiler_flag="-o out/conftest2.$ac_objext"
21840 # Insert the option either (1) after the last *FLAGS variable, or
21841 # (2) before a word containing "conftest.", or (3) at the end.
21842 # Note that $ac_compile itself does not contain backslashes and begins
21843 # with a dollar sign (not a hyphen), so the echo should work correctly.
21844 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21847 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021848 (eval echo "\"\$as_me:21848: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021849 (eval "$lt_compile" 2>out/conftest.err)
21850 ac_status=$?
21851 cat out/conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000021852 echo "$as_me:21852: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21854 then
21855 # The compiler can only warn and ignore the option if not recognized
21856 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021857 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021860 lt_cv_prog_compiler_c_o_F77=yes
21861 fi
21862 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021863 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021864 $rm conftest*
21865 # SGI C++ compiler will create directory out/ii_files/ for
21866 # template instantiation
21867 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21868 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021869 cd ..
21870 rmdir conftest
21871 $rm conftest*
21872
21873fi
Reid Spencera773bd52006-08-04 18:18:08 +000021874{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21875echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021876
21877
21878hard_links="nottested"
21879if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21880 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021881 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21882echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021883 hard_links=yes
21884 $rm conftest*
21885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21886 touch conftest.a
21887 ln conftest.a conftest.b 2>&5 || hard_links=no
21888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021889 { echo "$as_me:$LINENO: result: $hard_links" >&5
21890echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021891 if test "$hard_links" = no; then
21892 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21893echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21894 need_locks=warn
21895 fi
21896else
21897 need_locks=no
21898fi
21899
Reid Spencera773bd52006-08-04 18:18:08 +000021900{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21901echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021902
21903 runpath_var=
21904 allow_undefined_flag_F77=
21905 enable_shared_with_static_runtimes_F77=no
21906 archive_cmds_F77=
21907 archive_expsym_cmds_F77=
21908 old_archive_From_new_cmds_F77=
21909 old_archive_from_expsyms_cmds_F77=
21910 export_dynamic_flag_spec_F77=
21911 whole_archive_flag_spec_F77=
21912 thread_safe_flag_spec_F77=
21913 hardcode_libdir_flag_spec_F77=
21914 hardcode_libdir_flag_spec_ld_F77=
21915 hardcode_libdir_separator_F77=
21916 hardcode_direct_F77=no
21917 hardcode_minus_L_F77=no
21918 hardcode_shlibpath_var_F77=unsupported
21919 link_all_deplibs_F77=unknown
21920 hardcode_automatic_F77=no
21921 module_cmds_F77=
21922 module_expsym_cmds_F77=
21923 always_export_symbols_F77=no
21924 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21925 # include_expsyms should be a list of space-separated symbols to be *always*
21926 # included in the symbol list
21927 include_expsyms_F77=
21928 # exclude_expsyms can be an extended regexp of symbols to exclude
21929 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21930 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21931 # as well as any symbol that contains `d'.
21932 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21933 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21934 # platforms (ab)use it in PIC code, but their linkers get confused if
21935 # the symbol is explicitly referenced. Since portable code cannot
21936 # rely on this symbol name, it's probably fine to never include it in
21937 # preloaded symbol tables.
21938 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021939 # Just being paranoid about ensuring that cc_basename is set.
21940 for cc_temp in $compiler""; do
21941 case $cc_temp in
21942 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21943 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21944 \-*) ;;
21945 *) break;;
21946 esac
21947done
21948cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021949
21950 case $host_os in
21951 cygwin* | mingw* | pw32*)
21952 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21953 # When not using gcc, we currently assume that we are using
21954 # Microsoft Visual C++.
21955 if test "$GCC" != yes; then
21956 with_gnu_ld=no
21957 fi
21958 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021959 interix*)
21960 # we just hope/assume this is gcc and not c89 (= MSVC++)
21961 with_gnu_ld=yes
21962 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021963 openbsd*)
21964 with_gnu_ld=no
21965 ;;
21966 esac
21967
21968 ld_shlibs_F77=yes
21969 if test "$with_gnu_ld" = yes; then
21970 # If archive_cmds runs LD, not CC, wlarc should be empty
21971 wlarc='${wl}'
21972
Reid Spencera773bd52006-08-04 18:18:08 +000021973 # Set some defaults for GNU ld with shared library support. These
21974 # are reset later if shared libraries are not supported. Putting them
21975 # here allows them to be overridden if necessary.
21976 runpath_var=LD_RUN_PATH
21977 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21978 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21979 # ancient GNU ld didn't support --whole-archive et. al.
21980 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21981 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21982 else
21983 whole_archive_flag_spec_F77=
21984 fi
21985 supports_anon_versioning=no
21986 case `$LD -v 2>/dev/null` in
21987 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21988 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21989 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21990 *\ 2.11.*) ;; # other 2.11 versions
21991 *) supports_anon_versioning=yes ;;
21992 esac
21993
John Criswell47fdd832003-07-14 16:52:07 +000021994 # See if GNU ld supports shared libraries.
21995 case $host_os in
21996 aix3* | aix4* | aix5*)
21997 # On AIX/PPC, the GNU linker is very broken
21998 if test "$host_cpu" != ia64; then
21999 ld_shlibs_F77=no
22000 cat <<EOF 1>&2
22001
22002*** Warning: the GNU linker, at least up to release 2.9.1, is reported
22003*** to be unable to reliably create shared libraries on AIX.
22004*** Therefore, libtool is disabling shared libraries support. If you
22005*** really care for shared libraries, you may want to modify your PATH
22006*** so that a non-GNU linker is found, and then restart.
22007
22008EOF
22009 fi
22010 ;;
22011
22012 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022013 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 +000022014 hardcode_libdir_flag_spec_F77='-L$libdir'
22015 hardcode_minus_L_F77=yes
22016
22017 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22018 # that the semantics of dynamic libraries on AmigaOS, at least up
22019 # to version 4, is to share data among multiple programs linked
22020 # with the same dynamic library. Since this doesn't match the
22021 # behavior of shared libraries on other platforms, we can't use
22022 # them.
22023 ld_shlibs_F77=no
22024 ;;
22025
22026 beos*)
22027 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22028 allow_undefined_flag_F77=unsupported
22029 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22030 # support --undefined. This deserves some investigation. FIXME
22031 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22032 else
22033 ld_shlibs_F77=no
22034 fi
22035 ;;
22036
22037 cygwin* | mingw* | pw32*)
22038 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22039 # as there is no search path for DLLs.
22040 hardcode_libdir_flag_spec_F77='-L$libdir'
22041 allow_undefined_flag_F77=unsupported
22042 always_export_symbols_F77=no
22043 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022044 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 +000022045
22046 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000022047 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 +000022048 # If the export-symbols file already is a .def file (1st line
22049 # is EXPORTS), use it as is; otherwise, prepend...
22050 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22051 cp $export_symbols $output_objdir/$soname.def;
22052 else
22053 echo EXPORTS > $output_objdir/$soname.def;
22054 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000022055 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000022056 $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 +000022057 else
Reid Spencera773bd52006-08-04 18:18:08 +000022058 ld_shlibs_F77=no
22059 fi
22060 ;;
22061
22062 interix3*)
22063 hardcode_direct_F77=no
22064 hardcode_shlibpath_var_F77=no
22065 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22066 export_dynamic_flag_spec_F77='${wl}-E'
22067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22068 # Instead, shared libraries are loaded at an image base (0x10000000 by
22069 # default) and relocated if they conflict, which is a slow very memory
22070 # consuming and fragmenting process. To avoid this, we pick a random,
22071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22072 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22073 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'
22074 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'
22075 ;;
22076
22077 linux*)
22078 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22079 tmp_addflag=
22080 case $cc_basename,$host_cpu in
22081 pgcc*) # Portland Group C compiler
22082 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'
22083 tmp_addflag=' $pic_flag'
22084 ;;
22085 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22086 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'
22087 tmp_addflag=' $pic_flag -Mnomain' ;;
22088 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22089 tmp_addflag=' -i_dynamic' ;;
22090 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22091 tmp_addflag=' -i_dynamic -nofor_main' ;;
22092 ifc* | ifort*) # Intel Fortran compiler
22093 tmp_addflag=' -nofor_main' ;;
22094 esac
22095 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22096
22097 if test $supports_anon_versioning = yes; then
22098 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22099 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22100 $echo "local: *; };" >> $output_objdir/$libname.ver~
22101 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22102 fi
22103 else
22104 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022105 fi
22106 ;;
22107
22108 netbsd*)
22109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22110 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22111 wlarc=
22112 else
22113 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22114 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22115 fi
22116 ;;
22117
Reid Spencera773bd52006-08-04 18:18:08 +000022118 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022119 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22120 ld_shlibs_F77=no
22121 cat <<EOF 1>&2
22122
22123*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22124*** create shared libraries on Solaris systems. Therefore, libtool
22125*** is disabling shared libraries support. We urge you to upgrade GNU
22126*** binutils to release 2.9.1 or newer. Another option is to modify
22127*** your PATH or compiler configuration so that the native linker is
22128*** used, and then restart.
22129
22130EOF
22131 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22132 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22133 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22134 else
22135 ld_shlibs_F77=no
22136 fi
22137 ;;
22138
Reid Spencera773bd52006-08-04 18:18:08 +000022139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22140 case `$LD -v 2>&1` in
22141 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22142 ld_shlibs_F77=no
22143 cat <<_LT_EOF 1>&2
22144
22145*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22146*** reliably create shared libraries on SCO systems. Therefore, libtool
22147*** is disabling shared libraries support. We urge you to upgrade GNU
22148*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22149*** your PATH or compiler configuration so that the native linker is
22150*** used, and then restart.
22151
22152_LT_EOF
22153 ;;
22154 *)
22155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22156 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22157 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22158 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22159 else
22160 ld_shlibs_F77=no
22161 fi
22162 ;;
22163 esac
22164 ;;
22165
John Criswell47fdd832003-07-14 16:52:07 +000022166 sunos4*)
22167 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22168 wlarc=
22169 hardcode_direct_F77=yes
22170 hardcode_shlibpath_var_F77=no
22171 ;;
22172
22173 *)
22174 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22175 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22176 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22177 else
22178 ld_shlibs_F77=no
22179 fi
22180 ;;
22181 esac
22182
Reid Spencera773bd52006-08-04 18:18:08 +000022183 if test "$ld_shlibs_F77" = no; then
22184 runpath_var=
22185 hardcode_libdir_flag_spec_F77=
22186 export_dynamic_flag_spec_F77=
22187 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022188 fi
22189 else
22190 # PORTME fill in a description of your system's linker (not GNU ld)
22191 case $host_os in
22192 aix3*)
22193 allow_undefined_flag_F77=unsupported
22194 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022195 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 +000022196 # Note: this linker hardcodes the directories in LIBPATH if there
22197 # are no directories specified by -L.
22198 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022199 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022200 # Neither direct hardcoding nor static linking is supported with a
22201 # broken collect2.
22202 hardcode_direct_F77=unsupported
22203 fi
22204 ;;
22205
22206 aix4* | aix5*)
22207 if test "$host_cpu" = ia64; then
22208 # On IA64, the linker does run time linking by default, so we don't
22209 # have to do anything special.
22210 aix_use_runtimelinking=no
22211 exp_sym_flag='-Bexport'
22212 no_entry_flag=""
22213 else
22214 # If we're using GNU nm, then we don't want the "-C" option.
22215 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22216 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22217 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'
22218 else
22219 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'
22220 fi
22221 aix_use_runtimelinking=no
22222
22223 # Test if we are trying to use run time linking or normal
22224 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22225 # need to do runtime linking.
22226 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22227 for ld_flag in $LDFLAGS; do
22228 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22229 aix_use_runtimelinking=yes
22230 break
22231 fi
22232 done
Reid Spencera773bd52006-08-04 18:18:08 +000022233 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022234 esac
22235
22236 exp_sym_flag='-bexport'
22237 no_entry_flag='-bnoentry'
22238 fi
22239
22240 # When large executables or shared objects are built, AIX ld can
22241 # have problems creating the table of contents. If linking a library
22242 # or program results in "error TOC overflow" add -mminimal-toc to
22243 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22244 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22245
22246 archive_cmds_F77=''
22247 hardcode_direct_F77=yes
22248 hardcode_libdir_separator_F77=':'
22249 link_all_deplibs_F77=yes
22250
22251 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022252 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022253 # We only want to do this on AIX 4.2 and lower, the check
22254 # below for broken collect2 doesn't work under 4.3+
22255 collect2name=`${CC} -print-prog-name=collect2`
22256 if test -f "$collect2name" && \
22257 strings "$collect2name" | grep resolve_lib_name >/dev/null
22258 then
22259 # We have reworked collect2
22260 hardcode_direct_F77=yes
22261 else
22262 # We have old collect2
22263 hardcode_direct_F77=unsupported
22264 # It fails to find uninstalled libraries when the uninstalled
22265 # path is not listed in the libpath. Setting hardcode_minus_L
22266 # to unsupported forces relinking
22267 hardcode_minus_L_F77=yes
22268 hardcode_libdir_flag_spec_F77='-L$libdir'
22269 hardcode_libdir_separator_F77=
22270 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022271 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022272 esac
22273 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022274 if test "$aix_use_runtimelinking" = yes; then
22275 shared_flag="$shared_flag "'${wl}-G'
22276 fi
John Criswell47fdd832003-07-14 16:52:07 +000022277 else
22278 # not using gcc
22279 if test "$host_cpu" = ia64; then
22280 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22281 # chokes on -Wl,-G. The following line is correct:
22282 shared_flag='-G'
22283 else
Reid Spencera773bd52006-08-04 18:18:08 +000022284 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022285 shared_flag='${wl}-G'
22286 else
22287 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022288 fi
John Criswell47fdd832003-07-14 16:52:07 +000022289 fi
22290 fi
22291
22292 # It seems that -bexpall does not export symbols beginning with
22293 # underscore (_), so it is better to generate a list of symbols to export.
22294 always_export_symbols_F77=yes
22295 if test "$aix_use_runtimelinking" = yes; then
22296 # Warning - without using the other runtime loading flags (-brtl),
22297 # -berok will link without error, but may produce a broken library.
22298 allow_undefined_flag_F77='-berok'
22299 # Determine the default libpath from the value encoded in an empty executable.
22300 cat >conftest.$ac_ext <<_ACEOF
22301 program main
22302
22303 end
22304_ACEOF
22305rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022306if { (ac_try="$ac_link"
22307case "(($ac_try" in
22308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309 *) ac_try_echo=$ac_try;;
22310esac
22311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22312 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022313 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022314 grep -v '^ *+' conftest.er1 >conftest.err
22315 rm -f conftest.er1
22316 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022318 (exit $ac_status); } &&
22319 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22320 { (case "(($ac_try" in
22321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22322 *) ac_try_echo=$ac_try;;
22323esac
22324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22325 (eval "$ac_try") 2>&5
22326 ac_status=$?
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); }; } &&
22329 { ac_try='test -s conftest$ac_exeext'
22330 { (case "(($ac_try" in
22331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332 *) ac_try_echo=$ac_try;;
22333esac
22334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22335 (eval "$ac_try") 2>&5
22336 ac_status=$?
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022339
22340aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22341}'`
22342# Check for a 64-bit object if we didn't find anything.
22343if 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; }
22344}'`; fi
22345else
22346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022347sed 's/^/| /' conftest.$ac_ext >&5
22348
Reid Spencera773bd52006-08-04 18:18:08 +000022349
John Criswell47fdd832003-07-14 16:52:07 +000022350fi
Reid Spencera773bd52006-08-04 18:18:08 +000022351
Bill Wendlingebcceee2009-04-18 11:20:33 +000022352rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022353 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022354if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22355
22356 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022357 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 +000022358 else
22359 if test "$host_cpu" = ia64; then
22360 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22361 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022362 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 +000022363 else
22364 # Determine the default libpath from the value encoded in an empty executable.
22365 cat >conftest.$ac_ext <<_ACEOF
22366 program main
22367
22368 end
22369_ACEOF
22370rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022371if { (ac_try="$ac_link"
22372case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22375esac
22376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022378 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022379 grep -v '^ *+' conftest.er1 >conftest.err
22380 rm -f conftest.er1
22381 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022383 (exit $ac_status); } &&
22384 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22385 { (case "(($ac_try" in
22386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22387 *) ac_try_echo=$ac_try;;
22388esac
22389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22390 (eval "$ac_try") 2>&5
22391 ac_status=$?
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); }; } &&
22394 { ac_try='test -s conftest$ac_exeext'
22395 { (case "(($ac_try" in
22396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22397 *) ac_try_echo=$ac_try;;
22398esac
22399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22400 (eval "$ac_try") 2>&5
22401 ac_status=$?
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022404
22405aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22406}'`
22407# Check for a 64-bit object if we didn't find anything.
22408if 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; }
22409}'`; fi
22410else
22411 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022412sed 's/^/| /' conftest.$ac_ext >&5
22413
Reid Spencera773bd52006-08-04 18:18:08 +000022414
John Criswell47fdd832003-07-14 16:52:07 +000022415fi
Reid Spencera773bd52006-08-04 18:18:08 +000022416
Bill Wendlingebcceee2009-04-18 11:20:33 +000022417rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022418 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022419if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22420
22421 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22422 # Warning - without using the other run time loading flags,
22423 # -berok will link without error, but may produce a broken library.
22424 no_undefined_flag_F77=' ${wl}-bernotok'
22425 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022426 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022427 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022428 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022429 # This is similar to how AIX traditionally builds its shared libraries.
22430 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 +000022431 fi
22432 fi
22433 ;;
22434
22435 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022436 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 +000022437 hardcode_libdir_flag_spec_F77='-L$libdir'
22438 hardcode_minus_L_F77=yes
22439 # see comment about different semantics on the GNU ld section
22440 ld_shlibs_F77=no
22441 ;;
22442
Reid Spencer2706f8c2004-09-19 23:53:36 +000022443 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022444 export_dynamic_flag_spec_F77=-rdynamic
22445 ;;
22446
22447 cygwin* | mingw* | pw32*)
22448 # When not using gcc, we currently assume that we are using
22449 # Microsoft Visual C++.
22450 # hardcode_libdir_flag_spec is actually meaningless, as there is
22451 # no search path for DLLs.
22452 hardcode_libdir_flag_spec_F77=' '
22453 allow_undefined_flag_F77=unsupported
22454 # Tell ltmain to make .lib files, not .a files.
22455 libext=lib
22456 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022457 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022458 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022459 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 +000022460 # The linker will automatically build a .lib file if we build a DLL.
22461 old_archive_From_new_cmds_F77='true'
22462 # FIXME: Should let the user specify the lib program.
22463 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022464 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022465 enable_shared_with_static_runtimes_F77=yes
22466 ;;
22467
22468 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022469 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022470 rhapsody* | darwin1.[012])
22471 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22472 ;;
22473 *) # Darwin 1.3 on
22474 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22475 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22476 else
22477 case ${MACOSX_DEPLOYMENT_TARGET} in
22478 10.[012])
22479 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22480 ;;
22481 10.*)
22482 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22483 ;;
22484 esac
22485 fi
22486 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022487 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022488 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022489 hardcode_direct_F77=no
22490 hardcode_automatic_F77=yes
22491 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022492 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022493 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022494 if test "$GCC" = yes ; then
22495 output_verbose_link_cmd='echo'
22496 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22497 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022498 # 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 +000022499 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}'
22500 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 +000022501 else
Reid Spencera773bd52006-08-04 18:18:08 +000022502 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022503 xlc*)
22504 output_verbose_link_cmd='echo'
22505 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22506 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022507 # 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 +000022508 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}'
22509 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 +000022510 ;;
22511 *)
22512 ld_shlibs_F77=no
22513 ;;
22514 esac
John Criswell47fdd832003-07-14 16:52:07 +000022515 fi
22516 ;;
22517
22518 dgux*)
22519 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22520 hardcode_libdir_flag_spec_F77='-L$libdir'
22521 hardcode_shlibpath_var_F77=no
22522 ;;
22523
22524 freebsd1*)
22525 ld_shlibs_F77=no
22526 ;;
22527
22528 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22529 # support. Future versions do this automatically, but an explicit c++rt0.o
22530 # does not break anything, and helps significantly (at the cost of a little
22531 # extra space).
22532 freebsd2.2*)
22533 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22534 hardcode_libdir_flag_spec_F77='-R$libdir'
22535 hardcode_direct_F77=yes
22536 hardcode_shlibpath_var_F77=no
22537 ;;
22538
22539 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22540 freebsd2*)
22541 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22542 hardcode_direct_F77=yes
22543 hardcode_minus_L_F77=yes
22544 hardcode_shlibpath_var_F77=no
22545 ;;
22546
22547 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022548 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022549 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22550 hardcode_libdir_flag_spec_F77='-R$libdir'
22551 hardcode_direct_F77=yes
22552 hardcode_shlibpath_var_F77=no
22553 ;;
22554
22555 hpux9*)
22556 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022557 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 +000022558 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022559 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 +000022560 fi
22561 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22562 hardcode_libdir_separator_F77=:
22563 hardcode_direct_F77=yes
22564
22565 # hardcode_minus_L: Not really in the search PATH,
22566 # but as the default location of the library.
22567 hardcode_minus_L_F77=yes
22568 export_dynamic_flag_spec_F77='${wl}-E'
22569 ;;
22570
Reid Spencera773bd52006-08-04 18:18:08 +000022571 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022572 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022573 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22574 else
22575 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22576 fi
22577 if test "$with_gnu_ld" = no; then
22578 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22579 hardcode_libdir_separator_F77=:
22580
22581 hardcode_direct_F77=yes
22582 export_dynamic_flag_spec_F77='${wl}-E'
22583
22584 # hardcode_minus_L: Not really in the search PATH,
22585 # but as the default location of the library.
22586 hardcode_minus_L_F77=yes
22587 fi
22588 ;;
22589
22590 hpux11*)
22591 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22592 case $host_cpu in
22593 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022594 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22595 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022596 ia64*)
22597 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22598 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022599 *)
22600 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22601 ;;
22602 esac
22603 else
Reid Spencera773bd52006-08-04 18:18:08 +000022604 case $host_cpu in
22605 hppa*64*)
22606 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22607 ;;
22608 ia64*)
22609 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022610 ;;
22611 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022612 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 +000022613 ;;
22614 esac
22615 fi
22616 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022617 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22618 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022619
Reid Spencera773bd52006-08-04 18:18:08 +000022620 case $host_cpu in
22621 hppa*64*|ia64*)
22622 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22623 hardcode_direct_F77=no
22624 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022625 ;;
22626 *)
John Criswell47fdd832003-07-14 16:52:07 +000022627 hardcode_direct_F77=yes
22628 export_dynamic_flag_spec_F77='${wl}-E'
22629
22630 # hardcode_minus_L: Not really in the search PATH,
22631 # but as the default location of the library.
22632 hardcode_minus_L_F77=yes
22633 ;;
22634 esac
22635 fi
22636 ;;
22637
22638 irix5* | irix6* | nonstopux*)
22639 if test "$GCC" = yes; then
22640 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'
22641 else
22642 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'
22643 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22644 fi
22645 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22646 hardcode_libdir_separator_F77=:
22647 link_all_deplibs_F77=yes
22648 ;;
22649
22650 netbsd*)
22651 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22652 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22653 else
22654 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22655 fi
22656 hardcode_libdir_flag_spec_F77='-R$libdir'
22657 hardcode_direct_F77=yes
22658 hardcode_shlibpath_var_F77=no
22659 ;;
22660
22661 newsos6)
22662 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22663 hardcode_direct_F77=yes
22664 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22665 hardcode_libdir_separator_F77=:
22666 hardcode_shlibpath_var_F77=no
22667 ;;
22668
22669 openbsd*)
22670 hardcode_direct_F77=yes
22671 hardcode_shlibpath_var_F77=no
22672 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22673 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022674 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 +000022675 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22676 export_dynamic_flag_spec_F77='${wl}-E'
22677 else
22678 case $host_os in
22679 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22680 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22681 hardcode_libdir_flag_spec_F77='-R$libdir'
22682 ;;
22683 *)
22684 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22685 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22686 ;;
22687 esac
22688 fi
22689 ;;
22690
22691 os2*)
22692 hardcode_libdir_flag_spec_F77='-L$libdir'
22693 hardcode_minus_L_F77=yes
22694 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022695 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 +000022696 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22697 ;;
22698
22699 osf3*)
22700 if test "$GCC" = yes; then
22701 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22702 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'
22703 else
22704 allow_undefined_flag_F77=' -expect_unresolved \*'
22705 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'
22706 fi
22707 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22708 hardcode_libdir_separator_F77=:
22709 ;;
22710
22711 osf4* | osf5*) # as osf3* with the addition of -msym flag
22712 if test "$GCC" = yes; then
22713 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22714 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'
22715 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22716 else
22717 allow_undefined_flag_F77=' -expect_unresolved \*'
22718 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 +000022719 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 +000022720 $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 +000022721
John Criswell47fdd832003-07-14 16:52:07 +000022722 # Both c and cxx compiler support -rpath directly
22723 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22724 fi
22725 hardcode_libdir_separator_F77=:
22726 ;;
22727
John Criswell47fdd832003-07-14 16:52:07 +000022728 solaris*)
22729 no_undefined_flag_F77=' -z text'
22730 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022731 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022732 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022733 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22734 $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 +000022735 else
Reid Spencera773bd52006-08-04 18:18:08 +000022736 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022737 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022738 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22739 $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 +000022740 fi
22741 hardcode_libdir_flag_spec_F77='-R$libdir'
22742 hardcode_shlibpath_var_F77=no
22743 case $host_os in
22744 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022745 *)
22746 # The compiler driver will combine linker options so we
22747 # cannot just pass the convience library names through
22748 # without $wl, iff we do not link with $LD.
22749 # Luckily, gcc supports the same syntax we need for Sun Studio.
22750 # Supported since Solaris 2.6 (maybe 2.5.1?)
22751 case $wlarc in
22752 '')
22753 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22754 *)
22755 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' ;;
22756 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022757 esac
22758 link_all_deplibs_F77=yes
22759 ;;
22760
22761 sunos4*)
22762 if test "x$host_vendor" = xsequent; then
22763 # Use $CC to link under sequent, because it throws in some extra .o
22764 # files that make .init and .fini sections work.
22765 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22766 else
22767 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22768 fi
22769 hardcode_libdir_flag_spec_F77='-L$libdir'
22770 hardcode_direct_F77=yes
22771 hardcode_minus_L_F77=yes
22772 hardcode_shlibpath_var_F77=no
22773 ;;
22774
22775 sysv4)
22776 case $host_vendor in
22777 sni)
22778 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22779 hardcode_direct_F77=yes # is this really true???
22780 ;;
22781 siemens)
22782 ## LD is ld it makes a PLAMLIB
22783 ## CC just makes a GrossModule.
22784 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22785 reload_cmds_F77='$CC -r -o $output$reload_objs'
22786 hardcode_direct_F77=no
22787 ;;
22788 motorola)
22789 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22790 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22791 ;;
22792 esac
22793 runpath_var='LD_RUN_PATH'
22794 hardcode_shlibpath_var_F77=no
22795 ;;
22796
22797 sysv4.3*)
22798 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22799 hardcode_shlibpath_var_F77=no
22800 export_dynamic_flag_spec_F77='-Bexport'
22801 ;;
22802
22803 sysv4*MP*)
22804 if test -d /usr/nec; then
22805 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22806 hardcode_shlibpath_var_F77=no
22807 runpath_var=LD_RUN_PATH
22808 hardcode_runpath_var=yes
22809 ld_shlibs_F77=yes
22810 fi
22811 ;;
22812
Reid Spencera773bd52006-08-04 18:18:08 +000022813 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22814 no_undefined_flag_F77='${wl}-z,text'
22815 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022816 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022817 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022818
John Criswell47fdd832003-07-14 16:52:07 +000022819 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022820 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22821 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 +000022822 else
Reid Spencera773bd52006-08-04 18:18:08 +000022823 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22824 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 +000022825 fi
John Criswell47fdd832003-07-14 16:52:07 +000022826 ;;
22827
Reid Spencera773bd52006-08-04 18:18:08 +000022828 sysv5* | sco3.2v5* | sco5v6*)
22829 # Note: We can NOT use -z defs as we might desire, because we do not
22830 # link with -lc, and that would cause any symbols used from libc to
22831 # always be unresolved, which means just about no library would
22832 # ever link correctly. If we're not using GNU ld we use -z text
22833 # though, which does catch some bad symbols but isn't as heavy-handed
22834 # as -z defs.
22835 no_undefined_flag_F77='${wl}-z,text'
22836 allow_undefined_flag_F77='${wl}-z,nodefs'
22837 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022838 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022839 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22840 hardcode_libdir_separator_F77=':'
22841 link_all_deplibs_F77=yes
22842 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022843 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022844
22845 if test "$GCC" = yes; then
22846 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22847 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22848 else
22849 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22850 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22851 fi
John Criswell47fdd832003-07-14 16:52:07 +000022852 ;;
22853
22854 uts4*)
22855 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22856 hardcode_libdir_flag_spec_F77='-L$libdir'
22857 hardcode_shlibpath_var_F77=no
22858 ;;
22859
22860 *)
22861 ld_shlibs_F77=no
22862 ;;
22863 esac
22864 fi
22865
Reid Spencera773bd52006-08-04 18:18:08 +000022866{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22867echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022868test "$ld_shlibs_F77" = no && can_build_shared=no
22869
John Criswell47fdd832003-07-14 16:52:07 +000022870#
22871# Do we need to explicitly link libc?
22872#
22873case "x$archive_cmds_need_lc_F77" in
22874x|xyes)
22875 # Assume -lc should be added
22876 archive_cmds_need_lc_F77=yes
22877
22878 if test "$enable_shared" = yes && test "$GCC" = yes; then
22879 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022880 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022881 # FIXME: we may have to deal with multi-command sequences.
22882 ;;
22883 '$CC '*)
22884 # Test whether the compiler implicitly links with -lc since on some
22885 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22886 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022887 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22888echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022889 $rm conftest*
22890 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22891
22892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22893 (eval $ac_compile) 2>&5
22894 ac_status=$?
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } 2>conftest.err; then
22897 soname=conftest
22898 lib=conftest
22899 libobjs=conftest.$ac_objext
22900 deplibs=
22901 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022902 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022903 compiler_flags=-v
22904 linker_flags=-v
22905 verstring=
22906 output_objdir=.
22907 libname=conftest
22908 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22909 allow_undefined_flag_F77=
22910 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22911 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22912 ac_status=$?
22913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22914 (exit $ac_status); }
22915 then
22916 archive_cmds_need_lc_F77=no
22917 else
22918 archive_cmds_need_lc_F77=yes
22919 fi
22920 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22921 else
22922 cat conftest.err 1>&5
22923 fi
22924 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022925 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22926echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022927 ;;
22928 esac
22929 fi
22930 ;;
22931esac
22932
Reid Spencera773bd52006-08-04 18:18:08 +000022933{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22934echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022935library_names_spec=
22936libname_spec='lib$name'
22937soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022938shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022939postinstall_cmds=
22940postuninstall_cmds=
22941finish_cmds=
22942finish_eval=
22943shlibpath_var=
22944shlibpath_overrides_runpath=unknown
22945version_type=none
22946dynamic_linker="$host_os ld.so"
22947sys_lib_dlsearch_path_spec="/lib /usr/lib"
22948if test "$GCC" = yes; then
22949 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22950 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22951 # if the path contains ";" then we assume it to be the separator
22952 # otherwise default to the standard path separator (i.e. ":") - it is
22953 # assumed that no part of a normal pathname contains ";" but that should
22954 # okay in the real world where ";" in dirpaths is itself problematic.
22955 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22956 else
22957 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22958 fi
22959else
22960 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22961fi
22962need_lib_prefix=unknown
22963hardcode_into_libs=no
22964
22965# when you set need_version to no, make sure it does not cause -set_version
22966# flags to be left without arguments
22967need_version=unknown
22968
22969case $host_os in
22970aix3*)
22971 version_type=linux
22972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22973 shlibpath_var=LIBPATH
22974
22975 # AIX 3 has no versioning support, so we append a major version to the name.
22976 soname_spec='${libname}${release}${shared_ext}$major'
22977 ;;
22978
22979aix4* | aix5*)
22980 version_type=linux
22981 need_lib_prefix=no
22982 need_version=no
22983 hardcode_into_libs=yes
22984 if test "$host_cpu" = ia64; then
22985 # AIX 5 supports IA64
22986 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22987 shlibpath_var=LD_LIBRARY_PATH
22988 else
22989 # With GCC up to 2.95.x, collect2 would create an import file
22990 # for dependence libraries. The import file would start with
22991 # the line `#! .'. This would cause the generated library to
22992 # depend on `.', always an invalid library. This was fixed in
22993 # development snapshots of GCC prior to 3.0.
22994 case $host_os in
22995 aix4 | aix4.[01] | aix4.[01].*)
22996 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22997 echo ' yes '
22998 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22999 :
23000 else
23001 can_build_shared=no
23002 fi
23003 ;;
23004 esac
23005 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23006 # soname into executable. Probably we can add versioning support to
23007 # collect2, so additional links can be useful in future.
23008 if test "$aix_use_runtimelinking" = yes; then
23009 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23010 # instead of lib<name>.a to let people know that these are not
23011 # typical AIX shared libraries.
23012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23013 else
23014 # We preserve .a as extension for shared libraries through AIX4.2
23015 # and later when we are not doing run time linking.
23016 library_names_spec='${libname}${release}.a $libname.a'
23017 soname_spec='${libname}${release}${shared_ext}$major'
23018 fi
23019 shlibpath_var=LIBPATH
23020 fi
23021 ;;
23022
23023amigaos*)
23024 library_names_spec='$libname.ixlibrary $libname.a'
23025 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023026 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 +000023027 ;;
23028
23029beos*)
23030 library_names_spec='${libname}${shared_ext}'
23031 dynamic_linker="$host_os ld.so"
23032 shlibpath_var=LIBRARY_PATH
23033 ;;
23034
Reid Spencer2706f8c2004-09-19 23:53:36 +000023035bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000023036 version_type=linux
23037 need_version=no
23038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23039 soname_spec='${libname}${release}${shared_ext}$major'
23040 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23041 shlibpath_var=LD_LIBRARY_PATH
23042 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23043 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23044 # the default ld.so.conf also contains /usr/contrib/lib and
23045 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23046 # libtool to hard-code these into programs
23047 ;;
23048
23049cygwin* | mingw* | pw32*)
23050 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000023051 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023052 need_version=no
23053 need_lib_prefix=no
23054
23055 case $GCC,$host_os in
23056 yes,cygwin* | yes,mingw* | yes,pw32*)
23057 library_names_spec='$libname.dll.a'
23058 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000023059 postinstall_cmds='base_file=`basename \${file}`~
23060 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23061 dldir=$destdir/`dirname \$dlpath`~
23062 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000023063 $install_prog $dir/$dlname \$dldir/$dlname~
23064 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000023065 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23066 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000023067 $rm \$dlpath'
23068 shlibpath_overrides_runpath=yes
23069
23070 case $host_os in
23071 cygwin*)
23072 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23073 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 +000023074 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023075 ;;
23076 mingw*)
23077 # MinGW DLLs use traditional 'lib' prefix
23078 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23079 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23080 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23081 # It is most probably a Windows format PATH printed by
23082 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23083 # path with ; separators, and with drive letters. We can handle the
23084 # drive letters (cygwin fileutils understands them), so leave them,
23085 # especially as we might pass files found there to a mingw objdump,
23086 # which wouldn't understand a cygwinified path. Ahh.
23087 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23088 else
23089 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23090 fi
23091 ;;
23092 pw32*)
23093 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023094 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 +000023095 ;;
23096 esac
23097 ;;
23098
23099 *)
23100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23101 ;;
23102 esac
23103 dynamic_linker='Win32 ld.exe'
23104 # FIXME: first we should search . and the directory the executable is in
23105 shlibpath_var=PATH
23106 ;;
23107
23108darwin* | rhapsody*)
23109 dynamic_linker="$host_os dyld"
23110 version_type=darwin
23111 need_lib_prefix=no
23112 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023113 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023114 soname_spec='${libname}${release}${major}$shared_ext'
23115 shlibpath_overrides_runpath=yes
23116 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023117 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023118 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023119 if test "$GCC" = yes; then
23120 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"`
23121 else
23122 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023123 fi
23124 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23125 ;;
23126
23127dgux*)
23128 version_type=linux
23129 need_lib_prefix=no
23130 need_version=no
23131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23132 soname_spec='${libname}${release}${shared_ext}$major'
23133 shlibpath_var=LD_LIBRARY_PATH
23134 ;;
23135
23136freebsd1*)
23137 dynamic_linker=no
23138 ;;
23139
Reid Spencer2706f8c2004-09-19 23:53:36 +000023140kfreebsd*-gnu)
23141 version_type=linux
23142 need_lib_prefix=no
23143 need_version=no
23144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23145 soname_spec='${libname}${release}${shared_ext}$major'
23146 shlibpath_var=LD_LIBRARY_PATH
23147 shlibpath_overrides_runpath=no
23148 hardcode_into_libs=yes
23149 dynamic_linker='GNU ld.so'
23150 ;;
23151
Reid Spencera773bd52006-08-04 18:18:08 +000023152freebsd* | dragonfly*)
23153 # DragonFly does not have aout. When/if they implement a new
23154 # versioning mechanism, adjust this.
23155 if test -x /usr/bin/objformat; then
23156 objformat=`/usr/bin/objformat`
23157 else
23158 case $host_os in
23159 freebsd[123]*) objformat=aout ;;
23160 *) objformat=elf ;;
23161 esac
23162 fi
John Criswell47fdd832003-07-14 16:52:07 +000023163 version_type=freebsd-$objformat
23164 case $version_type in
23165 freebsd-elf*)
23166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23167 need_version=no
23168 need_lib_prefix=no
23169 ;;
23170 freebsd-*)
23171 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23172 need_version=yes
23173 ;;
23174 esac
23175 shlibpath_var=LD_LIBRARY_PATH
23176 case $host_os in
23177 freebsd2*)
23178 shlibpath_overrides_runpath=yes
23179 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023180 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023181 shlibpath_overrides_runpath=yes
23182 hardcode_into_libs=yes
23183 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023184 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23185 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023186 shlibpath_overrides_runpath=no
23187 hardcode_into_libs=yes
23188 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023189 freebsd*) # from 4.6 on
23190 shlibpath_overrides_runpath=yes
23191 hardcode_into_libs=yes
23192 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023193 esac
23194 ;;
23195
23196gnu*)
23197 version_type=linux
23198 need_lib_prefix=no
23199 need_version=no
23200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23201 soname_spec='${libname}${release}${shared_ext}$major'
23202 shlibpath_var=LD_LIBRARY_PATH
23203 hardcode_into_libs=yes
23204 ;;
23205
23206hpux9* | hpux10* | hpux11*)
23207 # Give a soname corresponding to the major version so that dld.sl refuses to
23208 # link against other versions.
23209 version_type=sunos
23210 need_lib_prefix=no
23211 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023212 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023213 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023214 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023215 hardcode_into_libs=yes
23216 dynamic_linker="$host_os dld.so"
23217 shlibpath_var=LD_LIBRARY_PATH
23218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23220 soname_spec='${libname}${release}${shared_ext}$major'
23221 if test "X$HPUX_IA64_MODE" = X32; then
23222 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23223 else
23224 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23225 fi
23226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23227 ;;
23228 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023229 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023230 hardcode_into_libs=yes
23231 dynamic_linker="$host_os dld.sl"
23232 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23235 soname_spec='${libname}${release}${shared_ext}$major'
23236 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23238 ;;
23239 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023240 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023241 dynamic_linker="$host_os dld.sl"
23242 shlibpath_var=SHLIB_PATH
23243 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23245 soname_spec='${libname}${release}${shared_ext}$major'
23246 ;;
23247 esac
23248 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23249 postinstall_cmds='chmod 555 $lib'
23250 ;;
23251
Reid Spencera773bd52006-08-04 18:18:08 +000023252interix3*)
23253 version_type=linux
23254 need_lib_prefix=no
23255 need_version=no
23256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23257 soname_spec='${libname}${release}${shared_ext}$major'
23258 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23259 shlibpath_var=LD_LIBRARY_PATH
23260 shlibpath_overrides_runpath=no
23261 hardcode_into_libs=yes
23262 ;;
23263
John Criswell47fdd832003-07-14 16:52:07 +000023264irix5* | irix6* | nonstopux*)
23265 case $host_os in
23266 nonstopux*) version_type=nonstopux ;;
23267 *)
23268 if test "$lt_cv_prog_gnu_ld" = yes; then
23269 version_type=linux
23270 else
23271 version_type=irix
23272 fi ;;
23273 esac
23274 need_lib_prefix=no
23275 need_version=no
23276 soname_spec='${libname}${release}${shared_ext}$major'
23277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23278 case $host_os in
23279 irix5* | nonstopux*)
23280 libsuff= shlibsuff=
23281 ;;
23282 *)
23283 case $LD in # libtool.m4 will add one of these switches to LD
23284 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23285 libsuff= shlibsuff= libmagic=32-bit;;
23286 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23287 libsuff=32 shlibsuff=N32 libmagic=N32;;
23288 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23289 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23290 *) libsuff= shlibsuff= libmagic=never-match;;
23291 esac
23292 ;;
23293 esac
23294 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23295 shlibpath_overrides_runpath=no
23296 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23297 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23298 hardcode_into_libs=yes
23299 ;;
23300
23301# No shared lib support for Linux oldld, aout, or coff.
23302linux*oldld* | linux*aout* | linux*coff*)
23303 dynamic_linker=no
23304 ;;
23305
23306# This must be Linux ELF.
23307linux*)
23308 version_type=linux
23309 need_lib_prefix=no
23310 need_version=no
23311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23312 soname_spec='${libname}${release}${shared_ext}$major'
23313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23314 shlibpath_var=LD_LIBRARY_PATH
23315 shlibpath_overrides_runpath=no
23316 # This implies no fast_install, which is unacceptable.
23317 # Some rework will be needed to allow for fast_install
23318 # before this can be enabled.
23319 hardcode_into_libs=yes
23320
Reid Spencer2706f8c2004-09-19 23:53:36 +000023321 # Append ld.so.conf contents to the search path
23322 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023323 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 +000023324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23325 fi
23326
John Criswell47fdd832003-07-14 16:52:07 +000023327 # We used to test for /lib/ld.so.1 and disable shared libraries on
23328 # powerpc, because MkLinux only supported shared libraries with the
23329 # GNU dynamic linker. Since this was broken with cross compilers,
23330 # most powerpc-linux boxes support dynamic linking these days and
23331 # people can always --disable-shared, the test was removed, and we
23332 # assume the GNU/Linux dynamic linker is in use.
23333 dynamic_linker='GNU/Linux ld.so'
23334 ;;
23335
Reid Spencer2706f8c2004-09-19 23:53:36 +000023336knetbsd*-gnu)
23337 version_type=linux
23338 need_lib_prefix=no
23339 need_version=no
23340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23341 soname_spec='${libname}${release}${shared_ext}$major'
23342 shlibpath_var=LD_LIBRARY_PATH
23343 shlibpath_overrides_runpath=no
23344 hardcode_into_libs=yes
23345 dynamic_linker='GNU ld.so'
23346 ;;
23347
John Criswell47fdd832003-07-14 16:52:07 +000023348netbsd*)
23349 version_type=sunos
23350 need_lib_prefix=no
23351 need_version=no
23352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23355 dynamic_linker='NetBSD (a.out) ld.so'
23356 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023358 soname_spec='${libname}${release}${shared_ext}$major'
23359 dynamic_linker='NetBSD ld.elf_so'
23360 fi
23361 shlibpath_var=LD_LIBRARY_PATH
23362 shlibpath_overrides_runpath=yes
23363 hardcode_into_libs=yes
23364 ;;
23365
23366newsos6)
23367 version_type=linux
23368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23369 shlibpath_var=LD_LIBRARY_PATH
23370 shlibpath_overrides_runpath=yes
23371 ;;
23372
Reid Spencer2706f8c2004-09-19 23:53:36 +000023373nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023374 version_type=linux
23375 need_lib_prefix=no
23376 need_version=no
23377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23378 soname_spec='${libname}${release}${shared_ext}$major'
23379 shlibpath_var=LD_LIBRARY_PATH
23380 shlibpath_overrides_runpath=yes
23381 ;;
23382
23383openbsd*)
23384 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023385 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023386 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023387 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23388 case $host_os in
23389 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23390 *) need_version=no ;;
23391 esac
John Criswell47fdd832003-07-14 16:52:07 +000023392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23394 shlibpath_var=LD_LIBRARY_PATH
23395 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23396 case $host_os in
23397 openbsd2.[89] | openbsd2.[89].*)
23398 shlibpath_overrides_runpath=no
23399 ;;
23400 *)
23401 shlibpath_overrides_runpath=yes
23402 ;;
23403 esac
23404 else
23405 shlibpath_overrides_runpath=yes
23406 fi
23407 ;;
23408
23409os2*)
23410 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023411 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023412 need_lib_prefix=no
23413 library_names_spec='$libname${shared_ext} $libname.a'
23414 dynamic_linker='OS/2 ld.exe'
23415 shlibpath_var=LIBPATH
23416 ;;
23417
23418osf3* | osf4* | osf5*)
23419 version_type=osf
23420 need_lib_prefix=no
23421 need_version=no
23422 soname_spec='${libname}${release}${shared_ext}$major'
23423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23424 shlibpath_var=LD_LIBRARY_PATH
23425 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23426 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23427 ;;
23428
John Criswell47fdd832003-07-14 16:52:07 +000023429solaris*)
23430 version_type=linux
23431 need_lib_prefix=no
23432 need_version=no
23433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23434 soname_spec='${libname}${release}${shared_ext}$major'
23435 shlibpath_var=LD_LIBRARY_PATH
23436 shlibpath_overrides_runpath=yes
23437 hardcode_into_libs=yes
23438 # ldd complains unless libraries are executable
23439 postinstall_cmds='chmod +x $lib'
23440 ;;
23441
23442sunos4*)
23443 version_type=sunos
23444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23445 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23446 shlibpath_var=LD_LIBRARY_PATH
23447 shlibpath_overrides_runpath=yes
23448 if test "$with_gnu_ld" = yes; then
23449 need_lib_prefix=no
23450 fi
23451 need_version=yes
23452 ;;
23453
Reid Spencera773bd52006-08-04 18:18:08 +000023454sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023455 version_type=linux
23456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23457 soname_spec='${libname}${release}${shared_ext}$major'
23458 shlibpath_var=LD_LIBRARY_PATH
23459 case $host_vendor in
23460 sni)
23461 shlibpath_overrides_runpath=no
23462 need_lib_prefix=no
23463 export_dynamic_flag_spec='${wl}-Blargedynsym'
23464 runpath_var=LD_RUN_PATH
23465 ;;
23466 siemens)
23467 need_lib_prefix=no
23468 ;;
23469 motorola)
23470 need_lib_prefix=no
23471 need_version=no
23472 shlibpath_overrides_runpath=no
23473 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23474 ;;
23475 esac
23476 ;;
23477
23478sysv4*MP*)
23479 if test -d /usr/nec ;then
23480 version_type=linux
23481 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23482 soname_spec='$libname${shared_ext}.$major'
23483 shlibpath_var=LD_LIBRARY_PATH
23484 fi
23485 ;;
23486
Reid Spencera773bd52006-08-04 18:18:08 +000023487sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23488 version_type=freebsd-elf
23489 need_lib_prefix=no
23490 need_version=no
23491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23492 soname_spec='${libname}${release}${shared_ext}$major'
23493 shlibpath_var=LD_LIBRARY_PATH
23494 hardcode_into_libs=yes
23495 if test "$with_gnu_ld" = yes; then
23496 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23497 shlibpath_overrides_runpath=no
23498 else
23499 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23500 shlibpath_overrides_runpath=yes
23501 case $host_os in
23502 sco3.2v5*)
23503 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23504 ;;
23505 esac
23506 fi
23507 sys_lib_dlsearch_path_spec='/usr/lib'
23508 ;;
23509
John Criswell47fdd832003-07-14 16:52:07 +000023510uts4*)
23511 version_type=linux
23512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23513 soname_spec='${libname}${release}${shared_ext}$major'
23514 shlibpath_var=LD_LIBRARY_PATH
23515 ;;
23516
23517*)
23518 dynamic_linker=no
23519 ;;
23520esac
Reid Spencera773bd52006-08-04 18:18:08 +000023521{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23522echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023523test "$dynamic_linker" = no && can_build_shared=no
23524
Reid Spencera773bd52006-08-04 18:18:08 +000023525variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23526if test "$GCC" = yes; then
23527 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23528fi
23529
23530{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23531echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023532hardcode_action_F77=
23533if test -n "$hardcode_libdir_flag_spec_F77" || \
23534 test -n "$runpath_var_F77" || \
23535 test "X$hardcode_automatic_F77" = "Xyes" ; then
23536
23537 # We can hardcode non-existant directories.
23538 if test "$hardcode_direct_F77" != no &&
23539 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23540 # have to relink, otherwise we might link with an installed library
23541 # when we should be linking with a yet-to-be-installed one
23542 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23543 test "$hardcode_minus_L_F77" != no; then
23544 # Linking always hardcodes the temporary library directory.
23545 hardcode_action_F77=relink
23546 else
23547 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23548 hardcode_action_F77=immediate
23549 fi
23550else
23551 # We cannot hardcode anything, or else we can only hardcode existing
23552 # directories.
23553 hardcode_action_F77=unsupported
23554fi
Reid Spencera773bd52006-08-04 18:18:08 +000023555{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23556echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023557
23558if test "$hardcode_action_F77" = relink; then
23559 # Fast installation is not supported
23560 enable_fast_install=no
23561elif test "$shlibpath_overrides_runpath" = yes ||
23562 test "$enable_shared" = no; then
23563 # Fast installation is not necessary
23564 enable_fast_install=needless
23565fi
23566
John Criswell47fdd832003-07-14 16:52:07 +000023567
23568# The else clause should only fire when bootstrapping the
23569# libtool distribution, otherwise you forgot to ship ltmain.sh
23570# with your package, and you will get complaints that there are
23571# no rules to generate ltmain.sh.
23572if test -f "$ltmain"; then
23573 # See if we are running on zsh, and set the options which allow our commands through
23574 # without removal of \ escapes.
23575 if test -n "${ZSH_VERSION+set}" ; then
23576 setopt NO_GLOB_SUBST
23577 fi
23578 # Now quote all the things that may contain metacharacters while being
23579 # careful not to overquote the AC_SUBSTed values. We take copies of the
23580 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023581 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 +000023582 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023583 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23584 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23585 deplibs_check_method reload_flag reload_cmds need_locks \
23586 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23587 lt_cv_sys_global_symbol_to_c_name_address \
23588 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23589 old_postinstall_cmds old_postuninstall_cmds \
23590 compiler_F77 \
23591 CC_F77 \
23592 LD_F77 \
23593 lt_prog_compiler_wl_F77 \
23594 lt_prog_compiler_pic_F77 \
23595 lt_prog_compiler_static_F77 \
23596 lt_prog_compiler_no_builtin_flag_F77 \
23597 export_dynamic_flag_spec_F77 \
23598 thread_safe_flag_spec_F77 \
23599 whole_archive_flag_spec_F77 \
23600 enable_shared_with_static_runtimes_F77 \
23601 old_archive_cmds_F77 \
23602 old_archive_from_new_cmds_F77 \
23603 predep_objects_F77 \
23604 postdep_objects_F77 \
23605 predeps_F77 \
23606 postdeps_F77 \
23607 compiler_lib_search_path_F77 \
23608 archive_cmds_F77 \
23609 archive_expsym_cmds_F77 \
23610 postinstall_cmds_F77 \
23611 postuninstall_cmds_F77 \
23612 old_archive_from_expsyms_cmds_F77 \
23613 allow_undefined_flag_F77 \
23614 no_undefined_flag_F77 \
23615 export_symbols_cmds_F77 \
23616 hardcode_libdir_flag_spec_F77 \
23617 hardcode_libdir_flag_spec_ld_F77 \
23618 hardcode_libdir_separator_F77 \
23619 hardcode_automatic_F77 \
23620 module_cmds_F77 \
23621 module_expsym_cmds_F77 \
23622 lt_cv_prog_compiler_c_o_F77 \
23623 exclude_expsyms_F77 \
23624 include_expsyms_F77; do
23625
23626 case $var in
23627 old_archive_cmds_F77 | \
23628 old_archive_from_new_cmds_F77 | \
23629 archive_cmds_F77 | \
23630 archive_expsym_cmds_F77 | \
23631 module_cmds_F77 | \
23632 module_expsym_cmds_F77 | \
23633 old_archive_from_expsyms_cmds_F77 | \
23634 export_symbols_cmds_F77 | \
23635 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23636 postinstall_cmds | postuninstall_cmds | \
23637 old_postinstall_cmds | old_postuninstall_cmds | \
23638 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23639 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023640 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 +000023641 ;;
23642 *)
23643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23644 ;;
23645 esac
23646 done
23647
23648 case $lt_echo in
23649 *'\$0 --fallback-echo"')
23650 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23651 ;;
23652 esac
23653
23654cfgfile="$ofile"
23655
23656 cat <<__EOF__ >> "$cfgfile"
23657# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23658
23659# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23660
23661# Shell to use when invoking shell scripts.
23662SHELL=$lt_SHELL
23663
23664# Whether or not to build shared libraries.
23665build_libtool_libs=$enable_shared
23666
23667# Whether or not to build static libraries.
23668build_old_libs=$enable_static
23669
23670# Whether or not to add -lc for building shared libraries.
23671build_libtool_need_lc=$archive_cmds_need_lc_F77
23672
23673# Whether or not to disallow shared libs when runtime libs are static
23674allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23675
23676# Whether or not to optimize for fast installation.
23677fast_install=$enable_fast_install
23678
23679# The host system.
23680host_alias=$host_alias
23681host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023682host_os=$host_os
23683
23684# The build system.
23685build_alias=$build_alias
23686build=$build
23687build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023688
23689# An echo program that does not interpret backslashes.
23690echo=$lt_echo
23691
23692# The archiver.
23693AR=$lt_AR
23694AR_FLAGS=$lt_AR_FLAGS
23695
23696# A C compiler.
23697LTCC=$lt_LTCC
23698
Reid Spencera773bd52006-08-04 18:18:08 +000023699# LTCC compiler flags.
23700LTCFLAGS=$lt_LTCFLAGS
23701
John Criswell47fdd832003-07-14 16:52:07 +000023702# A language-specific compiler.
23703CC=$lt_compiler_F77
23704
23705# Is the compiler the GNU C compiler?
23706with_gcc=$GCC_F77
23707
23708# An ERE matcher.
23709EGREP=$lt_EGREP
23710
23711# The linker used to build libraries.
23712LD=$lt_LD_F77
23713
23714# Whether we need hard or soft links.
23715LN_S=$lt_LN_S
23716
23717# A BSD-compatible nm program.
23718NM=$lt_NM
23719
23720# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023721STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023722
23723# Used to examine libraries when file_magic_cmd begins "file"
23724MAGIC_CMD=$MAGIC_CMD
23725
23726# Used on cygwin: DLL creation program.
23727DLLTOOL="$DLLTOOL"
23728
23729# Used on cygwin: object dumper.
23730OBJDUMP="$OBJDUMP"
23731
23732# Used on cygwin: assembler.
23733AS="$AS"
23734
23735# The name of the directory that contains temporary libtool files.
23736objdir=$objdir
23737
23738# How to create reloadable object files.
23739reload_flag=$lt_reload_flag
23740reload_cmds=$lt_reload_cmds
23741
23742# How to pass a linker flag through the compiler.
23743wl=$lt_lt_prog_compiler_wl_F77
23744
23745# Object file suffix (normally "o").
23746objext="$ac_objext"
23747
23748# Old archive suffix (normally "a").
23749libext="$libext"
23750
23751# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023752shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023753
23754# Executable file suffix (normally "").
23755exeext="$exeext"
23756
23757# Additional compiler flags for building library objects.
23758pic_flag=$lt_lt_prog_compiler_pic_F77
23759pic_mode=$pic_mode
23760
23761# What is the maximum length of a command?
23762max_cmd_len=$lt_cv_sys_max_cmd_len
23763
23764# Does compiler simultaneously support -c and -o options?
23765compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23766
Reid Spencera773bd52006-08-04 18:18:08 +000023767# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023768need_locks=$lt_need_locks
23769
23770# Do we need the lib prefix for modules?
23771need_lib_prefix=$need_lib_prefix
23772
23773# Do we need a version for libraries?
23774need_version=$need_version
23775
23776# Whether dlopen is supported.
23777dlopen_support=$enable_dlopen
23778
23779# Whether dlopen of programs is supported.
23780dlopen_self=$enable_dlopen_self
23781
23782# Whether dlopen of statically linked programs is supported.
23783dlopen_self_static=$enable_dlopen_self_static
23784
23785# Compiler flag to prevent dynamic linking.
23786link_static_flag=$lt_lt_prog_compiler_static_F77
23787
23788# Compiler flag to turn off builtin functions.
23789no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23790
23791# Compiler flag to allow reflexive dlopens.
23792export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23793
23794# Compiler flag to generate shared objects directly from archives.
23795whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23796
23797# Compiler flag to generate thread-safe objects.
23798thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23799
23800# Library versioning type.
23801version_type=$version_type
23802
23803# Format of library name prefix.
23804libname_spec=$lt_libname_spec
23805
23806# List of archive names. First name is the real one, the rest are links.
23807# The last name is the one that the linker finds with -lNAME.
23808library_names_spec=$lt_library_names_spec
23809
23810# The coded name of the library, if different from the real name.
23811soname_spec=$lt_soname_spec
23812
23813# Commands used to build and install an old-style archive.
23814RANLIB=$lt_RANLIB
23815old_archive_cmds=$lt_old_archive_cmds_F77
23816old_postinstall_cmds=$lt_old_postinstall_cmds
23817old_postuninstall_cmds=$lt_old_postuninstall_cmds
23818
23819# Create an old-style archive from a shared archive.
23820old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23821
23822# Create a temporary old-style archive to link instead of a shared archive.
23823old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23824
23825# Commands used to build and install a shared archive.
23826archive_cmds=$lt_archive_cmds_F77
23827archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23828postinstall_cmds=$lt_postinstall_cmds
23829postuninstall_cmds=$lt_postuninstall_cmds
23830
23831# Commands used to build a loadable module (assumed same as above if empty)
23832module_cmds=$lt_module_cmds_F77
23833module_expsym_cmds=$lt_module_expsym_cmds_F77
23834
23835# Commands to strip libraries.
23836old_striplib=$lt_old_striplib
23837striplib=$lt_striplib
23838
23839# Dependencies to place before the objects being linked to create a
23840# shared library.
23841predep_objects=$lt_predep_objects_F77
23842
23843# Dependencies to place after the objects being linked to create a
23844# shared library.
23845postdep_objects=$lt_postdep_objects_F77
23846
23847# Dependencies to place before the objects being linked to create a
23848# shared library.
23849predeps=$lt_predeps_F77
23850
23851# Dependencies to place after the objects being linked to create a
23852# shared library.
23853postdeps=$lt_postdeps_F77
23854
23855# The library search path used internally by the compiler when linking
23856# a shared library.
23857compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23858
23859# Method to check whether dependent libraries are shared objects.
23860deplibs_check_method=$lt_deplibs_check_method
23861
23862# Command to use when deplibs_check_method == file_magic.
23863file_magic_cmd=$lt_file_magic_cmd
23864
23865# Flag that allows shared libraries with undefined symbols to be built.
23866allow_undefined_flag=$lt_allow_undefined_flag_F77
23867
23868# Flag that forces no undefined symbols.
23869no_undefined_flag=$lt_no_undefined_flag_F77
23870
23871# Commands used to finish a libtool library installation in a directory.
23872finish_cmds=$lt_finish_cmds
23873
23874# Same as above, but a single script fragment to be evaled but not shown.
23875finish_eval=$lt_finish_eval
23876
23877# Take the output of nm and produce a listing of raw symbols and C names.
23878global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23879
23880# Transform the output of nm in a proper C declaration
23881global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23882
23883# Transform the output of nm in a C name address pair
23884global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23885
23886# This is the shared library runtime path variable.
23887runpath_var=$runpath_var
23888
23889# This is the shared library path variable.
23890shlibpath_var=$shlibpath_var
23891
23892# Is shlibpath searched before the hard-coded library search path?
23893shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23894
23895# How to hardcode a shared library path into an executable.
23896hardcode_action=$hardcode_action_F77
23897
23898# Whether we should hardcode library paths into libraries.
23899hardcode_into_libs=$hardcode_into_libs
23900
23901# Flag to hardcode \$libdir into a binary during linking.
23902# This must work even if \$libdir does not exist.
23903hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23904
23905# If ld is used when linking, flag to hardcode \$libdir into
23906# a binary during linking. This must work even if \$libdir does
23907# not exist.
23908hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23909
23910# Whether we need a single -rpath flag with a separated argument.
23911hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23912
23913# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23914# resulting binary.
23915hardcode_direct=$hardcode_direct_F77
23916
23917# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23918# resulting binary.
23919hardcode_minus_L=$hardcode_minus_L_F77
23920
23921# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23922# the resulting binary.
23923hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23924
23925# Set to yes if building a shared library automatically hardcodes DIR into the library
23926# and all subsequent libraries and executables linked against it.
23927hardcode_automatic=$hardcode_automatic_F77
23928
23929# Variables whose values should be saved in libtool wrapper scripts and
23930# restored at relink time.
23931variables_saved_for_relink="$variables_saved_for_relink"
23932
23933# Whether libtool must link a program against all its dependency libraries.
23934link_all_deplibs=$link_all_deplibs_F77
23935
23936# Compile-time system search path for libraries
23937sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23938
23939# Run-time system search path for libraries
23940sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23941
23942# Fix the shell variable \$srcfile for the compiler.
23943fix_srcfile_path="$fix_srcfile_path_F77"
23944
23945# Set to yes if exported symbols are required.
23946always_export_symbols=$always_export_symbols_F77
23947
23948# The commands to list exported symbols.
23949export_symbols_cmds=$lt_export_symbols_cmds_F77
23950
23951# The commands to extract the exported symbol list from a shared archive.
23952extract_expsyms_cmds=$lt_extract_expsyms_cmds
23953
23954# Symbols that should not be listed in the preloaded symbols.
23955exclude_expsyms=$lt_exclude_expsyms_F77
23956
23957# Symbols that must always be exported.
23958include_expsyms=$lt_include_expsyms_F77
23959
23960# ### END LIBTOOL TAG CONFIG: $tagname
23961
23962__EOF__
23963
23964
23965else
23966 # If there is no Makefile yet, we rely on a make rule to execute
23967 # `config.status --recheck' to rerun these tests and create the
23968 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023969 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23970 if test -f "$ltmain_in"; then
23971 test -f Makefile && make "$ltmain"
23972 fi
John Criswell47fdd832003-07-14 16:52:07 +000023973fi
23974
23975
23976ac_ext=c
23977ac_cpp='$CPP $CPPFLAGS'
23978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23980ac_compiler_gnu=$ac_cv_c_compiler_gnu
23981
23982CC="$lt_save_CC"
23983
23984 else
23985 tagname=""
23986 fi
23987 ;;
23988
23989 GCJ)
23990 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023991 ac_ext=c
23992ac_cpp='$CPP $CPPFLAGS'
23993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23995ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023996
23997
23998# Source file extension for Java test sources.
23999ac_ext=java
24000
24001# Object file extension for compiled Java test sources.
24002objext=o
24003objext_GCJ=$objext
24004
24005# Code to be used in simple compile tests
24006lt_simple_compile_test_code="class foo {}\n"
24007
24008# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000024009lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000024010
24011# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24012
24013# If no C compiler was specified, use CC.
24014LTCC=${LTCC-"$CC"}
24015
Reid Spencera773bd52006-08-04 18:18:08 +000024016# If no C compiler flags were specified, use CFLAGS.
24017LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
24018
John Criswell47fdd832003-07-14 16:52:07 +000024019# Allow CC to be a program name with arguments.
24020compiler=$CC
24021
24022
Reid Spencera773bd52006-08-04 18:18:08 +000024023# save warnings/boilerplate of simple test code
24024ac_outfile=conftest.$ac_objext
24025printf "$lt_simple_compile_test_code" >conftest.$ac_ext
24026eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24027_lt_compiler_boilerplate=`cat conftest.err`
24028$rm conftest*
24029
24030ac_outfile=conftest.$ac_objext
24031printf "$lt_simple_link_test_code" >conftest.$ac_ext
24032eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
24033_lt_linker_boilerplate=`cat conftest.err`
24034$rm conftest*
24035
24036
John Criswell47fdd832003-07-14 16:52:07 +000024037# Allow CC to be a program name with arguments.
24038lt_save_CC="$CC"
24039CC=${GCJ-"gcj"}
24040compiler=$CC
24041compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000024042for cc_temp in $compiler""; do
24043 case $cc_temp in
24044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24046 \-*) ;;
24047 *) break;;
24048 esac
24049done
24050cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24051
John Criswell47fdd832003-07-14 16:52:07 +000024052
24053# GCJ did not exist at the time GCC didn't implicitly link libc in.
24054archive_cmds_need_lc_GCJ=no
24055
Reid Spencera773bd52006-08-04 18:18:08 +000024056old_archive_cmds_GCJ=$old_archive_cmds
24057
John Criswell47fdd832003-07-14 16:52:07 +000024058
24059lt_prog_compiler_no_builtin_flag_GCJ=
24060
24061if test "$GCC" = yes; then
24062 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
24063
Reid Spencer2706f8c2004-09-19 23:53:36 +000024064
Reid Spencera773bd52006-08-04 18:18:08 +000024065{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
24066echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024067if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
24068 echo $ECHO_N "(cached) $ECHO_C" >&6
24069else
24070 lt_cv_prog_compiler_rtti_exceptions=no
24071 ac_outfile=conftest.$ac_objext
24072 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24073 lt_compiler_flag="-fno-rtti -fno-exceptions"
24074 # Insert the option either (1) after the last *FLAGS variable, or
24075 # (2) before a word containing "conftest.", or (3) at the end.
24076 # Note that $ac_compile itself does not contain backslashes and begins
24077 # with a dollar sign (not a hyphen), so the echo should work correctly.
24078 # The option is referenced via a variable to avoid confusing sed.
24079 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024080 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24082 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000024083 (eval echo "\"\$as_me:24083: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024084 (eval "$lt_compile" 2>conftest.err)
24085 ac_status=$?
24086 cat conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000024087 echo "$as_me:24087: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024088 if (exit $ac_status) && test -s "$ac_outfile"; then
24089 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024090 # So say no if there are warnings other than the usual output.
24091 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24093 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024094 lt_cv_prog_compiler_rtti_exceptions=yes
24095 fi
24096 fi
24097 $rm conftest*
24098
24099fi
Reid Spencera773bd52006-08-04 18:18:08 +000024100{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24101echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024102
24103if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24104 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24105else
24106 :
24107fi
24108
24109fi
24110
24111lt_prog_compiler_wl_GCJ=
24112lt_prog_compiler_pic_GCJ=
24113lt_prog_compiler_static_GCJ=
24114
Reid Spencera773bd52006-08-04 18:18:08 +000024115{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24116echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024117
24118 if test "$GCC" = yes; then
24119 lt_prog_compiler_wl_GCJ='-Wl,'
24120 lt_prog_compiler_static_GCJ='-static'
24121
24122 case $host_os in
24123 aix*)
24124 # All AIX code is PIC.
24125 if test "$host_cpu" = ia64; then
24126 # AIX 5 now supports IA64 processor
24127 lt_prog_compiler_static_GCJ='-Bstatic'
24128 fi
24129 ;;
24130
24131 amigaos*)
24132 # FIXME: we need at least 68020 code to build shared libraries, but
24133 # adding the `-m68020' flag to GCC prevents building anything better,
24134 # like `-m68040'.
24135 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24136 ;;
24137
24138 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24139 # PIC is the default for these OSes.
24140 ;;
24141
24142 mingw* | pw32* | os2*)
24143 # This hack is so that the source file can tell whether it is being
24144 # built for inclusion in a dll (and should export symbols for example).
24145 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24146 ;;
24147
24148 darwin* | rhapsody*)
24149 # PIC is the default on this platform
24150 # Common symbols not allowed in MH_DYLIB files
24151 lt_prog_compiler_pic_GCJ='-fno-common'
24152 ;;
24153
Reid Spencera773bd52006-08-04 18:18:08 +000024154 interix3*)
24155 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24156 # Instead, we relocate shared libraries at runtime.
24157 ;;
24158
John Criswell47fdd832003-07-14 16:52:07 +000024159 msdosdjgpp*)
24160 # Just because we use GCC doesn't mean we suddenly get shared libraries
24161 # on systems that don't support them.
24162 lt_prog_compiler_can_build_shared_GCJ=no
24163 enable_shared=no
24164 ;;
24165
24166 sysv4*MP*)
24167 if test -d /usr/nec; then
24168 lt_prog_compiler_pic_GCJ=-Kconform_pic
24169 fi
24170 ;;
24171
24172 hpux*)
24173 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24174 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024175 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024176 hppa*64*|ia64*)
24177 # +Z the default
24178 ;;
24179 *)
24180 lt_prog_compiler_pic_GCJ='-fPIC'
24181 ;;
24182 esac
24183 ;;
24184
24185 *)
24186 lt_prog_compiler_pic_GCJ='-fPIC'
24187 ;;
24188 esac
24189 else
24190 # PORTME Check for flag to pass linker flags through the system compiler.
24191 case $host_os in
24192 aix*)
24193 lt_prog_compiler_wl_GCJ='-Wl,'
24194 if test "$host_cpu" = ia64; then
24195 # AIX 5 now supports IA64 processor
24196 lt_prog_compiler_static_GCJ='-Bstatic'
24197 else
24198 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24199 fi
24200 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024201 darwin*)
24202 # PIC is the default on this platform
24203 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024204 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024205 xlc*)
24206 lt_prog_compiler_pic_GCJ='-qnocommon'
24207 lt_prog_compiler_wl_GCJ='-Wl,'
24208 ;;
24209 esac
24210 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024211
24212 mingw* | pw32* | os2*)
24213 # This hack is so that the source file can tell whether it is being
24214 # built for inclusion in a dll (and should export symbols for example).
24215 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24216 ;;
24217
24218 hpux9* | hpux10* | hpux11*)
24219 lt_prog_compiler_wl_GCJ='-Wl,'
24220 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24221 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024222 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024223 hppa*64*|ia64*)
24224 # +Z the default
24225 ;;
24226 *)
24227 lt_prog_compiler_pic_GCJ='+Z'
24228 ;;
24229 esac
24230 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24231 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24232 ;;
24233
24234 irix5* | irix6* | nonstopux*)
24235 lt_prog_compiler_wl_GCJ='-Wl,'
24236 # PIC (with -KPIC) is the default.
24237 lt_prog_compiler_static_GCJ='-non_shared'
24238 ;;
24239
24240 newsos6)
24241 lt_prog_compiler_pic_GCJ='-KPIC'
24242 lt_prog_compiler_static_GCJ='-Bstatic'
24243 ;;
24244
24245 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024246 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024247 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024248 lt_prog_compiler_wl_GCJ='-Wl,'
24249 lt_prog_compiler_pic_GCJ='-KPIC'
24250 lt_prog_compiler_static_GCJ='-static'
24251 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024252 pgcc* | pgf77* | pgf90* | pgf95*)
24253 # Portland Group compilers (*not* the Pentium gcc compiler,
24254 # which looks to be a dead project)
24255 lt_prog_compiler_wl_GCJ='-Wl,'
24256 lt_prog_compiler_pic_GCJ='-fpic'
24257 lt_prog_compiler_static_GCJ='-Bstatic'
24258 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024259 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024260 lt_prog_compiler_wl_GCJ='-Wl,'
24261 # All Alpha code is PIC.
24262 lt_prog_compiler_static_GCJ='-non_shared'
24263 ;;
24264 esac
24265 ;;
24266
24267 osf3* | osf4* | osf5*)
24268 lt_prog_compiler_wl_GCJ='-Wl,'
24269 # All OSF/1 code is PIC.
24270 lt_prog_compiler_static_GCJ='-non_shared'
24271 ;;
24272
John Criswell47fdd832003-07-14 16:52:07 +000024273 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024274 lt_prog_compiler_pic_GCJ='-KPIC'
24275 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024276 case $cc_basename in
24277 f77* | f90* | f95*)
24278 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24279 *)
24280 lt_prog_compiler_wl_GCJ='-Wl,';;
24281 esac
John Criswell47fdd832003-07-14 16:52:07 +000024282 ;;
24283
24284 sunos4*)
24285 lt_prog_compiler_wl_GCJ='-Qoption ld '
24286 lt_prog_compiler_pic_GCJ='-PIC'
24287 lt_prog_compiler_static_GCJ='-Bstatic'
24288 ;;
24289
Reid Spencera773bd52006-08-04 18:18:08 +000024290 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024291 lt_prog_compiler_wl_GCJ='-Wl,'
24292 lt_prog_compiler_pic_GCJ='-KPIC'
24293 lt_prog_compiler_static_GCJ='-Bstatic'
24294 ;;
24295
24296 sysv4*MP*)
24297 if test -d /usr/nec ;then
24298 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24299 lt_prog_compiler_static_GCJ='-Bstatic'
24300 fi
24301 ;;
24302
Reid Spencera773bd52006-08-04 18:18:08 +000024303 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24304 lt_prog_compiler_wl_GCJ='-Wl,'
24305 lt_prog_compiler_pic_GCJ='-KPIC'
24306 lt_prog_compiler_static_GCJ='-Bstatic'
24307 ;;
24308
24309 unicos*)
24310 lt_prog_compiler_wl_GCJ='-Wl,'
24311 lt_prog_compiler_can_build_shared_GCJ=no
24312 ;;
24313
John Criswell47fdd832003-07-14 16:52:07 +000024314 uts4*)
24315 lt_prog_compiler_pic_GCJ='-pic'
24316 lt_prog_compiler_static_GCJ='-Bstatic'
24317 ;;
24318
24319 *)
24320 lt_prog_compiler_can_build_shared_GCJ=no
24321 ;;
24322 esac
24323 fi
24324
Reid Spencera773bd52006-08-04 18:18:08 +000024325{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24326echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024327
24328#
24329# Check to make sure the PIC flag actually works.
24330#
24331if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024332
Reid Spencera773bd52006-08-04 18:18:08 +000024333{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24334echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024335if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24336 echo $ECHO_N "(cached) $ECHO_C" >&6
24337else
24338 lt_prog_compiler_pic_works_GCJ=no
24339 ac_outfile=conftest.$ac_objext
24340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24341 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24342 # Insert the option either (1) after the last *FLAGS variable, or
24343 # (2) before a word containing "conftest.", or (3) at the end.
24344 # Note that $ac_compile itself does not contain backslashes and begins
24345 # with a dollar sign (not a hyphen), so the echo should work correctly.
24346 # The option is referenced via a variable to avoid confusing sed.
24347 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024348 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24350 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000024351 (eval echo "\"\$as_me:24351: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024352 (eval "$lt_compile" 2>conftest.err)
24353 ac_status=$?
24354 cat conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000024355 echo "$as_me:24355: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024356 if (exit $ac_status) && test -s "$ac_outfile"; then
24357 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024358 # So say no if there are warnings other than the usual output.
24359 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24360 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24361 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024362 lt_prog_compiler_pic_works_GCJ=yes
24363 fi
24364 fi
24365 $rm conftest*
24366
24367fi
Reid Spencera773bd52006-08-04 18:18:08 +000024368{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24369echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024370
24371if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24372 case $lt_prog_compiler_pic_GCJ in
24373 "" | " "*) ;;
24374 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24375 esac
24376else
24377 lt_prog_compiler_pic_GCJ=
24378 lt_prog_compiler_can_build_shared_GCJ=no
24379fi
24380
24381fi
Reid Spencera773bd52006-08-04 18:18:08 +000024382case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024383 # For platforms which do not support PIC, -DPIC is meaningless:
24384 *djgpp*)
24385 lt_prog_compiler_pic_GCJ=
24386 ;;
24387 *)
24388 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24389 ;;
24390esac
24391
Reid Spencera773bd52006-08-04 18:18:08 +000024392#
24393# Check to make sure the static flag actually works.
24394#
24395wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24396{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24397echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24398if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24399 echo $ECHO_N "(cached) $ECHO_C" >&6
24400else
24401 lt_prog_compiler_static_works_GCJ=no
24402 save_LDFLAGS="$LDFLAGS"
24403 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24404 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24405 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24406 # The linker can only warn and ignore the option if not recognized
24407 # So say no if there are warnings
24408 if test -s conftest.err; then
24409 # Append any errors to the config.log.
24410 cat conftest.err 1>&5
24411 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24413 if diff conftest.exp conftest.er2 >/dev/null; then
24414 lt_prog_compiler_static_works_GCJ=yes
24415 fi
24416 else
24417 lt_prog_compiler_static_works_GCJ=yes
24418 fi
24419 fi
24420 $rm conftest*
24421 LDFLAGS="$save_LDFLAGS"
24422
24423fi
24424{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24425echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24426
24427if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24428 :
24429else
24430 lt_prog_compiler_static_GCJ=
24431fi
24432
24433
24434{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24435echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024436if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24437 echo $ECHO_N "(cached) $ECHO_C" >&6
24438else
24439 lt_cv_prog_compiler_c_o_GCJ=no
24440 $rm -r conftest 2>/dev/null
24441 mkdir conftest
24442 cd conftest
24443 mkdir out
24444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24445
John Criswell47fdd832003-07-14 16:52:07 +000024446 lt_compiler_flag="-o out/conftest2.$ac_objext"
24447 # Insert the option either (1) after the last *FLAGS variable, or
24448 # (2) before a word containing "conftest.", or (3) at the end.
24449 # Note that $ac_compile itself does not contain backslashes and begins
24450 # with a dollar sign (not a hyphen), so the echo should work correctly.
24451 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24454 -e 's:$: $lt_compiler_flag:'`
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000024455 (eval echo "\"\$as_me:24455: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024456 (eval "$lt_compile" 2>out/conftest.err)
24457 ac_status=$?
24458 cat out/conftest.err >&5
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000024459 echo "$as_me:24459: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024460 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24461 then
24462 # The compiler can only warn and ignore the option if not recognized
24463 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024467 lt_cv_prog_compiler_c_o_GCJ=yes
24468 fi
24469 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024470 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024471 $rm conftest*
24472 # SGI C++ compiler will create directory out/ii_files/ for
24473 # template instantiation
24474 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24475 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024476 cd ..
24477 rmdir conftest
24478 $rm conftest*
24479
24480fi
Reid Spencera773bd52006-08-04 18:18:08 +000024481{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24482echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024483
24484
24485hard_links="nottested"
24486if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24487 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024488 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24489echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024490 hard_links=yes
24491 $rm conftest*
24492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24493 touch conftest.a
24494 ln conftest.a conftest.b 2>&5 || hard_links=no
24495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024496 { echo "$as_me:$LINENO: result: $hard_links" >&5
24497echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024498 if test "$hard_links" = no; then
24499 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24500echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24501 need_locks=warn
24502 fi
24503else
24504 need_locks=no
24505fi
24506
Reid Spencera773bd52006-08-04 18:18:08 +000024507{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24508echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024509
24510 runpath_var=
24511 allow_undefined_flag_GCJ=
24512 enable_shared_with_static_runtimes_GCJ=no
24513 archive_cmds_GCJ=
24514 archive_expsym_cmds_GCJ=
24515 old_archive_From_new_cmds_GCJ=
24516 old_archive_from_expsyms_cmds_GCJ=
24517 export_dynamic_flag_spec_GCJ=
24518 whole_archive_flag_spec_GCJ=
24519 thread_safe_flag_spec_GCJ=
24520 hardcode_libdir_flag_spec_GCJ=
24521 hardcode_libdir_flag_spec_ld_GCJ=
24522 hardcode_libdir_separator_GCJ=
24523 hardcode_direct_GCJ=no
24524 hardcode_minus_L_GCJ=no
24525 hardcode_shlibpath_var_GCJ=unsupported
24526 link_all_deplibs_GCJ=unknown
24527 hardcode_automatic_GCJ=no
24528 module_cmds_GCJ=
24529 module_expsym_cmds_GCJ=
24530 always_export_symbols_GCJ=no
24531 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24532 # include_expsyms should be a list of space-separated symbols to be *always*
24533 # included in the symbol list
24534 include_expsyms_GCJ=
24535 # exclude_expsyms can be an extended regexp of symbols to exclude
24536 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24537 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24538 # as well as any symbol that contains `d'.
24539 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24540 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24541 # platforms (ab)use it in PIC code, but their linkers get confused if
24542 # the symbol is explicitly referenced. Since portable code cannot
24543 # rely on this symbol name, it's probably fine to never include it in
24544 # preloaded symbol tables.
24545 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024546 # Just being paranoid about ensuring that cc_basename is set.
24547 for cc_temp in $compiler""; do
24548 case $cc_temp in
24549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24551 \-*) ;;
24552 *) break;;
24553 esac
24554done
24555cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024556
24557 case $host_os in
24558 cygwin* | mingw* | pw32*)
24559 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24560 # When not using gcc, we currently assume that we are using
24561 # Microsoft Visual C++.
24562 if test "$GCC" != yes; then
24563 with_gnu_ld=no
24564 fi
24565 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024566 interix*)
24567 # we just hope/assume this is gcc and not c89 (= MSVC++)
24568 with_gnu_ld=yes
24569 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024570 openbsd*)
24571 with_gnu_ld=no
24572 ;;
24573 esac
24574
24575 ld_shlibs_GCJ=yes
24576 if test "$with_gnu_ld" = yes; then
24577 # If archive_cmds runs LD, not CC, wlarc should be empty
24578 wlarc='${wl}'
24579
Reid Spencera773bd52006-08-04 18:18:08 +000024580 # Set some defaults for GNU ld with shared library support. These
24581 # are reset later if shared libraries are not supported. Putting them
24582 # here allows them to be overridden if necessary.
24583 runpath_var=LD_RUN_PATH
24584 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24585 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24586 # ancient GNU ld didn't support --whole-archive et. al.
24587 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24588 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24589 else
24590 whole_archive_flag_spec_GCJ=
24591 fi
24592 supports_anon_versioning=no
24593 case `$LD -v 2>/dev/null` in
24594 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24595 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24596 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24597 *\ 2.11.*) ;; # other 2.11 versions
24598 *) supports_anon_versioning=yes ;;
24599 esac
24600
John Criswell47fdd832003-07-14 16:52:07 +000024601 # See if GNU ld supports shared libraries.
24602 case $host_os in
24603 aix3* | aix4* | aix5*)
24604 # On AIX/PPC, the GNU linker is very broken
24605 if test "$host_cpu" != ia64; then
24606 ld_shlibs_GCJ=no
24607 cat <<EOF 1>&2
24608
24609*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24610*** to be unable to reliably create shared libraries on AIX.
24611*** Therefore, libtool is disabling shared libraries support. If you
24612*** really care for shared libraries, you may want to modify your PATH
24613*** so that a non-GNU linker is found, and then restart.
24614
24615EOF
24616 fi
24617 ;;
24618
24619 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024620 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 +000024621 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24622 hardcode_minus_L_GCJ=yes
24623
24624 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24625 # that the semantics of dynamic libraries on AmigaOS, at least up
24626 # to version 4, is to share data among multiple programs linked
24627 # with the same dynamic library. Since this doesn't match the
24628 # behavior of shared libraries on other platforms, we can't use
24629 # them.
24630 ld_shlibs_GCJ=no
24631 ;;
24632
24633 beos*)
24634 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24635 allow_undefined_flag_GCJ=unsupported
24636 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24637 # support --undefined. This deserves some investigation. FIXME
24638 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24639 else
24640 ld_shlibs_GCJ=no
24641 fi
24642 ;;
24643
24644 cygwin* | mingw* | pw32*)
24645 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24646 # as there is no search path for DLLs.
24647 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24648 allow_undefined_flag_GCJ=unsupported
24649 always_export_symbols_GCJ=no
24650 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024651 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 +000024652
24653 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024654 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 +000024655 # If the export-symbols file already is a .def file (1st line
24656 # is EXPORTS), use it as is; otherwise, prepend...
24657 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24658 cp $export_symbols $output_objdir/$soname.def;
24659 else
24660 echo EXPORTS > $output_objdir/$soname.def;
24661 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024662 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024663 $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 +000024664 else
Reid Spencera773bd52006-08-04 18:18:08 +000024665 ld_shlibs_GCJ=no
24666 fi
24667 ;;
24668
24669 interix3*)
24670 hardcode_direct_GCJ=no
24671 hardcode_shlibpath_var_GCJ=no
24672 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24673 export_dynamic_flag_spec_GCJ='${wl}-E'
24674 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24675 # Instead, shared libraries are loaded at an image base (0x10000000 by
24676 # default) and relocated if they conflict, which is a slow very memory
24677 # consuming and fragmenting process. To avoid this, we pick a random,
24678 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24679 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24680 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'
24681 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'
24682 ;;
24683
24684 linux*)
24685 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24686 tmp_addflag=
24687 case $cc_basename,$host_cpu in
24688 pgcc*) # Portland Group C compiler
24689 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'
24690 tmp_addflag=' $pic_flag'
24691 ;;
24692 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24693 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'
24694 tmp_addflag=' $pic_flag -Mnomain' ;;
24695 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24696 tmp_addflag=' -i_dynamic' ;;
24697 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24698 tmp_addflag=' -i_dynamic -nofor_main' ;;
24699 ifc* | ifort*) # Intel Fortran compiler
24700 tmp_addflag=' -nofor_main' ;;
24701 esac
24702 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24703
24704 if test $supports_anon_versioning = yes; then
24705 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24706 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24707 $echo "local: *; };" >> $output_objdir/$libname.ver~
24708 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24709 fi
24710 else
24711 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024712 fi
24713 ;;
24714
24715 netbsd*)
24716 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24717 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24718 wlarc=
24719 else
24720 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24721 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24722 fi
24723 ;;
24724
Reid Spencera773bd52006-08-04 18:18:08 +000024725 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024726 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24727 ld_shlibs_GCJ=no
24728 cat <<EOF 1>&2
24729
24730*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24731*** create shared libraries on Solaris systems. Therefore, libtool
24732*** is disabling shared libraries support. We urge you to upgrade GNU
24733*** binutils to release 2.9.1 or newer. Another option is to modify
24734*** your PATH or compiler configuration so that the native linker is
24735*** used, and then restart.
24736
24737EOF
24738 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24739 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24740 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24741 else
24742 ld_shlibs_GCJ=no
24743 fi
24744 ;;
24745
Reid Spencera773bd52006-08-04 18:18:08 +000024746 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24747 case `$LD -v 2>&1` in
24748 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24749 ld_shlibs_GCJ=no
24750 cat <<_LT_EOF 1>&2
24751
24752*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24753*** reliably create shared libraries on SCO systems. Therefore, libtool
24754*** is disabling shared libraries support. We urge you to upgrade GNU
24755*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24756*** your PATH or compiler configuration so that the native linker is
24757*** used, and then restart.
24758
24759_LT_EOF
24760 ;;
24761 *)
24762 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24763 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24764 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24765 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24766 else
24767 ld_shlibs_GCJ=no
24768 fi
24769 ;;
24770 esac
24771 ;;
24772
John Criswell47fdd832003-07-14 16:52:07 +000024773 sunos4*)
24774 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24775 wlarc=
24776 hardcode_direct_GCJ=yes
24777 hardcode_shlibpath_var_GCJ=no
24778 ;;
24779
24780 *)
24781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24782 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24783 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24784 else
24785 ld_shlibs_GCJ=no
24786 fi
24787 ;;
24788 esac
24789
Reid Spencera773bd52006-08-04 18:18:08 +000024790 if test "$ld_shlibs_GCJ" = no; then
24791 runpath_var=
24792 hardcode_libdir_flag_spec_GCJ=
24793 export_dynamic_flag_spec_GCJ=
24794 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024795 fi
24796 else
24797 # PORTME fill in a description of your system's linker (not GNU ld)
24798 case $host_os in
24799 aix3*)
24800 allow_undefined_flag_GCJ=unsupported
24801 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024802 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 +000024803 # Note: this linker hardcodes the directories in LIBPATH if there
24804 # are no directories specified by -L.
24805 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024806 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024807 # Neither direct hardcoding nor static linking is supported with a
24808 # broken collect2.
24809 hardcode_direct_GCJ=unsupported
24810 fi
24811 ;;
24812
24813 aix4* | aix5*)
24814 if test "$host_cpu" = ia64; then
24815 # On IA64, the linker does run time linking by default, so we don't
24816 # have to do anything special.
24817 aix_use_runtimelinking=no
24818 exp_sym_flag='-Bexport'
24819 no_entry_flag=""
24820 else
24821 # If we're using GNU nm, then we don't want the "-C" option.
24822 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24823 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24824 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'
24825 else
24826 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'
24827 fi
24828 aix_use_runtimelinking=no
24829
24830 # Test if we are trying to use run time linking or normal
24831 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24832 # need to do runtime linking.
24833 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24834 for ld_flag in $LDFLAGS; do
24835 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24836 aix_use_runtimelinking=yes
24837 break
24838 fi
24839 done
Reid Spencera773bd52006-08-04 18:18:08 +000024840 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024841 esac
24842
24843 exp_sym_flag='-bexport'
24844 no_entry_flag='-bnoentry'
24845 fi
24846
24847 # When large executables or shared objects are built, AIX ld can
24848 # have problems creating the table of contents. If linking a library
24849 # or program results in "error TOC overflow" add -mminimal-toc to
24850 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24851 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24852
24853 archive_cmds_GCJ=''
24854 hardcode_direct_GCJ=yes
24855 hardcode_libdir_separator_GCJ=':'
24856 link_all_deplibs_GCJ=yes
24857
24858 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024859 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024860 # We only want to do this on AIX 4.2 and lower, the check
24861 # below for broken collect2 doesn't work under 4.3+
24862 collect2name=`${CC} -print-prog-name=collect2`
24863 if test -f "$collect2name" && \
24864 strings "$collect2name" | grep resolve_lib_name >/dev/null
24865 then
24866 # We have reworked collect2
24867 hardcode_direct_GCJ=yes
24868 else
24869 # We have old collect2
24870 hardcode_direct_GCJ=unsupported
24871 # It fails to find uninstalled libraries when the uninstalled
24872 # path is not listed in the libpath. Setting hardcode_minus_L
24873 # to unsupported forces relinking
24874 hardcode_minus_L_GCJ=yes
24875 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24876 hardcode_libdir_separator_GCJ=
24877 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024878 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024879 esac
24880 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024881 if test "$aix_use_runtimelinking" = yes; then
24882 shared_flag="$shared_flag "'${wl}-G'
24883 fi
John Criswell47fdd832003-07-14 16:52:07 +000024884 else
24885 # not using gcc
24886 if test "$host_cpu" = ia64; then
24887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24888 # chokes on -Wl,-G. The following line is correct:
24889 shared_flag='-G'
24890 else
Reid Spencera773bd52006-08-04 18:18:08 +000024891 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024892 shared_flag='${wl}-G'
24893 else
24894 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024895 fi
John Criswell47fdd832003-07-14 16:52:07 +000024896 fi
24897 fi
24898
24899 # It seems that -bexpall does not export symbols beginning with
24900 # underscore (_), so it is better to generate a list of symbols to export.
24901 always_export_symbols_GCJ=yes
24902 if test "$aix_use_runtimelinking" = yes; then
24903 # Warning - without using the other runtime loading flags (-brtl),
24904 # -berok will link without error, but may produce a broken library.
24905 allow_undefined_flag_GCJ='-berok'
24906 # Determine the default libpath from the value encoded in an empty executable.
24907 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024908/* confdefs.h. */
24909_ACEOF
24910cat confdefs.h >>conftest.$ac_ext
24911cat >>conftest.$ac_ext <<_ACEOF
24912/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024913
John Criswell47fdd832003-07-14 16:52:07 +000024914int
24915main ()
24916{
24917
24918 ;
24919 return 0;
24920}
24921_ACEOF
24922rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024923if { (ac_try="$ac_link"
24924case "(($ac_try" in
24925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24926 *) ac_try_echo=$ac_try;;
24927esac
24928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24929 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024930 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024931 grep -v '^ *+' conftest.er1 >conftest.err
24932 rm -f conftest.er1
24933 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024935 (exit $ac_status); } &&
24936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24937 { (case "(($ac_try" in
24938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24939 *) ac_try_echo=$ac_try;;
24940esac
24941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24942 (eval "$ac_try") 2>&5
24943 ac_status=$?
24944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945 (exit $ac_status); }; } &&
24946 { ac_try='test -s conftest$ac_exeext'
24947 { (case "(($ac_try" in
24948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24949 *) ac_try_echo=$ac_try;;
24950esac
24951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24952 (eval "$ac_try") 2>&5
24953 ac_status=$?
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024956
24957aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24958}'`
24959# Check for a 64-bit object if we didn't find anything.
24960if 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; }
24961}'`; fi
24962else
24963 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024964sed 's/^/| /' conftest.$ac_ext >&5
24965
Reid Spencera773bd52006-08-04 18:18:08 +000024966
John Criswell47fdd832003-07-14 16:52:07 +000024967fi
Reid Spencera773bd52006-08-04 18:18:08 +000024968
Bill Wendlingebcceee2009-04-18 11:20:33 +000024969rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024970 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024971if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24972
24973 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024974 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 +000024975 else
24976 if test "$host_cpu" = ia64; then
24977 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24978 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024979 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 +000024980 else
24981 # Determine the default libpath from the value encoded in an empty executable.
24982 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024983/* confdefs.h. */
24984_ACEOF
24985cat confdefs.h >>conftest.$ac_ext
24986cat >>conftest.$ac_ext <<_ACEOF
24987/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024988
John Criswell47fdd832003-07-14 16:52:07 +000024989int
24990main ()
24991{
24992
24993 ;
24994 return 0;
24995}
24996_ACEOF
24997rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024998if { (ac_try="$ac_link"
24999case "(($ac_try" in
25000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001 *) ac_try_echo=$ac_try;;
25002esac
25003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000025005 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025006 grep -v '^ *+' conftest.er1 >conftest.err
25007 rm -f conftest.er1
25008 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000025009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000025010 (exit $ac_status); } &&
25011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25012 { (case "(($ac_try" in
25013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014 *) ac_try_echo=$ac_try;;
25015esac
25016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25017 (eval "$ac_try") 2>&5
25018 ac_status=$?
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); }; } &&
25021 { ac_try='test -s conftest$ac_exeext'
25022 { (case "(($ac_try" in
25023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25024 *) ac_try_echo=$ac_try;;
25025esac
25026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25027 (eval "$ac_try") 2>&5
25028 ac_status=$?
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000025031
25032aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
25033}'`
25034# Check for a 64-bit object if we didn't find anything.
25035if 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; }
25036}'`; fi
25037else
25038 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025039sed 's/^/| /' conftest.$ac_ext >&5
25040
Reid Spencera773bd52006-08-04 18:18:08 +000025041
John Criswell47fdd832003-07-14 16:52:07 +000025042fi
Reid Spencera773bd52006-08-04 18:18:08 +000025043
Bill Wendlingebcceee2009-04-18 11:20:33 +000025044rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025045 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000025046if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
25047
25048 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
25049 # Warning - without using the other run time loading flags,
25050 # -berok will link without error, but may produce a broken library.
25051 no_undefined_flag_GCJ=' ${wl}-bernotok'
25052 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000025053 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000025054 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000025055 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000025056 # This is similar to how AIX traditionally builds its shared libraries.
25057 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 +000025058 fi
25059 fi
25060 ;;
25061
25062 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000025063 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 +000025064 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25065 hardcode_minus_L_GCJ=yes
25066 # see comment about different semantics on the GNU ld section
25067 ld_shlibs_GCJ=no
25068 ;;
25069
Reid Spencer2706f8c2004-09-19 23:53:36 +000025070 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025071 export_dynamic_flag_spec_GCJ=-rdynamic
25072 ;;
25073
25074 cygwin* | mingw* | pw32*)
25075 # When not using gcc, we currently assume that we are using
25076 # Microsoft Visual C++.
25077 # hardcode_libdir_flag_spec is actually meaningless, as there is
25078 # no search path for DLLs.
25079 hardcode_libdir_flag_spec_GCJ=' '
25080 allow_undefined_flag_GCJ=unsupported
25081 # Tell ltmain to make .lib files, not .a files.
25082 libext=lib
25083 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025084 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025085 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025086 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 +000025087 # The linker will automatically build a .lib file if we build a DLL.
25088 old_archive_From_new_cmds_GCJ='true'
25089 # FIXME: Should let the user specify the lib program.
25090 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025091 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025092 enable_shared_with_static_runtimes_GCJ=yes
25093 ;;
25094
25095 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025096 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025097 rhapsody* | darwin1.[012])
25098 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25099 ;;
25100 *) # Darwin 1.3 on
25101 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25102 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25103 else
25104 case ${MACOSX_DEPLOYMENT_TARGET} in
25105 10.[012])
25106 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25107 ;;
25108 10.*)
25109 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25110 ;;
25111 esac
25112 fi
25113 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025114 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025115 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025116 hardcode_direct_GCJ=no
25117 hardcode_automatic_GCJ=yes
25118 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025119 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025120 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025121 if test "$GCC" = yes ; then
25122 output_verbose_link_cmd='echo'
25123 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25124 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025125 # 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 +000025126 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}'
25127 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 +000025128 else
Reid Spencera773bd52006-08-04 18:18:08 +000025129 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025130 xlc*)
25131 output_verbose_link_cmd='echo'
25132 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25133 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025134 # 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 +000025135 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}'
25136 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 +000025137 ;;
25138 *)
25139 ld_shlibs_GCJ=no
25140 ;;
25141 esac
John Criswell47fdd832003-07-14 16:52:07 +000025142 fi
25143 ;;
25144
25145 dgux*)
25146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25147 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25148 hardcode_shlibpath_var_GCJ=no
25149 ;;
25150
25151 freebsd1*)
25152 ld_shlibs_GCJ=no
25153 ;;
25154
25155 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25156 # support. Future versions do this automatically, but an explicit c++rt0.o
25157 # does not break anything, and helps significantly (at the cost of a little
25158 # extra space).
25159 freebsd2.2*)
25160 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25161 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25162 hardcode_direct_GCJ=yes
25163 hardcode_shlibpath_var_GCJ=no
25164 ;;
25165
25166 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25167 freebsd2*)
25168 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25169 hardcode_direct_GCJ=yes
25170 hardcode_minus_L_GCJ=yes
25171 hardcode_shlibpath_var_GCJ=no
25172 ;;
25173
25174 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025175 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025176 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25177 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25178 hardcode_direct_GCJ=yes
25179 hardcode_shlibpath_var_GCJ=no
25180 ;;
25181
25182 hpux9*)
25183 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025184 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 +000025185 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025186 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 +000025187 fi
25188 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25189 hardcode_libdir_separator_GCJ=:
25190 hardcode_direct_GCJ=yes
25191
25192 # hardcode_minus_L: Not really in the search PATH,
25193 # but as the default location of the library.
25194 hardcode_minus_L_GCJ=yes
25195 export_dynamic_flag_spec_GCJ='${wl}-E'
25196 ;;
25197
Reid Spencera773bd52006-08-04 18:18:08 +000025198 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025199 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025200 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25201 else
25202 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25203 fi
25204 if test "$with_gnu_ld" = no; then
25205 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25206 hardcode_libdir_separator_GCJ=:
25207
25208 hardcode_direct_GCJ=yes
25209 export_dynamic_flag_spec_GCJ='${wl}-E'
25210
25211 # hardcode_minus_L: Not really in the search PATH,
25212 # but as the default location of the library.
25213 hardcode_minus_L_GCJ=yes
25214 fi
25215 ;;
25216
25217 hpux11*)
25218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25219 case $host_cpu in
25220 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025221 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25222 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025223 ia64*)
25224 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25225 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025226 *)
25227 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25228 ;;
25229 esac
25230 else
Reid Spencera773bd52006-08-04 18:18:08 +000025231 case $host_cpu in
25232 hppa*64*)
25233 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25234 ;;
25235 ia64*)
25236 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025237 ;;
25238 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025239 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 +000025240 ;;
25241 esac
25242 fi
25243 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025244 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25245 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025246
Reid Spencera773bd52006-08-04 18:18:08 +000025247 case $host_cpu in
25248 hppa*64*|ia64*)
25249 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25250 hardcode_direct_GCJ=no
25251 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025252 ;;
25253 *)
John Criswell47fdd832003-07-14 16:52:07 +000025254 hardcode_direct_GCJ=yes
25255 export_dynamic_flag_spec_GCJ='${wl}-E'
25256
25257 # hardcode_minus_L: Not really in the search PATH,
25258 # but as the default location of the library.
25259 hardcode_minus_L_GCJ=yes
25260 ;;
25261 esac
25262 fi
25263 ;;
25264
25265 irix5* | irix6* | nonstopux*)
25266 if test "$GCC" = yes; then
25267 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'
25268 else
25269 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'
25270 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25271 fi
25272 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25273 hardcode_libdir_separator_GCJ=:
25274 link_all_deplibs_GCJ=yes
25275 ;;
25276
25277 netbsd*)
25278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25279 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25280 else
25281 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25282 fi
25283 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25284 hardcode_direct_GCJ=yes
25285 hardcode_shlibpath_var_GCJ=no
25286 ;;
25287
25288 newsos6)
25289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25290 hardcode_direct_GCJ=yes
25291 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25292 hardcode_libdir_separator_GCJ=:
25293 hardcode_shlibpath_var_GCJ=no
25294 ;;
25295
25296 openbsd*)
25297 hardcode_direct_GCJ=yes
25298 hardcode_shlibpath_var_GCJ=no
25299 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25300 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025301 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 +000025302 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25303 export_dynamic_flag_spec_GCJ='${wl}-E'
25304 else
25305 case $host_os in
25306 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25307 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25308 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25309 ;;
25310 *)
25311 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25312 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25313 ;;
25314 esac
25315 fi
25316 ;;
25317
25318 os2*)
25319 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25320 hardcode_minus_L_GCJ=yes
25321 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025322 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 +000025323 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25324 ;;
25325
25326 osf3*)
25327 if test "$GCC" = yes; then
25328 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25329 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'
25330 else
25331 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25332 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'
25333 fi
25334 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25335 hardcode_libdir_separator_GCJ=:
25336 ;;
25337
25338 osf4* | osf5*) # as osf3* with the addition of -msym flag
25339 if test "$GCC" = yes; then
25340 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25341 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'
25342 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25343 else
25344 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25345 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 +000025346 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 +000025347 $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 +000025348
John Criswell47fdd832003-07-14 16:52:07 +000025349 # Both c and cxx compiler support -rpath directly
25350 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25351 fi
25352 hardcode_libdir_separator_GCJ=:
25353 ;;
25354
John Criswell47fdd832003-07-14 16:52:07 +000025355 solaris*)
25356 no_undefined_flag_GCJ=' -z text'
25357 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025358 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025359 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025360 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25361 $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 +000025362 else
Reid Spencera773bd52006-08-04 18:18:08 +000025363 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025364 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025365 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25366 $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 +000025367 fi
25368 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25369 hardcode_shlibpath_var_GCJ=no
25370 case $host_os in
25371 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025372 *)
25373 # The compiler driver will combine linker options so we
25374 # cannot just pass the convience library names through
25375 # without $wl, iff we do not link with $LD.
25376 # Luckily, gcc supports the same syntax we need for Sun Studio.
25377 # Supported since Solaris 2.6 (maybe 2.5.1?)
25378 case $wlarc in
25379 '')
25380 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25381 *)
25382 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' ;;
25383 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025384 esac
25385 link_all_deplibs_GCJ=yes
25386 ;;
25387
25388 sunos4*)
25389 if test "x$host_vendor" = xsequent; then
25390 # Use $CC to link under sequent, because it throws in some extra .o
25391 # files that make .init and .fini sections work.
25392 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25393 else
25394 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25395 fi
25396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25397 hardcode_direct_GCJ=yes
25398 hardcode_minus_L_GCJ=yes
25399 hardcode_shlibpath_var_GCJ=no
25400 ;;
25401
25402 sysv4)
25403 case $host_vendor in
25404 sni)
25405 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25406 hardcode_direct_GCJ=yes # is this really true???
25407 ;;
25408 siemens)
25409 ## LD is ld it makes a PLAMLIB
25410 ## CC just makes a GrossModule.
25411 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25412 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25413 hardcode_direct_GCJ=no
25414 ;;
25415 motorola)
25416 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25417 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25418 ;;
25419 esac
25420 runpath_var='LD_RUN_PATH'
25421 hardcode_shlibpath_var_GCJ=no
25422 ;;
25423
25424 sysv4.3*)
25425 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25426 hardcode_shlibpath_var_GCJ=no
25427 export_dynamic_flag_spec_GCJ='-Bexport'
25428 ;;
25429
25430 sysv4*MP*)
25431 if test -d /usr/nec; then
25432 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25433 hardcode_shlibpath_var_GCJ=no
25434 runpath_var=LD_RUN_PATH
25435 hardcode_runpath_var=yes
25436 ld_shlibs_GCJ=yes
25437 fi
25438 ;;
25439
Reid Spencera773bd52006-08-04 18:18:08 +000025440 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25441 no_undefined_flag_GCJ='${wl}-z,text'
25442 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025443 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025444 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025445
John Criswell47fdd832003-07-14 16:52:07 +000025446 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025447 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25448 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 +000025449 else
Reid Spencera773bd52006-08-04 18:18:08 +000025450 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25451 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 +000025452 fi
John Criswell47fdd832003-07-14 16:52:07 +000025453 ;;
25454
Reid Spencera773bd52006-08-04 18:18:08 +000025455 sysv5* | sco3.2v5* | sco5v6*)
25456 # Note: We can NOT use -z defs as we might desire, because we do not
25457 # link with -lc, and that would cause any symbols used from libc to
25458 # always be unresolved, which means just about no library would
25459 # ever link correctly. If we're not using GNU ld we use -z text
25460 # though, which does catch some bad symbols but isn't as heavy-handed
25461 # as -z defs.
25462 no_undefined_flag_GCJ='${wl}-z,text'
25463 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25464 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025465 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025466 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25467 hardcode_libdir_separator_GCJ=':'
25468 link_all_deplibs_GCJ=yes
25469 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025470 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025471
25472 if test "$GCC" = yes; then
25473 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25474 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25475 else
25476 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25477 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25478 fi
John Criswell47fdd832003-07-14 16:52:07 +000025479 ;;
25480
25481 uts4*)
25482 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25483 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25484 hardcode_shlibpath_var_GCJ=no
25485 ;;
25486
25487 *)
25488 ld_shlibs_GCJ=no
25489 ;;
25490 esac
25491 fi
25492
Reid Spencera773bd52006-08-04 18:18:08 +000025493{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25494echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025495test "$ld_shlibs_GCJ" = no && can_build_shared=no
25496
John Criswell47fdd832003-07-14 16:52:07 +000025497#
25498# Do we need to explicitly link libc?
25499#
25500case "x$archive_cmds_need_lc_GCJ" in
25501x|xyes)
25502 # Assume -lc should be added
25503 archive_cmds_need_lc_GCJ=yes
25504
25505 if test "$enable_shared" = yes && test "$GCC" = yes; then
25506 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025507 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025508 # FIXME: we may have to deal with multi-command sequences.
25509 ;;
25510 '$CC '*)
25511 # Test whether the compiler implicitly links with -lc since on some
25512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25513 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025514 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25515echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025516 $rm conftest*
25517 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25518
25519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25520 (eval $ac_compile) 2>&5
25521 ac_status=$?
25522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523 (exit $ac_status); } 2>conftest.err; then
25524 soname=conftest
25525 lib=conftest
25526 libobjs=conftest.$ac_objext
25527 deplibs=
25528 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025529 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025530 compiler_flags=-v
25531 linker_flags=-v
25532 verstring=
25533 output_objdir=.
25534 libname=conftest
25535 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25536 allow_undefined_flag_GCJ=
25537 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25538 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25539 ac_status=$?
25540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541 (exit $ac_status); }
25542 then
25543 archive_cmds_need_lc_GCJ=no
25544 else
25545 archive_cmds_need_lc_GCJ=yes
25546 fi
25547 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25548 else
25549 cat conftest.err 1>&5
25550 fi
25551 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025552 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25553echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025554 ;;
25555 esac
25556 fi
25557 ;;
25558esac
25559
Reid Spencera773bd52006-08-04 18:18:08 +000025560{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25561echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025562library_names_spec=
25563libname_spec='lib$name'
25564soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025565shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025566postinstall_cmds=
25567postuninstall_cmds=
25568finish_cmds=
25569finish_eval=
25570shlibpath_var=
25571shlibpath_overrides_runpath=unknown
25572version_type=none
25573dynamic_linker="$host_os ld.so"
25574sys_lib_dlsearch_path_spec="/lib /usr/lib"
25575if test "$GCC" = yes; then
25576 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25577 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25578 # if the path contains ";" then we assume it to be the separator
25579 # otherwise default to the standard path separator (i.e. ":") - it is
25580 # assumed that no part of a normal pathname contains ";" but that should
25581 # okay in the real world where ";" in dirpaths is itself problematic.
25582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25583 else
25584 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25585 fi
25586else
25587 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25588fi
25589need_lib_prefix=unknown
25590hardcode_into_libs=no
25591
25592# when you set need_version to no, make sure it does not cause -set_version
25593# flags to be left without arguments
25594need_version=unknown
25595
25596case $host_os in
25597aix3*)
25598 version_type=linux
25599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25600 shlibpath_var=LIBPATH
25601
25602 # AIX 3 has no versioning support, so we append a major version to the name.
25603 soname_spec='${libname}${release}${shared_ext}$major'
25604 ;;
25605
25606aix4* | aix5*)
25607 version_type=linux
25608 need_lib_prefix=no
25609 need_version=no
25610 hardcode_into_libs=yes
25611 if test "$host_cpu" = ia64; then
25612 # AIX 5 supports IA64
25613 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25614 shlibpath_var=LD_LIBRARY_PATH
25615 else
25616 # With GCC up to 2.95.x, collect2 would create an import file
25617 # for dependence libraries. The import file would start with
25618 # the line `#! .'. This would cause the generated library to
25619 # depend on `.', always an invalid library. This was fixed in
25620 # development snapshots of GCC prior to 3.0.
25621 case $host_os in
25622 aix4 | aix4.[01] | aix4.[01].*)
25623 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25624 echo ' yes '
25625 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25626 :
25627 else
25628 can_build_shared=no
25629 fi
25630 ;;
25631 esac
25632 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25633 # soname into executable. Probably we can add versioning support to
25634 # collect2, so additional links can be useful in future.
25635 if test "$aix_use_runtimelinking" = yes; then
25636 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25637 # instead of lib<name>.a to let people know that these are not
25638 # typical AIX shared libraries.
25639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25640 else
25641 # We preserve .a as extension for shared libraries through AIX4.2
25642 # and later when we are not doing run time linking.
25643 library_names_spec='${libname}${release}.a $libname.a'
25644 soname_spec='${libname}${release}${shared_ext}$major'
25645 fi
25646 shlibpath_var=LIBPATH
25647 fi
25648 ;;
25649
25650amigaos*)
25651 library_names_spec='$libname.ixlibrary $libname.a'
25652 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025653 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 +000025654 ;;
25655
25656beos*)
25657 library_names_spec='${libname}${shared_ext}'
25658 dynamic_linker="$host_os ld.so"
25659 shlibpath_var=LIBRARY_PATH
25660 ;;
25661
Reid Spencer2706f8c2004-09-19 23:53:36 +000025662bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025663 version_type=linux
25664 need_version=no
25665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25666 soname_spec='${libname}${release}${shared_ext}$major'
25667 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25668 shlibpath_var=LD_LIBRARY_PATH
25669 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25670 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25671 # the default ld.so.conf also contains /usr/contrib/lib and
25672 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25673 # libtool to hard-code these into programs
25674 ;;
25675
25676cygwin* | mingw* | pw32*)
25677 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025678 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025679 need_version=no
25680 need_lib_prefix=no
25681
25682 case $GCC,$host_os in
25683 yes,cygwin* | yes,mingw* | yes,pw32*)
25684 library_names_spec='$libname.dll.a'
25685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025686 postinstall_cmds='base_file=`basename \${file}`~
25687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25688 dldir=$destdir/`dirname \$dlpath`~
25689 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025690 $install_prog $dir/$dlname \$dldir/$dlname~
25691 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25693 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025694 $rm \$dlpath'
25695 shlibpath_overrides_runpath=yes
25696
25697 case $host_os in
25698 cygwin*)
25699 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25700 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 +000025701 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025702 ;;
25703 mingw*)
25704 # MinGW DLLs use traditional 'lib' prefix
25705 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25706 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25707 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25708 # It is most probably a Windows format PATH printed by
25709 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25710 # path with ; separators, and with drive letters. We can handle the
25711 # drive letters (cygwin fileutils understands them), so leave them,
25712 # especially as we might pass files found there to a mingw objdump,
25713 # which wouldn't understand a cygwinified path. Ahh.
25714 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25715 else
25716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25717 fi
25718 ;;
25719 pw32*)
25720 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025721 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 +000025722 ;;
25723 esac
25724 ;;
25725
25726 *)
25727 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25728 ;;
25729 esac
25730 dynamic_linker='Win32 ld.exe'
25731 # FIXME: first we should search . and the directory the executable is in
25732 shlibpath_var=PATH
25733 ;;
25734
25735darwin* | rhapsody*)
25736 dynamic_linker="$host_os dyld"
25737 version_type=darwin
25738 need_lib_prefix=no
25739 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025740 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025741 soname_spec='${libname}${release}${major}$shared_ext'
25742 shlibpath_overrides_runpath=yes
25743 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025744 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025745 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025746 if test "$GCC" = yes; then
25747 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"`
25748 else
25749 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025750 fi
25751 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25752 ;;
25753
25754dgux*)
25755 version_type=linux
25756 need_lib_prefix=no
25757 need_version=no
25758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25759 soname_spec='${libname}${release}${shared_ext}$major'
25760 shlibpath_var=LD_LIBRARY_PATH
25761 ;;
25762
25763freebsd1*)
25764 dynamic_linker=no
25765 ;;
25766
Reid Spencer2706f8c2004-09-19 23:53:36 +000025767kfreebsd*-gnu)
25768 version_type=linux
25769 need_lib_prefix=no
25770 need_version=no
25771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25772 soname_spec='${libname}${release}${shared_ext}$major'
25773 shlibpath_var=LD_LIBRARY_PATH
25774 shlibpath_overrides_runpath=no
25775 hardcode_into_libs=yes
25776 dynamic_linker='GNU ld.so'
25777 ;;
25778
Reid Spencera773bd52006-08-04 18:18:08 +000025779freebsd* | dragonfly*)
25780 # DragonFly does not have aout. When/if they implement a new
25781 # versioning mechanism, adjust this.
25782 if test -x /usr/bin/objformat; then
25783 objformat=`/usr/bin/objformat`
25784 else
25785 case $host_os in
25786 freebsd[123]*) objformat=aout ;;
25787 *) objformat=elf ;;
25788 esac
25789 fi
John Criswell47fdd832003-07-14 16:52:07 +000025790 version_type=freebsd-$objformat
25791 case $version_type in
25792 freebsd-elf*)
25793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25794 need_version=no
25795 need_lib_prefix=no
25796 ;;
25797 freebsd-*)
25798 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25799 need_version=yes
25800 ;;
25801 esac
25802 shlibpath_var=LD_LIBRARY_PATH
25803 case $host_os in
25804 freebsd2*)
25805 shlibpath_overrides_runpath=yes
25806 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025807 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025808 shlibpath_overrides_runpath=yes
25809 hardcode_into_libs=yes
25810 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025811 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25812 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025813 shlibpath_overrides_runpath=no
25814 hardcode_into_libs=yes
25815 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025816 freebsd*) # from 4.6 on
25817 shlibpath_overrides_runpath=yes
25818 hardcode_into_libs=yes
25819 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025820 esac
25821 ;;
25822
25823gnu*)
25824 version_type=linux
25825 need_lib_prefix=no
25826 need_version=no
25827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25828 soname_spec='${libname}${release}${shared_ext}$major'
25829 shlibpath_var=LD_LIBRARY_PATH
25830 hardcode_into_libs=yes
25831 ;;
25832
25833hpux9* | hpux10* | hpux11*)
25834 # Give a soname corresponding to the major version so that dld.sl refuses to
25835 # link against other versions.
25836 version_type=sunos
25837 need_lib_prefix=no
25838 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025839 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025840 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025841 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025842 hardcode_into_libs=yes
25843 dynamic_linker="$host_os dld.so"
25844 shlibpath_var=LD_LIBRARY_PATH
25845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25847 soname_spec='${libname}${release}${shared_ext}$major'
25848 if test "X$HPUX_IA64_MODE" = X32; then
25849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25850 else
25851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25852 fi
25853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25854 ;;
25855 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025856 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025857 hardcode_into_libs=yes
25858 dynamic_linker="$host_os dld.sl"
25859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25862 soname_spec='${libname}${release}${shared_ext}$major'
25863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25865 ;;
25866 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025867 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025868 dynamic_linker="$host_os dld.sl"
25869 shlibpath_var=SHLIB_PATH
25870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25872 soname_spec='${libname}${release}${shared_ext}$major'
25873 ;;
25874 esac
25875 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25876 postinstall_cmds='chmod 555 $lib'
25877 ;;
25878
Reid Spencera773bd52006-08-04 18:18:08 +000025879interix3*)
25880 version_type=linux
25881 need_lib_prefix=no
25882 need_version=no
25883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25884 soname_spec='${libname}${release}${shared_ext}$major'
25885 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25886 shlibpath_var=LD_LIBRARY_PATH
25887 shlibpath_overrides_runpath=no
25888 hardcode_into_libs=yes
25889 ;;
25890
John Criswell47fdd832003-07-14 16:52:07 +000025891irix5* | irix6* | nonstopux*)
25892 case $host_os in
25893 nonstopux*) version_type=nonstopux ;;
25894 *)
25895 if test "$lt_cv_prog_gnu_ld" = yes; then
25896 version_type=linux
25897 else
25898 version_type=irix
25899 fi ;;
25900 esac
25901 need_lib_prefix=no
25902 need_version=no
25903 soname_spec='${libname}${release}${shared_ext}$major'
25904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25905 case $host_os in
25906 irix5* | nonstopux*)
25907 libsuff= shlibsuff=
25908 ;;
25909 *)
25910 case $LD in # libtool.m4 will add one of these switches to LD
25911 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25912 libsuff= shlibsuff= libmagic=32-bit;;
25913 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25914 libsuff=32 shlibsuff=N32 libmagic=N32;;
25915 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25916 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25917 *) libsuff= shlibsuff= libmagic=never-match;;
25918 esac
25919 ;;
25920 esac
25921 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25922 shlibpath_overrides_runpath=no
25923 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25924 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25925 hardcode_into_libs=yes
25926 ;;
25927
25928# No shared lib support for Linux oldld, aout, or coff.
25929linux*oldld* | linux*aout* | linux*coff*)
25930 dynamic_linker=no
25931 ;;
25932
25933# This must be Linux ELF.
25934linux*)
25935 version_type=linux
25936 need_lib_prefix=no
25937 need_version=no
25938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25939 soname_spec='${libname}${release}${shared_ext}$major'
25940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25941 shlibpath_var=LD_LIBRARY_PATH
25942 shlibpath_overrides_runpath=no
25943 # This implies no fast_install, which is unacceptable.
25944 # Some rework will be needed to allow for fast_install
25945 # before this can be enabled.
25946 hardcode_into_libs=yes
25947
Reid Spencer2706f8c2004-09-19 23:53:36 +000025948 # Append ld.so.conf contents to the search path
25949 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025950 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 +000025951 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25952 fi
25953
John Criswell47fdd832003-07-14 16:52:07 +000025954 # We used to test for /lib/ld.so.1 and disable shared libraries on
25955 # powerpc, because MkLinux only supported shared libraries with the
25956 # GNU dynamic linker. Since this was broken with cross compilers,
25957 # most powerpc-linux boxes support dynamic linking these days and
25958 # people can always --disable-shared, the test was removed, and we
25959 # assume the GNU/Linux dynamic linker is in use.
25960 dynamic_linker='GNU/Linux ld.so'
25961 ;;
25962
Reid Spencer2706f8c2004-09-19 23:53:36 +000025963knetbsd*-gnu)
25964 version_type=linux
25965 need_lib_prefix=no
25966 need_version=no
25967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25968 soname_spec='${libname}${release}${shared_ext}$major'
25969 shlibpath_var=LD_LIBRARY_PATH
25970 shlibpath_overrides_runpath=no
25971 hardcode_into_libs=yes
25972 dynamic_linker='GNU ld.so'
25973 ;;
25974
John Criswell47fdd832003-07-14 16:52:07 +000025975netbsd*)
25976 version_type=sunos
25977 need_lib_prefix=no
25978 need_version=no
25979 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25982 dynamic_linker='NetBSD (a.out) ld.so'
25983 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025985 soname_spec='${libname}${release}${shared_ext}$major'
25986 dynamic_linker='NetBSD ld.elf_so'
25987 fi
25988 shlibpath_var=LD_LIBRARY_PATH
25989 shlibpath_overrides_runpath=yes
25990 hardcode_into_libs=yes
25991 ;;
25992
25993newsos6)
25994 version_type=linux
25995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25996 shlibpath_var=LD_LIBRARY_PATH
25997 shlibpath_overrides_runpath=yes
25998 ;;
25999
Reid Spencer2706f8c2004-09-19 23:53:36 +000026000nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000026001 version_type=linux
26002 need_lib_prefix=no
26003 need_version=no
26004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26005 soname_spec='${libname}${release}${shared_ext}$major'
26006 shlibpath_var=LD_LIBRARY_PATH
26007 shlibpath_overrides_runpath=yes
26008 ;;
26009
26010openbsd*)
26011 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000026012 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000026013 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000026014 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
26015 case $host_os in
26016 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
26017 *) need_version=no ;;
26018 esac
John Criswell47fdd832003-07-14 16:52:07 +000026019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
26021 shlibpath_var=LD_LIBRARY_PATH
26022 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26023 case $host_os in
26024 openbsd2.[89] | openbsd2.[89].*)
26025 shlibpath_overrides_runpath=no
26026 ;;
26027 *)
26028 shlibpath_overrides_runpath=yes
26029 ;;
26030 esac
26031 else
26032 shlibpath_overrides_runpath=yes
26033 fi
26034 ;;
26035
26036os2*)
26037 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000026038 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000026039 need_lib_prefix=no
26040 library_names_spec='$libname${shared_ext} $libname.a'
26041 dynamic_linker='OS/2 ld.exe'
26042 shlibpath_var=LIBPATH
26043 ;;
26044
26045osf3* | osf4* | osf5*)
26046 version_type=osf
26047 need_lib_prefix=no
26048 need_version=no
26049 soname_spec='${libname}${release}${shared_ext}$major'
26050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26051 shlibpath_var=LD_LIBRARY_PATH
26052 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
26053 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
26054 ;;
26055
John Criswell47fdd832003-07-14 16:52:07 +000026056solaris*)
26057 version_type=linux
26058 need_lib_prefix=no
26059 need_version=no
26060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26061 soname_spec='${libname}${release}${shared_ext}$major'
26062 shlibpath_var=LD_LIBRARY_PATH
26063 shlibpath_overrides_runpath=yes
26064 hardcode_into_libs=yes
26065 # ldd complains unless libraries are executable
26066 postinstall_cmds='chmod +x $lib'
26067 ;;
26068
26069sunos4*)
26070 version_type=sunos
26071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26072 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26073 shlibpath_var=LD_LIBRARY_PATH
26074 shlibpath_overrides_runpath=yes
26075 if test "$with_gnu_ld" = yes; then
26076 need_lib_prefix=no
26077 fi
26078 need_version=yes
26079 ;;
26080
Reid Spencera773bd52006-08-04 18:18:08 +000026081sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026082 version_type=linux
26083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26084 soname_spec='${libname}${release}${shared_ext}$major'
26085 shlibpath_var=LD_LIBRARY_PATH
26086 case $host_vendor in
26087 sni)
26088 shlibpath_overrides_runpath=no
26089 need_lib_prefix=no
26090 export_dynamic_flag_spec='${wl}-Blargedynsym'
26091 runpath_var=LD_RUN_PATH
26092 ;;
26093 siemens)
26094 need_lib_prefix=no
26095 ;;
26096 motorola)
26097 need_lib_prefix=no
26098 need_version=no
26099 shlibpath_overrides_runpath=no
26100 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26101 ;;
26102 esac
26103 ;;
26104
26105sysv4*MP*)
26106 if test -d /usr/nec ;then
26107 version_type=linux
26108 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26109 soname_spec='$libname${shared_ext}.$major'
26110 shlibpath_var=LD_LIBRARY_PATH
26111 fi
26112 ;;
26113
Reid Spencera773bd52006-08-04 18:18:08 +000026114sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26115 version_type=freebsd-elf
26116 need_lib_prefix=no
26117 need_version=no
26118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26119 soname_spec='${libname}${release}${shared_ext}$major'
26120 shlibpath_var=LD_LIBRARY_PATH
26121 hardcode_into_libs=yes
26122 if test "$with_gnu_ld" = yes; then
26123 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26124 shlibpath_overrides_runpath=no
26125 else
26126 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26127 shlibpath_overrides_runpath=yes
26128 case $host_os in
26129 sco3.2v5*)
26130 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26131 ;;
26132 esac
26133 fi
26134 sys_lib_dlsearch_path_spec='/usr/lib'
26135 ;;
26136
John Criswell47fdd832003-07-14 16:52:07 +000026137uts4*)
26138 version_type=linux
26139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26140 soname_spec='${libname}${release}${shared_ext}$major'
26141 shlibpath_var=LD_LIBRARY_PATH
26142 ;;
26143
26144*)
26145 dynamic_linker=no
26146 ;;
26147esac
Reid Spencera773bd52006-08-04 18:18:08 +000026148{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26149echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026150test "$dynamic_linker" = no && can_build_shared=no
26151
Reid Spencera773bd52006-08-04 18:18:08 +000026152variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26153if test "$GCC" = yes; then
26154 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26155fi
26156
26157{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26158echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026159hardcode_action_GCJ=
26160if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26161 test -n "$runpath_var_GCJ" || \
26162 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26163
26164 # We can hardcode non-existant directories.
26165 if test "$hardcode_direct_GCJ" != no &&
26166 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26167 # have to relink, otherwise we might link with an installed library
26168 # when we should be linking with a yet-to-be-installed one
26169 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26170 test "$hardcode_minus_L_GCJ" != no; then
26171 # Linking always hardcodes the temporary library directory.
26172 hardcode_action_GCJ=relink
26173 else
26174 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26175 hardcode_action_GCJ=immediate
26176 fi
26177else
26178 # We cannot hardcode anything, or else we can only hardcode existing
26179 # directories.
26180 hardcode_action_GCJ=unsupported
26181fi
Reid Spencera773bd52006-08-04 18:18:08 +000026182{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26183echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026184
26185if test "$hardcode_action_GCJ" = relink; then
26186 # Fast installation is not supported
26187 enable_fast_install=no
26188elif test "$shlibpath_overrides_runpath" = yes ||
26189 test "$enable_shared" = no; then
26190 # Fast installation is not necessary
26191 enable_fast_install=needless
26192fi
26193
John Criswell47fdd832003-07-14 16:52:07 +000026194
26195# The else clause should only fire when bootstrapping the
26196# libtool distribution, otherwise you forgot to ship ltmain.sh
26197# with your package, and you will get complaints that there are
26198# no rules to generate ltmain.sh.
26199if test -f "$ltmain"; then
26200 # See if we are running on zsh, and set the options which allow our commands through
26201 # without removal of \ escapes.
26202 if test -n "${ZSH_VERSION+set}" ; then
26203 setopt NO_GLOB_SUBST
26204 fi
26205 # Now quote all the things that may contain metacharacters while being
26206 # careful not to overquote the AC_SUBSTed values. We take copies of the
26207 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026208 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 +000026209 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026210 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26211 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26212 deplibs_check_method reload_flag reload_cmds need_locks \
26213 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26214 lt_cv_sys_global_symbol_to_c_name_address \
26215 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26216 old_postinstall_cmds old_postuninstall_cmds \
26217 compiler_GCJ \
26218 CC_GCJ \
26219 LD_GCJ \
26220 lt_prog_compiler_wl_GCJ \
26221 lt_prog_compiler_pic_GCJ \
26222 lt_prog_compiler_static_GCJ \
26223 lt_prog_compiler_no_builtin_flag_GCJ \
26224 export_dynamic_flag_spec_GCJ \
26225 thread_safe_flag_spec_GCJ \
26226 whole_archive_flag_spec_GCJ \
26227 enable_shared_with_static_runtimes_GCJ \
26228 old_archive_cmds_GCJ \
26229 old_archive_from_new_cmds_GCJ \
26230 predep_objects_GCJ \
26231 postdep_objects_GCJ \
26232 predeps_GCJ \
26233 postdeps_GCJ \
26234 compiler_lib_search_path_GCJ \
26235 archive_cmds_GCJ \
26236 archive_expsym_cmds_GCJ \
26237 postinstall_cmds_GCJ \
26238 postuninstall_cmds_GCJ \
26239 old_archive_from_expsyms_cmds_GCJ \
26240 allow_undefined_flag_GCJ \
26241 no_undefined_flag_GCJ \
26242 export_symbols_cmds_GCJ \
26243 hardcode_libdir_flag_spec_GCJ \
26244 hardcode_libdir_flag_spec_ld_GCJ \
26245 hardcode_libdir_separator_GCJ \
26246 hardcode_automatic_GCJ \
26247 module_cmds_GCJ \
26248 module_expsym_cmds_GCJ \
26249 lt_cv_prog_compiler_c_o_GCJ \
26250 exclude_expsyms_GCJ \
26251 include_expsyms_GCJ; do
26252
26253 case $var in
26254 old_archive_cmds_GCJ | \
26255 old_archive_from_new_cmds_GCJ | \
26256 archive_cmds_GCJ | \
26257 archive_expsym_cmds_GCJ | \
26258 module_cmds_GCJ | \
26259 module_expsym_cmds_GCJ | \
26260 old_archive_from_expsyms_cmds_GCJ | \
26261 export_symbols_cmds_GCJ | \
26262 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26263 postinstall_cmds | postuninstall_cmds | \
26264 old_postinstall_cmds | old_postuninstall_cmds | \
26265 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26266 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026267 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 +000026268 ;;
26269 *)
26270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26271 ;;
26272 esac
26273 done
26274
26275 case $lt_echo in
26276 *'\$0 --fallback-echo"')
26277 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26278 ;;
26279 esac
26280
26281cfgfile="$ofile"
26282
26283 cat <<__EOF__ >> "$cfgfile"
26284# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26285
26286# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26287
26288# Shell to use when invoking shell scripts.
26289SHELL=$lt_SHELL
26290
26291# Whether or not to build shared libraries.
26292build_libtool_libs=$enable_shared
26293
26294# Whether or not to build static libraries.
26295build_old_libs=$enable_static
26296
26297# Whether or not to add -lc for building shared libraries.
26298build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26299
26300# Whether or not to disallow shared libs when runtime libs are static
26301allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26302
26303# Whether or not to optimize for fast installation.
26304fast_install=$enable_fast_install
26305
26306# The host system.
26307host_alias=$host_alias
26308host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026309host_os=$host_os
26310
26311# The build system.
26312build_alias=$build_alias
26313build=$build
26314build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026315
26316# An echo program that does not interpret backslashes.
26317echo=$lt_echo
26318
26319# The archiver.
26320AR=$lt_AR
26321AR_FLAGS=$lt_AR_FLAGS
26322
26323# A C compiler.
26324LTCC=$lt_LTCC
26325
Reid Spencera773bd52006-08-04 18:18:08 +000026326# LTCC compiler flags.
26327LTCFLAGS=$lt_LTCFLAGS
26328
John Criswell47fdd832003-07-14 16:52:07 +000026329# A language-specific compiler.
26330CC=$lt_compiler_GCJ
26331
26332# Is the compiler the GNU C compiler?
26333with_gcc=$GCC_GCJ
26334
26335# An ERE matcher.
26336EGREP=$lt_EGREP
26337
26338# The linker used to build libraries.
26339LD=$lt_LD_GCJ
26340
26341# Whether we need hard or soft links.
26342LN_S=$lt_LN_S
26343
26344# A BSD-compatible nm program.
26345NM=$lt_NM
26346
26347# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026348STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026349
26350# Used to examine libraries when file_magic_cmd begins "file"
26351MAGIC_CMD=$MAGIC_CMD
26352
26353# Used on cygwin: DLL creation program.
26354DLLTOOL="$DLLTOOL"
26355
26356# Used on cygwin: object dumper.
26357OBJDUMP="$OBJDUMP"
26358
26359# Used on cygwin: assembler.
26360AS="$AS"
26361
26362# The name of the directory that contains temporary libtool files.
26363objdir=$objdir
26364
26365# How to create reloadable object files.
26366reload_flag=$lt_reload_flag
26367reload_cmds=$lt_reload_cmds
26368
26369# How to pass a linker flag through the compiler.
26370wl=$lt_lt_prog_compiler_wl_GCJ
26371
26372# Object file suffix (normally "o").
26373objext="$ac_objext"
26374
26375# Old archive suffix (normally "a").
26376libext="$libext"
26377
26378# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026379shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026380
26381# Executable file suffix (normally "").
26382exeext="$exeext"
26383
26384# Additional compiler flags for building library objects.
26385pic_flag=$lt_lt_prog_compiler_pic_GCJ
26386pic_mode=$pic_mode
26387
26388# What is the maximum length of a command?
26389max_cmd_len=$lt_cv_sys_max_cmd_len
26390
26391# Does compiler simultaneously support -c and -o options?
26392compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26393
Reid Spencera773bd52006-08-04 18:18:08 +000026394# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026395need_locks=$lt_need_locks
26396
26397# Do we need the lib prefix for modules?
26398need_lib_prefix=$need_lib_prefix
26399
26400# Do we need a version for libraries?
26401need_version=$need_version
26402
26403# Whether dlopen is supported.
26404dlopen_support=$enable_dlopen
26405
26406# Whether dlopen of programs is supported.
26407dlopen_self=$enable_dlopen_self
26408
26409# Whether dlopen of statically linked programs is supported.
26410dlopen_self_static=$enable_dlopen_self_static
26411
26412# Compiler flag to prevent dynamic linking.
26413link_static_flag=$lt_lt_prog_compiler_static_GCJ
26414
26415# Compiler flag to turn off builtin functions.
26416no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26417
26418# Compiler flag to allow reflexive dlopens.
26419export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26420
26421# Compiler flag to generate shared objects directly from archives.
26422whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26423
26424# Compiler flag to generate thread-safe objects.
26425thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26426
26427# Library versioning type.
26428version_type=$version_type
26429
26430# Format of library name prefix.
26431libname_spec=$lt_libname_spec
26432
26433# List of archive names. First name is the real one, the rest are links.
26434# The last name is the one that the linker finds with -lNAME.
26435library_names_spec=$lt_library_names_spec
26436
26437# The coded name of the library, if different from the real name.
26438soname_spec=$lt_soname_spec
26439
26440# Commands used to build and install an old-style archive.
26441RANLIB=$lt_RANLIB
26442old_archive_cmds=$lt_old_archive_cmds_GCJ
26443old_postinstall_cmds=$lt_old_postinstall_cmds
26444old_postuninstall_cmds=$lt_old_postuninstall_cmds
26445
26446# Create an old-style archive from a shared archive.
26447old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26448
26449# Create a temporary old-style archive to link instead of a shared archive.
26450old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26451
26452# Commands used to build and install a shared archive.
26453archive_cmds=$lt_archive_cmds_GCJ
26454archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26455postinstall_cmds=$lt_postinstall_cmds
26456postuninstall_cmds=$lt_postuninstall_cmds
26457
26458# Commands used to build a loadable module (assumed same as above if empty)
26459module_cmds=$lt_module_cmds_GCJ
26460module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26461
26462# Commands to strip libraries.
26463old_striplib=$lt_old_striplib
26464striplib=$lt_striplib
26465
26466# Dependencies to place before the objects being linked to create a
26467# shared library.
26468predep_objects=$lt_predep_objects_GCJ
26469
26470# Dependencies to place after the objects being linked to create a
26471# shared library.
26472postdep_objects=$lt_postdep_objects_GCJ
26473
26474# Dependencies to place before the objects being linked to create a
26475# shared library.
26476predeps=$lt_predeps_GCJ
26477
26478# Dependencies to place after the objects being linked to create a
26479# shared library.
26480postdeps=$lt_postdeps_GCJ
26481
26482# The library search path used internally by the compiler when linking
26483# a shared library.
26484compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26485
26486# Method to check whether dependent libraries are shared objects.
26487deplibs_check_method=$lt_deplibs_check_method
26488
26489# Command to use when deplibs_check_method == file_magic.
26490file_magic_cmd=$lt_file_magic_cmd
26491
26492# Flag that allows shared libraries with undefined symbols to be built.
26493allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26494
26495# Flag that forces no undefined symbols.
26496no_undefined_flag=$lt_no_undefined_flag_GCJ
26497
26498# Commands used to finish a libtool library installation in a directory.
26499finish_cmds=$lt_finish_cmds
26500
26501# Same as above, but a single script fragment to be evaled but not shown.
26502finish_eval=$lt_finish_eval
26503
26504# Take the output of nm and produce a listing of raw symbols and C names.
26505global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26506
26507# Transform the output of nm in a proper C declaration
26508global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26509
26510# Transform the output of nm in a C name address pair
26511global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26512
26513# This is the shared library runtime path variable.
26514runpath_var=$runpath_var
26515
26516# This is the shared library path variable.
26517shlibpath_var=$shlibpath_var
26518
26519# Is shlibpath searched before the hard-coded library search path?
26520shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26521
26522# How to hardcode a shared library path into an executable.
26523hardcode_action=$hardcode_action_GCJ
26524
26525# Whether we should hardcode library paths into libraries.
26526hardcode_into_libs=$hardcode_into_libs
26527
26528# Flag to hardcode \$libdir into a binary during linking.
26529# This must work even if \$libdir does not exist.
26530hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26531
26532# If ld is used when linking, flag to hardcode \$libdir into
26533# a binary during linking. This must work even if \$libdir does
26534# not exist.
26535hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26536
26537# Whether we need a single -rpath flag with a separated argument.
26538hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26539
26540# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26541# resulting binary.
26542hardcode_direct=$hardcode_direct_GCJ
26543
26544# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26545# resulting binary.
26546hardcode_minus_L=$hardcode_minus_L_GCJ
26547
26548# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26549# the resulting binary.
26550hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26551
26552# Set to yes if building a shared library automatically hardcodes DIR into the library
26553# and all subsequent libraries and executables linked against it.
26554hardcode_automatic=$hardcode_automatic_GCJ
26555
26556# Variables whose values should be saved in libtool wrapper scripts and
26557# restored at relink time.
26558variables_saved_for_relink="$variables_saved_for_relink"
26559
26560# Whether libtool must link a program against all its dependency libraries.
26561link_all_deplibs=$link_all_deplibs_GCJ
26562
26563# Compile-time system search path for libraries
26564sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26565
26566# Run-time system search path for libraries
26567sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26568
26569# Fix the shell variable \$srcfile for the compiler.
26570fix_srcfile_path="$fix_srcfile_path_GCJ"
26571
26572# Set to yes if exported symbols are required.
26573always_export_symbols=$always_export_symbols_GCJ
26574
26575# The commands to list exported symbols.
26576export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26577
26578# The commands to extract the exported symbol list from a shared archive.
26579extract_expsyms_cmds=$lt_extract_expsyms_cmds
26580
26581# Symbols that should not be listed in the preloaded symbols.
26582exclude_expsyms=$lt_exclude_expsyms_GCJ
26583
26584# Symbols that must always be exported.
26585include_expsyms=$lt_include_expsyms_GCJ
26586
26587# ### END LIBTOOL TAG CONFIG: $tagname
26588
26589__EOF__
26590
26591
26592else
26593 # If there is no Makefile yet, we rely on a make rule to execute
26594 # `config.status --recheck' to rerun these tests and create the
26595 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026596 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26597 if test -f "$ltmain_in"; then
26598 test -f Makefile && make "$ltmain"
26599 fi
John Criswell47fdd832003-07-14 16:52:07 +000026600fi
26601
26602
26603ac_ext=c
26604ac_cpp='$CPP $CPPFLAGS'
26605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26607ac_compiler_gnu=$ac_cv_c_compiler_gnu
26608
26609CC="$lt_save_CC"
26610
26611 else
26612 tagname=""
26613 fi
26614 ;;
26615
26616 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026617 ac_ext=c
26618ac_cpp='$CPP $CPPFLAGS'
26619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26621ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026622
26623
26624# Source file extension for RC test sources.
26625ac_ext=rc
26626
26627# Object file extension for compiled RC test sources.
26628objext=o
26629objext_RC=$objext
26630
26631# Code to be used in simple compile tests
26632lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26633
26634# Code to be used in simple link tests
26635lt_simple_link_test_code="$lt_simple_compile_test_code"
26636
26637# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26638
26639# If no C compiler was specified, use CC.
26640LTCC=${LTCC-"$CC"}
26641
Reid Spencera773bd52006-08-04 18:18:08 +000026642# If no C compiler flags were specified, use CFLAGS.
26643LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26644
John Criswell47fdd832003-07-14 16:52:07 +000026645# Allow CC to be a program name with arguments.
26646compiler=$CC
26647
26648
Reid Spencera773bd52006-08-04 18:18:08 +000026649# save warnings/boilerplate of simple test code
26650ac_outfile=conftest.$ac_objext
26651printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26652eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26653_lt_compiler_boilerplate=`cat conftest.err`
26654$rm conftest*
26655
26656ac_outfile=conftest.$ac_objext
26657printf "$lt_simple_link_test_code" >conftest.$ac_ext
26658eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26659_lt_linker_boilerplate=`cat conftest.err`
26660$rm conftest*
26661
26662
John Criswell47fdd832003-07-14 16:52:07 +000026663# Allow CC to be a program name with arguments.
26664lt_save_CC="$CC"
26665CC=${RC-"windres"}
26666compiler=$CC
26667compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026668for cc_temp in $compiler""; do
26669 case $cc_temp in
26670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26672 \-*) ;;
26673 *) break;;
26674 esac
26675done
26676cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26677
John Criswell47fdd832003-07-14 16:52:07 +000026678lt_cv_prog_compiler_c_o_RC=yes
26679
26680# The else clause should only fire when bootstrapping the
26681# libtool distribution, otherwise you forgot to ship ltmain.sh
26682# with your package, and you will get complaints that there are
26683# no rules to generate ltmain.sh.
26684if test -f "$ltmain"; then
26685 # See if we are running on zsh, and set the options which allow our commands through
26686 # without removal of \ escapes.
26687 if test -n "${ZSH_VERSION+set}" ; then
26688 setopt NO_GLOB_SUBST
26689 fi
26690 # Now quote all the things that may contain metacharacters while being
26691 # careful not to overquote the AC_SUBSTed values. We take copies of the
26692 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026693 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 +000026694 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026695 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26696 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26697 deplibs_check_method reload_flag reload_cmds need_locks \
26698 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26699 lt_cv_sys_global_symbol_to_c_name_address \
26700 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26701 old_postinstall_cmds old_postuninstall_cmds \
26702 compiler_RC \
26703 CC_RC \
26704 LD_RC \
26705 lt_prog_compiler_wl_RC \
26706 lt_prog_compiler_pic_RC \
26707 lt_prog_compiler_static_RC \
26708 lt_prog_compiler_no_builtin_flag_RC \
26709 export_dynamic_flag_spec_RC \
26710 thread_safe_flag_spec_RC \
26711 whole_archive_flag_spec_RC \
26712 enable_shared_with_static_runtimes_RC \
26713 old_archive_cmds_RC \
26714 old_archive_from_new_cmds_RC \
26715 predep_objects_RC \
26716 postdep_objects_RC \
26717 predeps_RC \
26718 postdeps_RC \
26719 compiler_lib_search_path_RC \
26720 archive_cmds_RC \
26721 archive_expsym_cmds_RC \
26722 postinstall_cmds_RC \
26723 postuninstall_cmds_RC \
26724 old_archive_from_expsyms_cmds_RC \
26725 allow_undefined_flag_RC \
26726 no_undefined_flag_RC \
26727 export_symbols_cmds_RC \
26728 hardcode_libdir_flag_spec_RC \
26729 hardcode_libdir_flag_spec_ld_RC \
26730 hardcode_libdir_separator_RC \
26731 hardcode_automatic_RC \
26732 module_cmds_RC \
26733 module_expsym_cmds_RC \
26734 lt_cv_prog_compiler_c_o_RC \
26735 exclude_expsyms_RC \
26736 include_expsyms_RC; do
26737
26738 case $var in
26739 old_archive_cmds_RC | \
26740 old_archive_from_new_cmds_RC | \
26741 archive_cmds_RC | \
26742 archive_expsym_cmds_RC | \
26743 module_cmds_RC | \
26744 module_expsym_cmds_RC | \
26745 old_archive_from_expsyms_cmds_RC | \
26746 export_symbols_cmds_RC | \
26747 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26748 postinstall_cmds | postuninstall_cmds | \
26749 old_postinstall_cmds | old_postuninstall_cmds | \
26750 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26751 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026752 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 +000026753 ;;
26754 *)
26755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26756 ;;
26757 esac
26758 done
26759
26760 case $lt_echo in
26761 *'\$0 --fallback-echo"')
26762 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26763 ;;
26764 esac
26765
26766cfgfile="$ofile"
26767
26768 cat <<__EOF__ >> "$cfgfile"
26769# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26770
26771# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26772
26773# Shell to use when invoking shell scripts.
26774SHELL=$lt_SHELL
26775
26776# Whether or not to build shared libraries.
26777build_libtool_libs=$enable_shared
26778
26779# Whether or not to build static libraries.
26780build_old_libs=$enable_static
26781
26782# Whether or not to add -lc for building shared libraries.
26783build_libtool_need_lc=$archive_cmds_need_lc_RC
26784
26785# Whether or not to disallow shared libs when runtime libs are static
26786allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26787
26788# Whether or not to optimize for fast installation.
26789fast_install=$enable_fast_install
26790
26791# The host system.
26792host_alias=$host_alias
26793host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026794host_os=$host_os
26795
26796# The build system.
26797build_alias=$build_alias
26798build=$build
26799build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026800
26801# An echo program that does not interpret backslashes.
26802echo=$lt_echo
26803
26804# The archiver.
26805AR=$lt_AR
26806AR_FLAGS=$lt_AR_FLAGS
26807
26808# A C compiler.
26809LTCC=$lt_LTCC
26810
Reid Spencera773bd52006-08-04 18:18:08 +000026811# LTCC compiler flags.
26812LTCFLAGS=$lt_LTCFLAGS
26813
John Criswell47fdd832003-07-14 16:52:07 +000026814# A language-specific compiler.
26815CC=$lt_compiler_RC
26816
26817# Is the compiler the GNU C compiler?
26818with_gcc=$GCC_RC
26819
26820# An ERE matcher.
26821EGREP=$lt_EGREP
26822
26823# The linker used to build libraries.
26824LD=$lt_LD_RC
26825
26826# Whether we need hard or soft links.
26827LN_S=$lt_LN_S
26828
26829# A BSD-compatible nm program.
26830NM=$lt_NM
26831
26832# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026833STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026834
26835# Used to examine libraries when file_magic_cmd begins "file"
26836MAGIC_CMD=$MAGIC_CMD
26837
26838# Used on cygwin: DLL creation program.
26839DLLTOOL="$DLLTOOL"
26840
26841# Used on cygwin: object dumper.
26842OBJDUMP="$OBJDUMP"
26843
26844# Used on cygwin: assembler.
26845AS="$AS"
26846
26847# The name of the directory that contains temporary libtool files.
26848objdir=$objdir
26849
26850# How to create reloadable object files.
26851reload_flag=$lt_reload_flag
26852reload_cmds=$lt_reload_cmds
26853
26854# How to pass a linker flag through the compiler.
26855wl=$lt_lt_prog_compiler_wl_RC
26856
26857# Object file suffix (normally "o").
26858objext="$ac_objext"
26859
26860# Old archive suffix (normally "a").
26861libext="$libext"
26862
26863# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026864shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026865
26866# Executable file suffix (normally "").
26867exeext="$exeext"
26868
26869# Additional compiler flags for building library objects.
26870pic_flag=$lt_lt_prog_compiler_pic_RC
26871pic_mode=$pic_mode
26872
26873# What is the maximum length of a command?
26874max_cmd_len=$lt_cv_sys_max_cmd_len
26875
26876# Does compiler simultaneously support -c and -o options?
26877compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26878
Reid Spencera773bd52006-08-04 18:18:08 +000026879# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026880need_locks=$lt_need_locks
26881
26882# Do we need the lib prefix for modules?
26883need_lib_prefix=$need_lib_prefix
26884
26885# Do we need a version for libraries?
26886need_version=$need_version
26887
26888# Whether dlopen is supported.
26889dlopen_support=$enable_dlopen
26890
26891# Whether dlopen of programs is supported.
26892dlopen_self=$enable_dlopen_self
26893
26894# Whether dlopen of statically linked programs is supported.
26895dlopen_self_static=$enable_dlopen_self_static
26896
26897# Compiler flag to prevent dynamic linking.
26898link_static_flag=$lt_lt_prog_compiler_static_RC
26899
26900# Compiler flag to turn off builtin functions.
26901no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26902
26903# Compiler flag to allow reflexive dlopens.
26904export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26905
26906# Compiler flag to generate shared objects directly from archives.
26907whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26908
26909# Compiler flag to generate thread-safe objects.
26910thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26911
26912# Library versioning type.
26913version_type=$version_type
26914
26915# Format of library name prefix.
26916libname_spec=$lt_libname_spec
26917
26918# List of archive names. First name is the real one, the rest are links.
26919# The last name is the one that the linker finds with -lNAME.
26920library_names_spec=$lt_library_names_spec
26921
26922# The coded name of the library, if different from the real name.
26923soname_spec=$lt_soname_spec
26924
26925# Commands used to build and install an old-style archive.
26926RANLIB=$lt_RANLIB
26927old_archive_cmds=$lt_old_archive_cmds_RC
26928old_postinstall_cmds=$lt_old_postinstall_cmds
26929old_postuninstall_cmds=$lt_old_postuninstall_cmds
26930
26931# Create an old-style archive from a shared archive.
26932old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26933
26934# Create a temporary old-style archive to link instead of a shared archive.
26935old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26936
26937# Commands used to build and install a shared archive.
26938archive_cmds=$lt_archive_cmds_RC
26939archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26940postinstall_cmds=$lt_postinstall_cmds
26941postuninstall_cmds=$lt_postuninstall_cmds
26942
26943# Commands used to build a loadable module (assumed same as above if empty)
26944module_cmds=$lt_module_cmds_RC
26945module_expsym_cmds=$lt_module_expsym_cmds_RC
26946
26947# Commands to strip libraries.
26948old_striplib=$lt_old_striplib
26949striplib=$lt_striplib
26950
26951# Dependencies to place before the objects being linked to create a
26952# shared library.
26953predep_objects=$lt_predep_objects_RC
26954
26955# Dependencies to place after the objects being linked to create a
26956# shared library.
26957postdep_objects=$lt_postdep_objects_RC
26958
26959# Dependencies to place before the objects being linked to create a
26960# shared library.
26961predeps=$lt_predeps_RC
26962
26963# Dependencies to place after the objects being linked to create a
26964# shared library.
26965postdeps=$lt_postdeps_RC
26966
26967# The library search path used internally by the compiler when linking
26968# a shared library.
26969compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26970
26971# Method to check whether dependent libraries are shared objects.
26972deplibs_check_method=$lt_deplibs_check_method
26973
26974# Command to use when deplibs_check_method == file_magic.
26975file_magic_cmd=$lt_file_magic_cmd
26976
26977# Flag that allows shared libraries with undefined symbols to be built.
26978allow_undefined_flag=$lt_allow_undefined_flag_RC
26979
26980# Flag that forces no undefined symbols.
26981no_undefined_flag=$lt_no_undefined_flag_RC
26982
26983# Commands used to finish a libtool library installation in a directory.
26984finish_cmds=$lt_finish_cmds
26985
26986# Same as above, but a single script fragment to be evaled but not shown.
26987finish_eval=$lt_finish_eval
26988
26989# Take the output of nm and produce a listing of raw symbols and C names.
26990global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26991
26992# Transform the output of nm in a proper C declaration
26993global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26994
26995# Transform the output of nm in a C name address pair
26996global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26997
26998# This is the shared library runtime path variable.
26999runpath_var=$runpath_var
27000
27001# This is the shared library path variable.
27002shlibpath_var=$shlibpath_var
27003
27004# Is shlibpath searched before the hard-coded library search path?
27005shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27006
27007# How to hardcode a shared library path into an executable.
27008hardcode_action=$hardcode_action_RC
27009
27010# Whether we should hardcode library paths into libraries.
27011hardcode_into_libs=$hardcode_into_libs
27012
27013# Flag to hardcode \$libdir into a binary during linking.
27014# This must work even if \$libdir does not exist.
27015hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
27016
27017# If ld is used when linking, flag to hardcode \$libdir into
27018# a binary during linking. This must work even if \$libdir does
27019# not exist.
27020hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
27021
27022# Whether we need a single -rpath flag with a separated argument.
27023hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
27024
27025# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27026# resulting binary.
27027hardcode_direct=$hardcode_direct_RC
27028
27029# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27030# resulting binary.
27031hardcode_minus_L=$hardcode_minus_L_RC
27032
27033# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27034# the resulting binary.
27035hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
27036
27037# Set to yes if building a shared library automatically hardcodes DIR into the library
27038# and all subsequent libraries and executables linked against it.
27039hardcode_automatic=$hardcode_automatic_RC
27040
27041# Variables whose values should be saved in libtool wrapper scripts and
27042# restored at relink time.
27043variables_saved_for_relink="$variables_saved_for_relink"
27044
27045# Whether libtool must link a program against all its dependency libraries.
27046link_all_deplibs=$link_all_deplibs_RC
27047
27048# Compile-time system search path for libraries
27049sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27050
27051# Run-time system search path for libraries
27052sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27053
27054# Fix the shell variable \$srcfile for the compiler.
27055fix_srcfile_path="$fix_srcfile_path_RC"
27056
27057# Set to yes if exported symbols are required.
27058always_export_symbols=$always_export_symbols_RC
27059
27060# The commands to list exported symbols.
27061export_symbols_cmds=$lt_export_symbols_cmds_RC
27062
27063# The commands to extract the exported symbol list from a shared archive.
27064extract_expsyms_cmds=$lt_extract_expsyms_cmds
27065
27066# Symbols that should not be listed in the preloaded symbols.
27067exclude_expsyms=$lt_exclude_expsyms_RC
27068
27069# Symbols that must always be exported.
27070include_expsyms=$lt_include_expsyms_RC
27071
27072# ### END LIBTOOL TAG CONFIG: $tagname
27073
27074__EOF__
27075
27076
27077else
27078 # If there is no Makefile yet, we rely on a make rule to execute
27079 # `config.status --recheck' to rerun these tests and create the
27080 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027081 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27082 if test -f "$ltmain_in"; then
27083 test -f Makefile && make "$ltmain"
27084 fi
John Criswell47fdd832003-07-14 16:52:07 +000027085fi
27086
27087
27088ac_ext=c
27089ac_cpp='$CPP $CPPFLAGS'
27090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27092ac_compiler_gnu=$ac_cv_c_compiler_gnu
27093
27094CC="$lt_save_CC"
27095
27096 ;;
27097
27098 *)
27099 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27100echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27101 { (exit 1); exit 1; }; }
27102 ;;
27103 esac
27104
27105 # Append the new tag name to the list of available tags.
27106 if test -n "$tagname" ; then
27107 available_tags="$available_tags $tagname"
27108 fi
27109 fi
27110 done
27111 IFS="$lt_save_ifs"
27112
27113 # Now substitute the updated list of available tags.
27114 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27115 mv "${ofile}T" "$ofile"
27116 chmod +x "$ofile"
27117 else
27118 rm -f "${ofile}T"
27119 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27120echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27121 { (exit 1); exit 1; }; }
27122 fi
27123fi
John Criswell7a73b802003-06-30 21:59:07 +000027124
27125
27126
27127# This can be used to rebuild libtool when needed
27128LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27129
27130# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027131LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027132
27133# Prevent multiple expansion
27134
27135
27136
John Criswell47fdd832003-07-14 16:52:07 +000027137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027154
Reid Spencer582a23c2004-12-29 07:07:57 +000027155if test "$lt_cv_dlopen_self" = "yes" ; then
27156
27157cat >>confdefs.h <<\_ACEOF
27158#define CAN_DLOPEN_SELF 1
27159_ACEOF
27160
27161fi
27162
Douglas Gregor01746742009-05-11 18:05:52 +000027163
Reid Spencer7931a782004-12-27 06:15:02 +000027164if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027165 LLVMGCC="llvm-gcc${EXEEXT}"
27166 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027167 LLVMGCCCOMMAND="$LLVMGCC"
27168 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027169 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27170
27171 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27172
Reid Spencerc84492c2005-06-02 22:34:49 +000027173 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27174set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027175{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027177if test "${ac_cv_path_LLVMGCC+set}" = set; then
27178 echo $ECHO_N "(cached) $ECHO_C" >&6
27179else
27180 case $LLVMGCC in
27181 [\\/]* | ?:[\\/]*)
27182 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27183 ;;
27184 *)
27185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27186for as_dir in $PATH
27187do
27188 IFS=$as_save_IFS
27189 test -z "$as_dir" && as_dir=.
27190 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027191 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 +000027192 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27194 break 2
27195 fi
27196done
27197done
Reid Spencera773bd52006-08-04 18:18:08 +000027198IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027199
Reid Spencer59473af2004-12-25 07:31:29 +000027200 ;;
27201esac
27202fi
27203LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027204if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027205 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27206echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027207else
Reid Spencera773bd52006-08-04 18:18:08 +000027208 { echo "$as_me:$LINENO: result: no" >&5
27209echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027210fi
27211
Reid Spencera773bd52006-08-04 18:18:08 +000027212
Reid Spencerc84492c2005-06-02 22:34:49 +000027213 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27214set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027215{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27216echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027217if test "${ac_cv_path_LLVMGXX+set}" = set; then
27218 echo $ECHO_N "(cached) $ECHO_C" >&6
27219else
27220 case $LLVMGXX in
27221 [\\/]* | ?:[\\/]*)
27222 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27223 ;;
27224 *)
27225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27226for as_dir in $PATH
27227do
27228 IFS=$as_save_IFS
27229 test -z "$as_dir" && as_dir=.
27230 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000027231 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 +000027232 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27234 break 2
27235 fi
27236done
27237done
Reid Spencera773bd52006-08-04 18:18:08 +000027238IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027239
Reid Spencer59473af2004-12-25 07:31:29 +000027240 ;;
27241esac
27242fi
27243LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027244if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027245 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27246echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027247else
Reid Spencera773bd52006-08-04 18:18:08 +000027248 { echo "$as_me:$LINENO: result: no" >&5
27249echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027250fi
27251
Reid Spencera773bd52006-08-04 18:18:08 +000027252
Reid Spencer59473af2004-12-25 07:31:29 +000027253else
Devang Patel5d28b882007-12-04 22:54:47 +000027254 if test -z "$LLVMGCC"; then
27255 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027256 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000027257 fi
27258 if test -z "$LLVMGXX"; then
27259 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027260 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000027261 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027262
Reid Spencer59473af2004-12-25 07:31:29 +000027263 LLVMGCC=$LLVMGCC
27264
27265 LLVMGXX=$LLVMGXX
27266
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027267 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
27268
27269 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
27270
Reid Spencer59473af2004-12-25 07:31:29 +000027271fi
27272
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000027273
Reid Spencera773bd52006-08-04 18:18:08 +000027274{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27275echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027276
Reid Spencer86901802004-12-08 23:07:27 +000027277ICC=no
27278IXX=no
27279case $CC in
27280 icc*|icpc*)
27281 ICC=yes
27282 IXX=yes
27283 ;;
27284 *)
27285 ;;
27286esac
27287
Duraid Madina937c60a2006-02-15 07:57:42 +000027288if test "$GCC" != "yes" && test "$ICC" != "yes"
27289then
27290 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27291echo "$as_me: error: gcc|icc required but not found" >&2;}
27292 { (exit 1); exit 1; }; }
27293fi
27294
27295if test "$GXX" != "yes" && test "$IXX" != "yes"
27296then
27297 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27298echo "$as_me: error: g++|icc required but not found" >&2;}
27299 { (exit 1); exit 1; }; }
27300fi
27301
Reid Spencer86901802004-12-08 23:07:27 +000027302if test "$GCC" = "yes"
27303then
Chris Lattner399c7c72008-02-05 19:43:53 +000027304 cat >conftest.$ac_ext <<_ACEOF
27305#if !defined(__GNUC__) || __GNUC__ < 3
27306#error Unsupported GCC version
27307#endif
27308
27309_ACEOF
27310rm -f conftest.$ac_objext
27311if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27318 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_objext'
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
Chris Lattner399c7c72008-02-05 19:43:53 +000027344 :
27345else
27346 echo "$as_me: failed program was:" >&5
27347sed 's/^/| /' conftest.$ac_ext >&5
27348
27349 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027350echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27351 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027352fi
27353
27354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027355fi
27356
27357if test -z "$llvm_cv_gnu_make_command"
27358then
27359 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27360echo "$as_me: error: GNU Make required but not found" >&2;}
27361 { (exit 1); exit 1; }; }
27362fi
27363
Reid Spencera773bd52006-08-04 18:18:08 +000027364{ echo "$as_me:$LINENO: result: ok" >&5
27365echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027366
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000027367
27368
Reid Spencera773bd52006-08-04 18:18:08 +000027369{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27370echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027371if test "${ac_cv_lib_m_sin+set}" = set; then
27372 echo $ECHO_N "(cached) $ECHO_C" >&6
27373else
27374 ac_check_lib_save_LIBS=$LIBS
27375LIBS="-lm $LIBS"
27376cat >conftest.$ac_ext <<_ACEOF
27377/* confdefs.h. */
27378_ACEOF
27379cat confdefs.h >>conftest.$ac_ext
27380cat >>conftest.$ac_ext <<_ACEOF
27381/* end confdefs.h. */
27382
Reid Spencera773bd52006-08-04 18:18:08 +000027383/* Override any GCC internal prototype to avoid an error.
27384 Use char because int might match the return type of a GCC
27385 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027386#ifdef __cplusplus
27387extern "C"
27388#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027389char sin ();
27390int
27391main ()
27392{
Reid Spencera773bd52006-08-04 18:18:08 +000027393return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027394 ;
27395 return 0;
27396}
27397_ACEOF
27398rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027399if { (ac_try="$ac_link"
27400case "(($ac_try" in
27401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27402 *) ac_try_echo=$ac_try;;
27403esac
27404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027406 ac_status=$?
27407 grep -v '^ *+' conftest.er1 >conftest.err
27408 rm -f conftest.er1
27409 cat conftest.err >&5
27410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027411 (exit $ac_status); } &&
27412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27413 { (case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27416esac
27417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_try") 2>&5
27419 ac_status=$?
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421 (exit $ac_status); }; } &&
27422 { ac_try='test -s conftest$ac_exeext'
27423 { (case "(($ac_try" in
27424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27425 *) ac_try_echo=$ac_try;;
27426esac
27427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27428 (eval "$ac_try") 2>&5
27429 ac_status=$?
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027432 ac_cv_lib_m_sin=yes
27433else
27434 echo "$as_me: failed program was:" >&5
27435sed 's/^/| /' conftest.$ac_ext >&5
27436
Reid Spencera773bd52006-08-04 18:18:08 +000027437 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027438fi
Reid Spencera773bd52006-08-04 18:18:08 +000027439
Bill Wendlingebcceee2009-04-18 11:20:33 +000027440rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027441 conftest$ac_exeext conftest.$ac_ext
27442LIBS=$ac_check_lib_save_LIBS
27443fi
Reid Spencera773bd52006-08-04 18:18:08 +000027444{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27445echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027446if test $ac_cv_lib_m_sin = yes; then
27447 cat >>confdefs.h <<_ACEOF
27448#define HAVE_LIBM 1
27449_ACEOF
27450
27451 LIBS="-lm $LIBS"
27452
27453fi
27454
Jeff Cohen28783c32007-01-12 18:22:38 +000027455if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027456
Reid Spencera773bd52006-08-04 18:18:08 +000027457{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27458echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027459if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027460 echo $ECHO_N "(cached) $ECHO_C" >&6
27461else
27462 ac_check_lib_save_LIBS=$LIBS
27463LIBS="-limagehlp $LIBS"
27464cat >conftest.$ac_ext <<_ACEOF
27465/* confdefs.h. */
27466_ACEOF
27467cat confdefs.h >>conftest.$ac_ext
27468cat >>conftest.$ac_ext <<_ACEOF
27469/* end confdefs.h. */
27470
Reid Spencer48fdf912006-06-01 19:03:21 +000027471
Reid Spencer484fc8e2006-06-01 16:55:59 +000027472int
27473main ()
27474{
Reid Spencera773bd52006-08-04 18:18:08 +000027475return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027476 ;
27477 return 0;
27478}
27479_ACEOF
27480rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027481if { (ac_try="$ac_link"
27482case "(($ac_try" in
27483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27485esac
27486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027488 ac_status=$?
27489 grep -v '^ *+' conftest.er1 >conftest.err
27490 rm -f conftest.er1
27491 cat conftest.err >&5
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027493 (exit $ac_status); } &&
27494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27495 { (case "(($ac_try" in
27496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497 *) ac_try_echo=$ac_try;;
27498esac
27499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27500 (eval "$ac_try") 2>&5
27501 ac_status=$?
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); }; } &&
27504 { ac_try='test -s conftest$ac_exeext'
27505 { (case "(($ac_try" in
27506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27507 *) ac_try_echo=$ac_try;;
27508esac
27509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27510 (eval "$ac_try") 2>&5
27511 ac_status=$?
27512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27513 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027514 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027515else
27516 echo "$as_me: failed program was:" >&5
27517sed 's/^/| /' conftest.$ac_ext >&5
27518
Reid Spencera773bd52006-08-04 18:18:08 +000027519 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027520fi
Reid Spencera773bd52006-08-04 18:18:08 +000027521
Bill Wendlingebcceee2009-04-18 11:20:33 +000027522rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027523 conftest$ac_exeext conftest.$ac_ext
27524LIBS=$ac_check_lib_save_LIBS
27525fi
Reid Spencera773bd52006-08-04 18:18:08 +000027526{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27527echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027528if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027529 cat >>confdefs.h <<_ACEOF
27530#define HAVE_LIBIMAGEHLP 1
27531_ACEOF
27532
27533 LIBS="-limagehlp $LIBS"
27534
27535fi
27536
27537
Reid Spencera773bd52006-08-04 18:18:08 +000027538{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27539echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027540if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027541 echo $ECHO_N "(cached) $ECHO_C" >&6
27542else
27543 ac_check_lib_save_LIBS=$LIBS
27544LIBS="-lpsapi $LIBS"
27545cat >conftest.$ac_ext <<_ACEOF
27546/* confdefs.h. */
27547_ACEOF
27548cat confdefs.h >>conftest.$ac_ext
27549cat >>conftest.$ac_ext <<_ACEOF
27550/* end confdefs.h. */
27551
Reid Spencer48fdf912006-06-01 19:03:21 +000027552
Reid Spencer484fc8e2006-06-01 16:55:59 +000027553int
27554main ()
27555{
Reid Spencera773bd52006-08-04 18:18:08 +000027556return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027557 ;
27558 return 0;
27559}
27560_ACEOF
27561rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027562if { (ac_try="$ac_link"
27563case "(($ac_try" in
27564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27565 *) ac_try_echo=$ac_try;;
27566esac
27567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27568 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027569 ac_status=$?
27570 grep -v '^ *+' conftest.er1 >conftest.err
27571 rm -f conftest.er1
27572 cat conftest.err >&5
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027574 (exit $ac_status); } &&
27575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27576 { (case "(($ac_try" in
27577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578 *) ac_try_echo=$ac_try;;
27579esac
27580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581 (eval "$ac_try") 2>&5
27582 ac_status=$?
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); }; } &&
27585 { ac_try='test -s conftest$ac_exeext'
27586 { (case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27589esac
27590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591 (eval "$ac_try") 2>&5
27592 ac_status=$?
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027595 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027596else
27597 echo "$as_me: failed program was:" >&5
27598sed 's/^/| /' conftest.$ac_ext >&5
27599
Reid Spencera773bd52006-08-04 18:18:08 +000027600 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027601fi
Reid Spencera773bd52006-08-04 18:18:08 +000027602
Bill Wendlingebcceee2009-04-18 11:20:33 +000027603rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027604 conftest$ac_exeext conftest.$ac_ext
27605LIBS=$ac_check_lib_save_LIBS
27606fi
Reid Spencera773bd52006-08-04 18:18:08 +000027607{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27608echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027609if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027610 cat >>confdefs.h <<_ACEOF
27611#define HAVE_LIBPSAPI 1
27612_ACEOF
27613
27614 LIBS="-lpsapi $LIBS"
27615
27616fi
27617
27618fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027619
Reid Spencera773bd52006-08-04 18:18:08 +000027620{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27621echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027622if test "${ac_cv_search_dlopen+set}" = set; then
27623 echo $ECHO_N "(cached) $ECHO_C" >&6
27624else
27625 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027626cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027627/* confdefs.h. */
27628_ACEOF
27629cat confdefs.h >>conftest.$ac_ext
27630cat >>conftest.$ac_ext <<_ACEOF
27631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027632
Reid Spencera773bd52006-08-04 18:18:08 +000027633/* Override any GCC internal prototype to avoid an error.
27634 Use char because int might match the return type of a GCC
27635 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027636#ifdef __cplusplus
27637extern "C"
27638#endif
John Criswell7a73b802003-06-30 21:59:07 +000027639char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027640int
27641main ()
27642{
Reid Spencera773bd52006-08-04 18:18:08 +000027643return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027644 ;
27645 return 0;
27646}
27647_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027648for ac_lib in '' dl; do
27649 if test -z "$ac_lib"; then
27650 ac_res="none required"
27651 else
27652 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027654 fi
27655 rm -f conftest.$ac_objext conftest$ac_exeext
27656if { (ac_try="$ac_link"
27657case "(($ac_try" in
27658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659 *) ac_try_echo=$ac_try;;
27660esac
27661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027664 grep -v '^ *+' conftest.er1 >conftest.err
27665 rm -f conftest.er1
27666 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027668 (exit $ac_status); } &&
27669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27670 { (case "(($ac_try" in
27671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27672 *) ac_try_echo=$ac_try;;
27673esac
27674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27675 (eval "$ac_try") 2>&5
27676 ac_status=$?
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); }; } &&
27679 { ac_try='test -s conftest$ac_exeext'
27680 { (case "(($ac_try" in
27681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27682 *) ac_try_echo=$ac_try;;
27683esac
27684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27685 (eval "$ac_try") 2>&5
27686 ac_status=$?
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027689 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027690else
27691 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027692sed 's/^/| /' conftest.$ac_ext >&5
27693
Reid Spencera773bd52006-08-04 18:18:08 +000027694
John Criswell7a73b802003-06-30 21:59:07 +000027695fi
Reid Spencera773bd52006-08-04 18:18:08 +000027696
Bill Wendlingebcceee2009-04-18 11:20:33 +000027697rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027698 conftest$ac_exeext
27699 if test "${ac_cv_search_dlopen+set}" = set; then
27700 break
John Criswell7a73b802003-06-30 21:59:07 +000027701fi
Reid Spencera773bd52006-08-04 18:18:08 +000027702done
27703if test "${ac_cv_search_dlopen+set}" = set; then
27704 :
27705else
27706 ac_cv_search_dlopen=no
27707fi
27708rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027709LIBS=$ac_func_search_save_LIBS
27710fi
Reid Spencera773bd52006-08-04 18:18:08 +000027711{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27712echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27713ac_res=$ac_cv_search_dlopen
27714if test "$ac_res" != no; then
27715 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027716
27717cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027718#define HAVE_DLOPEN 1
27719_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027720
27721else
Brian Gaekec45be042003-10-07 06:01:34 +000027722 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27723echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027724fi
27725
27726
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027727if test "$llvm_cv_enable_libffi" = "yes" ; then
27728 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027729echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27730if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027731 echo $ECHO_N "(cached) $ECHO_C" >&6
27732else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027733 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027734cat >conftest.$ac_ext <<_ACEOF
27735/* confdefs.h. */
27736_ACEOF
27737cat confdefs.h >>conftest.$ac_ext
27738cat >>conftest.$ac_ext <<_ACEOF
27739/* end confdefs.h. */
27740
27741/* Override any GCC internal prototype to avoid an error.
27742 Use char because int might match the return type of a GCC
27743 builtin and then its argument prototype would still apply. */
27744#ifdef __cplusplus
27745extern "C"
27746#endif
27747char ffi_call ();
27748int
27749main ()
27750{
27751return ffi_call ();
27752 ;
27753 return 0;
27754}
27755_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027756for ac_lib in '' ffi; do
27757 if test -z "$ac_lib"; then
27758 ac_res="none required"
27759 else
27760 ac_res=-l$ac_lib
27761 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27762 fi
27763 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027764if { (ac_try="$ac_link"
27765case "(($ac_try" in
27766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27767 *) ac_try_echo=$ac_try;;
27768esac
27769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27770 (eval "$ac_link") 2>conftest.er1
27771 ac_status=$?
27772 grep -v '^ *+' conftest.er1 >conftest.err
27773 rm -f conftest.er1
27774 cat conftest.err >&5
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027776 (exit $ac_status); } &&
27777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27778 { (case "(($ac_try" in
27779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780 *) ac_try_echo=$ac_try;;
27781esac
27782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783 (eval "$ac_try") 2>&5
27784 ac_status=$?
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; } &&
27787 { ac_try='test -s conftest$ac_exeext'
27788 { (case "(($ac_try" in
27789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27790 *) ac_try_echo=$ac_try;;
27791esac
27792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27793 (eval "$ac_try") 2>&5
27794 ac_status=$?
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027797 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027798else
27799 echo "$as_me: failed program was:" >&5
27800sed 's/^/| /' conftest.$ac_ext >&5
27801
Nick Lewycky267fddb2009-04-13 04:26:27 +000027802
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027803fi
27804
Bill Wendlingebcceee2009-04-18 11:20:33 +000027805rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027806 conftest$ac_exeext
27807 if test "${ac_cv_search_ffi_call+set}" = set; then
27808 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027809fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027810done
27811if test "${ac_cv_search_ffi_call+set}" = set; then
27812 :
27813else
27814 ac_cv_search_ffi_call=no
27815fi
27816rm conftest.$ac_ext
27817LIBS=$ac_func_search_save_LIBS
27818fi
27819{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27820echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27821ac_res=$ac_cv_search_ffi_call
27822if test "$ac_res" != no; then
27823 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27824
27825cat >>confdefs.h <<\_ACEOF
27826#define HAVE_FFI_CALL 1
27827_ACEOF
27828
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027829else
27830 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27831echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27832fi
27833
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027834fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027835
Reid Spencera773bd52006-08-04 18:18:08 +000027836{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27837echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027838if test "${ac_cv_search_mallinfo+set}" = set; then
27839 echo $ECHO_N "(cached) $ECHO_C" >&6
27840else
27841 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027842cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027843/* confdefs.h. */
27844_ACEOF
27845cat confdefs.h >>conftest.$ac_ext
27846cat >>conftest.$ac_ext <<_ACEOF
27847/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027848
Reid Spencera773bd52006-08-04 18:18:08 +000027849/* Override any GCC internal prototype to avoid an error.
27850 Use char because int might match the return type of a GCC
27851 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027852#ifdef __cplusplus
27853extern "C"
27854#endif
John Criswell7a73b802003-06-30 21:59:07 +000027855char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027856int
27857main ()
27858{
Reid Spencera773bd52006-08-04 18:18:08 +000027859return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027860 ;
27861 return 0;
27862}
27863_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027864for ac_lib in '' malloc; do
27865 if test -z "$ac_lib"; then
27866 ac_res="none required"
27867 else
27868 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027869 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027870 fi
27871 rm -f conftest.$ac_objext conftest$ac_exeext
27872if { (ac_try="$ac_link"
27873case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27876esac
27877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027879 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027880 grep -v '^ *+' conftest.er1 >conftest.err
27881 rm -f conftest.er1
27882 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027884 (exit $ac_status); } &&
27885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27886 { (case "(($ac_try" in
27887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888 *) ac_try_echo=$ac_try;;
27889esac
27890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891 (eval "$ac_try") 2>&5
27892 ac_status=$?
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); }; } &&
27895 { ac_try='test -s conftest$ac_exeext'
27896 { (case "(($ac_try" in
27897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898 *) ac_try_echo=$ac_try;;
27899esac
27900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27901 (eval "$ac_try") 2>&5
27902 ac_status=$?
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027905 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027906else
27907 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027908sed 's/^/| /' conftest.$ac_ext >&5
27909
Reid Spencera773bd52006-08-04 18:18:08 +000027910
John Criswell7a73b802003-06-30 21:59:07 +000027911fi
Reid Spencera773bd52006-08-04 18:18:08 +000027912
Bill Wendlingebcceee2009-04-18 11:20:33 +000027913rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027914 conftest$ac_exeext
27915 if test "${ac_cv_search_mallinfo+set}" = set; then
27916 break
John Criswell7a73b802003-06-30 21:59:07 +000027917fi
Reid Spencera773bd52006-08-04 18:18:08 +000027918done
27919if test "${ac_cv_search_mallinfo+set}" = set; then
27920 :
27921else
27922 ac_cv_search_mallinfo=no
27923fi
27924rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027925LIBS=$ac_func_search_save_LIBS
27926fi
Reid Spencera773bd52006-08-04 18:18:08 +000027927{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27928echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27929ac_res=$ac_cv_search_mallinfo
27930if test "$ac_res" != no; then
27931 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027932
27933cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027934#define HAVE_MALLINFO 1
27935_ACEOF
27936
27937fi
27938
27939
Reid Spencer0a262ba2005-08-24 10:07:20 +000027940if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027941
Reid Spencera773bd52006-08-04 18:18:08 +000027942{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27943echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027944if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27945 echo $ECHO_N "(cached) $ECHO_C" >&6
27946else
27947 ac_check_lib_save_LIBS=$LIBS
27948LIBS="-lpthread $LIBS"
27949cat >conftest.$ac_ext <<_ACEOF
27950/* confdefs.h. */
27951_ACEOF
27952cat confdefs.h >>conftest.$ac_ext
27953cat >>conftest.$ac_ext <<_ACEOF
27954/* end confdefs.h. */
27955
Reid Spencera773bd52006-08-04 18:18:08 +000027956/* Override any GCC internal prototype to avoid an error.
27957 Use char because int might match the return type of a GCC
27958 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027959#ifdef __cplusplus
27960extern "C"
27961#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027962char pthread_mutex_init ();
27963int
27964main ()
27965{
Reid Spencera773bd52006-08-04 18:18:08 +000027966return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027967 ;
27968 return 0;
27969}
27970_ACEOF
27971rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027972if { (ac_try="$ac_link"
27973case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27976esac
27977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027979 ac_status=$?
27980 grep -v '^ *+' conftest.er1 >conftest.err
27981 rm -f conftest.er1
27982 cat conftest.err >&5
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027984 (exit $ac_status); } &&
27985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27986 { (case "(($ac_try" in
27987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27988 *) ac_try_echo=$ac_try;;
27989esac
27990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27991 (eval "$ac_try") 2>&5
27992 ac_status=$?
27993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27994 (exit $ac_status); }; } &&
27995 { ac_try='test -s conftest$ac_exeext'
27996 { (case "(($ac_try" in
27997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998 *) ac_try_echo=$ac_try;;
27999esac
28000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28001 (eval "$ac_try") 2>&5
28002 ac_status=$?
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000028005 ac_cv_lib_pthread_pthread_mutex_init=yes
28006else
28007 echo "$as_me: failed program was:" >&5
28008sed 's/^/| /' conftest.$ac_ext >&5
28009
Reid Spencera773bd52006-08-04 18:18:08 +000028010 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000028011fi
Reid Spencera773bd52006-08-04 18:18:08 +000028012
Bill Wendlingebcceee2009-04-18 11:20:33 +000028013rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000028014 conftest$ac_exeext conftest.$ac_ext
28015LIBS=$ac_check_lib_save_LIBS
28016fi
Reid Spencera773bd52006-08-04 18:18:08 +000028017{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
28018echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000028019if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
28020 cat >>confdefs.h <<_ACEOF
28021#define HAVE_LIBPTHREAD 1
28022_ACEOF
28023
28024 LIBS="-lpthread $LIBS"
28025
28026fi
28027
Reid Spencera773bd52006-08-04 18:18:08 +000028028 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
28029echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000028030if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28031 echo $ECHO_N "(cached) $ECHO_C" >&6
28032else
28033 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000028034cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000028035/* confdefs.h. */
28036_ACEOF
28037cat confdefs.h >>conftest.$ac_ext
28038cat >>conftest.$ac_ext <<_ACEOF
28039/* end confdefs.h. */
28040
Reid Spencera773bd52006-08-04 18:18:08 +000028041/* Override any GCC internal prototype to avoid an error.
28042 Use char because int might match the return type of a GCC
28043 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000028044#ifdef __cplusplus
28045extern "C"
28046#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000028047char pthread_mutex_lock ();
28048int
28049main ()
28050{
Reid Spencera773bd52006-08-04 18:18:08 +000028051return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000028052 ;
28053 return 0;
28054}
28055_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028056for ac_lib in '' pthread; do
28057 if test -z "$ac_lib"; then
28058 ac_res="none required"
28059 else
28060 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000028061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028062 fi
28063 rm -f conftest.$ac_objext conftest$ac_exeext
28064if { (ac_try="$ac_link"
28065case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28068esac
28069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28070 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000028071 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028072 grep -v '^ *+' conftest.er1 >conftest.err
28073 rm -f conftest.er1
28074 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000028075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028076 (exit $ac_status); } &&
28077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28078 { (case "(($ac_try" in
28079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080 *) ac_try_echo=$ac_try;;
28081esac
28082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28083 (eval "$ac_try") 2>&5
28084 ac_status=$?
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; } &&
28087 { ac_try='test -s conftest$ac_exeext'
28088 { (case "(($ac_try" in
28089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090 *) ac_try_echo=$ac_try;;
28091esac
28092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28093 (eval "$ac_try") 2>&5
28094 ac_status=$?
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028097 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000028098else
28099 echo "$as_me: failed program was:" >&5
28100sed 's/^/| /' conftest.$ac_ext >&5
28101
Reid Spencera773bd52006-08-04 18:18:08 +000028102
Brian Gaeke5f268f72003-12-05 19:29:01 +000028103fi
Reid Spencera773bd52006-08-04 18:18:08 +000028104
Bill Wendlingebcceee2009-04-18 11:20:33 +000028105rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028106 conftest$ac_exeext
28107 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28108 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000028109fi
Reid Spencera773bd52006-08-04 18:18:08 +000028110done
28111if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
28112 :
28113else
28114 ac_cv_search_pthread_mutex_lock=no
28115fi
28116rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000028117LIBS=$ac_func_search_save_LIBS
28118fi
Reid Spencera773bd52006-08-04 18:18:08 +000028119{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28120echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28121ac_res=$ac_cv_search_pthread_mutex_lock
28122if test "$ac_res" != no; then
28123 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028124
John Criswell40468462004-09-24 21:19:06 +000028125cat >>confdefs.h <<\_ACEOF
28126#define HAVE_PTHREAD_MUTEX_LOCK 1
28127_ACEOF
28128
28129fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028130
Owen Andersonde8aed22009-06-16 18:20:20 +000028131 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
28132echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
28133if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28134 echo $ECHO_N "(cached) $ECHO_C" >&6
28135else
28136 ac_func_search_save_LIBS=$LIBS
28137cat >conftest.$ac_ext <<_ACEOF
28138/* confdefs.h. */
28139_ACEOF
28140cat confdefs.h >>conftest.$ac_ext
28141cat >>conftest.$ac_ext <<_ACEOF
28142/* end confdefs.h. */
28143
28144/* Override any GCC internal prototype to avoid an error.
28145 Use char because int might match the return type of a GCC
28146 builtin and then its argument prototype would still apply. */
28147#ifdef __cplusplus
28148extern "C"
28149#endif
28150char pthread_rwlock_init ();
28151int
28152main ()
28153{
28154return pthread_rwlock_init ();
28155 ;
28156 return 0;
28157}
28158_ACEOF
28159for ac_lib in '' pthread; do
28160 if test -z "$ac_lib"; then
28161 ac_res="none required"
28162 else
28163 ac_res=-l$ac_lib
28164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28165 fi
28166 rm -f conftest.$ac_objext conftest$ac_exeext
28167if { (ac_try="$ac_link"
28168case "(($ac_try" in
28169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28170 *) ac_try_echo=$ac_try;;
28171esac
28172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28173 (eval "$ac_link") 2>conftest.er1
28174 ac_status=$?
28175 grep -v '^ *+' conftest.er1 >conftest.err
28176 rm -f conftest.er1
28177 cat conftest.err >&5
28178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179 (exit $ac_status); } &&
28180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28181 { (case "(($ac_try" in
28182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28183 *) ac_try_echo=$ac_try;;
28184esac
28185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28186 (eval "$ac_try") 2>&5
28187 ac_status=$?
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); }; } &&
28190 { ac_try='test -s conftest$ac_exeext'
28191 { (case "(($ac_try" in
28192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193 *) ac_try_echo=$ac_try;;
28194esac
28195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28196 (eval "$ac_try") 2>&5
28197 ac_status=$?
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); }; }; then
28200 ac_cv_search_pthread_rwlock_init=$ac_res
28201else
28202 echo "$as_me: failed program was:" >&5
28203sed 's/^/| /' conftest.$ac_ext >&5
28204
28205
28206fi
28207
28208rm -f core conftest.err conftest.$ac_objext \
28209 conftest$ac_exeext
28210 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28211 break
28212fi
28213done
28214if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
28215 :
28216else
28217 ac_cv_search_pthread_rwlock_init=no
28218fi
28219rm conftest.$ac_ext
28220LIBS=$ac_func_search_save_LIBS
28221fi
28222{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28223echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28224ac_res=$ac_cv_search_pthread_rwlock_init
28225if test "$ac_res" != no; then
28226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28227
28228cat >>confdefs.h <<\_ACEOF
28229#define HAVE_PTHREAD_RWLOCK_INIT 1
28230_ACEOF
28231
28232fi
28233
Owen Anderson27fcfe12009-06-25 23:10:26 +000028234 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
28235echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
28236if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28237 echo $ECHO_N "(cached) $ECHO_C" >&6
28238else
28239 ac_func_search_save_LIBS=$LIBS
28240cat >conftest.$ac_ext <<_ACEOF
28241/* confdefs.h. */
28242_ACEOF
28243cat confdefs.h >>conftest.$ac_ext
28244cat >>conftest.$ac_ext <<_ACEOF
28245/* end confdefs.h. */
28246
28247/* Override any GCC internal prototype to avoid an error.
28248 Use char because int might match the return type of a GCC
28249 builtin and then its argument prototype would still apply. */
28250#ifdef __cplusplus
28251extern "C"
28252#endif
28253char pthread_getspecific ();
28254int
28255main ()
28256{
28257return pthread_getspecific ();
28258 ;
28259 return 0;
28260}
28261_ACEOF
28262for ac_lib in '' pthread; do
28263 if test -z "$ac_lib"; then
28264 ac_res="none required"
28265 else
28266 ac_res=-l$ac_lib
28267 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28268 fi
28269 rm -f conftest.$ac_objext conftest$ac_exeext
28270if { (ac_try="$ac_link"
28271case "(($ac_try" in
28272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273 *) ac_try_echo=$ac_try;;
28274esac
28275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28276 (eval "$ac_link") 2>conftest.er1
28277 ac_status=$?
28278 grep -v '^ *+' conftest.er1 >conftest.err
28279 rm -f conftest.er1
28280 cat conftest.err >&5
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); } &&
28283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28284 { (case "(($ac_try" in
28285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28286 *) ac_try_echo=$ac_try;;
28287esac
28288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28289 (eval "$ac_try") 2>&5
28290 ac_status=$?
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; } &&
28293 { ac_try='test -s conftest$ac_exeext'
28294 { (case "(($ac_try" in
28295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28296 *) ac_try_echo=$ac_try;;
28297esac
28298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28299 (eval "$ac_try") 2>&5
28300 ac_status=$?
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); }; }; then
28303 ac_cv_search_pthread_getspecific=$ac_res
28304else
28305 echo "$as_me: failed program was:" >&5
28306sed 's/^/| /' conftest.$ac_ext >&5
28307
28308
28309fi
28310
28311rm -f core conftest.err conftest.$ac_objext \
28312 conftest$ac_exeext
28313 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28314 break
28315fi
28316done
28317if test "${ac_cv_search_pthread_getspecific+set}" = set; then
28318 :
28319else
28320 ac_cv_search_pthread_getspecific=no
28321fi
28322rm conftest.$ac_ext
28323LIBS=$ac_func_search_save_LIBS
28324fi
28325{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
28326echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
28327ac_res=$ac_cv_search_pthread_getspecific
28328if test "$ac_res" != no; then
28329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28330
28331cat >>confdefs.h <<\_ACEOF
28332#define HAVE_PTHREAD_GETSPECIFIC 1
28333_ACEOF
28334
28335fi
28336
Reid Spencer0a262ba2005-08-24 10:07:20 +000028337fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028338
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028339
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028340# Check whether --with-udis86 was given.
28341if test "${with_udis86+set}" = set; then
28342 withval=$with_udis86;
28343 USE_UDIS86=1
28344
28345 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028346 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028347 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28348 esac
28349
28350{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28351echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28352if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28353 echo $ECHO_N "(cached) $ECHO_C" >&6
28354else
28355 ac_check_lib_save_LIBS=$LIBS
28356LIBS="-ludis86 $LIBS"
28357cat >conftest.$ac_ext <<_ACEOF
28358/* confdefs.h. */
28359_ACEOF
28360cat confdefs.h >>conftest.$ac_ext
28361cat >>conftest.$ac_ext <<_ACEOF
28362/* end confdefs.h. */
28363
28364/* Override any GCC internal prototype to avoid an error.
28365 Use char because int might match the return type of a GCC
28366 builtin and then its argument prototype would still apply. */
28367#ifdef __cplusplus
28368extern "C"
28369#endif
28370char ud_init ();
28371int
28372main ()
28373{
28374return ud_init ();
28375 ;
28376 return 0;
28377}
28378_ACEOF
28379rm -f conftest.$ac_objext conftest$ac_exeext
28380if { (ac_try="$ac_link"
28381case "(($ac_try" in
28382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28383 *) ac_try_echo=$ac_try;;
28384esac
28385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28386 (eval "$ac_link") 2>conftest.er1
28387 ac_status=$?
28388 grep -v '^ *+' conftest.er1 >conftest.err
28389 rm -f conftest.er1
28390 cat conftest.err >&5
28391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028392 (exit $ac_status); } &&
28393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28394 { (case "(($ac_try" in
28395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28396 *) ac_try_echo=$ac_try;;
28397esac
28398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28399 (eval "$ac_try") 2>&5
28400 ac_status=$?
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); }; } &&
28403 { ac_try='test -s conftest$ac_exeext'
28404 { (case "(($ac_try" in
28405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28406 *) ac_try_echo=$ac_try;;
28407esac
28408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28409 (eval "$ac_try") 2>&5
28410 ac_status=$?
28411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28412 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028413 ac_cv_lib_udis86_ud_init=yes
28414else
28415 echo "$as_me: failed program was:" >&5
28416sed 's/^/| /' conftest.$ac_ext >&5
28417
28418 ac_cv_lib_udis86_ud_init=no
28419fi
28420
Bill Wendlingebcceee2009-04-18 11:20:33 +000028421rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028422 conftest$ac_exeext conftest.$ac_ext
28423LIBS=$ac_check_lib_save_LIBS
28424fi
28425{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28426echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28427if test $ac_cv_lib_udis86_ud_init = yes; then
28428 cat >>confdefs.h <<_ACEOF
28429#define HAVE_LIBUDIS86 1
28430_ACEOF
28431
28432 LIBS="-ludis86 $LIBS"
28433
28434else
28435
28436 echo "Error! You need to have libudis86 around."
28437 exit -1
28438
28439fi
28440
28441
28442else
28443 USE_UDIS86=0
28444
28445fi
28446
28447
28448cat >>confdefs.h <<_ACEOF
28449#define USE_UDIS86 $USE_UDIS86
28450_ACEOF
28451
28452
28453
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000028454# Check whether --with-oprofile was given.
28455if test "${with_oprofile+set}" = set; then
28456 withval=$with_oprofile;
28457 USE_OPROFILE=1
28458
28459 case "$withval" in
28460 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
28461 *) llvm_cv_oppath="${withval}/lib/oprofile"
28462 CPPFLAGS="-I${withval}/include";;
28463 esac
28464 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
28465 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28466echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28467if test "${ac_cv_search_op_open_agent+set}" = set; then
28468 echo $ECHO_N "(cached) $ECHO_C" >&6
28469else
28470 ac_func_search_save_LIBS=$LIBS
28471cat >conftest.$ac_ext <<_ACEOF
28472/* confdefs.h. */
28473_ACEOF
28474cat confdefs.h >>conftest.$ac_ext
28475cat >>conftest.$ac_ext <<_ACEOF
28476/* end confdefs.h. */
28477
28478/* Override any GCC internal prototype to avoid an error.
28479 Use char because int might match the return type of a GCC
28480 builtin and then its argument prototype would still apply. */
28481#ifdef __cplusplus
28482extern "C"
28483#endif
28484char op_open_agent ();
28485int
28486main ()
28487{
28488return op_open_agent ();
28489 ;
28490 return 0;
28491}
28492_ACEOF
28493for ac_lib in '' opagent; do
28494 if test -z "$ac_lib"; then
28495 ac_res="none required"
28496 else
28497 ac_res=-l$ac_lib
28498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28499 fi
28500 rm -f conftest.$ac_objext conftest$ac_exeext
28501if { (ac_try="$ac_link"
28502case "(($ac_try" in
28503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504 *) ac_try_echo=$ac_try;;
28505esac
28506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_link") 2>conftest.er1
28508 ac_status=$?
28509 grep -v '^ *+' conftest.er1 >conftest.err
28510 rm -f conftest.er1
28511 cat conftest.err >&5
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); } &&
28514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28515 { (case "(($ac_try" in
28516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28517 *) ac_try_echo=$ac_try;;
28518esac
28519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28520 (eval "$ac_try") 2>&5
28521 ac_status=$?
28522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523 (exit $ac_status); }; } &&
28524 { ac_try='test -s conftest$ac_exeext'
28525 { (case "(($ac_try" in
28526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527 *) ac_try_echo=$ac_try;;
28528esac
28529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28530 (eval "$ac_try") 2>&5
28531 ac_status=$?
28532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533 (exit $ac_status); }; }; then
28534 ac_cv_search_op_open_agent=$ac_res
28535else
28536 echo "$as_me: failed program was:" >&5
28537sed 's/^/| /' conftest.$ac_ext >&5
28538
28539
28540fi
28541
28542rm -f core conftest.err conftest.$ac_objext \
28543 conftest$ac_exeext
28544 if test "${ac_cv_search_op_open_agent+set}" = set; then
28545 break
28546fi
28547done
28548if test "${ac_cv_search_op_open_agent+set}" = set; then
28549 :
28550else
28551 ac_cv_search_op_open_agent=no
28552fi
28553rm conftest.$ac_ext
28554LIBS=$ac_func_search_save_LIBS
28555fi
28556{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28557echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28558ac_res=$ac_cv_search_op_open_agent
28559if test "$ac_res" != no; then
28560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28561
28562else
28563
28564 echo "Error! You need to have libopagent around."
28565 exit -1
28566
28567fi
28568
28569 if test "${ac_cv_header_opagent_h+set}" = set; then
28570 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28571echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28572if test "${ac_cv_header_opagent_h+set}" = set; then
28573 echo $ECHO_N "(cached) $ECHO_C" >&6
28574fi
28575{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28576echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28577else
28578 # Is the header compilable?
28579{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28580echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28581cat >conftest.$ac_ext <<_ACEOF
28582/* confdefs.h. */
28583_ACEOF
28584cat confdefs.h >>conftest.$ac_ext
28585cat >>conftest.$ac_ext <<_ACEOF
28586/* end confdefs.h. */
28587$ac_includes_default
28588#include <opagent.h>
28589_ACEOF
28590rm -f conftest.$ac_objext
28591if { (ac_try="$ac_compile"
28592case "(($ac_try" in
28593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28594 *) ac_try_echo=$ac_try;;
28595esac
28596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28597 (eval "$ac_compile") 2>conftest.er1
28598 ac_status=$?
28599 grep -v '^ *+' conftest.er1 >conftest.err
28600 rm -f conftest.er1
28601 cat conftest.err >&5
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); } &&
28604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28605 { (case "(($ac_try" in
28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607 *) ac_try_echo=$ac_try;;
28608esac
28609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610 (eval "$ac_try") 2>&5
28611 ac_status=$?
28612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613 (exit $ac_status); }; } &&
28614 { ac_try='test -s conftest.$ac_objext'
28615 { (case "(($ac_try" in
28616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28617 *) ac_try_echo=$ac_try;;
28618esac
28619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28620 (eval "$ac_try") 2>&5
28621 ac_status=$?
28622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623 (exit $ac_status); }; }; then
28624 ac_header_compiler=yes
28625else
28626 echo "$as_me: failed program was:" >&5
28627sed 's/^/| /' conftest.$ac_ext >&5
28628
28629 ac_header_compiler=no
28630fi
28631
28632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28633{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28634echo "${ECHO_T}$ac_header_compiler" >&6; }
28635
28636# Is the header present?
28637{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28638echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28639cat >conftest.$ac_ext <<_ACEOF
28640/* confdefs.h. */
28641_ACEOF
28642cat confdefs.h >>conftest.$ac_ext
28643cat >>conftest.$ac_ext <<_ACEOF
28644/* end confdefs.h. */
28645#include <opagent.h>
28646_ACEOF
28647if { (ac_try="$ac_cpp conftest.$ac_ext"
28648case "(($ac_try" in
28649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28650 *) ac_try_echo=$ac_try;;
28651esac
28652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28654 ac_status=$?
28655 grep -v '^ *+' conftest.er1 >conftest.err
28656 rm -f conftest.er1
28657 cat conftest.err >&5
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); } >/dev/null; then
28660 if test -s conftest.err; then
28661 ac_cpp_err=$ac_c_preproc_warn_flag
28662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28663 else
28664 ac_cpp_err=
28665 fi
28666else
28667 ac_cpp_err=yes
28668fi
28669if test -z "$ac_cpp_err"; then
28670 ac_header_preproc=yes
28671else
28672 echo "$as_me: failed program was:" >&5
28673sed 's/^/| /' conftest.$ac_ext >&5
28674
28675 ac_header_preproc=no
28676fi
28677
28678rm -f conftest.err conftest.$ac_ext
28679{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28680echo "${ECHO_T}$ac_header_preproc" >&6; }
28681
28682# So? What about this header?
28683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28684 yes:no: )
28685 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28686echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28687 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28688echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28689 ac_header_preproc=yes
28690 ;;
28691 no:yes:* )
28692 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28693echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28694 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28695echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28696 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28697echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28698 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28699echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28700 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28701echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28702 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28703echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28704 ( cat <<\_ASBOX
28705## ----------------------------------- ##
28706## Report this to llvmbugs@cs.uiuc.edu ##
28707## ----------------------------------- ##
28708_ASBOX
28709 ) | sed "s/^/$as_me: WARNING: /" >&2
28710 ;;
28711esac
28712{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28713echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28714if test "${ac_cv_header_opagent_h+set}" = set; then
28715 echo $ECHO_N "(cached) $ECHO_C" >&6
28716else
28717 ac_cv_header_opagent_h=$ac_header_preproc
28718fi
28719{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28720echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28721
28722fi
28723if test $ac_cv_header_opagent_h = yes; then
28724 :
28725else
28726
28727 echo "Error! You need to have opagent.h around."
28728 exit -1
28729
28730fi
28731
28732
28733
28734else
28735
28736 llvm_cv_old_LIBS="$LIBS"
28737 LIBS="$LIBS -L/usr/lib/oprofile -Wl,-rpath,/usr/lib/oprofile"
28738 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
28739echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
28740if test "${ac_cv_search_op_open_agent+set}" = set; then
28741 echo $ECHO_N "(cached) $ECHO_C" >&6
28742else
28743 ac_func_search_save_LIBS=$LIBS
28744cat >conftest.$ac_ext <<_ACEOF
28745/* confdefs.h. */
28746_ACEOF
28747cat confdefs.h >>conftest.$ac_ext
28748cat >>conftest.$ac_ext <<_ACEOF
28749/* end confdefs.h. */
28750
28751/* Override any GCC internal prototype to avoid an error.
28752 Use char because int might match the return type of a GCC
28753 builtin and then its argument prototype would still apply. */
28754#ifdef __cplusplus
28755extern "C"
28756#endif
28757char op_open_agent ();
28758int
28759main ()
28760{
28761return op_open_agent ();
28762 ;
28763 return 0;
28764}
28765_ACEOF
28766for ac_lib in '' opagent; do
28767 if test -z "$ac_lib"; then
28768 ac_res="none required"
28769 else
28770 ac_res=-l$ac_lib
28771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28772 fi
28773 rm -f conftest.$ac_objext conftest$ac_exeext
28774if { (ac_try="$ac_link"
28775case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28778esac
28779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_link") 2>conftest.er1
28781 ac_status=$?
28782 grep -v '^ *+' conftest.er1 >conftest.err
28783 rm -f conftest.er1
28784 cat conftest.err >&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); } &&
28787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28788 { (case "(($ac_try" in
28789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28790 *) ac_try_echo=$ac_try;;
28791esac
28792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28793 (eval "$ac_try") 2>&5
28794 ac_status=$?
28795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796 (exit $ac_status); }; } &&
28797 { ac_try='test -s conftest$ac_exeext'
28798 { (case "(($ac_try" in
28799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28800 *) ac_try_echo=$ac_try;;
28801esac
28802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28803 (eval "$ac_try") 2>&5
28804 ac_status=$?
28805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 (exit $ac_status); }; }; then
28807 ac_cv_search_op_open_agent=$ac_res
28808else
28809 echo "$as_me: failed program was:" >&5
28810sed 's/^/| /' conftest.$ac_ext >&5
28811
28812
28813fi
28814
28815rm -f core conftest.err conftest.$ac_objext \
28816 conftest$ac_exeext
28817 if test "${ac_cv_search_op_open_agent+set}" = set; then
28818 break
28819fi
28820done
28821if test "${ac_cv_search_op_open_agent+set}" = set; then
28822 :
28823else
28824 ac_cv_search_op_open_agent=no
28825fi
28826rm conftest.$ac_ext
28827LIBS=$ac_func_search_save_LIBS
28828fi
28829{ echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
28830echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
28831ac_res=$ac_cv_search_op_open_agent
28832if test "$ac_res" != no; then
28833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28834 USE_OPROFILE=1
28835
28836else
28837 LIBS="$llvm_cv_old_LIBS"
28838 USE_OPROFILE=0
28839
28840fi
28841
28842 if test "${ac_cv_header_opagent_h+set}" = set; then
28843 { echo "$as_me:$LINENO: checking for opagent.h" >&5
28844echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28845if test "${ac_cv_header_opagent_h+set}" = set; then
28846 echo $ECHO_N "(cached) $ECHO_C" >&6
28847fi
28848{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28849echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28850else
28851 # Is the header compilable?
28852{ echo "$as_me:$LINENO: checking opagent.h usability" >&5
28853echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
28854cat >conftest.$ac_ext <<_ACEOF
28855/* confdefs.h. */
28856_ACEOF
28857cat confdefs.h >>conftest.$ac_ext
28858cat >>conftest.$ac_ext <<_ACEOF
28859/* end confdefs.h. */
28860$ac_includes_default
28861#include <opagent.h>
28862_ACEOF
28863rm -f conftest.$ac_objext
28864if { (ac_try="$ac_compile"
28865case "(($ac_try" in
28866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28867 *) ac_try_echo=$ac_try;;
28868esac
28869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28870 (eval "$ac_compile") 2>conftest.er1
28871 ac_status=$?
28872 grep -v '^ *+' conftest.er1 >conftest.err
28873 rm -f conftest.er1
28874 cat conftest.err >&5
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); } &&
28877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28878 { (case "(($ac_try" in
28879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28880 *) ac_try_echo=$ac_try;;
28881esac
28882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28883 (eval "$ac_try") 2>&5
28884 ac_status=$?
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); }; } &&
28887 { ac_try='test -s conftest.$ac_objext'
28888 { (case "(($ac_try" in
28889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28890 *) ac_try_echo=$ac_try;;
28891esac
28892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28893 (eval "$ac_try") 2>&5
28894 ac_status=$?
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); }; }; then
28897 ac_header_compiler=yes
28898else
28899 echo "$as_me: failed program was:" >&5
28900sed 's/^/| /' conftest.$ac_ext >&5
28901
28902 ac_header_compiler=no
28903fi
28904
28905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28906{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28907echo "${ECHO_T}$ac_header_compiler" >&6; }
28908
28909# Is the header present?
28910{ echo "$as_me:$LINENO: checking opagent.h presence" >&5
28911echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
28912cat >conftest.$ac_ext <<_ACEOF
28913/* confdefs.h. */
28914_ACEOF
28915cat confdefs.h >>conftest.$ac_ext
28916cat >>conftest.$ac_ext <<_ACEOF
28917/* end confdefs.h. */
28918#include <opagent.h>
28919_ACEOF
28920if { (ac_try="$ac_cpp conftest.$ac_ext"
28921case "(($ac_try" in
28922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28923 *) ac_try_echo=$ac_try;;
28924esac
28925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28927 ac_status=$?
28928 grep -v '^ *+' conftest.er1 >conftest.err
28929 rm -f conftest.er1
28930 cat conftest.err >&5
28931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932 (exit $ac_status); } >/dev/null; then
28933 if test -s conftest.err; then
28934 ac_cpp_err=$ac_c_preproc_warn_flag
28935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28936 else
28937 ac_cpp_err=
28938 fi
28939else
28940 ac_cpp_err=yes
28941fi
28942if test -z "$ac_cpp_err"; then
28943 ac_header_preproc=yes
28944else
28945 echo "$as_me: failed program was:" >&5
28946sed 's/^/| /' conftest.$ac_ext >&5
28947
28948 ac_header_preproc=no
28949fi
28950
28951rm -f conftest.err conftest.$ac_ext
28952{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28953echo "${ECHO_T}$ac_header_preproc" >&6; }
28954
28955# So? What about this header?
28956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28957 yes:no: )
28958 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
28959echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28960 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
28961echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
28962 ac_header_preproc=yes
28963 ;;
28964 no:yes:* )
28965 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
28966echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
28967 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
28968echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
28969 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
28970echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
28971 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
28972echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
28973 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
28974echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
28975 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
28976echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
28977 ( cat <<\_ASBOX
28978## ----------------------------------- ##
28979## Report this to llvmbugs@cs.uiuc.edu ##
28980## ----------------------------------- ##
28981_ASBOX
28982 ) | sed "s/^/$as_me: WARNING: /" >&2
28983 ;;
28984esac
28985{ echo "$as_me:$LINENO: checking for opagent.h" >&5
28986echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
28987if test "${ac_cv_header_opagent_h+set}" = set; then
28988 echo $ECHO_N "(cached) $ECHO_C" >&6
28989else
28990 ac_cv_header_opagent_h=$ac_header_preproc
28991fi
28992{ echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
28993echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
28994
28995fi
28996if test $ac_cv_header_opagent_h = yes; then
28997 :
28998else
28999
29000 LIBS="$llvm_cv_old_LIBS"
29001 USE_OPROFILE=0
29002
29003
29004fi
29005
29006
29007
29008fi
29009
29010
29011cat >>confdefs.h <<_ACEOF
29012#define USE_OPROFILE $USE_OPROFILE
29013_ACEOF
29014
29015
29016
Reid Spencer59473af2004-12-25 07:31:29 +000029017
29018
29019
29020
29021
29022ac_header_dirent=no
29023for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
29024 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029025{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
29026echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
29027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029028 echo $ECHO_N "(cached) $ECHO_C" >&6
29029else
29030 cat >conftest.$ac_ext <<_ACEOF
29031/* confdefs.h. */
29032_ACEOF
29033cat confdefs.h >>conftest.$ac_ext
29034cat >>conftest.$ac_ext <<_ACEOF
29035/* end confdefs.h. */
29036#include <sys/types.h>
29037#include <$ac_hdr>
29038
29039int
29040main ()
29041{
29042if ((DIR *) 0)
29043return 0;
29044 ;
29045 return 0;
29046}
29047_ACEOF
29048rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029049if { (ac_try="$ac_compile"
29050case "(($ac_try" in
29051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29052 *) ac_try_echo=$ac_try;;
29053esac
29054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29055 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029056 ac_status=$?
29057 grep -v '^ *+' conftest.er1 >conftest.err
29058 rm -f conftest.er1
29059 cat conftest.err >&5
29060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029061 (exit $ac_status); } &&
29062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29063 { (case "(($ac_try" in
29064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29065 *) ac_try_echo=$ac_try;;
29066esac
29067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29068 (eval "$ac_try") 2>&5
29069 ac_status=$?
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); }; } &&
29072 { ac_try='test -s conftest.$ac_objext'
29073 { (case "(($ac_try" in
29074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075 *) ac_try_echo=$ac_try;;
29076esac
29077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078 (eval "$ac_try") 2>&5
29079 ac_status=$?
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029082 eval "$as_ac_Header=yes"
29083else
29084 echo "$as_me: failed program was:" >&5
29085sed 's/^/| /' conftest.$ac_ext >&5
29086
Reid Spencera773bd52006-08-04 18:18:08 +000029087 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000029088fi
Reid Spencera773bd52006-08-04 18:18:08 +000029089
29090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029091fi
Reid Spencera773bd52006-08-04 18:18:08 +000029092ac_res=`eval echo '${'$as_ac_Header'}'`
29093 { echo "$as_me:$LINENO: result: $ac_res" >&5
29094echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029095if test `eval echo '${'$as_ac_Header'}'` = yes; then
29096 cat >>confdefs.h <<_ACEOF
29097#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
29098_ACEOF
29099
29100ac_header_dirent=$ac_hdr; break
29101fi
29102
29103done
29104# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
29105if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000029106 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29107echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029108if test "${ac_cv_search_opendir+set}" = set; then
29109 echo $ECHO_N "(cached) $ECHO_C" >&6
29110else
29111 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029112cat >conftest.$ac_ext <<_ACEOF
29113/* confdefs.h. */
29114_ACEOF
29115cat confdefs.h >>conftest.$ac_ext
29116cat >>conftest.$ac_ext <<_ACEOF
29117/* end confdefs.h. */
29118
Reid Spencera773bd52006-08-04 18:18:08 +000029119/* Override any GCC internal prototype to avoid an error.
29120 Use char because int might match the return type of a GCC
29121 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029122#ifdef __cplusplus
29123extern "C"
29124#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029125char opendir ();
29126int
29127main ()
29128{
Reid Spencera773bd52006-08-04 18:18:08 +000029129return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029130 ;
29131 return 0;
29132}
29133_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029134for ac_lib in '' dir; do
29135 if test -z "$ac_lib"; then
29136 ac_res="none required"
29137 else
29138 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029140 fi
29141 rm -f conftest.$ac_objext conftest$ac_exeext
29142if { (ac_try="$ac_link"
29143case "(($ac_try" in
29144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145 *) ac_try_echo=$ac_try;;
29146esac
29147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029149 ac_status=$?
29150 grep -v '^ *+' conftest.er1 >conftest.err
29151 rm -f conftest.er1
29152 cat conftest.err >&5
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029154 (exit $ac_status); } &&
29155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29156 { (case "(($ac_try" in
29157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29158 *) ac_try_echo=$ac_try;;
29159esac
29160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29161 (eval "$ac_try") 2>&5
29162 ac_status=$?
29163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164 (exit $ac_status); }; } &&
29165 { ac_try='test -s conftest$ac_exeext'
29166 { (case "(($ac_try" in
29167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29168 *) ac_try_echo=$ac_try;;
29169esac
29170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29171 (eval "$ac_try") 2>&5
29172 ac_status=$?
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029175 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029176else
29177 echo "$as_me: failed program was:" >&5
29178sed 's/^/| /' conftest.$ac_ext >&5
29179
Reid Spencera773bd52006-08-04 18:18:08 +000029180
Reid Spencer59473af2004-12-25 07:31:29 +000029181fi
Reid Spencera773bd52006-08-04 18:18:08 +000029182
Bill Wendlingebcceee2009-04-18 11:20:33 +000029183rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029184 conftest$ac_exeext
29185 if test "${ac_cv_search_opendir+set}" = set; then
29186 break
Reid Spencer59473af2004-12-25 07:31:29 +000029187fi
Reid Spencera773bd52006-08-04 18:18:08 +000029188done
29189if test "${ac_cv_search_opendir+set}" = set; then
29190 :
29191else
29192 ac_cv_search_opendir=no
29193fi
29194rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029195LIBS=$ac_func_search_save_LIBS
29196fi
Reid Spencera773bd52006-08-04 18:18:08 +000029197{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29198echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29199ac_res=$ac_cv_search_opendir
29200if test "$ac_res" != no; then
29201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029202
29203fi
29204
29205else
Reid Spencera773bd52006-08-04 18:18:08 +000029206 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
29207echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029208if test "${ac_cv_search_opendir+set}" = set; then
29209 echo $ECHO_N "(cached) $ECHO_C" >&6
29210else
29211 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000029212cat >conftest.$ac_ext <<_ACEOF
29213/* confdefs.h. */
29214_ACEOF
29215cat confdefs.h >>conftest.$ac_ext
29216cat >>conftest.$ac_ext <<_ACEOF
29217/* end confdefs.h. */
29218
Reid Spencera773bd52006-08-04 18:18:08 +000029219/* Override any GCC internal prototype to avoid an error.
29220 Use char because int might match the return type of a GCC
29221 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000029222#ifdef __cplusplus
29223extern "C"
29224#endif
Reid Spencer59473af2004-12-25 07:31:29 +000029225char opendir ();
29226int
29227main ()
29228{
Reid Spencera773bd52006-08-04 18:18:08 +000029229return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000029230 ;
29231 return 0;
29232}
29233_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029234for ac_lib in '' x; do
29235 if test -z "$ac_lib"; then
29236 ac_res="none required"
29237 else
29238 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000029239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000029240 fi
29241 rm -f conftest.$ac_objext conftest$ac_exeext
29242if { (ac_try="$ac_link"
29243case "(($ac_try" in
29244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245 *) ac_try_echo=$ac_try;;
29246esac
29247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029249 ac_status=$?
29250 grep -v '^ *+' conftest.er1 >conftest.err
29251 rm -f conftest.er1
29252 cat conftest.err >&5
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029254 (exit $ac_status); } &&
29255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29256 { (case "(($ac_try" in
29257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29258 *) ac_try_echo=$ac_try;;
29259esac
29260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29261 (eval "$ac_try") 2>&5
29262 ac_status=$?
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); }; } &&
29265 { ac_try='test -s conftest$ac_exeext'
29266 { (case "(($ac_try" in
29267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268 *) ac_try_echo=$ac_try;;
29269esac
29270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271 (eval "$ac_try") 2>&5
29272 ac_status=$?
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029275 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000029276else
29277 echo "$as_me: failed program was:" >&5
29278sed 's/^/| /' conftest.$ac_ext >&5
29279
Reid Spencera773bd52006-08-04 18:18:08 +000029280
Reid Spencer59473af2004-12-25 07:31:29 +000029281fi
Reid Spencera773bd52006-08-04 18:18:08 +000029282
Bill Wendlingebcceee2009-04-18 11:20:33 +000029283rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000029284 conftest$ac_exeext
29285 if test "${ac_cv_search_opendir+set}" = set; then
29286 break
Reid Spencer59473af2004-12-25 07:31:29 +000029287fi
Reid Spencera773bd52006-08-04 18:18:08 +000029288done
29289if test "${ac_cv_search_opendir+set}" = set; then
29290 :
29291else
29292 ac_cv_search_opendir=no
29293fi
29294rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029295LIBS=$ac_func_search_save_LIBS
29296fi
Reid Spencera773bd52006-08-04 18:18:08 +000029297{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
29298echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
29299ac_res=$ac_cv_search_opendir
29300if test "$ac_res" != no; then
29301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000029302
29303fi
29304
29305fi
29306
Reid Spencera773bd52006-08-04 18:18:08 +000029307{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
29308echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029309if test "${ac_cv_header_mmap_anon+set}" = set; then
29310 echo $ECHO_N "(cached) $ECHO_C" >&6
29311else
29312 ac_ext=c
29313ac_cpp='$CPP $CPPFLAGS'
29314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29316ac_compiler_gnu=$ac_cv_c_compiler_gnu
29317
29318 cat >conftest.$ac_ext <<_ACEOF
29319/* confdefs.h. */
29320_ACEOF
29321cat confdefs.h >>conftest.$ac_ext
29322cat >>conftest.$ac_ext <<_ACEOF
29323/* end confdefs.h. */
29324#include <sys/mman.h>
29325#include <unistd.h>
29326#include <fcntl.h>
29327int
29328main ()
29329{
29330mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
29331 ;
29332 return 0;
29333}
29334_ACEOF
29335rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029336if { (ac_try="$ac_compile"
29337case "(($ac_try" in
29338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29339 *) ac_try_echo=$ac_try;;
29340esac
29341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29342 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029343 ac_status=$?
29344 grep -v '^ *+' conftest.er1 >conftest.err
29345 rm -f conftest.er1
29346 cat conftest.err >&5
29347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029348 (exit $ac_status); } &&
29349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29350 { (case "(($ac_try" in
29351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352 *) ac_try_echo=$ac_try;;
29353esac
29354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355 (eval "$ac_try") 2>&5
29356 ac_status=$?
29357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358 (exit $ac_status); }; } &&
29359 { ac_try='test -s conftest.$ac_objext'
29360 { (case "(($ac_try" in
29361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29362 *) ac_try_echo=$ac_try;;
29363esac
29364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29365 (eval "$ac_try") 2>&5
29366 ac_status=$?
29367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29368 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029369 ac_cv_header_mmap_anon=yes
29370else
29371 echo "$as_me: failed program was:" >&5
29372sed 's/^/| /' conftest.$ac_ext >&5
29373
Reid Spencera773bd52006-08-04 18:18:08 +000029374 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000029375fi
Reid Spencera773bd52006-08-04 18:18:08 +000029376
29377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000029378 ac_ext=c
29379ac_cpp='$CPP $CPPFLAGS'
29380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29382ac_compiler_gnu=$ac_cv_c_compiler_gnu
29383
29384
29385fi
Reid Spencera773bd52006-08-04 18:18:08 +000029386{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
29387echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029388if test "$ac_cv_header_mmap_anon" = yes; then
29389
29390cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000029391#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000029392_ACEOF
29393
29394fi
29395
Reid Spencera773bd52006-08-04 18:18:08 +000029396{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
29397echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029398if test "${ac_cv_header_stat_broken+set}" = set; then
29399 echo $ECHO_N "(cached) $ECHO_C" >&6
29400else
29401 cat >conftest.$ac_ext <<_ACEOF
29402/* confdefs.h. */
29403_ACEOF
29404cat confdefs.h >>conftest.$ac_ext
29405cat >>conftest.$ac_ext <<_ACEOF
29406/* end confdefs.h. */
29407#include <sys/types.h>
29408#include <sys/stat.h>
29409
Reid Spencera773bd52006-08-04 18:18:08 +000029410#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029411# if S_ISBLK (S_IFDIR)
29412You lose.
29413# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029414#endif
29415
Reid Spencera773bd52006-08-04 18:18:08 +000029416#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000029417# if S_ISBLK (S_IFCHR)
29418You lose.
29419# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029420#endif
29421
Reid Spencera773bd52006-08-04 18:18:08 +000029422#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029423# if S_ISLNK (S_IFREG)
29424You lose.
29425# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029426#endif
29427
Reid Spencera773bd52006-08-04 18:18:08 +000029428#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000029429# if S_ISSOCK (S_IFREG)
29430You lose.
29431# endif
Reid Spencer59473af2004-12-25 07:31:29 +000029432#endif
29433
29434_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000029435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29436 $EGREP "You lose" >/dev/null 2>&1; then
29437 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029438else
Bill Wendlingebcceee2009-04-18 11:20:33 +000029439 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029440fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000029441rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000029442
Reid Spencer59473af2004-12-25 07:31:29 +000029443fi
Reid Spencera773bd52006-08-04 18:18:08 +000029444{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
29445echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029446if test $ac_cv_header_stat_broken = yes; then
29447
29448cat >>confdefs.h <<\_ACEOF
29449#define STAT_MACROS_BROKEN 1
29450_ACEOF
29451
29452fi
29453
Reid Spencera773bd52006-08-04 18:18:08 +000029454{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
29455echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029456if test "${ac_cv_header_stdc+set}" = set; then
29457 echo $ECHO_N "(cached) $ECHO_C" >&6
29458else
29459 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029460/* confdefs.h. */
29461_ACEOF
29462cat confdefs.h >>conftest.$ac_ext
29463cat >>conftest.$ac_ext <<_ACEOF
29464/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029465#include <stdlib.h>
29466#include <stdarg.h>
29467#include <string.h>
29468#include <float.h>
29469
John Criswell0c38eaf2003-09-10 15:17:25 +000029470int
29471main ()
29472{
29473
29474 ;
29475 return 0;
29476}
John Criswell7a73b802003-06-30 21:59:07 +000029477_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029478rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029479if { (ac_try="$ac_compile"
29480case "(($ac_try" in
29481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29482 *) ac_try_echo=$ac_try;;
29483esac
29484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29485 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029486 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029487 grep -v '^ *+' conftest.er1 >conftest.err
29488 rm -f conftest.er1
29489 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029491 (exit $ac_status); } &&
29492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29493 { (case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29496esac
29497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_try") 2>&5
29499 ac_status=$?
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); }; } &&
29502 { ac_try='test -s conftest.$ac_objext'
29503 { (case "(($ac_try" in
29504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29505 *) ac_try_echo=$ac_try;;
29506esac
29507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29508 (eval "$ac_try") 2>&5
29509 ac_status=$?
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029512 ac_cv_header_stdc=yes
29513else
29514 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029515sed 's/^/| /' conftest.$ac_ext >&5
29516
Reid Spencera773bd52006-08-04 18:18:08 +000029517 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000029518fi
Reid Spencera773bd52006-08-04 18:18:08 +000029519
29520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029521
29522if test $ac_cv_header_stdc = yes; then
29523 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
29524 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029525/* confdefs.h. */
29526_ACEOF
29527cat confdefs.h >>conftest.$ac_ext
29528cat >>conftest.$ac_ext <<_ACEOF
29529/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029530#include <string.h>
29531
29532_ACEOF
29533if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029534 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029535 :
29536else
29537 ac_cv_header_stdc=no
29538fi
29539rm -f conftest*
29540
29541fi
29542
29543if test $ac_cv_header_stdc = yes; then
29544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
29545 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029546/* confdefs.h. */
29547_ACEOF
29548cat confdefs.h >>conftest.$ac_ext
29549cat >>conftest.$ac_ext <<_ACEOF
29550/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029551#include <stdlib.h>
29552
29553_ACEOF
29554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000029555 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029556 :
29557else
29558 ac_cv_header_stdc=no
29559fi
29560rm -f conftest*
29561
29562fi
29563
29564if test $ac_cv_header_stdc = yes; then
29565 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29566 if test "$cross_compiling" = yes; then
29567 :
29568else
29569 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029570/* confdefs.h. */
29571_ACEOF
29572cat confdefs.h >>conftest.$ac_ext
29573cat >>conftest.$ac_ext <<_ACEOF
29574/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029575#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000029576#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000029577#if ((' ' & 0x0FF) == 0x020)
29578# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29579# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29580#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029581# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029582 (('a' <= (c) && (c) <= 'i') \
29583 || ('j' <= (c) && (c) <= 'r') \
29584 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000029585# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29586#endif
29587
29588#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29589int
29590main ()
29591{
29592 int i;
29593 for (i = 0; i < 256; i++)
29594 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000029595 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000029596 return 2;
29597 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029598}
29599_ACEOF
29600rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029601if { (ac_try="$ac_link"
29602case "(($ac_try" in
29603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29604 *) ac_try_echo=$ac_try;;
29605esac
29606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29607 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029608 ac_status=$?
29609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029611 { (case "(($ac_try" in
29612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29613 *) ac_try_echo=$ac_try;;
29614esac
29615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29616 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029617 ac_status=$?
29618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619 (exit $ac_status); }; }; then
29620 :
29621else
29622 echo "$as_me: program exited with status $ac_status" >&5
29623echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029624sed 's/^/| /' conftest.$ac_ext >&5
29625
John Criswell7a73b802003-06-30 21:59:07 +000029626( exit $ac_status )
29627ac_cv_header_stdc=no
29628fi
Reid Spencera773bd52006-08-04 18:18:08 +000029629rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29630fi
29631
29632
John Criswell7a73b802003-06-30 21:59:07 +000029633fi
29634fi
Reid Spencera773bd52006-08-04 18:18:08 +000029635{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
29636echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029637if test $ac_cv_header_stdc = yes; then
29638
29639cat >>confdefs.h <<\_ACEOF
29640#define STDC_HEADERS 1
29641_ACEOF
29642
29643fi
29644
Reid Spencera773bd52006-08-04 18:18:08 +000029645{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
29646echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029647if test "${ac_cv_header_sys_wait_h+set}" = set; then
29648 echo $ECHO_N "(cached) $ECHO_C" >&6
29649else
29650 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029651/* confdefs.h. */
29652_ACEOF
29653cat confdefs.h >>conftest.$ac_ext
29654cat >>conftest.$ac_ext <<_ACEOF
29655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029656#include <sys/types.h>
29657#include <sys/wait.h>
29658#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000029659# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000029660#endif
29661#ifndef WIFEXITED
29662# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
29663#endif
29664
John Criswell7a73b802003-06-30 21:59:07 +000029665int
29666main ()
29667{
29668 int s;
29669 wait (&s);
29670 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
29671 ;
29672 return 0;
29673}
29674_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
John Criswell7a73b802003-06-30 21:59:07 +000029683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029684 grep -v '^ *+' conftest.er1 >conftest.err
29685 rm -f conftest.er1
29686 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029687 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
John Criswell7a73b802003-06-30 21:59:07 +000029709 ac_cv_header_sys_wait_h=yes
29710else
29711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029712sed 's/^/| /' conftest.$ac_ext >&5
29713
Reid Spencera773bd52006-08-04 18:18:08 +000029714 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000029715fi
Reid Spencera773bd52006-08-04 18:18:08 +000029716
29717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029718fi
Reid Spencera773bd52006-08-04 18:18:08 +000029719{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
29720echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029721if test $ac_cv_header_sys_wait_h = yes; then
29722
29723cat >>confdefs.h <<\_ACEOF
29724#define HAVE_SYS_WAIT_H 1
29725_ACEOF
29726
29727fi
29728
Reid Spencera773bd52006-08-04 18:18:08 +000029729{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
29730echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029731if test "${ac_cv_header_time+set}" = set; then
29732 echo $ECHO_N "(cached) $ECHO_C" >&6
29733else
29734 cat >conftest.$ac_ext <<_ACEOF
29735/* confdefs.h. */
29736_ACEOF
29737cat confdefs.h >>conftest.$ac_ext
29738cat >>conftest.$ac_ext <<_ACEOF
29739/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029740#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029741#include <sys/time.h>
29742#include <time.h>
29743
29744int
29745main ()
29746{
29747if ((struct tm *) 0)
29748return 0;
29749 ;
29750 return 0;
29751}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029752_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029753rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029754if { (ac_try="$ac_compile"
29755case "(($ac_try" in
29756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29757 *) ac_try_echo=$ac_try;;
29758esac
29759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29760 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029761 ac_status=$?
29762 grep -v '^ *+' conftest.er1 >conftest.err
29763 rm -f conftest.er1
29764 cat conftest.err >&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029766 (exit $ac_status); } &&
29767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29768 { (case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29771esac
29772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773 (eval "$ac_try") 2>&5
29774 ac_status=$?
29775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); }; } &&
29777 { ac_try='test -s conftest.$ac_objext'
29778 { (case "(($ac_try" in
29779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780 *) ac_try_echo=$ac_try;;
29781esac
29782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783 (eval "$ac_try") 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029787 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029788else
29789 echo "$as_me: failed program was:" >&5
29790sed 's/^/| /' conftest.$ac_ext >&5
29791
Reid Spencera773bd52006-08-04 18:18:08 +000029792 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029793fi
Reid Spencera773bd52006-08-04 18:18:08 +000029794
29795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029796fi
Reid Spencera773bd52006-08-04 18:18:08 +000029797{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
29798echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029799if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029800
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029801cat >>confdefs.h <<\_ACEOF
29802#define TIME_WITH_SYS_TIME 1
29803_ACEOF
29804
29805fi
29806
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029807
Reid Spencer59473af2004-12-25 07:31:29 +000029808
29809
29810
29811
29812
29813
29814for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
29815do
29816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029821 echo $ECHO_N "(cached) $ECHO_C" >&6
29822fi
Reid Spencera773bd52006-08-04 18:18:08 +000029823ac_res=`eval echo '${'$as_ac_Header'}'`
29824 { echo "$as_me:$LINENO: result: $ac_res" >&5
29825echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029826else
29827 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029828{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29829echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029830cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029831/* confdefs.h. */
29832_ACEOF
29833cat confdefs.h >>conftest.$ac_ext
29834cat >>conftest.$ac_ext <<_ACEOF
29835/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000029836$ac_includes_default
29837#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029838_ACEOF
29839rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029840if { (ac_try="$ac_compile"
29841case "(($ac_try" in
29842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29843 *) ac_try_echo=$ac_try;;
29844esac
29845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29846 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029847 ac_status=$?
29848 grep -v '^ *+' conftest.er1 >conftest.err
29849 rm -f conftest.er1
29850 cat conftest.err >&5
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029852 (exit $ac_status); } &&
29853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29854 { (case "(($ac_try" in
29855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856 *) ac_try_echo=$ac_try;;
29857esac
29858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29859 (eval "$ac_try") 2>&5
29860 ac_status=$?
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; } &&
29863 { ac_try='test -s conftest.$ac_objext'
29864 { (case "(($ac_try" in
29865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29866 *) ac_try_echo=$ac_try;;
29867esac
29868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29869 (eval "$ac_try") 2>&5
29870 ac_status=$?
29871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029873 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029874else
29875 echo "$as_me: failed program was:" >&5
29876sed 's/^/| /' conftest.$ac_ext >&5
29877
Reid Spencera773bd52006-08-04 18:18:08 +000029878 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029879fi
Reid Spencera773bd52006-08-04 18:18:08 +000029880
29881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29882{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29883echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029884
Reid Spencer59473af2004-12-25 07:31:29 +000029885# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029886{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29887echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029888cat >conftest.$ac_ext <<_ACEOF
29889/* confdefs.h. */
29890_ACEOF
29891cat confdefs.h >>conftest.$ac_ext
29892cat >>conftest.$ac_ext <<_ACEOF
29893/* end confdefs.h. */
29894#include <$ac_header>
29895_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029896if { (ac_try="$ac_cpp conftest.$ac_ext"
29897case "(($ac_try" in
29898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899 *) ac_try_echo=$ac_try;;
29900esac
29901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029903 ac_status=$?
29904 grep -v '^ *+' conftest.er1 >conftest.err
29905 rm -f conftest.er1
29906 cat conftest.err >&5
29907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029908 (exit $ac_status); } >/dev/null; then
29909 if test -s conftest.err; then
29910 ac_cpp_err=$ac_c_preproc_warn_flag
29911 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29912 else
29913 ac_cpp_err=
29914 fi
29915else
29916 ac_cpp_err=yes
29917fi
29918if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029919 ac_header_preproc=yes
29920else
29921 echo "$as_me: failed program was:" >&5
29922sed 's/^/| /' conftest.$ac_ext >&5
29923
29924 ac_header_preproc=no
29925fi
Reid Spencera773bd52006-08-04 18:18:08 +000029926
Reid Spencer59473af2004-12-25 07:31:29 +000029927rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029928{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29929echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029930
29931# So? What about this header?
29932case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29933 yes:no: )
29934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29935echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29937echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29938 ac_header_preproc=yes
29939 ;;
29940 no:yes:* )
29941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29942echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29944echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29946echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29948echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29950echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29952echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029953 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029954## ----------------------------------- ##
29955## Report this to llvmbugs@cs.uiuc.edu ##
29956## ----------------------------------- ##
29957_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029958 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029959 ;;
29960esac
Reid Spencera773bd52006-08-04 18:18:08 +000029961{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029964 echo $ECHO_N "(cached) $ECHO_C" >&6
29965else
29966 eval "$as_ac_Header=\$ac_header_preproc"
29967fi
Reid Spencera773bd52006-08-04 18:18:08 +000029968ac_res=`eval echo '${'$as_ac_Header'}'`
29969 { echo "$as_me:$LINENO: result: $ac_res" >&5
29970echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029971
29972fi
Reid Spencer59473af2004-12-25 07:31:29 +000029973if test `eval echo '${'$as_ac_Header'}'` = yes; then
29974 cat >>confdefs.h <<_ACEOF
29975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029976_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029977
29978fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029979
Reid Spencer59473af2004-12-25 07:31:29 +000029980done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029981
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029982
29983
Reid Spencer59473af2004-12-25 07:31:29 +000029984
29985
29986
29987
Douglas Gregor071d73d2009-05-18 17:21:34 +000029988for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029989do
29990as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029991if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29993echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029995 echo $ECHO_N "(cached) $ECHO_C" >&6
29996fi
Reid Spencera773bd52006-08-04 18:18:08 +000029997ac_res=`eval echo '${'$as_ac_Header'}'`
29998 { echo "$as_me:$LINENO: result: $ac_res" >&5
29999echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030000else
30001 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030002{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30003echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030004cat >conftest.$ac_ext <<_ACEOF
30005/* confdefs.h. */
30006_ACEOF
30007cat confdefs.h >>conftest.$ac_ext
30008cat >>conftest.$ac_ext <<_ACEOF
30009/* end confdefs.h. */
30010$ac_includes_default
30011#include <$ac_header>
30012_ACEOF
30013rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030014if { (ac_try="$ac_compile"
30015case "(($ac_try" in
30016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30017 *) ac_try_echo=$ac_try;;
30018esac
30019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30020 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030021 ac_status=$?
30022 grep -v '^ *+' conftest.er1 >conftest.err
30023 rm -f conftest.er1
30024 cat conftest.err >&5
30025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030026 (exit $ac_status); } &&
30027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30028 { (case "(($ac_try" in
30029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030 *) ac_try_echo=$ac_try;;
30031esac
30032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033 (eval "$ac_try") 2>&5
30034 ac_status=$?
30035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30036 (exit $ac_status); }; } &&
30037 { ac_try='test -s conftest.$ac_objext'
30038 { (case "(($ac_try" in
30039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30040 *) ac_try_echo=$ac_try;;
30041esac
30042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30043 (eval "$ac_try") 2>&5
30044 ac_status=$?
30045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30046 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030047 ac_header_compiler=yes
30048else
30049 echo "$as_me: failed program was:" >&5
30050sed 's/^/| /' conftest.$ac_ext >&5
30051
Reid Spencera773bd52006-08-04 18:18:08 +000030052 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000030053fi
Reid Spencera773bd52006-08-04 18:18:08 +000030054
30055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30056{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30057echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030058
30059# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030060{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030062cat >conftest.$ac_ext <<_ACEOF
30063/* confdefs.h. */
30064_ACEOF
30065cat confdefs.h >>conftest.$ac_ext
30066cat >>conftest.$ac_ext <<_ACEOF
30067/* end confdefs.h. */
30068#include <$ac_header>
30069_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030070if { (ac_try="$ac_cpp conftest.$ac_ext"
30071case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30074esac
30075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000030077 ac_status=$?
30078 grep -v '^ *+' conftest.er1 >conftest.err
30079 rm -f conftest.er1
30080 cat conftest.err >&5
30081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030082 (exit $ac_status); } >/dev/null; then
30083 if test -s conftest.err; then
30084 ac_cpp_err=$ac_c_preproc_warn_flag
30085 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30086 else
30087 ac_cpp_err=
30088 fi
30089else
30090 ac_cpp_err=yes
30091fi
30092if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000030093 ac_header_preproc=yes
30094else
30095 echo "$as_me: failed program was:" >&5
30096sed 's/^/| /' conftest.$ac_ext >&5
30097
30098 ac_header_preproc=no
30099fi
Reid Spencera773bd52006-08-04 18:18:08 +000030100
Reid Spencer59473af2004-12-25 07:31:29 +000030101rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030102{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30103echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030104
30105# So? What about this header?
30106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30107 yes:no: )
30108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30109echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30111echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30112 ac_header_preproc=yes
30113 ;;
30114 no:yes:* )
30115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30116echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30118echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30120echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30122echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30124echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30126echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030127 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000030128## ----------------------------------- ##
30129## Report this to llvmbugs@cs.uiuc.edu ##
30130## ----------------------------------- ##
30131_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030132 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000030133 ;;
30134esac
Reid Spencera773bd52006-08-04 18:18:08 +000030135{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30137if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000030138 echo $ECHO_N "(cached) $ECHO_C" >&6
30139else
30140 eval "$as_ac_Header=\$ac_header_preproc"
30141fi
Reid Spencera773bd52006-08-04 18:18:08 +000030142ac_res=`eval echo '${'$as_ac_Header'}'`
30143 { echo "$as_me:$LINENO: result: $ac_res" >&5
30144echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000030145
30146fi
30147if test `eval echo '${'$as_ac_Header'}'` = yes; then
30148 cat >>confdefs.h <<_ACEOF
30149#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30150_ACEOF
30151
30152fi
30153
30154done
30155
30156
Douglas Gregor071d73d2009-05-18 17:21:34 +000030157
30158for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000030159do
30160as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30165 echo $ECHO_N "(cached) $ECHO_C" >&6
30166fi
30167ac_res=`eval echo '${'$as_ac_Header'}'`
30168 { echo "$as_me:$LINENO: result: $ac_res" >&5
30169echo "${ECHO_T}$ac_res" >&6; }
30170else
30171 # Is the header compilable?
30172{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30173echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30174cat >conftest.$ac_ext <<_ACEOF
30175/* confdefs.h. */
30176_ACEOF
30177cat confdefs.h >>conftest.$ac_ext
30178cat >>conftest.$ac_ext <<_ACEOF
30179/* end confdefs.h. */
30180$ac_includes_default
30181#include <$ac_header>
30182_ACEOF
30183rm -f conftest.$ac_objext
30184if { (ac_try="$ac_compile"
30185case "(($ac_try" in
30186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30187 *) ac_try_echo=$ac_try;;
30188esac
30189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30190 (eval "$ac_compile") 2>conftest.er1
30191 ac_status=$?
30192 grep -v '^ *+' conftest.er1 >conftest.err
30193 rm -f conftest.er1
30194 cat conftest.err >&5
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030196 (exit $ac_status); } &&
30197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30198 { (case "(($ac_try" in
30199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200 *) ac_try_echo=$ac_try;;
30201esac
30202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203 (eval "$ac_try") 2>&5
30204 ac_status=$?
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; } &&
30207 { ac_try='test -s conftest.$ac_objext'
30208 { (case "(($ac_try" in
30209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30210 *) ac_try_echo=$ac_try;;
30211esac
30212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30213 (eval "$ac_try") 2>&5
30214 ac_status=$?
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030217 ac_header_compiler=yes
30218else
30219 echo "$as_me: failed program was:" >&5
30220sed 's/^/| /' conftest.$ac_ext >&5
30221
30222 ac_header_compiler=no
30223fi
30224
30225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30226{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30227echo "${ECHO_T}$ac_header_compiler" >&6; }
30228
30229# Is the header present?
30230{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30231echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30232cat >conftest.$ac_ext <<_ACEOF
30233/* confdefs.h. */
30234_ACEOF
30235cat confdefs.h >>conftest.$ac_ext
30236cat >>conftest.$ac_ext <<_ACEOF
30237/* end confdefs.h. */
30238#include <$ac_header>
30239_ACEOF
30240if { (ac_try="$ac_cpp conftest.$ac_ext"
30241case "(($ac_try" in
30242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30243 *) ac_try_echo=$ac_try;;
30244esac
30245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30247 ac_status=$?
30248 grep -v '^ *+' conftest.er1 >conftest.err
30249 rm -f conftest.er1
30250 cat conftest.err >&5
30251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030252 (exit $ac_status); } >/dev/null; then
30253 if test -s conftest.err; then
30254 ac_cpp_err=$ac_c_preproc_warn_flag
30255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30256 else
30257 ac_cpp_err=
30258 fi
30259else
30260 ac_cpp_err=yes
30261fi
30262if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030263 ac_header_preproc=yes
30264else
30265 echo "$as_me: failed program was:" >&5
30266sed 's/^/| /' conftest.$ac_ext >&5
30267
30268 ac_header_preproc=no
30269fi
30270
30271rm -f conftest.err conftest.$ac_ext
30272{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30273echo "${ECHO_T}$ac_header_preproc" >&6; }
30274
30275# So? What about this header?
30276case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30277 yes:no: )
30278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30279echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30281echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30282 ac_header_preproc=yes
30283 ;;
30284 no:yes:* )
30285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30286echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30288echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30290echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30292echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30294echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30296echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30297 ( cat <<\_ASBOX
30298## ----------------------------------- ##
30299## Report this to llvmbugs@cs.uiuc.edu ##
30300## ----------------------------------- ##
30301_ASBOX
30302 ) | sed "s/^/$as_me: WARNING: /" >&2
30303 ;;
30304esac
30305{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30308 echo $ECHO_N "(cached) $ECHO_C" >&6
30309else
30310 eval "$as_ac_Header=\$ac_header_preproc"
30311fi
30312ac_res=`eval echo '${'$as_ac_Header'}'`
30313 { echo "$as_me:$LINENO: result: $ac_res" >&5
30314echo "${ECHO_T}$ac_res" >&6; }
30315
30316fi
30317if test `eval echo '${'$as_ac_Header'}'` = yes; then
30318 cat >>confdefs.h <<_ACEOF
30319#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30320_ACEOF
30321
30322fi
30323
30324done
Reid Spencer59473af2004-12-25 07:31:29 +000030325
30326
30327
30328
Reid Spencerbe3e4192007-08-17 05:45:26 +000030329
30330for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030331do
30332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030333if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30334 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030337 echo $ECHO_N "(cached) $ECHO_C" >&6
30338fi
Reid Spencera773bd52006-08-04 18:18:08 +000030339ac_res=`eval echo '${'$as_ac_Header'}'`
30340 { echo "$as_me:$LINENO: result: $ac_res" >&5
30341echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030342else
30343 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030344{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30345echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030346cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030347/* confdefs.h. */
30348_ACEOF
30349cat confdefs.h >>conftest.$ac_ext
30350cat >>conftest.$ac_ext <<_ACEOF
30351/* end confdefs.h. */
30352$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030353#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030354_ACEOF
30355rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030356if { (ac_try="$ac_compile"
30357case "(($ac_try" in
30358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30359 *) ac_try_echo=$ac_try;;
30360esac
30361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30362 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030363 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030364 grep -v '^ *+' conftest.er1 >conftest.err
30365 rm -f conftest.er1
30366 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030368 (exit $ac_status); } &&
30369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30370 { (case "(($ac_try" in
30371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372 *) ac_try_echo=$ac_try;;
30373esac
30374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375 (eval "$ac_try") 2>&5
30376 ac_status=$?
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); }; } &&
30379 { ac_try='test -s conftest.$ac_objext'
30380 { (case "(($ac_try" in
30381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30382 *) ac_try_echo=$ac_try;;
30383esac
30384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30385 (eval "$ac_try") 2>&5
30386 ac_status=$?
30387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30388 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030389 ac_header_compiler=yes
30390else
30391 echo "$as_me: failed program was:" >&5
30392sed 's/^/| /' conftest.$ac_ext >&5
30393
Reid Spencera773bd52006-08-04 18:18:08 +000030394 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030395fi
Reid Spencera773bd52006-08-04 18:18:08 +000030396
30397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30398{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30399echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030400
30401# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030402{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30403echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030404cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030405/* confdefs.h. */
30406_ACEOF
30407cat confdefs.h >>conftest.$ac_ext
30408cat >>conftest.$ac_ext <<_ACEOF
30409/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030410#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030411_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030412if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030419 ac_status=$?
30420 grep -v '^ *+' conftest.er1 >conftest.err
30421 rm -f conftest.er1
30422 cat conftest.err >&5
30423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030424 (exit $ac_status); } >/dev/null; then
30425 if test -s conftest.err; then
30426 ac_cpp_err=$ac_c_preproc_warn_flag
30427 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30428 else
30429 ac_cpp_err=
30430 fi
30431else
30432 ac_cpp_err=yes
30433fi
30434if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030435 ac_header_preproc=yes
30436else
30437 echo "$as_me: failed program was:" >&5
30438sed 's/^/| /' conftest.$ac_ext >&5
30439
30440 ac_header_preproc=no
30441fi
Reid Spencera773bd52006-08-04 18:18:08 +000030442
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030443rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030444{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30445echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030446
30447# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30449 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30453echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030454 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030455 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030456 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30460echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30462echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30464echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30468echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030469 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030470## ----------------------------------- ##
30471## Report this to llvmbugs@cs.uiuc.edu ##
30472## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030473_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030474 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030475 ;;
30476esac
Reid Spencera773bd52006-08-04 18:18:08 +000030477{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030480 echo $ECHO_N "(cached) $ECHO_C" >&6
30481else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030482 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030483fi
Reid Spencera773bd52006-08-04 18:18:08 +000030484ac_res=`eval echo '${'$as_ac_Header'}'`
30485 { echo "$as_me:$LINENO: result: $ac_res" >&5
30486echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000030487
30488fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030489if test `eval echo '${'$as_ac_Header'}'` = yes; then
30490 cat >>confdefs.h <<_ACEOF
30491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000030492_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000030493
30494fi
John Criswell7ed43ad2004-07-19 16:12:29 +000030495
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030496done
30497
John Criswell7ed43ad2004-07-19 16:12:29 +000030498
Reid Spencercdb08a32006-06-05 16:11:07 +000030499
Reid Spencera6d990a2006-09-14 06:17:21 +000030500
Douglas Gregor01746742009-05-11 18:05:52 +000030501
30502for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000030503do
30504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030505if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030509 echo $ECHO_N "(cached) $ECHO_C" >&6
30510fi
Reid Spencera773bd52006-08-04 18:18:08 +000030511ac_res=`eval echo '${'$as_ac_Header'}'`
30512 { echo "$as_me:$LINENO: result: $ac_res" >&5
30513echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030514else
30515 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000030516{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30517echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030518cat >conftest.$ac_ext <<_ACEOF
30519/* confdefs.h. */
30520_ACEOF
30521cat confdefs.h >>conftest.$ac_ext
30522cat >>conftest.$ac_ext <<_ACEOF
30523/* end confdefs.h. */
30524$ac_includes_default
30525#include <$ac_header>
30526_ACEOF
30527rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030528if { (ac_try="$ac_compile"
30529case "(($ac_try" in
30530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30531 *) ac_try_echo=$ac_try;;
30532esac
30533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30534 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030535 ac_status=$?
30536 grep -v '^ *+' conftest.er1 >conftest.err
30537 rm -f conftest.er1
30538 cat conftest.err >&5
30539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030540 (exit $ac_status); } &&
30541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30542 { (case "(($ac_try" in
30543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30544 *) ac_try_echo=$ac_try;;
30545esac
30546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30547 (eval "$ac_try") 2>&5
30548 ac_status=$?
30549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550 (exit $ac_status); }; } &&
30551 { ac_try='test -s conftest.$ac_objext'
30552 { (case "(($ac_try" in
30553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30554 *) ac_try_echo=$ac_try;;
30555esac
30556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30557 (eval "$ac_try") 2>&5
30558 ac_status=$?
30559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30560 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030561 ac_header_compiler=yes
30562else
30563 echo "$as_me: failed program was:" >&5
30564sed 's/^/| /' conftest.$ac_ext >&5
30565
Reid Spencera773bd52006-08-04 18:18:08 +000030566 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000030567fi
Reid Spencera773bd52006-08-04 18:18:08 +000030568
30569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30570{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30571echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030572
30573# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000030574{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030576cat >conftest.$ac_ext <<_ACEOF
30577/* confdefs.h. */
30578_ACEOF
30579cat confdefs.h >>conftest.$ac_ext
30580cat >>conftest.$ac_ext <<_ACEOF
30581/* end confdefs.h. */
30582#include <$ac_header>
30583_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030584if { (ac_try="$ac_cpp conftest.$ac_ext"
30585case "(($ac_try" in
30586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30587 *) ac_try_echo=$ac_try;;
30588esac
30589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000030591 ac_status=$?
30592 grep -v '^ *+' conftest.er1 >conftest.err
30593 rm -f conftest.er1
30594 cat conftest.err >&5
30595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030596 (exit $ac_status); } >/dev/null; then
30597 if test -s conftest.err; then
30598 ac_cpp_err=$ac_c_preproc_warn_flag
30599 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30600 else
30601 ac_cpp_err=
30602 fi
30603else
30604 ac_cpp_err=yes
30605fi
30606if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000030607 ac_header_preproc=yes
30608else
30609 echo "$as_me: failed program was:" >&5
30610sed 's/^/| /' conftest.$ac_ext >&5
30611
30612 ac_header_preproc=no
30613fi
Reid Spencera773bd52006-08-04 18:18:08 +000030614
Chris Lattner0b142592005-11-14 06:57:34 +000030615rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030616{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30617echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030618
30619# So? What about this header?
30620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30621 yes:no: )
30622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30625echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30626 ac_header_preproc=yes
30627 ;;
30628 no:yes:* )
30629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30630echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30632echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30634echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30636echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30640echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030641 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000030642## ----------------------------------- ##
30643## Report this to llvmbugs@cs.uiuc.edu ##
30644## ----------------------------------- ##
30645_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030646 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000030647 ;;
30648esac
Reid Spencera773bd52006-08-04 18:18:08 +000030649{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000030652 echo $ECHO_N "(cached) $ECHO_C" >&6
30653else
30654 eval "$as_ac_Header=\$ac_header_preproc"
30655fi
Reid Spencera773bd52006-08-04 18:18:08 +000030656ac_res=`eval echo '${'$as_ac_Header'}'`
30657 { echo "$as_me:$LINENO: result: $ac_res" >&5
30658echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000030659
30660fi
30661if test `eval echo '${'$as_ac_Header'}'` = yes; then
30662 cat >>confdefs.h <<_ACEOF
30663#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30664_ACEOF
30665
30666fi
30667
30668done
30669
Reid Spencer0a262ba2005-08-24 10:07:20 +000030670if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000030671
30672for ac_header in pthread.h
30673do
30674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30678if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030679 echo $ECHO_N "(cached) $ECHO_C" >&6
30680fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030681ac_res=`eval echo '${'$as_ac_Header'}'`
30682 { echo "$as_me:$LINENO: result: $ac_res" >&5
30683echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030684else
30685 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030686{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30687echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030688cat >conftest.$ac_ext <<_ACEOF
30689/* confdefs.h. */
30690_ACEOF
30691cat confdefs.h >>conftest.$ac_ext
30692cat >>conftest.$ac_ext <<_ACEOF
30693/* end confdefs.h. */
30694$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000030695#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030696_ACEOF
30697rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030698if { (ac_try="$ac_compile"
30699case "(($ac_try" in
30700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30701 *) ac_try_echo=$ac_try;;
30702esac
30703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30704 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030705 ac_status=$?
30706 grep -v '^ *+' conftest.er1 >conftest.err
30707 rm -f conftest.er1
30708 cat conftest.err >&5
30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030710 (exit $ac_status); } &&
30711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30712 { (case "(($ac_try" in
30713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30714 *) ac_try_echo=$ac_try;;
30715esac
30716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30717 (eval "$ac_try") 2>&5
30718 ac_status=$?
30719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 (exit $ac_status); }; } &&
30721 { ac_try='test -s conftest.$ac_objext'
30722 { (case "(($ac_try" in
30723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30724 *) ac_try_echo=$ac_try;;
30725esac
30726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30727 (eval "$ac_try") 2>&5
30728 ac_status=$?
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030731 ac_header_compiler=yes
30732else
30733 echo "$as_me: failed program was:" >&5
30734sed 's/^/| /' conftest.$ac_ext >&5
30735
Reid Spencera773bd52006-08-04 18:18:08 +000030736 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000030737fi
Reid Spencera773bd52006-08-04 18:18:08 +000030738
30739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30740{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30741echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030742
30743# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000030744{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30745echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030746cat >conftest.$ac_ext <<_ACEOF
30747/* confdefs.h. */
30748_ACEOF
30749cat confdefs.h >>conftest.$ac_ext
30750cat >>conftest.$ac_ext <<_ACEOF
30751/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000030752#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000030753_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030754if { (ac_try="$ac_cpp conftest.$ac_ext"
30755case "(($ac_try" in
30756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30757 *) ac_try_echo=$ac_try;;
30758esac
30759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000030761 ac_status=$?
30762 grep -v '^ *+' conftest.er1 >conftest.err
30763 rm -f conftest.er1
30764 cat conftest.err >&5
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030766 (exit $ac_status); } >/dev/null; then
30767 if test -s conftest.err; then
30768 ac_cpp_err=$ac_c_preproc_warn_flag
30769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30770 else
30771 ac_cpp_err=
30772 fi
30773else
30774 ac_cpp_err=yes
30775fi
30776if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030777 ac_header_preproc=yes
30778else
30779 echo "$as_me: failed program was:" >&5
30780sed 's/^/| /' conftest.$ac_ext >&5
30781
30782 ac_header_preproc=no
30783fi
Reid Spencera773bd52006-08-04 18:18:08 +000030784
Reid Spencer0a262ba2005-08-24 10:07:20 +000030785rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000030786{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30787echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030788
30789# So? What about this header?
30790case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30791 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30795echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000030796 ac_header_preproc=yes
30797 ;;
30798 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000030799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30802echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30804echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30806echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30808echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30810echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000030811 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000030812## ----------------------------------- ##
30813## Report this to llvmbugs@cs.uiuc.edu ##
30814## ----------------------------------- ##
30815_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000030816 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000030817 ;;
30818esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000030819{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30820echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30821if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000030822 echo $ECHO_N "(cached) $ECHO_C" >&6
30823else
Reid Spencerbe3e4192007-08-17 05:45:26 +000030824 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000030825fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030826ac_res=`eval echo '${'$as_ac_Header'}'`
30827 { echo "$as_me:$LINENO: result: $ac_res" >&5
30828echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000030829
30830fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000030831if test `eval echo '${'$as_ac_Header'}'` = yes; then
30832 cat >>confdefs.h <<_ACEOF
30833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30834_ACEOF
30835 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000030836
30837else
30838 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030839
30840fi
30841
Reid Spencerbe3e4192007-08-17 05:45:26 +000030842done
Reid Spencer1000b732006-12-01 00:37:14 +000030843
30844else
30845 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000030846
30847fi
Reid Spencer8085cff2005-01-16 02:58:39 +000030848
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030849if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030850
30851
30852for ac_header in ffi.h ffi/ffi.h
30853do
30854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30858if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30859 echo $ECHO_N "(cached) $ECHO_C" >&6
30860fi
30861ac_res=`eval echo '${'$as_ac_Header'}'`
30862 { echo "$as_me:$LINENO: result: $ac_res" >&5
30863echo "${ECHO_T}$ac_res" >&6; }
30864else
30865 # Is the header compilable?
30866{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
30867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30868cat >conftest.$ac_ext <<_ACEOF
30869/* confdefs.h. */
30870_ACEOF
30871cat confdefs.h >>conftest.$ac_ext
30872cat >>conftest.$ac_ext <<_ACEOF
30873/* end confdefs.h. */
30874$ac_includes_default
30875#include <$ac_header>
30876_ACEOF
30877rm -f conftest.$ac_objext
30878if { (ac_try="$ac_compile"
30879case "(($ac_try" in
30880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30881 *) ac_try_echo=$ac_try;;
30882esac
30883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30884 (eval "$ac_compile") 2>conftest.er1
30885 ac_status=$?
30886 grep -v '^ *+' conftest.er1 >conftest.err
30887 rm -f conftest.er1
30888 cat conftest.err >&5
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030890 (exit $ac_status); } &&
30891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30892 { (case "(($ac_try" in
30893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30894 *) ac_try_echo=$ac_try;;
30895esac
30896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30897 (eval "$ac_try") 2>&5
30898 ac_status=$?
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; } &&
30901 { ac_try='test -s conftest.$ac_objext'
30902 { (case "(($ac_try" in
30903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904 *) ac_try_echo=$ac_try;;
30905esac
30906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907 (eval "$ac_try") 2>&5
30908 ac_status=$?
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030911 ac_header_compiler=yes
30912else
30913 echo "$as_me: failed program was:" >&5
30914sed 's/^/| /' conftest.$ac_ext >&5
30915
30916 ac_header_compiler=no
30917fi
30918
30919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30920{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30921echo "${ECHO_T}$ac_header_compiler" >&6; }
30922
30923# Is the header present?
30924{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30925echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30926cat >conftest.$ac_ext <<_ACEOF
30927/* confdefs.h. */
30928_ACEOF
30929cat confdefs.h >>conftest.$ac_ext
30930cat >>conftest.$ac_ext <<_ACEOF
30931/* end confdefs.h. */
30932#include <$ac_header>
30933_ACEOF
30934if { (ac_try="$ac_cpp conftest.$ac_ext"
30935case "(($ac_try" in
30936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30937 *) ac_try_echo=$ac_try;;
30938esac
30939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30941 ac_status=$?
30942 grep -v '^ *+' conftest.er1 >conftest.err
30943 rm -f conftest.er1
30944 cat conftest.err >&5
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030946 (exit $ac_status); } >/dev/null; then
30947 if test -s conftest.err; then
30948 ac_cpp_err=$ac_c_preproc_warn_flag
30949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30950 else
30951 ac_cpp_err=
30952 fi
30953else
30954 ac_cpp_err=yes
30955fi
30956if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030957 ac_header_preproc=yes
30958else
30959 echo "$as_me: failed program was:" >&5
30960sed 's/^/| /' conftest.$ac_ext >&5
30961
30962 ac_header_preproc=no
30963fi
30964
30965rm -f conftest.err conftest.$ac_ext
30966{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30967echo "${ECHO_T}$ac_header_preproc" >&6; }
30968
30969# So? What about this header?
30970case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30971 yes:no: )
30972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30973echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30975echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30976 ac_header_preproc=yes
30977 ;;
30978 no:yes:* )
30979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30980echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30982echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30984echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30986echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30988echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30990echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30991 ( cat <<\_ASBOX
30992## ----------------------------------- ##
30993## Report this to llvmbugs@cs.uiuc.edu ##
30994## ----------------------------------- ##
30995_ASBOX
30996 ) | sed "s/^/$as_me: WARNING: /" >&2
30997 ;;
30998esac
30999{ echo "$as_me:$LINENO: checking for $ac_header" >&5
31000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31001if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31002 echo $ECHO_N "(cached) $ECHO_C" >&6
31003else
31004 eval "$as_ac_Header=\$ac_header_preproc"
31005fi
31006ac_res=`eval echo '${'$as_ac_Header'}'`
31007 { echo "$as_me:$LINENO: result: $ac_res" >&5
31008echo "${ECHO_T}$ac_res" >&6; }
31009
31010fi
31011if test `eval echo '${'$as_ac_Header'}'` = yes; then
31012 cat >>confdefs.h <<_ACEOF
31013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31014_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031015
31016fi
31017
31018done
31019
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000031020fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000031021
Nick Lewycky2ab1d862009-01-20 00:52:24 +000031022
Reid Spencer8085cff2005-01-16 02:58:39 +000031023
Reid Spencerb2ed05262006-11-03 18:04:08 +000031024 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
31025echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
31026if test "${ac_cv_huge_val_sanity+set}" = set; then
31027 echo $ECHO_N "(cached) $ECHO_C" >&6
31028else
31029
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031030 ac_ext=cpp
31031ac_cpp='$CXXCPP $CPPFLAGS'
31032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000031035
Reid Spencer6a7c0b72006-11-03 19:49:16 +000031036 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000031037 if test "$cross_compiling" = yes; then
31038 ac_cv_huge_val_sanity=yes
31039else
31040 cat >conftest.$ac_ext <<_ACEOF
31041/* confdefs.h. */
31042_ACEOF
31043cat confdefs.h >>conftest.$ac_ext
31044cat >>conftest.$ac_ext <<_ACEOF
31045/* end confdefs.h. */
31046#include <math.h>
31047int
31048main ()
31049{
31050double x = HUGE_VAL; return x != x;
31051 ;
31052 return 0;
31053}
31054_ACEOF
31055rm -f conftest$ac_exeext
31056if { (ac_try="$ac_link"
31057case "(($ac_try" in
31058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31059 *) ac_try_echo=$ac_try;;
31060esac
31061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31062 (eval "$ac_link") 2>&5
31063 ac_status=$?
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31066 { (case "(($ac_try" in
31067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31068 *) ac_try_echo=$ac_try;;
31069esac
31070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31071 (eval "$ac_try") 2>&5
31072 ac_status=$?
31073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074 (exit $ac_status); }; }; then
31075 ac_cv_huge_val_sanity=yes
31076else
31077 echo "$as_me: program exited with status $ac_status" >&5
31078echo "$as_me: failed program was:" >&5
31079sed 's/^/| /' conftest.$ac_ext >&5
31080
31081( exit $ac_status )
31082ac_cv_huge_val_sanity=no
31083fi
31084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31085fi
31086
31087
31088 ac_ext=c
31089ac_cpp='$CPP $CPPFLAGS'
31090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31092ac_compiler_gnu=$ac_cv_c_compiler_gnu
31093
31094
31095fi
31096{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
31097echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
31098 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
31099
31100
Reid Spencera773bd52006-08-04 18:18:08 +000031101{ echo "$as_me:$LINENO: checking for pid_t" >&5
31102echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031103if test "${ac_cv_type_pid_t+set}" = set; then
31104 echo $ECHO_N "(cached) $ECHO_C" >&6
31105else
31106 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031107/* confdefs.h. */
31108_ACEOF
31109cat confdefs.h >>conftest.$ac_ext
31110cat >>conftest.$ac_ext <<_ACEOF
31111/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031112$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031113typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031114int
31115main ()
31116{
Reid Spencera773bd52006-08-04 18:18:08 +000031117if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031118 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031119if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031120 return 0;
31121 ;
31122 return 0;
31123}
31124_ACEOF
31125rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031126if { (ac_try="$ac_compile"
31127case "(($ac_try" in
31128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129 *) ac_try_echo=$ac_try;;
31130esac
31131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31132 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031133 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031134 grep -v '^ *+' conftest.er1 >conftest.err
31135 rm -f conftest.er1
31136 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031138 (exit $ac_status); } &&
31139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31140 { (case "(($ac_try" in
31141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31142 *) ac_try_echo=$ac_try;;
31143esac
31144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31145 (eval "$ac_try") 2>&5
31146 ac_status=$?
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); }; } &&
31149 { ac_try='test -s conftest.$ac_objext'
31150 { (case "(($ac_try" in
31151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31152 *) ac_try_echo=$ac_try;;
31153esac
31154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31155 (eval "$ac_try") 2>&5
31156 ac_status=$?
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031159 ac_cv_type_pid_t=yes
31160else
31161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031162sed 's/^/| /' conftest.$ac_ext >&5
31163
Reid Spencera773bd52006-08-04 18:18:08 +000031164 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031165fi
Reid Spencera773bd52006-08-04 18:18:08 +000031166
31167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031168fi
Reid Spencera773bd52006-08-04 18:18:08 +000031169{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31170echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031171if test $ac_cv_type_pid_t = yes; then
31172 :
31173else
31174
31175cat >>confdefs.h <<_ACEOF
31176#define pid_t int
31177_ACEOF
31178
31179fi
31180
Reid Spencera773bd52006-08-04 18:18:08 +000031181{ echo "$as_me:$LINENO: checking for size_t" >&5
31182echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031183if test "${ac_cv_type_size_t+set}" = set; then
31184 echo $ECHO_N "(cached) $ECHO_C" >&6
31185else
31186 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031187/* confdefs.h. */
31188_ACEOF
31189cat confdefs.h >>conftest.$ac_ext
31190cat >>conftest.$ac_ext <<_ACEOF
31191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031192$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031193typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031194int
31195main ()
31196{
Reid Spencera773bd52006-08-04 18:18:08 +000031197if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031198 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031199if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031200 return 0;
31201 ;
31202 return 0;
31203}
31204_ACEOF
31205rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031206if { (ac_try="$ac_compile"
31207case "(($ac_try" in
31208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31209 *) ac_try_echo=$ac_try;;
31210esac
31211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31212 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031213 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031214 grep -v '^ *+' conftest.er1 >conftest.err
31215 rm -f conftest.er1
31216 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031218 (exit $ac_status); } &&
31219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31220 { (case "(($ac_try" in
31221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31222 *) ac_try_echo=$ac_try;;
31223esac
31224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31225 (eval "$ac_try") 2>&5
31226 ac_status=$?
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); }; } &&
31229 { ac_try='test -s conftest.$ac_objext'
31230 { (case "(($ac_try" in
31231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232 *) ac_try_echo=$ac_try;;
31233esac
31234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31235 (eval "$ac_try") 2>&5
31236 ac_status=$?
31237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31238 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031239 ac_cv_type_size_t=yes
31240else
31241 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031242sed 's/^/| /' conftest.$ac_ext >&5
31243
Reid Spencera773bd52006-08-04 18:18:08 +000031244 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031245fi
Reid Spencera773bd52006-08-04 18:18:08 +000031246
31247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031248fi
Reid Spencera773bd52006-08-04 18:18:08 +000031249{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31250echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031251if test $ac_cv_type_size_t = yes; then
31252 :
31253else
31254
31255cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000031256#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000031257_ACEOF
31258
31259fi
31260
Reid Spencera773bd52006-08-04 18:18:08 +000031261{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
31262echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031263if test "${ac_cv_type_signal+set}" = set; then
31264 echo $ECHO_N "(cached) $ECHO_C" >&6
31265else
31266 cat >conftest.$ac_ext <<_ACEOF
31267/* confdefs.h. */
31268_ACEOF
31269cat confdefs.h >>conftest.$ac_ext
31270cat >>conftest.$ac_ext <<_ACEOF
31271/* end confdefs.h. */
31272#include <sys/types.h>
31273#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031274
31275int
31276main ()
31277{
Reid Spencera773bd52006-08-04 18:18:08 +000031278return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031279 ;
31280 return 0;
31281}
31282_ACEOF
31283rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031284if { (ac_try="$ac_compile"
31285case "(($ac_try" in
31286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31287 *) ac_try_echo=$ac_try;;
31288esac
31289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31290 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031291 ac_status=$?
31292 grep -v '^ *+' conftest.er1 >conftest.err
31293 rm -f conftest.er1
31294 cat conftest.err >&5
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031296 (exit $ac_status); } &&
31297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31298 { (case "(($ac_try" in
31299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31300 *) ac_try_echo=$ac_try;;
31301esac
31302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31303 (eval "$ac_try") 2>&5
31304 ac_status=$?
31305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); }; } &&
31307 { ac_try='test -s conftest.$ac_objext'
31308 { (case "(($ac_try" in
31309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31310 *) ac_try_echo=$ac_try;;
31311esac
31312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31313 (eval "$ac_try") 2>&5
31314 ac_status=$?
31315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31316 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000031317 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031318else
31319 echo "$as_me: failed program was:" >&5
31320sed 's/^/| /' conftest.$ac_ext >&5
31321
Reid Spencera773bd52006-08-04 18:18:08 +000031322 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031323fi
Reid Spencera773bd52006-08-04 18:18:08 +000031324
31325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031326fi
Reid Spencera773bd52006-08-04 18:18:08 +000031327{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
31328echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031329
31330cat >>confdefs.h <<_ACEOF
31331#define RETSIGTYPE $ac_cv_type_signal
31332_ACEOF
31333
31334
Reid Spencera773bd52006-08-04 18:18:08 +000031335{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
31336echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031337if test "${ac_cv_struct_tm+set}" = set; then
31338 echo $ECHO_N "(cached) $ECHO_C" >&6
31339else
31340 cat >conftest.$ac_ext <<_ACEOF
31341/* confdefs.h. */
31342_ACEOF
31343cat confdefs.h >>conftest.$ac_ext
31344cat >>conftest.$ac_ext <<_ACEOF
31345/* end confdefs.h. */
31346#include <sys/types.h>
31347#include <time.h>
31348
31349int
31350main ()
31351{
Bill Wendlingebcceee2009-04-18 11:20:33 +000031352struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031353 ;
31354 return 0;
31355}
31356_ACEOF
31357rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031358if { (ac_try="$ac_compile"
31359case "(($ac_try" in
31360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31361 *) ac_try_echo=$ac_try;;
31362esac
31363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31364 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031365 ac_status=$?
31366 grep -v '^ *+' conftest.er1 >conftest.err
31367 rm -f conftest.er1
31368 cat conftest.err >&5
31369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031370 (exit $ac_status); } &&
31371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31372 { (case "(($ac_try" in
31373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31374 *) ac_try_echo=$ac_try;;
31375esac
31376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31377 (eval "$ac_try") 2>&5
31378 ac_status=$?
31379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380 (exit $ac_status); }; } &&
31381 { ac_try='test -s conftest.$ac_objext'
31382 { (case "(($ac_try" in
31383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31384 *) ac_try_echo=$ac_try;;
31385esac
31386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31387 (eval "$ac_try") 2>&5
31388 ac_status=$?
31389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31390 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031391 ac_cv_struct_tm=time.h
31392else
31393 echo "$as_me: failed program was:" >&5
31394sed 's/^/| /' conftest.$ac_ext >&5
31395
Reid Spencera773bd52006-08-04 18:18:08 +000031396 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031397fi
Reid Spencera773bd52006-08-04 18:18:08 +000031398
31399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031400fi
Reid Spencera773bd52006-08-04 18:18:08 +000031401{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
31402echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031403if test $ac_cv_struct_tm = sys/time.h; then
31404
31405cat >>confdefs.h <<\_ACEOF
31406#define TM_IN_SYS_TIME 1
31407_ACEOF
31408
31409fi
31410
Reid Spencera773bd52006-08-04 18:18:08 +000031411{ echo "$as_me:$LINENO: checking for int64_t" >&5
31412echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031413if test "${ac_cv_type_int64_t+set}" = set; then
31414 echo $ECHO_N "(cached) $ECHO_C" >&6
31415else
31416 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031417/* confdefs.h. */
31418_ACEOF
31419cat confdefs.h >>conftest.$ac_ext
31420cat >>conftest.$ac_ext <<_ACEOF
31421/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031422$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031423typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031424int
31425main ()
31426{
Reid Spencera773bd52006-08-04 18:18:08 +000031427if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031428 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031429if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031430 return 0;
31431 ;
31432 return 0;
31433}
31434_ACEOF
31435rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031436if { (ac_try="$ac_compile"
31437case "(($ac_try" in
31438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31439 *) ac_try_echo=$ac_try;;
31440esac
31441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31442 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031443 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031444 grep -v '^ *+' conftest.er1 >conftest.err
31445 rm -f conftest.er1
31446 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031448 (exit $ac_status); } &&
31449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31450 { (case "(($ac_try" in
31451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31452 *) ac_try_echo=$ac_try;;
31453esac
31454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31455 (eval "$ac_try") 2>&5
31456 ac_status=$?
31457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31458 (exit $ac_status); }; } &&
31459 { ac_try='test -s conftest.$ac_objext'
31460 { (case "(($ac_try" in
31461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31462 *) ac_try_echo=$ac_try;;
31463esac
31464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31465 (eval "$ac_try") 2>&5
31466 ac_status=$?
31467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31468 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031469 ac_cv_type_int64_t=yes
31470else
31471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031472sed 's/^/| /' conftest.$ac_ext >&5
31473
Reid Spencera773bd52006-08-04 18:18:08 +000031474 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031475fi
Reid Spencera773bd52006-08-04 18:18:08 +000031476
31477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031478fi
Reid Spencera773bd52006-08-04 18:18:08 +000031479{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
31480echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031481if test $ac_cv_type_int64_t = yes; then
31482
31483cat >>confdefs.h <<_ACEOF
31484#define HAVE_INT64_T 1
31485_ACEOF
31486
31487
31488else
31489 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
31490echo "$as_me: error: Type int64_t required but not found" >&2;}
31491 { (exit 1); exit 1; }; }
31492fi
31493
Reid Spencera773bd52006-08-04 18:18:08 +000031494{ echo "$as_me:$LINENO: checking for uint64_t" >&5
31495echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031496if test "${ac_cv_type_uint64_t+set}" = set; then
31497 echo $ECHO_N "(cached) $ECHO_C" >&6
31498else
31499 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031500/* confdefs.h. */
31501_ACEOF
31502cat confdefs.h >>conftest.$ac_ext
31503cat >>conftest.$ac_ext <<_ACEOF
31504/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031505$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031506typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000031507int
31508main ()
31509{
Reid Spencera773bd52006-08-04 18:18:08 +000031510if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000031511 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031512if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000031513 return 0;
31514 ;
31515 return 0;
31516}
31517_ACEOF
31518rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031519if { (ac_try="$ac_compile"
31520case "(($ac_try" in
31521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31522 *) ac_try_echo=$ac_try;;
31523esac
31524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31525 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031526 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031527 grep -v '^ *+' conftest.er1 >conftest.err
31528 rm -f conftest.er1
31529 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031531 (exit $ac_status); } &&
31532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31533 { (case "(($ac_try" in
31534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31535 *) ac_try_echo=$ac_try;;
31536esac
31537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31538 (eval "$ac_try") 2>&5
31539 ac_status=$?
31540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541 (exit $ac_status); }; } &&
31542 { ac_try='test -s conftest.$ac_objext'
31543 { (case "(($ac_try" in
31544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31545 *) ac_try_echo=$ac_try;;
31546esac
31547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31548 (eval "$ac_try") 2>&5
31549 ac_status=$?
31550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031552 ac_cv_type_uint64_t=yes
31553else
31554 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031555sed 's/^/| /' conftest.$ac_ext >&5
31556
Reid Spencera773bd52006-08-04 18:18:08 +000031557 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000031558fi
Reid Spencera773bd52006-08-04 18:18:08 +000031559
31560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031561fi
Reid Spencera773bd52006-08-04 18:18:08 +000031562{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
31563echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031564if test $ac_cv_type_uint64_t = yes; then
31565
31566cat >>confdefs.h <<_ACEOF
31567#define HAVE_UINT64_T 1
31568_ACEOF
31569
31570
31571else
Reid Spencera773bd52006-08-04 18:18:08 +000031572 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
31573echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031574if test "${ac_cv_type_u_int64_t+set}" = set; then
31575 echo $ECHO_N "(cached) $ECHO_C" >&6
31576else
31577 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000031578/* confdefs.h. */
31579_ACEOF
31580cat confdefs.h >>conftest.$ac_ext
31581cat >>conftest.$ac_ext <<_ACEOF
31582/* end confdefs.h. */
31583$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000031584typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000031585int
31586main ()
31587{
Reid Spencera773bd52006-08-04 18:18:08 +000031588if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000031589 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000031590if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000031591 return 0;
31592 ;
31593 return 0;
31594}
31595_ACEOF
31596rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031597if { (ac_try="$ac_compile"
31598case "(($ac_try" in
31599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31600 *) ac_try_echo=$ac_try;;
31601esac
31602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31603 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000031604 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031605 grep -v '^ *+' conftest.er1 >conftest.err
31606 rm -f conftest.er1
31607 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000031608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031609 (exit $ac_status); } &&
31610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31611 { (case "(($ac_try" in
31612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31613 *) ac_try_echo=$ac_try;;
31614esac
31615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31616 (eval "$ac_try") 2>&5
31617 ac_status=$?
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); }; } &&
31620 { ac_try='test -s conftest.$ac_objext'
31621 { (case "(($ac_try" in
31622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31623 *) ac_try_echo=$ac_try;;
31624esac
31625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31626 (eval "$ac_try") 2>&5
31627 ac_status=$?
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000031630 ac_cv_type_u_int64_t=yes
31631else
31632 echo "$as_me: failed program was:" >&5
31633sed 's/^/| /' conftest.$ac_ext >&5
31634
Reid Spencera773bd52006-08-04 18:18:08 +000031635 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000031636fi
Reid Spencera773bd52006-08-04 18:18:08 +000031637
31638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000031639fi
Reid Spencera773bd52006-08-04 18:18:08 +000031640{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
31641echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000031642if test $ac_cv_type_u_int64_t = yes; then
31643
31644cat >>confdefs.h <<_ACEOF
31645#define HAVE_U_INT64_T 1
31646_ACEOF
31647
31648
Misha Brukmanceca9042004-09-02 23:02:30 +000031649else
31650 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
31651echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
31652 { (exit 1); exit 1; }; }
31653fi
31654
John Criswell679ff312004-09-02 18:44:44 +000031655fi
31656
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031657
31658
31659
31660
31661
31662
31663
Reid Spencerf4bb9b12006-01-19 08:22:40 +000031664
31665
Reid Spencerdf3be822006-01-23 08:15:53 +000031666for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031667do
31668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031669{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31671if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031672 echo $ECHO_N "(cached) $ECHO_C" >&6
31673else
31674 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031675/* confdefs.h. */
31676_ACEOF
31677cat confdefs.h >>conftest.$ac_ext
31678cat >>conftest.$ac_ext <<_ACEOF
31679/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31682#define $ac_func innocuous_$ac_func
31683
31684/* System header to define __stub macros and hopefully few prototypes,
31685 which can conflict with char $ac_func (); below.
31686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31687 <limits.h> exists even on freestanding compilers. */
31688
31689#ifdef __STDC__
31690# include <limits.h>
31691#else
31692# include <assert.h>
31693#endif
31694
31695#undef $ac_func
31696
Reid Spencera773bd52006-08-04 18:18:08 +000031697/* Override any GCC internal prototype to avoid an error.
31698 Use char because int might match the return type of a GCC
31699 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031700#ifdef __cplusplus
31701extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031702#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031703char $ac_func ();
31704/* The GNU C library defines this for functions which it implements
31705 to always fail with ENOSYS. Some functions are actually named
31706 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031707#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031708choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031709#endif
John Criswell7a73b802003-06-30 21:59:07 +000031710
John Criswell7a73b802003-06-30 21:59:07 +000031711int
31712main ()
31713{
Reid Spencera773bd52006-08-04 18:18:08 +000031714return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031715 ;
31716 return 0;
31717}
31718_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031719rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031720if { (ac_try="$ac_link"
31721case "(($ac_try" in
31722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723 *) ac_try_echo=$ac_try;;
31724esac
31725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031727 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031728 grep -v '^ *+' conftest.er1 >conftest.err
31729 rm -f conftest.er1
31730 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031732 (exit $ac_status); } &&
31733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31734 { (case "(($ac_try" in
31735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31736 *) ac_try_echo=$ac_try;;
31737esac
31738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31739 (eval "$ac_try") 2>&5
31740 ac_status=$?
31741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742 (exit $ac_status); }; } &&
31743 { ac_try='test -s conftest$ac_exeext'
31744 { (case "(($ac_try" in
31745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31746 *) ac_try_echo=$ac_try;;
31747esac
31748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31749 (eval "$ac_try") 2>&5
31750 ac_status=$?
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031753 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031754else
31755 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031756sed 's/^/| /' conftest.$ac_ext >&5
31757
Reid Spencera773bd52006-08-04 18:18:08 +000031758 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031759fi
Reid Spencera773bd52006-08-04 18:18:08 +000031760
Bill Wendlingebcceee2009-04-18 11:20:33 +000031761rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031762 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031763fi
Reid Spencera773bd52006-08-04 18:18:08 +000031764ac_res=`eval echo '${'$as_ac_var'}'`
31765 { echo "$as_me:$LINENO: result: $ac_res" >&5
31766echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031767if test `eval echo '${'$as_ac_var'}'` = yes; then
31768 cat >>confdefs.h <<_ACEOF
31769#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031770_ACEOF
31771
31772fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031773done
John Criswell7a73b802003-06-30 21:59:07 +000031774
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031775
31776
31777
Reid Spencer6af3d262004-12-15 04:01:48 +000031778
Reid Spencer96cf5872007-07-13 10:05:30 +000031779for ac_func in powf fmodf strtof round
31780do
31781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31782{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31784if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31785 echo $ECHO_N "(cached) $ECHO_C" >&6
31786else
31787 cat >conftest.$ac_ext <<_ACEOF
31788/* confdefs.h. */
31789_ACEOF
31790cat confdefs.h >>conftest.$ac_ext
31791cat >>conftest.$ac_ext <<_ACEOF
31792/* end confdefs.h. */
31793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31795#define $ac_func innocuous_$ac_func
31796
31797/* System header to define __stub macros and hopefully few prototypes,
31798 which can conflict with char $ac_func (); below.
31799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31800 <limits.h> exists even on freestanding compilers. */
31801
31802#ifdef __STDC__
31803# include <limits.h>
31804#else
31805# include <assert.h>
31806#endif
31807
31808#undef $ac_func
31809
31810/* Override any GCC internal prototype to avoid an error.
31811 Use char because int might match the return type of a GCC
31812 builtin and then its argument prototype would still apply. */
31813#ifdef __cplusplus
31814extern "C"
31815#endif
31816char $ac_func ();
31817/* The GNU C library defines this for functions which it implements
31818 to always fail with ENOSYS. Some functions are actually named
31819 something starting with __ and the normal name is an alias. */
31820#if defined __stub_$ac_func || defined __stub___$ac_func
31821choke me
31822#endif
31823
31824int
31825main ()
31826{
31827return $ac_func ();
31828 ;
31829 return 0;
31830}
31831_ACEOF
31832rm -f conftest.$ac_objext conftest$ac_exeext
31833if { (ac_try="$ac_link"
31834case "(($ac_try" in
31835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31836 *) ac_try_echo=$ac_try;;
31837esac
31838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31839 (eval "$ac_link") 2>conftest.er1
31840 ac_status=$?
31841 grep -v '^ *+' conftest.er1 >conftest.err
31842 rm -f conftest.er1
31843 cat conftest.err >&5
31844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031845 (exit $ac_status); } &&
31846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31847 { (case "(($ac_try" in
31848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31849 *) ac_try_echo=$ac_try;;
31850esac
31851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31852 (eval "$ac_try") 2>&5
31853 ac_status=$?
31854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); }; } &&
31856 { ac_try='test -s conftest$ac_exeext'
31857 { (case "(($ac_try" in
31858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31859 *) ac_try_echo=$ac_try;;
31860esac
31861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31862 (eval "$ac_try") 2>&5
31863 ac_status=$?
31864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000031866 eval "$as_ac_var=yes"
31867else
31868 echo "$as_me: failed program was:" >&5
31869sed 's/^/| /' conftest.$ac_ext >&5
31870
31871 eval "$as_ac_var=no"
31872fi
31873
Bill Wendlingebcceee2009-04-18 11:20:33 +000031874rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000031875 conftest$ac_exeext conftest.$ac_ext
31876fi
31877ac_res=`eval echo '${'$as_ac_var'}'`
31878 { echo "$as_me:$LINENO: result: $ac_res" >&5
31879echo "${ECHO_T}$ac_res" >&6; }
31880if test `eval echo '${'$as_ac_var'}'` = yes; then
31881 cat >>confdefs.h <<_ACEOF
31882#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31883_ACEOF
31884
31885fi
31886done
31887
31888
31889
31890
31891
Reid Spencer6af3d262004-12-15 04:01:48 +000031892
Reid Spencerb90645c2007-02-16 19:17:20 +000031893for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31894do
31895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31896{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31898if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31899 echo $ECHO_N "(cached) $ECHO_C" >&6
31900else
31901 cat >conftest.$ac_ext <<_ACEOF
31902/* confdefs.h. */
31903_ACEOF
31904cat confdefs.h >>conftest.$ac_ext
31905cat >>conftest.$ac_ext <<_ACEOF
31906/* end confdefs.h. */
31907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31909#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031910
Reid Spencerb90645c2007-02-16 19:17:20 +000031911/* System header to define __stub macros and hopefully few prototypes,
31912 which can conflict with char $ac_func (); below.
31913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31914 <limits.h> exists even on freestanding compilers. */
31915
31916#ifdef __STDC__
31917# include <limits.h>
31918#else
31919# include <assert.h>
31920#endif
31921
31922#undef $ac_func
31923
31924/* Override any GCC internal prototype to avoid an error.
31925 Use char because int might match the return type of a GCC
31926 builtin and then its argument prototype would still apply. */
31927#ifdef __cplusplus
31928extern "C"
31929#endif
31930char $ac_func ();
31931/* The GNU C library defines this for functions which it implements
31932 to always fail with ENOSYS. Some functions are actually named
31933 something starting with __ and the normal name is an alias. */
31934#if defined __stub_$ac_func || defined __stub___$ac_func
31935choke me
31936#endif
31937
31938int
31939main ()
31940{
31941return $ac_func ();
31942 ;
31943 return 0;
31944}
31945_ACEOF
31946rm -f conftest.$ac_objext conftest$ac_exeext
31947if { (ac_try="$ac_link"
31948case "(($ac_try" in
31949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31950 *) ac_try_echo=$ac_try;;
31951esac
31952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31953 (eval "$ac_link") 2>conftest.er1
31954 ac_status=$?
31955 grep -v '^ *+' conftest.er1 >conftest.err
31956 rm -f conftest.er1
31957 cat conftest.err >&5
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031959 (exit $ac_status); } &&
31960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31961 { (case "(($ac_try" in
31962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963 *) ac_try_echo=$ac_try;;
31964esac
31965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31966 (eval "$ac_try") 2>&5
31967 ac_status=$?
31968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969 (exit $ac_status); }; } &&
31970 { ac_try='test -s conftest$ac_exeext'
31971 { (case "(($ac_try" in
31972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31973 *) ac_try_echo=$ac_try;;
31974esac
31975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31976 (eval "$ac_try") 2>&5
31977 ac_status=$?
31978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31979 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031980 eval "$as_ac_var=yes"
31981else
31982 echo "$as_me: failed program was:" >&5
31983sed 's/^/| /' conftest.$ac_ext >&5
31984
31985 eval "$as_ac_var=no"
31986fi
31987
Bill Wendlingebcceee2009-04-18 11:20:33 +000031988rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031989 conftest$ac_exeext conftest.$ac_ext
31990fi
31991ac_res=`eval echo '${'$as_ac_var'}'`
31992 { echo "$as_me:$LINENO: result: $ac_res" >&5
31993echo "${ECHO_T}$ac_res" >&6; }
31994if test `eval echo '${'$as_ac_var'}'` = yes; then
31995 cat >>confdefs.h <<_ACEOF
31996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31997_ACEOF
31998
31999fi
32000done
32001
32002
32003
32004
32005for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000032006do
32007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032008{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32010if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032011 echo $ECHO_N "(cached) $ECHO_C" >&6
32012else
32013 cat >conftest.$ac_ext <<_ACEOF
32014/* confdefs.h. */
32015_ACEOF
32016cat confdefs.h >>conftest.$ac_ext
32017cat >>conftest.$ac_ext <<_ACEOF
32018/* end confdefs.h. */
32019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32021#define $ac_func innocuous_$ac_func
32022
32023/* System header to define __stub macros and hopefully few prototypes,
32024 which can conflict with char $ac_func (); below.
32025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32026 <limits.h> exists even on freestanding compilers. */
32027
32028#ifdef __STDC__
32029# include <limits.h>
32030#else
32031# include <assert.h>
32032#endif
32033
32034#undef $ac_func
32035
Reid Spencera773bd52006-08-04 18:18:08 +000032036/* Override any GCC internal prototype to avoid an error.
32037 Use char because int might match the return type of a GCC
32038 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000032039#ifdef __cplusplus
32040extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000032041#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000032042char $ac_func ();
32043/* The GNU C library defines this for functions which it implements
32044 to always fail with ENOSYS. Some functions are actually named
32045 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032046#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000032047choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000032048#endif
32049
32050int
32051main ()
32052{
Reid Spencera773bd52006-08-04 18:18:08 +000032053return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000032054 ;
32055 return 0;
32056}
32057_ACEOF
32058rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032059if { (ac_try="$ac_link"
32060case "(($ac_try" in
32061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32062 *) ac_try_echo=$ac_try;;
32063esac
32064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32065 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000032066 ac_status=$?
32067 grep -v '^ *+' conftest.er1 >conftest.err
32068 rm -f conftest.er1
32069 cat conftest.err >&5
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032071 (exit $ac_status); } &&
32072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
32082 { ac_try='test -s conftest$ac_exeext'
32083 { (case "(($ac_try" in
32084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32085 *) ac_try_echo=$ac_try;;
32086esac
32087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32088 (eval "$ac_try") 2>&5
32089 ac_status=$?
32090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32091 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000032092 eval "$as_ac_var=yes"
32093else
32094 echo "$as_me: failed program was:" >&5
32095sed 's/^/| /' conftest.$ac_ext >&5
32096
Reid Spencera773bd52006-08-04 18:18:08 +000032097 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000032098fi
Reid Spencera773bd52006-08-04 18:18:08 +000032099
Bill Wendlingebcceee2009-04-18 11:20:33 +000032100rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000032101 conftest$ac_exeext conftest.$ac_ext
32102fi
Reid Spencera773bd52006-08-04 18:18:08 +000032103ac_res=`eval echo '${'$as_ac_var'}'`
32104 { echo "$as_me:$LINENO: result: $ac_res" >&5
32105echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000032106if test `eval echo '${'$as_ac_var'}'` = yes; then
32107 cat >>confdefs.h <<_ACEOF
32108#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32109_ACEOF
32110
32111fi
32112done
32113
32114
32115
32116
32117
32118
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032119for ac_func in mktemp realpath sbrk setrlimit strdup
32120do
32121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32122{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32124if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32125 echo $ECHO_N "(cached) $ECHO_C" >&6
32126else
32127 cat >conftest.$ac_ext <<_ACEOF
32128/* confdefs.h. */
32129_ACEOF
32130cat confdefs.h >>conftest.$ac_ext
32131cat >>conftest.$ac_ext <<_ACEOF
32132/* end confdefs.h. */
32133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32135#define $ac_func innocuous_$ac_func
32136
32137/* System header to define __stub macros and hopefully few prototypes,
32138 which can conflict with char $ac_func (); below.
32139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32140 <limits.h> exists even on freestanding compilers. */
32141
32142#ifdef __STDC__
32143# include <limits.h>
32144#else
32145# include <assert.h>
32146#endif
32147
32148#undef $ac_func
32149
32150/* Override any GCC internal prototype to avoid an error.
32151 Use char because int might match the return type of a GCC
32152 builtin and then its argument prototype would still apply. */
32153#ifdef __cplusplus
32154extern "C"
32155#endif
32156char $ac_func ();
32157/* The GNU C library defines this for functions which it implements
32158 to always fail with ENOSYS. Some functions are actually named
32159 something starting with __ and the normal name is an alias. */
32160#if defined __stub_$ac_func || defined __stub___$ac_func
32161choke me
32162#endif
32163
32164int
32165main ()
32166{
32167return $ac_func ();
32168 ;
32169 return 0;
32170}
32171_ACEOF
32172rm -f conftest.$ac_objext conftest$ac_exeext
32173if { (ac_try="$ac_link"
32174case "(($ac_try" in
32175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32176 *) ac_try_echo=$ac_try;;
32177esac
32178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32179 (eval "$ac_link") 2>conftest.er1
32180 ac_status=$?
32181 grep -v '^ *+' conftest.er1 >conftest.err
32182 rm -f conftest.er1
32183 cat conftest.err >&5
32184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32185 (exit $ac_status); } &&
32186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32187 { (case "(($ac_try" in
32188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32189 *) ac_try_echo=$ac_try;;
32190esac
32191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32192 (eval "$ac_try") 2>&5
32193 ac_status=$?
32194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195 (exit $ac_status); }; } &&
32196 { ac_try='test -s conftest$ac_exeext'
32197 { (case "(($ac_try" in
32198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32199 *) ac_try_echo=$ac_try;;
32200esac
32201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32202 (eval "$ac_try") 2>&5
32203 ac_status=$?
32204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205 (exit $ac_status); }; }; then
32206 eval "$as_ac_var=yes"
32207else
32208 echo "$as_me: failed program was:" >&5
32209sed 's/^/| /' conftest.$ac_ext >&5
32210
32211 eval "$as_ac_var=no"
32212fi
32213
32214rm -f core conftest.err conftest.$ac_objext \
32215 conftest$ac_exeext conftest.$ac_ext
32216fi
32217ac_res=`eval echo '${'$as_ac_var'}'`
32218 { echo "$as_me:$LINENO: result: $ac_res" >&5
32219echo "${ECHO_T}$ac_res" >&6; }
32220if test `eval echo '${'$as_ac_var'}'` = yes; then
32221 cat >>confdefs.h <<_ACEOF
32222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32223_ACEOF
32224
32225fi
32226done
Reid Spencerdf3be822006-01-23 08:15:53 +000032227
32228
Jeffrey Yasskin342a3432009-07-01 18:30:10 +000032229
32230
32231for ac_func in strerror strerror_r strerror_s
Reid Spencer7931a782004-12-27 06:15:02 +000032232do
32233as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032234{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32235echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32236if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032237 echo $ECHO_N "(cached) $ECHO_C" >&6
32238else
32239 cat >conftest.$ac_ext <<_ACEOF
32240/* confdefs.h. */
32241_ACEOF
32242cat confdefs.h >>conftest.$ac_ext
32243cat >>conftest.$ac_ext <<_ACEOF
32244/* end confdefs.h. */
32245/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32247#define $ac_func innocuous_$ac_func
32248
32249/* System header to define __stub macros and hopefully few prototypes,
32250 which can conflict with char $ac_func (); below.
32251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32252 <limits.h> exists even on freestanding compilers. */
32253
32254#ifdef __STDC__
32255# include <limits.h>
32256#else
32257# include <assert.h>
32258#endif
32259
32260#undef $ac_func
32261
Reid Spencera773bd52006-08-04 18:18:08 +000032262/* Override any GCC internal prototype to avoid an error.
32263 Use char because int might match the return type of a GCC
32264 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000032265#ifdef __cplusplus
32266extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000032267#endif
Reid Spencer7931a782004-12-27 06:15:02 +000032268char $ac_func ();
32269/* The GNU C library defines this for functions which it implements
32270 to always fail with ENOSYS. Some functions are actually named
32271 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032272#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000032273choke me
Reid Spencer7931a782004-12-27 06:15:02 +000032274#endif
32275
32276int
32277main ()
32278{
Reid Spencera773bd52006-08-04 18:18:08 +000032279return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000032280 ;
32281 return 0;
32282}
32283_ACEOF
32284rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032285if { (ac_try="$ac_link"
32286case "(($ac_try" in
32287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32288 *) ac_try_echo=$ac_try;;
32289esac
32290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32291 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000032292 ac_status=$?
32293 grep -v '^ *+' conftest.er1 >conftest.err
32294 rm -f conftest.er1
32295 cat conftest.err >&5
32296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032297 (exit $ac_status); } &&
32298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32299 { (case "(($ac_try" in
32300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32301 *) ac_try_echo=$ac_try;;
32302esac
32303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32304 (eval "$ac_try") 2>&5
32305 ac_status=$?
32306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32307 (exit $ac_status); }; } &&
32308 { ac_try='test -s conftest$ac_exeext'
32309 { (case "(($ac_try" in
32310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32311 *) ac_try_echo=$ac_try;;
32312esac
32313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32314 (eval "$ac_try") 2>&5
32315 ac_status=$?
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000032318 eval "$as_ac_var=yes"
32319else
32320 echo "$as_me: failed program was:" >&5
32321sed 's/^/| /' conftest.$ac_ext >&5
32322
Reid Spencera773bd52006-08-04 18:18:08 +000032323 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000032324fi
Reid Spencera773bd52006-08-04 18:18:08 +000032325
Bill Wendlingebcceee2009-04-18 11:20:33 +000032326rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000032327 conftest$ac_exeext conftest.$ac_ext
32328fi
Reid Spencera773bd52006-08-04 18:18:08 +000032329ac_res=`eval echo '${'$as_ac_var'}'`
32330 { echo "$as_me:$LINENO: result: $ac_res" >&5
32331echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000032332if test `eval echo '${'$as_ac_var'}'` = yes; then
32333 cat >>confdefs.h <<_ACEOF
32334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32335_ACEOF
32336
32337fi
32338done
32339
32340
Reid Spencerba46ca32004-12-31 05:49:15 +000032341
32342
Chris Lattner0b142592005-11-14 06:57:34 +000032343
Chris Lattner511f11d2005-11-14 07:25:50 +000032344for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032345do
32346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032347{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32349if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032350 echo $ECHO_N "(cached) $ECHO_C" >&6
32351else
32352 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032353/* confdefs.h. */
32354_ACEOF
32355cat confdefs.h >>conftest.$ac_ext
32356cat >>conftest.$ac_ext <<_ACEOF
32357/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032358/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32360#define $ac_func innocuous_$ac_func
32361
32362/* System header to define __stub macros and hopefully few prototypes,
32363 which can conflict with char $ac_func (); below.
32364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32365 <limits.h> exists even on freestanding compilers. */
32366
32367#ifdef __STDC__
32368# include <limits.h>
32369#else
32370# include <assert.h>
32371#endif
32372
32373#undef $ac_func
32374
Reid Spencera773bd52006-08-04 18:18:08 +000032375/* Override any GCC internal prototype to avoid an error.
32376 Use char because int might match the return type of a GCC
32377 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032378#ifdef __cplusplus
32379extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032380#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032381char $ac_func ();
32382/* The GNU C library defines this for functions which it implements
32383 to always fail with ENOSYS. Some functions are actually named
32384 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032385#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032386choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032387#endif
John Criswell7a73b802003-06-30 21:59:07 +000032388
John Criswell7a73b802003-06-30 21:59:07 +000032389int
32390main ()
32391{
Reid Spencera773bd52006-08-04 18:18:08 +000032392return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032393 ;
32394 return 0;
32395}
32396_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032397rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032398if { (ac_try="$ac_link"
32399case "(($ac_try" in
32400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32401 *) ac_try_echo=$ac_try;;
32402esac
32403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32404 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032405 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032406 grep -v '^ *+' conftest.er1 >conftest.err
32407 rm -f conftest.er1
32408 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032410 (exit $ac_status); } &&
32411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32412 { (case "(($ac_try" in
32413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32414 *) ac_try_echo=$ac_try;;
32415esac
32416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32417 (eval "$ac_try") 2>&5
32418 ac_status=$?
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); }; } &&
32421 { ac_try='test -s conftest$ac_exeext'
32422 { (case "(($ac_try" in
32423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32424 *) ac_try_echo=$ac_try;;
32425esac
32426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32427 (eval "$ac_try") 2>&5
32428 ac_status=$?
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032431 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000032432else
32433 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032434sed 's/^/| /' conftest.$ac_ext >&5
32435
Reid Spencera773bd52006-08-04 18:18:08 +000032436 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032437fi
Reid Spencera773bd52006-08-04 18:18:08 +000032438
Bill Wendlingebcceee2009-04-18 11:20:33 +000032439rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032440 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032441fi
Reid Spencera773bd52006-08-04 18:18:08 +000032442ac_res=`eval echo '${'$as_ac_var'}'`
32443 { echo "$as_me:$LINENO: result: $ac_res" >&5
32444echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032445if test `eval echo '${'$as_ac_var'}'` = yes; then
32446 cat >>confdefs.h <<_ACEOF
32447#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000032448_ACEOF
32449
32450fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032451done
John Criswell7a73b802003-06-30 21:59:07 +000032452
Reid Spencercdb08a32006-06-05 16:11:07 +000032453
32454
32455
32456
Reid Spencerafa22e22006-12-10 23:29:19 +000032457for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000032458do
32459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032460{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32462if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032463 echo $ECHO_N "(cached) $ECHO_C" >&6
32464else
32465 cat >conftest.$ac_ext <<_ACEOF
32466/* confdefs.h. */
32467_ACEOF
32468cat confdefs.h >>conftest.$ac_ext
32469cat >>conftest.$ac_ext <<_ACEOF
32470/* end confdefs.h. */
32471/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32473#define $ac_func innocuous_$ac_func
32474
32475/* System header to define __stub macros and hopefully few prototypes,
32476 which can conflict with char $ac_func (); below.
32477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32478 <limits.h> exists even on freestanding compilers. */
32479
32480#ifdef __STDC__
32481# include <limits.h>
32482#else
32483# include <assert.h>
32484#endif
32485
32486#undef $ac_func
32487
Reid Spencera773bd52006-08-04 18:18:08 +000032488/* Override any GCC internal prototype to avoid an error.
32489 Use char because int might match the return type of a GCC
32490 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000032491#ifdef __cplusplus
32492extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000032493#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000032494char $ac_func ();
32495/* The GNU C library defines this for functions which it implements
32496 to always fail with ENOSYS. Some functions are actually named
32497 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032498#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000032499choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000032500#endif
32501
32502int
32503main ()
32504{
Reid Spencera773bd52006-08-04 18:18:08 +000032505return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000032506 ;
32507 return 0;
32508}
32509_ACEOF
32510rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032511if { (ac_try="$ac_link"
32512case "(($ac_try" in
32513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32514 *) ac_try_echo=$ac_try;;
32515esac
32516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32517 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000032518 ac_status=$?
32519 grep -v '^ *+' conftest.er1 >conftest.err
32520 rm -f conftest.er1
32521 cat conftest.err >&5
32522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032523 (exit $ac_status); } &&
32524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32525 { (case "(($ac_try" in
32526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32527 *) ac_try_echo=$ac_try;;
32528esac
32529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32530 (eval "$ac_try") 2>&5
32531 ac_status=$?
32532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533 (exit $ac_status); }; } &&
32534 { ac_try='test -s conftest$ac_exeext'
32535 { (case "(($ac_try" in
32536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32537 *) ac_try_echo=$ac_try;;
32538esac
32539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32540 (eval "$ac_try") 2>&5
32541 ac_status=$?
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000032544 eval "$as_ac_var=yes"
32545else
32546 echo "$as_me: failed program was:" >&5
32547sed 's/^/| /' conftest.$ac_ext >&5
32548
Reid Spencera773bd52006-08-04 18:18:08 +000032549 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000032550fi
Reid Spencera773bd52006-08-04 18:18:08 +000032551
Bill Wendlingebcceee2009-04-18 11:20:33 +000032552rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000032553 conftest$ac_exeext conftest.$ac_ext
32554fi
Reid Spencera773bd52006-08-04 18:18:08 +000032555ac_res=`eval echo '${'$as_ac_var'}'`
32556 { echo "$as_me:$LINENO: result: $ac_res" >&5
32557echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000032558if test `eval echo '${'$as_ac_var'}'` = yes; then
32559 cat >>confdefs.h <<_ACEOF
32560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32561_ACEOF
32562
32563fi
32564done
32565
Reid Spencera773bd52006-08-04 18:18:08 +000032566{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
32567echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032568if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032569 echo $ECHO_N "(cached) $ECHO_C" >&6
32570else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032571 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032572ac_cpp='$CPP $CPPFLAGS'
32573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32575ac_compiler_gnu=$ac_cv_c_compiler_gnu
32576
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032577 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032578 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032579else
32580 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000032581
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032582 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000032583_ACEOF
32584cat confdefs.h >>conftest.$ac_ext
32585cat >>conftest.$ac_ext <<_ACEOF
32586/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032587
John Criswella0137d32003-10-13 16:22:01 +000032588#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000032589#include <stdlib.h>
32590
John Criswella0137d32003-10-13 16:22:01 +000032591int
32592main ()
32593{
32594
Reid Spencer2706f8c2004-09-19 23:53:36 +000032595volatile double A, B;
32596char Buffer[100];
32597A = 1;
32598A /= 10.0;
32599sprintf(Buffer, "%a", A);
32600B = atof(Buffer);
32601if (A != B)
32602 return (1);
32603if (A != 0x1.999999999999ap-4)
32604 return (1);
32605return (0);
John Criswella0137d32003-10-13 16:22:01 +000032606 ;
32607 return 0;
32608}
32609_ACEOF
32610rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032611if { (ac_try="$ac_link"
32612case "(($ac_try" in
32613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32614 *) ac_try_echo=$ac_try;;
32615esac
32616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32617 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032618 ac_status=$?
32619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032621 { (case "(($ac_try" in
32622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32623 *) ac_try_echo=$ac_try;;
32624esac
32625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32626 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000032627 ac_status=$?
32628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000032630 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000032631else
32632 echo "$as_me: program exited with status $ac_status" >&5
32633echo "$as_me: failed program was:" >&5
32634sed 's/^/| /' conftest.$ac_ext >&5
32635
32636( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000032637llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000032638fi
Reid Spencera773bd52006-08-04 18:18:08 +000032639rm -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 +000032640fi
Reid Spencera773bd52006-08-04 18:18:08 +000032641
32642
Reid Spencer2706f8c2004-09-19 23:53:36 +000032643 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000032644ac_cpp='$CPP $CPPFLAGS'
32645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32647ac_compiler_gnu=$ac_cv_c_compiler_gnu
32648
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032649fi
Reid Spencera773bd52006-08-04 18:18:08 +000032650{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
32651echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000032652 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000032653
32654cat >>confdefs.h <<\_ACEOF
32655#define HAVE_PRINTF_A 1
32656_ACEOF
32657
Reid Spencer2706f8c2004-09-19 23:53:36 +000032658 fi
John Criswella0137d32003-10-13 16:22:01 +000032659
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032660# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
32661# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000032662{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
32663echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032664if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000032665 echo $ECHO_N "(cached) $ECHO_C" >&6
32666else
John Criswell0021c312004-02-13 21:57:29 +000032667 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000032668/* confdefs.h. */
32669_ACEOF
32670cat confdefs.h >>conftest.$ac_ext
32671cat >>conftest.$ac_ext <<_ACEOF
32672/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032673#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000032674int
32675main ()
32676{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032677char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000032678 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000032679 ;
32680 return 0;
32681}
32682_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032683rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032684if { (ac_try="$ac_link"
32685case "(($ac_try" in
32686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32687 *) ac_try_echo=$ac_try;;
32688esac
32689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32690 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000032691 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032692 grep -v '^ *+' conftest.er1 >conftest.err
32693 rm -f conftest.er1
32694 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000032695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032696 (exit $ac_status); } &&
32697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32698 { (case "(($ac_try" in
32699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32700 *) ac_try_echo=$ac_try;;
32701esac
32702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32703 (eval "$ac_try") 2>&5
32704 ac_status=$?
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); }; } &&
32707 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032717 ac_cv_working_alloca_h=yes
32718else
32719 echo "$as_me: failed program was:" >&5
32720sed 's/^/| /' conftest.$ac_ext >&5
32721
Reid Spencera773bd52006-08-04 18:18:08 +000032722 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000032723fi
Reid Spencera773bd52006-08-04 18:18:08 +000032724
Bill Wendlingebcceee2009-04-18 11:20:33 +000032725rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032726 conftest$ac_exeext conftest.$ac_ext
32727fi
Reid Spencera773bd52006-08-04 18:18:08 +000032728{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32729echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032730if test $ac_cv_working_alloca_h = yes; then
32731
32732cat >>confdefs.h <<\_ACEOF
32733#define HAVE_ALLOCA_H 1
32734_ACEOF
32735
32736fi
32737
Reid Spencera773bd52006-08-04 18:18:08 +000032738{ echo "$as_me:$LINENO: checking for alloca" >&5
32739echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032740if test "${ac_cv_func_alloca_works+set}" = set; then
32741 echo $ECHO_N "(cached) $ECHO_C" >&6
32742else
32743 cat >conftest.$ac_ext <<_ACEOF
32744/* confdefs.h. */
32745_ACEOF
32746cat confdefs.h >>conftest.$ac_ext
32747cat >>conftest.$ac_ext <<_ACEOF
32748/* end confdefs.h. */
32749#ifdef __GNUC__
32750# define alloca __builtin_alloca
32751#else
32752# ifdef _MSC_VER
32753# include <malloc.h>
32754# define alloca _alloca
32755# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000032756# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032757# include <alloca.h>
32758# else
32759# ifdef _AIX
32760 #pragma alloca
32761# else
32762# ifndef alloca /* predefined by HP cc +Olibcalls */
32763char *alloca ();
32764# endif
32765# endif
32766# endif
32767# endif
32768#endif
32769
32770int
32771main ()
32772{
32773char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000032774 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032775 ;
32776 return 0;
32777}
32778_ACEOF
32779rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032780if { (ac_try="$ac_link"
32781case "(($ac_try" in
32782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32783 *) ac_try_echo=$ac_try;;
32784esac
32785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32786 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032787 ac_status=$?
32788 grep -v '^ *+' conftest.er1 >conftest.err
32789 rm -f conftest.er1
32790 cat conftest.err >&5
32791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032792 (exit $ac_status); } &&
32793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32794 { (case "(($ac_try" in
32795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32796 *) ac_try_echo=$ac_try;;
32797esac
32798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799 (eval "$ac_try") 2>&5
32800 ac_status=$?
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); }; } &&
32803 { ac_try='test -s conftest$ac_exeext'
32804 { (case "(($ac_try" in
32805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32806 *) ac_try_echo=$ac_try;;
32807esac
32808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32809 (eval "$ac_try") 2>&5
32810 ac_status=$?
32811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32812 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032813 ac_cv_func_alloca_works=yes
32814else
32815 echo "$as_me: failed program was:" >&5
32816sed 's/^/| /' conftest.$ac_ext >&5
32817
Reid Spencera773bd52006-08-04 18:18:08 +000032818 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032819fi
Reid Spencera773bd52006-08-04 18:18:08 +000032820
Bill Wendlingebcceee2009-04-18 11:20:33 +000032821rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032822 conftest$ac_exeext conftest.$ac_ext
32823fi
Reid Spencera773bd52006-08-04 18:18:08 +000032824{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32825echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032826
32827if test $ac_cv_func_alloca_works = yes; then
32828
32829cat >>confdefs.h <<\_ACEOF
32830#define HAVE_ALLOCA 1
32831_ACEOF
32832
32833else
32834 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32835# that cause trouble. Some versions do not even contain alloca or
32836# contain a buggy version. If you still want to use their alloca,
32837# use ar to extract alloca.o from them instead of compiling alloca.c.
32838
Reid Spencera773bd52006-08-04 18:18:08 +000032839ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032840
32841cat >>confdefs.h <<\_ACEOF
32842#define C_ALLOCA 1
32843_ACEOF
32844
32845
Reid Spencera773bd52006-08-04 18:18:08 +000032846{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32847echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032848if test "${ac_cv_os_cray+set}" = set; then
32849 echo $ECHO_N "(cached) $ECHO_C" >&6
32850else
32851 cat >conftest.$ac_ext <<_ACEOF
32852/* confdefs.h. */
32853_ACEOF
32854cat confdefs.h >>conftest.$ac_ext
32855cat >>conftest.$ac_ext <<_ACEOF
32856/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032857#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032858webecray
32859#else
32860wenotbecray
32861#endif
32862
32863_ACEOF
32864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32865 $EGREP "webecray" >/dev/null 2>&1; then
32866 ac_cv_os_cray=yes
32867else
32868 ac_cv_os_cray=no
32869fi
32870rm -f conftest*
32871
32872fi
Reid Spencera773bd52006-08-04 18:18:08 +000032873{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32874echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032875if test $ac_cv_os_cray = yes; then
32876 for ac_func in _getb67 GETB67 getb67; do
32877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032878{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32879echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32880if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032881 echo $ECHO_N "(cached) $ECHO_C" >&6
32882else
32883 cat >conftest.$ac_ext <<_ACEOF
32884/* confdefs.h. */
32885_ACEOF
32886cat confdefs.h >>conftest.$ac_ext
32887cat >>conftest.$ac_ext <<_ACEOF
32888/* end confdefs.h. */
32889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32891#define $ac_func innocuous_$ac_func
32892
32893/* System header to define __stub macros and hopefully few prototypes,
32894 which can conflict with char $ac_func (); below.
32895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32896 <limits.h> exists even on freestanding compilers. */
32897
32898#ifdef __STDC__
32899# include <limits.h>
32900#else
32901# include <assert.h>
32902#endif
32903
32904#undef $ac_func
32905
Reid Spencera773bd52006-08-04 18:18:08 +000032906/* Override any GCC internal prototype to avoid an error.
32907 Use char because int might match the return type of a GCC
32908 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032909#ifdef __cplusplus
32910extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032911#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032912char $ac_func ();
32913/* The GNU C library defines this for functions which it implements
32914 to always fail with ENOSYS. Some functions are actually named
32915 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032916#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032917choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032918#endif
32919
32920int
32921main ()
32922{
Reid Spencera773bd52006-08-04 18:18:08 +000032923return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032924 ;
32925 return 0;
32926}
32927_ACEOF
32928rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032929if { (ac_try="$ac_link"
32930case "(($ac_try" in
32931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32932 *) ac_try_echo=$ac_try;;
32933esac
32934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32935 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032936 ac_status=$?
32937 grep -v '^ *+' conftest.er1 >conftest.err
32938 rm -f conftest.er1
32939 cat conftest.err >&5
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032941 (exit $ac_status); } &&
32942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32943 { (case "(($ac_try" in
32944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32945 *) ac_try_echo=$ac_try;;
32946esac
32947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32948 (eval "$ac_try") 2>&5
32949 ac_status=$?
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); }; } &&
32952 { ac_try='test -s conftest$ac_exeext'
32953 { (case "(($ac_try" in
32954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32955 *) ac_try_echo=$ac_try;;
32956esac
32957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32958 (eval "$ac_try") 2>&5
32959 ac_status=$?
32960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032962 eval "$as_ac_var=yes"
32963else
32964 echo "$as_me: failed program was:" >&5
32965sed 's/^/| /' conftest.$ac_ext >&5
32966
Reid Spencera773bd52006-08-04 18:18:08 +000032967 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032968fi
Reid Spencera773bd52006-08-04 18:18:08 +000032969
Bill Wendlingebcceee2009-04-18 11:20:33 +000032970rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032971 conftest$ac_exeext conftest.$ac_ext
32972fi
Reid Spencera773bd52006-08-04 18:18:08 +000032973ac_res=`eval echo '${'$as_ac_var'}'`
32974 { echo "$as_me:$LINENO: result: $ac_res" >&5
32975echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032976if test `eval echo '${'$as_ac_var'}'` = yes; then
32977
32978cat >>confdefs.h <<_ACEOF
32979#define CRAY_STACKSEG_END $ac_func
32980_ACEOF
32981
32982 break
32983fi
32984
32985 done
32986fi
32987
Reid Spencera773bd52006-08-04 18:18:08 +000032988{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32989echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032990if test "${ac_cv_c_stack_direction+set}" = set; then
32991 echo $ECHO_N "(cached) $ECHO_C" >&6
32992else
32993 if test "$cross_compiling" = yes; then
32994 ac_cv_c_stack_direction=0
32995else
32996 cat >conftest.$ac_ext <<_ACEOF
32997/* confdefs.h. */
32998_ACEOF
32999cat confdefs.h >>conftest.$ac_ext
33000cat >>conftest.$ac_ext <<_ACEOF
33001/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000033002$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033003int
33004find_stack_direction ()
33005{
33006 static char *addr = 0;
33007 auto char dummy;
33008 if (addr == 0)
33009 {
33010 addr = &dummy;
33011 return find_stack_direction ();
33012 }
John Criswell0021c312004-02-13 21:57:29 +000033013 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033014 return (&dummy > addr) ? 1 : -1;
33015}
John Criswell0021c312004-02-13 21:57:29 +000033016
John Criswell0021c312004-02-13 21:57:29 +000033017int
33018main ()
33019{
Reid Spencera773bd52006-08-04 18:18:08 +000033020 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000033021}
33022_ACEOF
33023rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033024if { (ac_try="$ac_link"
33025case "(($ac_try" in
33026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33027 *) ac_try_echo=$ac_try;;
33028esac
33029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33030 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033031 ac_status=$?
33032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033034 { (case "(($ac_try" in
33035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33036 *) ac_try_echo=$ac_try;;
33037esac
33038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33039 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000033040 ac_status=$?
33041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33042 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033043 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000033044else
33045 echo "$as_me: program exited with status $ac_status" >&5
33046echo "$as_me: failed program was:" >&5
33047sed 's/^/| /' conftest.$ac_ext >&5
33048
33049( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033050ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000033051fi
Reid Spencera773bd52006-08-04 18:18:08 +000033052rm -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 +000033053fi
Reid Spencera773bd52006-08-04 18:18:08 +000033054
33055
John Criswell0021c312004-02-13 21:57:29 +000033056fi
Reid Spencera773bd52006-08-04 18:18:08 +000033057{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
33058echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033059
33060cat >>confdefs.h <<_ACEOF
33061#define STACK_DIRECTION $ac_cv_c_stack_direction
33062_ACEOF
33063
33064
John Criswell0021c312004-02-13 21:57:29 +000033065fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033066
33067
Reid Spencera773bd52006-08-04 18:18:08 +000033068{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
33069echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033070if test "${ac_cv_func_rand48+set}" = set; then
33071 echo $ECHO_N "(cached) $ECHO_C" >&6
33072else
Reid Spencera773bd52006-08-04 18:18:08 +000033073 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033074ac_cpp='$CXXCPP $CPPFLAGS'
33075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33078
33079 cat >conftest.$ac_ext <<_ACEOF
33080/* confdefs.h. */
33081_ACEOF
33082cat confdefs.h >>conftest.$ac_ext
33083cat >>conftest.$ac_ext <<_ACEOF
33084/* end confdefs.h. */
33085#include <stdlib.h>
33086int
33087main ()
33088{
33089srand48(0);lrand48();drand48();
33090 ;
33091 return 0;
33092}
33093_ACEOF
33094rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033095if { (ac_try="$ac_compile"
33096case "(($ac_try" in
33097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33098 *) ac_try_echo=$ac_try;;
33099esac
33100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33101 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033102 ac_status=$?
33103 grep -v '^ *+' conftest.er1 >conftest.err
33104 rm -f conftest.er1
33105 cat conftest.err >&5
33106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033107 (exit $ac_status); } &&
33108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33109 { (case "(($ac_try" in
33110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33111 *) ac_try_echo=$ac_try;;
33112esac
33113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33114 (eval "$ac_try") 2>&5
33115 ac_status=$?
33116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33117 (exit $ac_status); }; } &&
33118 { ac_try='test -s conftest.$ac_objext'
33119 { (case "(($ac_try" in
33120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33121 *) ac_try_echo=$ac_try;;
33122esac
33123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33124 (eval "$ac_try") 2>&5
33125 ac_status=$?
33126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033128 ac_cv_func_rand48=yes
33129else
33130 echo "$as_me: failed program was:" >&5
33131sed 's/^/| /' conftest.$ac_ext >&5
33132
Reid Spencera773bd52006-08-04 18:18:08 +000033133 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033134fi
Reid Spencera773bd52006-08-04 18:18:08 +000033135
33136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033137 ac_ext=c
33138ac_cpp='$CPP $CPPFLAGS'
33139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33141ac_compiler_gnu=$ac_cv_c_compiler_gnu
33142
33143fi
Reid Spencera773bd52006-08-04 18:18:08 +000033144{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
33145echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033146
33147if test "$ac_cv_func_rand48" = "yes" ; then
33148
33149cat >>confdefs.h <<\_ACEOF
33150#define HAVE_RAND48 1
33151_ACEOF
33152
33153fi
John Criswell0021c312004-02-13 21:57:29 +000033154
33155
Reid Spencera773bd52006-08-04 18:18:08 +000033156{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
33157echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033158if test "${ac_cv_cxx_namespaces+set}" = set; then
33159 echo $ECHO_N "(cached) $ECHO_C" >&6
33160else
Reid Spencera773bd52006-08-04 18:18:08 +000033161 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033162ac_cpp='$CXXCPP $CPPFLAGS'
33163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33166
33167 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033168/* confdefs.h. */
33169_ACEOF
33170cat confdefs.h >>conftest.$ac_ext
33171cat >>conftest.$ac_ext <<_ACEOF
33172/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033173namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000033174int
33175main ()
33176{
33177using namespace Outer::Inner; return i;
33178 ;
33179 return 0;
33180}
33181_ACEOF
33182rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033183if { (ac_try="$ac_compile"
33184case "(($ac_try" in
33185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33186 *) ac_try_echo=$ac_try;;
33187esac
33188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33189 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033190 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033191 grep -v '^ *+' conftest.er1 >conftest.err
33192 rm -f conftest.er1
33193 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033195 (exit $ac_status); } &&
33196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33197 { (case "(($ac_try" in
33198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199 *) ac_try_echo=$ac_try;;
33200esac
33201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202 (eval "$ac_try") 2>&5
33203 ac_status=$?
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); }; } &&
33206 { ac_try='test -s conftest.$ac_objext'
33207 { (case "(($ac_try" in
33208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33209 *) ac_try_echo=$ac_try;;
33210esac
33211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33212 (eval "$ac_try") 2>&5
33213 ac_status=$?
33214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033216 ac_cv_cxx_namespaces=yes
33217else
33218 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033219sed 's/^/| /' conftest.$ac_ext >&5
33220
Reid Spencera773bd52006-08-04 18:18:08 +000033221 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000033222fi
Reid Spencera773bd52006-08-04 18:18:08 +000033223
33224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033225 ac_ext=c
33226ac_cpp='$CPP $CPPFLAGS'
33227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33229ac_compiler_gnu=$ac_cv_c_compiler_gnu
33230
33231
33232fi
Reid Spencera773bd52006-08-04 18:18:08 +000033233{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
33234echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033235if test "$ac_cv_cxx_namespaces" = yes; then
33236
33237cat >>confdefs.h <<\_ACEOF
33238#define HAVE_NAMESPACES
33239_ACEOF
33240
33241fi
33242
Reid Spencera773bd52006-08-04 18:18:08 +000033243{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
33244echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033245if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
33246 echo $ECHO_N "(cached) $ECHO_C" >&6
33247else
33248
Reid Spencera773bd52006-08-04 18:18:08 +000033249 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033250ac_cpp='$CXXCPP $CPPFLAGS'
33251ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33252ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33253ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33254
33255 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033256/* confdefs.h. */
33257_ACEOF
33258cat confdefs.h >>conftest.$ac_ext
33259cat >>conftest.$ac_ext <<_ACEOF
33260/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033261#include <iterator>
33262#ifdef HAVE_NAMESPACES
33263using namespace std;
33264#endif
John Criswell7a73b802003-06-30 21:59:07 +000033265int
33266main ()
33267{
33268iterator<int,int,int> t; return 0;
33269 ;
33270 return 0;
33271}
33272_ACEOF
33273rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033274if { (ac_try="$ac_compile"
33275case "(($ac_try" in
33276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33277 *) ac_try_echo=$ac_try;;
33278esac
33279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33280 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033281 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033282 grep -v '^ *+' conftest.er1 >conftest.err
33283 rm -f conftest.er1
33284 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033286 (exit $ac_status); } &&
33287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33288 { (case "(($ac_try" in
33289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33290 *) ac_try_echo=$ac_try;;
33291esac
33292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33293 (eval "$ac_try") 2>&5
33294 ac_status=$?
33295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33296 (exit $ac_status); }; } &&
33297 { ac_try='test -s conftest.$ac_objext'
33298 { (case "(($ac_try" in
33299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300 *) ac_try_echo=$ac_try;;
33301esac
33302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303 (eval "$ac_try") 2>&5
33304 ac_status=$?
33305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033307 ac_cv_cxx_have_std_iterator=yes
33308else
33309 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033310sed 's/^/| /' conftest.$ac_ext >&5
33311
Reid Spencera773bd52006-08-04 18:18:08 +000033312 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033313fi
Reid Spencera773bd52006-08-04 18:18:08 +000033314
33315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033316 ac_ext=c
33317ac_cpp='$CPP $CPPFLAGS'
33318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33320ac_compiler_gnu=$ac_cv_c_compiler_gnu
33321
33322
33323fi
Reid Spencera773bd52006-08-04 18:18:08 +000033324{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
33325echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033326if test "$ac_cv_cxx_have_std_iterator" = yes
33327then
John Criswell40468462004-09-24 21:19:06 +000033328
33329cat >>confdefs.h <<\_ACEOF
33330#define HAVE_STD_ITERATOR 1
33331_ACEOF
33332
33333else
33334
33335cat >>confdefs.h <<\_ACEOF
33336#define HAVE_STD_ITERATOR 0
33337_ACEOF
33338
John Criswell7a73b802003-06-30 21:59:07 +000033339fi
33340
Reid Spencera773bd52006-08-04 18:18:08 +000033341{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
33342echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033343if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
33344 echo $ECHO_N "(cached) $ECHO_C" >&6
33345else
33346
Reid Spencera773bd52006-08-04 18:18:08 +000033347 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033348ac_cpp='$CXXCPP $CPPFLAGS'
33349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33352
33353 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033354/* confdefs.h. */
33355_ACEOF
33356cat confdefs.h >>conftest.$ac_ext
33357cat >>conftest.$ac_ext <<_ACEOF
33358/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033359#include <iterator>
33360#ifdef HAVE_NAMESPACES
33361using namespace std;
33362#endif
John Criswell7a73b802003-06-30 21:59:07 +000033363int
33364main ()
33365{
John Criswellc78022e2003-07-29 19:11:58 +000033366bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033367 ;
33368 return 0;
33369}
33370_ACEOF
33371rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033372if { (ac_try="$ac_compile"
33373case "(($ac_try" in
33374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33375 *) ac_try_echo=$ac_try;;
33376esac
33377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33378 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033379 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033380 grep -v '^ *+' conftest.er1 >conftest.err
33381 rm -f conftest.er1
33382 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033384 (exit $ac_status); } &&
33385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33386 { (case "(($ac_try" in
33387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33388 *) ac_try_echo=$ac_try;;
33389esac
33390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33391 (eval "$ac_try") 2>&5
33392 ac_status=$?
33393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394 (exit $ac_status); }; } &&
33395 { ac_try='test -s conftest.$ac_objext'
33396 { (case "(($ac_try" in
33397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33398 *) ac_try_echo=$ac_try;;
33399esac
33400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33401 (eval "$ac_try") 2>&5
33402 ac_status=$?
33403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33404 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033405 ac_cv_cxx_have_bi_iterator=yes
33406else
33407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033408sed 's/^/| /' conftest.$ac_ext >&5
33409
Reid Spencera773bd52006-08-04 18:18:08 +000033410 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033411fi
Reid Spencera773bd52006-08-04 18:18:08 +000033412
33413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033414 ac_ext=c
33415ac_cpp='$CPP $CPPFLAGS'
33416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33418ac_compiler_gnu=$ac_cv_c_compiler_gnu
33419
33420
33421fi
Reid Spencera773bd52006-08-04 18:18:08 +000033422{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
33423echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033424if test "$ac_cv_cxx_have_bi_iterator" = yes
33425then
John Criswell40468462004-09-24 21:19:06 +000033426
33427cat >>confdefs.h <<\_ACEOF
33428#define HAVE_BI_ITERATOR 1
33429_ACEOF
33430
33431else
33432
33433cat >>confdefs.h <<\_ACEOF
33434#define HAVE_BI_ITERATOR 0
33435_ACEOF
33436
John Criswell7a73b802003-06-30 21:59:07 +000033437fi
33438
Reid Spencera773bd52006-08-04 18:18:08 +000033439{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
33440echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033441if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
33442 echo $ECHO_N "(cached) $ECHO_C" >&6
33443else
33444
Reid Spencera773bd52006-08-04 18:18:08 +000033445 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000033446ac_cpp='$CXXCPP $CPPFLAGS'
33447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33450
33451 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033452/* confdefs.h. */
33453_ACEOF
33454cat confdefs.h >>conftest.$ac_ext
33455cat >>conftest.$ac_ext <<_ACEOF
33456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033457#include <iterator>
33458#ifdef HAVE_NAMESPACES
33459using namespace std;
33460#endif
John Criswell7a73b802003-06-30 21:59:07 +000033461int
33462main ()
33463{
John Criswellc78022e2003-07-29 19:11:58 +000033464forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033465 ;
33466 return 0;
33467}
33468_ACEOF
33469rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033470if { (ac_try="$ac_compile"
33471case "(($ac_try" in
33472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33473 *) ac_try_echo=$ac_try;;
33474esac
33475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33476 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033477 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033478 grep -v '^ *+' conftest.er1 >conftest.err
33479 rm -f conftest.er1
33480 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033482 (exit $ac_status); } &&
33483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33484 { (case "(($ac_try" in
33485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33486 *) ac_try_echo=$ac_try;;
33487esac
33488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33489 (eval "$ac_try") 2>&5
33490 ac_status=$?
33491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33492 (exit $ac_status); }; } &&
33493 { ac_try='test -s conftest.$ac_objext'
33494 { (case "(($ac_try" in
33495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33496 *) ac_try_echo=$ac_try;;
33497esac
33498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33499 (eval "$ac_try") 2>&5
33500 ac_status=$?
33501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33502 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033503 ac_cv_cxx_have_fwd_iterator=yes
33504else
33505 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033506sed 's/^/| /' conftest.$ac_ext >&5
33507
Reid Spencera773bd52006-08-04 18:18:08 +000033508 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000033509fi
Reid Spencera773bd52006-08-04 18:18:08 +000033510
33511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033512 ac_ext=c
33513ac_cpp='$CPP $CPPFLAGS'
33514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33516ac_compiler_gnu=$ac_cv_c_compiler_gnu
33517
33518
33519fi
Reid Spencera773bd52006-08-04 18:18:08 +000033520{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
33521echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000033522if test "$ac_cv_cxx_have_fwd_iterator" = yes
33523then
John Criswell40468462004-09-24 21:19:06 +000033524
33525cat >>confdefs.h <<\_ACEOF
33526#define HAVE_FWD_ITERATOR 1
33527_ACEOF
33528
33529else
33530
33531cat >>confdefs.h <<\_ACEOF
33532#define HAVE_FWD_ITERATOR 0
33533_ACEOF
33534
John Criswell7a73b802003-06-30 21:59:07 +000033535fi
33536
33537
Reid Spencera773bd52006-08-04 18:18:08 +000033538{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
33539echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033540if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
33541 echo $ECHO_N "(cached) $ECHO_C" >&6
33542else
Reid Spencera773bd52006-08-04 18:18:08 +000033543 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033544ac_cpp='$CXXCPP $CPPFLAGS'
33545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33548
Reid Spencerabec8f92004-10-27 23:03:44 +000033549 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033550/* confdefs.h. */
33551_ACEOF
33552cat confdefs.h >>conftest.$ac_ext
33553cat >>conftest.$ac_ext <<_ACEOF
33554/* end confdefs.h. */
33555#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033556int
33557main ()
33558{
33559float f; isnan(f);
33560 ;
33561 return 0;
33562}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033563_ACEOF
33564rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033565if { (ac_try="$ac_compile"
33566case "(($ac_try" in
33567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33568 *) ac_try_echo=$ac_try;;
33569esac
33570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33571 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033572 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033573 grep -v '^ *+' conftest.er1 >conftest.err
33574 rm -f conftest.er1
33575 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033577 (exit $ac_status); } &&
33578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33579 { (case "(($ac_try" in
33580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33581 *) ac_try_echo=$ac_try;;
33582esac
33583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33584 (eval "$ac_try") 2>&5
33585 ac_status=$?
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); }; } &&
33588 { ac_try='test -s conftest.$ac_objext'
33589 { (case "(($ac_try" in
33590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33591 *) ac_try_echo=$ac_try;;
33592esac
33593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33594 (eval "$ac_try") 2>&5
33595 ac_status=$?
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033598 ac_cv_func_isnan_in_math_h=yes
33599else
33600 echo "$as_me: failed program was:" >&5
33601sed 's/^/| /' conftest.$ac_ext >&5
33602
Reid Spencera773bd52006-08-04 18:18:08 +000033603 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033604fi
Reid Spencera773bd52006-08-04 18:18:08 +000033605
33606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033607 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033608ac_cpp='$CPP $CPPFLAGS'
33609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33611ac_compiler_gnu=$ac_cv_c_compiler_gnu
33612
33613fi
Reid Spencera773bd52006-08-04 18:18:08 +000033614{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33615echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033616
33617
33618if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033619
33620cat >>confdefs.h <<\_ACEOF
33621#define HAVE_ISNAN_IN_MATH_H 1
33622_ACEOF
33623
Reid Spencerabec8f92004-10-27 23:03:44 +000033624fi
33625
Reid Spencera773bd52006-08-04 18:18:08 +000033626{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33627echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033628if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33629 echo $ECHO_N "(cached) $ECHO_C" >&6
33630else
Reid Spencera773bd52006-08-04 18:18:08 +000033631 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033632ac_cpp='$CXXCPP $CPPFLAGS'
33633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33636
Reid Spencerabec8f92004-10-27 23:03:44 +000033637 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033638/* confdefs.h. */
33639_ACEOF
33640cat confdefs.h >>conftest.$ac_ext
33641cat >>conftest.$ac_ext <<_ACEOF
33642/* end confdefs.h. */
33643#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033644int
33645main ()
33646{
33647float f; isnan(f);
33648 ;
33649 return 0;
33650}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033651_ACEOF
33652rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033653if { (ac_try="$ac_compile"
33654case "(($ac_try" in
33655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33656 *) ac_try_echo=$ac_try;;
33657esac
33658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33659 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033660 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033661 grep -v '^ *+' conftest.er1 >conftest.err
33662 rm -f conftest.er1
33663 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033665 (exit $ac_status); } &&
33666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33667 { (case "(($ac_try" in
33668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33669 *) ac_try_echo=$ac_try;;
33670esac
33671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33672 (eval "$ac_try") 2>&5
33673 ac_status=$?
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); }; } &&
33676 { ac_try='test -s conftest.$ac_objext'
33677 { (case "(($ac_try" in
33678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33679 *) ac_try_echo=$ac_try;;
33680esac
33681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33682 (eval "$ac_try") 2>&5
33683 ac_status=$?
33684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33685 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033686 ac_cv_func_isnan_in_cmath=yes
33687else
33688 echo "$as_me: failed program was:" >&5
33689sed 's/^/| /' conftest.$ac_ext >&5
33690
Reid Spencera773bd52006-08-04 18:18:08 +000033691 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033692fi
Reid Spencera773bd52006-08-04 18:18:08 +000033693
33694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033695 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033696ac_cpp='$CPP $CPPFLAGS'
33697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33699ac_compiler_gnu=$ac_cv_c_compiler_gnu
33700
33701fi
Reid Spencera773bd52006-08-04 18:18:08 +000033702{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33703echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033704
33705if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033706
33707cat >>confdefs.h <<\_ACEOF
33708#define HAVE_ISNAN_IN_CMATH 1
33709_ACEOF
33710
Reid Spencerabec8f92004-10-27 23:03:44 +000033711fi
33712
Reid Spencera773bd52006-08-04 18:18:08 +000033713{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33714echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033715if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33716 echo $ECHO_N "(cached) $ECHO_C" >&6
33717else
Reid Spencera773bd52006-08-04 18:18:08 +000033718 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033719ac_cpp='$CXXCPP $CPPFLAGS'
33720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33723
Reid Spencerabec8f92004-10-27 23:03:44 +000033724 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033725/* confdefs.h. */
33726_ACEOF
33727cat confdefs.h >>conftest.$ac_ext
33728cat >>conftest.$ac_ext <<_ACEOF
33729/* end confdefs.h. */
33730#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033731int
33732main ()
33733{
33734float f; std::isnan(f);
33735 ;
33736 return 0;
33737}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033738_ACEOF
33739rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033740if { (ac_try="$ac_compile"
33741case "(($ac_try" in
33742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33743 *) ac_try_echo=$ac_try;;
33744esac
33745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33746 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033747 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033748 grep -v '^ *+' conftest.er1 >conftest.err
33749 rm -f conftest.er1
33750 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033752 (exit $ac_status); } &&
33753 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33754 { (case "(($ac_try" in
33755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756 *) ac_try_echo=$ac_try;;
33757esac
33758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33759 (eval "$ac_try") 2>&5
33760 ac_status=$?
33761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762 (exit $ac_status); }; } &&
33763 { ac_try='test -s conftest.$ac_objext'
33764 { (case "(($ac_try" in
33765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33766 *) ac_try_echo=$ac_try;;
33767esac
33768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33769 (eval "$ac_try") 2>&5
33770 ac_status=$?
33771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33772 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033773 ac_cv_func_std_isnan_in_cmath=yes
33774else
33775 echo "$as_me: failed program was:" >&5
33776sed 's/^/| /' conftest.$ac_ext >&5
33777
Reid Spencera773bd52006-08-04 18:18:08 +000033778 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033779fi
Reid Spencera773bd52006-08-04 18:18:08 +000033780
33781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033782 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033783ac_cpp='$CPP $CPPFLAGS'
33784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33786ac_compiler_gnu=$ac_cv_c_compiler_gnu
33787
33788fi
Reid Spencera773bd52006-08-04 18:18:08 +000033789{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33790echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033791
33792if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033793
33794cat >>confdefs.h <<\_ACEOF
33795#define HAVE_STD_ISNAN_IN_CMATH 1
33796_ACEOF
33797
Reid Spencerabec8f92004-10-27 23:03:44 +000033798fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033799
33800
Reid Spencera773bd52006-08-04 18:18:08 +000033801{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33802echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033803if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33804 echo $ECHO_N "(cached) $ECHO_C" >&6
33805else
Reid Spencera773bd52006-08-04 18:18:08 +000033806 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033807ac_cpp='$CXXCPP $CPPFLAGS'
33808ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33809ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33810ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33811
Reid Spencerabec8f92004-10-27 23:03:44 +000033812 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033813/* confdefs.h. */
33814_ACEOF
33815cat confdefs.h >>conftest.$ac_ext
33816cat >>conftest.$ac_ext <<_ACEOF
33817/* end confdefs.h. */
33818#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033819int
33820main ()
33821{
33822float f; isinf(f);
33823 ;
33824 return 0;
33825}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033826_ACEOF
33827rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033828if { (ac_try="$ac_compile"
33829case "(($ac_try" in
33830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33831 *) ac_try_echo=$ac_try;;
33832esac
33833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33834 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033835 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033836 grep -v '^ *+' conftest.er1 >conftest.err
33837 rm -f conftest.er1
33838 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033840 (exit $ac_status); } &&
33841 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33842 { (case "(($ac_try" in
33843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33844 *) ac_try_echo=$ac_try;;
33845esac
33846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33847 (eval "$ac_try") 2>&5
33848 ac_status=$?
33849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850 (exit $ac_status); }; } &&
33851 { ac_try='test -s conftest.$ac_objext'
33852 { (case "(($ac_try" in
33853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33854 *) ac_try_echo=$ac_try;;
33855esac
33856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33857 (eval "$ac_try") 2>&5
33858 ac_status=$?
33859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33860 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033861 ac_cv_func_isinf_in_math_h=yes
33862else
33863 echo "$as_me: failed program was:" >&5
33864sed 's/^/| /' conftest.$ac_ext >&5
33865
Reid Spencera773bd52006-08-04 18:18:08 +000033866 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033867fi
Reid Spencera773bd52006-08-04 18:18:08 +000033868
33869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033870 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033871ac_cpp='$CPP $CPPFLAGS'
33872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33874ac_compiler_gnu=$ac_cv_c_compiler_gnu
33875
33876fi
Reid Spencera773bd52006-08-04 18:18:08 +000033877{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33878echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033879
33880if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033881
33882cat >>confdefs.h <<\_ACEOF
33883#define HAVE_ISINF_IN_MATH_H 1
33884_ACEOF
33885
Reid Spencerabec8f92004-10-27 23:03:44 +000033886fi
33887
Reid Spencera773bd52006-08-04 18:18:08 +000033888{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33889echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033890if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33891 echo $ECHO_N "(cached) $ECHO_C" >&6
33892else
Reid Spencera773bd52006-08-04 18:18:08 +000033893 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033894ac_cpp='$CXXCPP $CPPFLAGS'
33895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33898
Reid Spencerabec8f92004-10-27 23:03:44 +000033899 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033900/* confdefs.h. */
33901_ACEOF
33902cat confdefs.h >>conftest.$ac_ext
33903cat >>conftest.$ac_ext <<_ACEOF
33904/* end confdefs.h. */
33905#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033906int
33907main ()
33908{
33909float f; isinf(f);
33910 ;
33911 return 0;
33912}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033913_ACEOF
33914rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033915if { (ac_try="$ac_compile"
33916case "(($ac_try" in
33917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33918 *) ac_try_echo=$ac_try;;
33919esac
33920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33921 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033922 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033923 grep -v '^ *+' conftest.er1 >conftest.err
33924 rm -f conftest.er1
33925 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033927 (exit $ac_status); } &&
33928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33929 { (case "(($ac_try" in
33930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33931 *) ac_try_echo=$ac_try;;
33932esac
33933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33934 (eval "$ac_try") 2>&5
33935 ac_status=$?
33936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33937 (exit $ac_status); }; } &&
33938 { ac_try='test -s conftest.$ac_objext'
33939 { (case "(($ac_try" in
33940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33941 *) ac_try_echo=$ac_try;;
33942esac
33943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33944 (eval "$ac_try") 2>&5
33945 ac_status=$?
33946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033948 ac_cv_func_isinf_in_cmath=yes
33949else
33950 echo "$as_me: failed program was:" >&5
33951sed 's/^/| /' conftest.$ac_ext >&5
33952
Reid Spencera773bd52006-08-04 18:18:08 +000033953 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033954fi
Reid Spencera773bd52006-08-04 18:18:08 +000033955
33956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033957 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033958ac_cpp='$CPP $CPPFLAGS'
33959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33961ac_compiler_gnu=$ac_cv_c_compiler_gnu
33962
33963fi
Reid Spencera773bd52006-08-04 18:18:08 +000033964{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33965echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033966
33967if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033968
33969cat >>confdefs.h <<\_ACEOF
33970#define HAVE_ISINF_IN_CMATH 1
33971_ACEOF
33972
Reid Spencerabec8f92004-10-27 23:03:44 +000033973fi
33974
Reid Spencera773bd52006-08-04 18:18:08 +000033975{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33976echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033977if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33978 echo $ECHO_N "(cached) $ECHO_C" >&6
33979else
Reid Spencera773bd52006-08-04 18:18:08 +000033980 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033981ac_cpp='$CXXCPP $CPPFLAGS'
33982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33985
Reid Spencerabec8f92004-10-27 23:03:44 +000033986 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033987/* confdefs.h. */
33988_ACEOF
33989cat confdefs.h >>conftest.$ac_ext
33990cat >>conftest.$ac_ext <<_ACEOF
33991/* end confdefs.h. */
33992#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033993int
33994main ()
33995{
33996float f; std::isinf(f)}
33997 ;
33998 return 0;
33999}
Brian Gaeke52a551d2004-07-21 03:14:12 +000034000_ACEOF
34001rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034002if { (ac_try="$ac_compile"
34003case "(($ac_try" in
34004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34005 *) ac_try_echo=$ac_try;;
34006esac
34007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34008 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000034009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034010 grep -v '^ *+' conftest.er1 >conftest.err
34011 rm -f conftest.er1
34012 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000034013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034014 (exit $ac_status); } &&
34015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34016 { (case "(($ac_try" in
34017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34018 *) ac_try_echo=$ac_try;;
34019esac
34020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34021 (eval "$ac_try") 2>&5
34022 ac_status=$?
34023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34024 (exit $ac_status); }; } &&
34025 { ac_try='test -s conftest.$ac_objext'
34026 { (case "(($ac_try" in
34027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34028 *) ac_try_echo=$ac_try;;
34029esac
34030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34031 (eval "$ac_try") 2>&5
34032 ac_status=$?
34033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034035 ac_cv_func_std_isinf_in_cmath=yes
34036else
34037 echo "$as_me: failed program was:" >&5
34038sed 's/^/| /' conftest.$ac_ext >&5
34039
Reid Spencera773bd52006-08-04 18:18:08 +000034040 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000034041fi
Reid Spencera773bd52006-08-04 18:18:08 +000034042
34043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034044 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000034045ac_cpp='$CPP $CPPFLAGS'
34046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34048ac_compiler_gnu=$ac_cv_c_compiler_gnu
34049
34050fi
Reid Spencera773bd52006-08-04 18:18:08 +000034051{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
34052echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034053
34054if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000034055
34056cat >>confdefs.h <<\_ACEOF
34057#define HAVE_STD_ISINF_IN_CMATH 1
34058_ACEOF
34059
Reid Spencerabec8f92004-10-27 23:03:44 +000034060fi
34061
Reid Spencera773bd52006-08-04 18:18:08 +000034062{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
34063echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000034064if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
34065 echo $ECHO_N "(cached) $ECHO_C" >&6
34066else
Reid Spencera773bd52006-08-04 18:18:08 +000034067 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000034068ac_cpp='$CXXCPP $CPPFLAGS'
34069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34072
Reid Spencerabec8f92004-10-27 23:03:44 +000034073 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000034074/* confdefs.h. */
34075_ACEOF
34076cat confdefs.h >>conftest.$ac_ext
34077cat >>conftest.$ac_ext <<_ACEOF
34078/* end confdefs.h. */
34079#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000034080int
34081main ()
34082{
34083float f; finite(f);
34084 ;
34085 return 0;
34086}
Brian Gaeked59a6472004-07-21 03:33:58 +000034087_ACEOF
34088rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034089if { (ac_try="$ac_compile"
34090case "(($ac_try" in
34091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34092 *) ac_try_echo=$ac_try;;
34093esac
34094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34095 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000034096 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034097 grep -v '^ *+' conftest.er1 >conftest.err
34098 rm -f conftest.er1
34099 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000034100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034101 (exit $ac_status); } &&
34102 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34103 { (case "(($ac_try" in
34104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34105 *) ac_try_echo=$ac_try;;
34106esac
34107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34108 (eval "$ac_try") 2>&5
34109 ac_status=$?
34110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34111 (exit $ac_status); }; } &&
34112 { ac_try='test -s conftest.$ac_objext'
34113 { (case "(($ac_try" in
34114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34115 *) ac_try_echo=$ac_try;;
34116esac
34117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34118 (eval "$ac_try") 2>&5
34119 ac_status=$?
34120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34121 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034122 ac_cv_func_finite_in_ieeefp_h=yes
34123else
34124 echo "$as_me: failed program was:" >&5
34125sed 's/^/| /' conftest.$ac_ext >&5
34126
Reid Spencera773bd52006-08-04 18:18:08 +000034127 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000034128fi
Reid Spencera773bd52006-08-04 18:18:08 +000034129
34130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000034131 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000034132ac_cpp='$CPP $CPPFLAGS'
34133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34135ac_compiler_gnu=$ac_cv_c_compiler_gnu
34136
34137fi
Reid Spencera773bd52006-08-04 18:18:08 +000034138{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
34139echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000034140
Brian Gaeke6802b552004-10-28 05:06:45 +000034141if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000034142
34143cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000034144#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000034145_ACEOF
34146
Reid Spencerabec8f92004-10-27 23:03:44 +000034147fi
34148
34149
34150
Reid Spencer30fe5262007-01-20 07:48:49 +000034151if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000034152
34153
34154for ac_header in stdlib.h unistd.h
34155do
34156as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
34159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034161 echo $ECHO_N "(cached) $ECHO_C" >&6
34162fi
Reid Spencera773bd52006-08-04 18:18:08 +000034163ac_res=`eval echo '${'$as_ac_Header'}'`
34164 { echo "$as_me:$LINENO: result: $ac_res" >&5
34165echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034166else
34167 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000034168{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
34169echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034170cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034171/* confdefs.h. */
34172_ACEOF
34173cat confdefs.h >>conftest.$ac_ext
34174cat >>conftest.$ac_ext <<_ACEOF
34175/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034176$ac_includes_default
34177#include <$ac_header>
34178_ACEOF
34179rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000034180if { (ac_try="$ac_compile"
34181case "(($ac_try" in
34182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34183 *) ac_try_echo=$ac_try;;
34184esac
34185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34186 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034187 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034188 grep -v '^ *+' conftest.er1 >conftest.err
34189 rm -f conftest.er1
34190 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034192 (exit $ac_status); } &&
34193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34194 { (case "(($ac_try" in
34195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34196 *) ac_try_echo=$ac_try;;
34197esac
34198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34199 (eval "$ac_try") 2>&5
34200 ac_status=$?
34201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34202 (exit $ac_status); }; } &&
34203 { ac_try='test -s conftest.$ac_objext'
34204 { (case "(($ac_try" in
34205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34206 *) ac_try_echo=$ac_try;;
34207esac
34208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34209 (eval "$ac_try") 2>&5
34210 ac_status=$?
34211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034213 ac_header_compiler=yes
34214else
34215 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034216sed 's/^/| /' conftest.$ac_ext >&5
34217
Reid Spencera773bd52006-08-04 18:18:08 +000034218 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000034219fi
Reid Spencera773bd52006-08-04 18:18:08 +000034220
34221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34222{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34223echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034224
34225# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000034226{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
34227echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034228cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034229/* confdefs.h. */
34230_ACEOF
34231cat confdefs.h >>conftest.$ac_ext
34232cat >>conftest.$ac_ext <<_ACEOF
34233/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034234#include <$ac_header>
34235_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034236if { (ac_try="$ac_cpp conftest.$ac_ext"
34237case "(($ac_try" in
34238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34239 *) ac_try_echo=$ac_try;;
34240esac
34241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034243 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000034244 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000034245 rm -f conftest.er1
34246 cat conftest.err >&5
34247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034248 (exit $ac_status); } >/dev/null; then
34249 if test -s conftest.err; then
34250 ac_cpp_err=$ac_c_preproc_warn_flag
34251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34252 else
34253 ac_cpp_err=
34254 fi
34255else
34256 ac_cpp_err=yes
34257fi
34258if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000034259 ac_header_preproc=yes
34260else
34261 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034262sed 's/^/| /' conftest.$ac_ext >&5
34263
John Criswell7a73b802003-06-30 21:59:07 +000034264 ac_header_preproc=no
34265fi
Reid Spencera773bd52006-08-04 18:18:08 +000034266
John Criswell7a73b802003-06-30 21:59:07 +000034267rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000034268{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34269echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034270
34271# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34273 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000034274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34277echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34278 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000034279 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000034280 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000034281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34284echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34286echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34288echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000034289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000034291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34292echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000034293 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000034294## ----------------------------------- ##
34295## Report this to llvmbugs@cs.uiuc.edu ##
34296## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000034297_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000034298 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000034299 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034300esac
Reid Spencera773bd52006-08-04 18:18:08 +000034301{ echo "$as_me:$LINENO: checking for $ac_header" >&5
34302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
34303if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034304 echo $ECHO_N "(cached) $ECHO_C" >&6
34305else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034306 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000034307fi
Reid Spencera773bd52006-08-04 18:18:08 +000034308ac_res=`eval echo '${'$as_ac_Header'}'`
34309 { echo "$as_me:$LINENO: result: $ac_res" >&5
34310echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034311
34312fi
34313if test `eval echo '${'$as_ac_Header'}'` = yes; then
34314 cat >>confdefs.h <<_ACEOF
34315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34316_ACEOF
34317
34318fi
34319
34320done
34321
34322
34323for ac_func in getpagesize
34324do
34325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000034326{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34328if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034329 echo $ECHO_N "(cached) $ECHO_C" >&6
34330else
34331 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034332/* confdefs.h. */
34333_ACEOF
34334cat confdefs.h >>conftest.$ac_ext
34335cat >>conftest.$ac_ext <<_ACEOF
34336/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34339#define $ac_func innocuous_$ac_func
34340
John Criswell7a73b802003-06-30 21:59:07 +000034341/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000034342 which can conflict with char $ac_func (); below.
34343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34344 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000034345
John Criswell0c38eaf2003-09-10 15:17:25 +000034346#ifdef __STDC__
34347# include <limits.h>
34348#else
34349# include <assert.h>
34350#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000034351
34352#undef $ac_func
34353
Reid Spencera773bd52006-08-04 18:18:08 +000034354/* Override any GCC internal prototype to avoid an error.
34355 Use char because int might match the return type of a GCC
34356 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000034357#ifdef __cplusplus
34358extern "C"
34359#endif
John Criswell7a73b802003-06-30 21:59:07 +000034360char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034361/* The GNU C library defines this for functions which it implements
34362 to always fail with ENOSYS. Some functions are actually named
34363 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000034364#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000034365choke me
John Criswell7a73b802003-06-30 21:59:07 +000034366#endif
34367
John Criswell0c38eaf2003-09-10 15:17:25 +000034368int
34369main ()
34370{
Reid Spencera773bd52006-08-04 18:18:08 +000034371return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000034372 ;
34373 return 0;
34374}
34375_ACEOF
34376rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034377if { (ac_try="$ac_link"
34378case "(($ac_try" in
34379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34380 *) ac_try_echo=$ac_try;;
34381esac
34382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34383 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000034384 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000034385 grep -v '^ *+' conftest.er1 >conftest.err
34386 rm -f conftest.er1
34387 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000034388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034389 (exit $ac_status); } &&
34390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34391 { (case "(($ac_try" in
34392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34393 *) ac_try_echo=$ac_try;;
34394esac
34395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34396 (eval "$ac_try") 2>&5
34397 ac_status=$?
34398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34399 (exit $ac_status); }; } &&
34400 { ac_try='test -s conftest$ac_exeext'
34401 { (case "(($ac_try" in
34402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34403 *) ac_try_echo=$ac_try;;
34404esac
34405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34406 (eval "$ac_try") 2>&5
34407 ac_status=$?
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000034410 eval "$as_ac_var=yes"
34411else
34412 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034413sed 's/^/| /' conftest.$ac_ext >&5
34414
Reid Spencera773bd52006-08-04 18:18:08 +000034415 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000034416fi
Reid Spencera773bd52006-08-04 18:18:08 +000034417
Bill Wendlingebcceee2009-04-18 11:20:33 +000034418rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034419 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034420fi
Reid Spencera773bd52006-08-04 18:18:08 +000034421ac_res=`eval echo '${'$as_ac_var'}'`
34422 { echo "$as_me:$LINENO: result: $ac_res" >&5
34423echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034424if test `eval echo '${'$as_ac_var'}'` = yes; then
34425 cat >>confdefs.h <<_ACEOF
34426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34427_ACEOF
34428
34429fi
34430done
34431
Reid Spencera773bd52006-08-04 18:18:08 +000034432{ echo "$as_me:$LINENO: checking for working mmap" >&5
34433echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034434if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
34435 echo $ECHO_N "(cached) $ECHO_C" >&6
34436else
34437 if test "$cross_compiling" = yes; then
34438 ac_cv_func_mmap_fixed_mapped=no
34439else
34440 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000034441/* confdefs.h. */
34442_ACEOF
34443cat confdefs.h >>conftest.$ac_ext
34444cat >>conftest.$ac_ext <<_ACEOF
34445/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000034446$ac_includes_default
34447/* malloc might have been renamed as rpl_malloc. */
34448#undef malloc
34449
34450/* Thanks to Mike Haertel and Jim Avera for this test.
34451 Here is a matrix of mmap possibilities:
34452 mmap private not fixed
34453 mmap private fixed at somewhere currently unmapped
34454 mmap private fixed at somewhere already mapped
34455 mmap shared not fixed
34456 mmap shared fixed at somewhere currently unmapped
34457 mmap shared fixed at somewhere already mapped
34458 For private mappings, we should verify that changes cannot be read()
34459 back from the file, nor mmap's back from the file at a different
34460 address. (There have been systems where private was not correctly
34461 implemented like the infamous i386 svr4.0, and systems where the
34462 VM page cache was not coherent with the file system buffer cache
34463 like early versions of FreeBSD and possibly contemporary NetBSD.)
34464 For shared mappings, we should conversely verify that changes get
34465 propagated back to all the places they're supposed to be.
34466
34467 Grep wants private fixed already mapped.
34468 The main things grep needs to know about mmap are:
34469 * does it exist and is it safe to write into the mmap'd area
34470 * how to use it (BSD variants) */
34471
34472#include <fcntl.h>
34473#include <sys/mman.h>
34474
Bill Wendlingebcceee2009-04-18 11:20:33 +000034475#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000034476char *malloc ();
34477#endif
34478
34479/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034480#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000034481/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034482# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034483# define HAVE_SYS_PARAM_H 1
34484# endif
34485
34486# ifdef _SC_PAGESIZE
34487# define getpagesize() sysconf(_SC_PAGESIZE)
34488# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000034489# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000034490# include <sys/param.h>
34491# ifdef EXEC_PAGESIZE
34492# define getpagesize() EXEC_PAGESIZE
34493# else /* no EXEC_PAGESIZE */
34494# ifdef NBPG
34495# define getpagesize() NBPG * CLSIZE
34496# ifndef CLSIZE
34497# define CLSIZE 1
34498# endif /* no CLSIZE */
34499# else /* no NBPG */
34500# ifdef NBPC
34501# define getpagesize() NBPC
34502# else /* no NBPC */
34503# ifdef PAGESIZE
34504# define getpagesize() PAGESIZE
34505# endif /* PAGESIZE */
34506# endif /* no NBPC */
34507# endif /* no NBPG */
34508# endif /* no EXEC_PAGESIZE */
34509# else /* no HAVE_SYS_PARAM_H */
34510# define getpagesize() 8192 /* punt totally */
34511# endif /* no HAVE_SYS_PARAM_H */
34512# endif /* no _SC_PAGESIZE */
34513
34514#endif /* no HAVE_GETPAGESIZE */
34515
34516int
34517main ()
34518{
34519 char *data, *data2, *data3;
34520 int i, pagesize;
34521 int fd;
34522
34523 pagesize = getpagesize ();
34524
34525 /* First, make a file with some known garbage in it. */
34526 data = (char *) malloc (pagesize);
34527 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000034528 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034529 for (i = 0; i < pagesize; ++i)
34530 *(data + i) = rand ();
34531 umask (0);
34532 fd = creat ("conftest.mmap", 0600);
34533 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034534 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034535 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034536 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034537 close (fd);
34538
34539 /* Next, try to mmap the file at a fixed address which already has
34540 something else allocated at it. If we can, also make sure that
34541 we see the same garbage. */
34542 fd = open ("conftest.mmap", O_RDWR);
34543 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000034544 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034545 data2 = (char *) malloc (2 * pagesize);
34546 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000034547 return 1;
34548 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000034549 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000034550 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000034551 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034552 for (i = 0; i < pagesize; ++i)
34553 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034554 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034555
34556 /* Finally, make sure that changes to the mapped area do not
34557 percolate back to the file as seen by read(). (This is a bug on
34558 some variants of i386 svr4.0.) */
34559 for (i = 0; i < pagesize; ++i)
34560 *(data2 + i) = *(data2 + i) + 1;
34561 data3 = (char *) malloc (pagesize);
34562 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000034563 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034564 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000034565 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034566 for (i = 0; i < pagesize; ++i)
34567 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000034568 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000034569 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000034570 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000034571}
34572_ACEOF
34573rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034574if { (ac_try="$ac_link"
34575case "(($ac_try" in
34576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34577 *) ac_try_echo=$ac_try;;
34578esac
34579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34580 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034581 ac_status=$?
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034584 { (case "(($ac_try" in
34585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34586 *) ac_try_echo=$ac_try;;
34587esac
34588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34589 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034590 ac_status=$?
34591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592 (exit $ac_status); }; }; then
34593 ac_cv_func_mmap_fixed_mapped=yes
34594else
34595 echo "$as_me: program exited with status $ac_status" >&5
34596echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034597sed 's/^/| /' conftest.$ac_ext >&5
34598
John Criswell7a73b802003-06-30 21:59:07 +000034599( exit $ac_status )
34600ac_cv_func_mmap_fixed_mapped=no
34601fi
Reid Spencera773bd52006-08-04 18:18:08 +000034602rm -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 +000034603fi
Reid Spencera773bd52006-08-04 18:18:08 +000034604
34605
John Criswell7a73b802003-06-30 21:59:07 +000034606fi
Reid Spencera773bd52006-08-04 18:18:08 +000034607{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34608echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034609if test $ac_cv_func_mmap_fixed_mapped = yes; then
34610
34611cat >>confdefs.h <<\_ACEOF
34612#define HAVE_MMAP 1
34613_ACEOF
34614
34615fi
34616rm -f conftest.mmap
34617
Reid Spencer30fe5262007-01-20 07:48:49 +000034618 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034619echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034620if test "${ac_cv_func_mmap_file+set}" = set; then
34621 echo $ECHO_N "(cached) $ECHO_C" >&6
34622else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034623 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034624ac_cpp='$CPP $CPPFLAGS'
34625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34627ac_compiler_gnu=$ac_cv_c_compiler_gnu
34628
34629 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034630 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034631else
34632 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034633
Reid Spencer777ce172004-09-20 04:09:56 +000034634 /* confdefs.h. */
34635_ACEOF
34636cat confdefs.h >>conftest.$ac_ext
34637cat >>conftest.$ac_ext <<_ACEOF
34638/* end confdefs.h. */
34639
John Criswell7a73b802003-06-30 21:59:07 +000034640#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034641#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034642#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034643
34644int
34645main ()
34646{
John Criswell7a73b802003-06-30 21:59:07 +000034647
34648 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034649 fd = creat ("foo",0777);
34650 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34651 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034652 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034653 ;
34654 return 0;
34655}
John Criswell7a73b802003-06-30 21:59:07 +000034656_ACEOF
34657rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034658if { (ac_try="$ac_link"
34659case "(($ac_try" in
34660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34661 *) ac_try_echo=$ac_try;;
34662esac
34663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34664 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034665 ac_status=$?
34666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034668 { (case "(($ac_try" in
34669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34670 *) ac_try_echo=$ac_try;;
34671esac
34672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34673 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034674 ac_status=$?
34675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676 (exit $ac_status); }; }; then
34677 ac_cv_func_mmap_file=yes
34678else
34679 echo "$as_me: program exited with status $ac_status" >&5
34680echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034681sed 's/^/| /' conftest.$ac_ext >&5
34682
John Criswell7a73b802003-06-30 21:59:07 +000034683( exit $ac_status )
34684ac_cv_func_mmap_file=no
34685fi
Reid Spencera773bd52006-08-04 18:18:08 +000034686rm -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 +000034687fi
Reid Spencera773bd52006-08-04 18:18:08 +000034688
34689
John Criswell7a73b802003-06-30 21:59:07 +000034690 ac_ext=c
34691ac_cpp='$CPP $CPPFLAGS'
34692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34694ac_compiler_gnu=$ac_cv_c_compiler_gnu
34695
34696
34697fi
Reid Spencera773bd52006-08-04 18:18:08 +000034698{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34699echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034700if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034701
34702cat >>confdefs.h <<\_ACEOF
34703#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034704_ACEOF
34705
34706 MMAP_FILE=yes
34707
34708fi
34709
Reid Spencer30fe5262007-01-20 07:48:49 +000034710 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034711echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034712if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34713 echo $ECHO_N "(cached) $ECHO_C" >&6
34714else
Reid Spencer582a23c2004-12-29 07:07:57 +000034715 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034716 ac_cv_need_dev_zero_for_mmap=yes
34717 else
34718 ac_cv_need_dev_zero_for_mmap=no
34719 fi
34720
34721fi
Reid Spencera773bd52006-08-04 18:18:08 +000034722{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34723echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034724if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34725
34726cat >>confdefs.h <<\_ACEOF
34727#define NEED_DEV_ZERO_FOR_MMAP 1
34728_ACEOF
34729
34730fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034731
Reid Spencer30fe5262007-01-20 07:48:49 +000034732 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34733 then
34734 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034735echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034736 fi
34737 if test "$ac_cv_func_mmap_file" = "no"
34738 then
34739 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034740echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034741 fi
John Criswellb13092b2003-07-22 21:00:24 +000034742fi
John Criswell7a73b802003-06-30 21:59:07 +000034743
Owen Andersona8603702009-05-19 22:18:56 +000034744{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000034745echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034746cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000034747/* confdefs.h. */
34748_ACEOF
34749cat confdefs.h >>conftest.$ac_ext
34750cat >>conftest.$ac_ext <<_ACEOF
34751/* end confdefs.h. */
34752int main() {
Owen Andersona8603702009-05-19 22:18:56 +000034753 volatile unsigned long val = 1;
34754 __sync_synchronize();
34755 __sync_val_compare_and_swap(&val, 1, 0);
Owen Anderson9a3df672009-06-17 00:13:00 +000034756 __sync_add_and_fetch(&val, 1);
34757 __sync_sub_and_fetch(&val, 1);
Owen Andersona8603702009-05-19 22:18:56 +000034758 return 0;
34759 }
Owen Andersond4b272b2009-05-18 23:58:51 +000034760
34761_ACEOF
34762rm -f conftest.$ac_objext conftest$ac_exeext
34763if { (ac_try="$ac_link"
34764case "(($ac_try" in
34765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34766 *) ac_try_echo=$ac_try;;
34767esac
34768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34769 (eval "$ac_link") 2>conftest.er1
34770 ac_status=$?
34771 grep -v '^ *+' conftest.er1 >conftest.err
34772 rm -f conftest.er1
34773 cat conftest.err >&5
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); } &&
34776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34777 { (case "(($ac_try" in
34778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34779 *) ac_try_echo=$ac_try;;
34780esac
34781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34782 (eval "$ac_try") 2>&5
34783 ac_status=$?
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; } &&
34786 { ac_try='test -s conftest$ac_exeext'
34787 { (case "(($ac_try" in
34788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34789 *) ac_try_echo=$ac_try;;
34790esac
34791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34792 (eval "$ac_try") 2>&5
34793 ac_status=$?
34794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34795 (exit $ac_status); }; }; then
34796 { echo "$as_me:$LINENO: result: yes" >&5
34797echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000034798
34799cat >>confdefs.h <<\_ACEOF
34800#define LLVM_MULTITHREADED 1
34801_ACEOF
34802
Owen Andersond4b272b2009-05-18 23:58:51 +000034803else
34804 echo "$as_me: failed program was:" >&5
34805sed 's/^/| /' conftest.$ac_ext >&5
34806
34807 { echo "$as_me:$LINENO: result: no" >&5
34808echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000034809
Owen Andersona8603702009-05-19 22:18:56 +000034810cat >>confdefs.h <<\_ACEOF
34811#define LLVM_MULTITHREADED 0
34812_ACEOF
34813
34814 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
34815echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000034816fi
34817
34818rm -f core conftest.err conftest.$ac_objext \
34819 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000034820
34821
John Criswell7a73b802003-06-30 21:59:07 +000034822
Reid Spencer9372f152007-07-30 20:13:24 +000034823
34824for ac_func in __dso_handle
34825do
34826as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34827{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34828echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34829if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34830 echo $ECHO_N "(cached) $ECHO_C" >&6
34831else
34832 cat >conftest.$ac_ext <<_ACEOF
34833/* confdefs.h. */
34834_ACEOF
34835cat confdefs.h >>conftest.$ac_ext
34836cat >>conftest.$ac_ext <<_ACEOF
34837/* end confdefs.h. */
34838/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34840#define $ac_func innocuous_$ac_func
34841
34842/* System header to define __stub macros and hopefully few prototypes,
34843 which can conflict with char $ac_func (); below.
34844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34845 <limits.h> exists even on freestanding compilers. */
34846
34847#ifdef __STDC__
34848# include <limits.h>
34849#else
34850# include <assert.h>
34851#endif
34852
34853#undef $ac_func
34854
34855/* Override any GCC internal prototype to avoid an error.
34856 Use char because int might match the return type of a GCC
34857 builtin and then its argument prototype would still apply. */
34858#ifdef __cplusplus
34859extern "C"
34860#endif
34861char $ac_func ();
34862/* The GNU C library defines this for functions which it implements
34863 to always fail with ENOSYS. Some functions are actually named
34864 something starting with __ and the normal name is an alias. */
34865#if defined __stub_$ac_func || defined __stub___$ac_func
34866choke me
34867#endif
34868
34869int
34870main ()
34871{
34872return $ac_func ();
34873 ;
34874 return 0;
34875}
34876_ACEOF
34877rm -f conftest.$ac_objext conftest$ac_exeext
34878if { (ac_try="$ac_link"
34879case "(($ac_try" in
34880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34881 *) ac_try_echo=$ac_try;;
34882esac
34883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34884 (eval "$ac_link") 2>conftest.er1
34885 ac_status=$?
34886 grep -v '^ *+' conftest.er1 >conftest.err
34887 rm -f conftest.er1
34888 cat conftest.err >&5
34889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034890 (exit $ac_status); } &&
34891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34892 { (case "(($ac_try" in
34893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34894 *) ac_try_echo=$ac_try;;
34895esac
34896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34897 (eval "$ac_try") 2>&5
34898 ac_status=$?
34899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34900 (exit $ac_status); }; } &&
34901 { ac_try='test -s conftest$ac_exeext'
34902 { (case "(($ac_try" in
34903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34904 *) ac_try_echo=$ac_try;;
34905esac
34906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34907 (eval "$ac_try") 2>&5
34908 ac_status=$?
34909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34910 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034911 eval "$as_ac_var=yes"
34912else
34913 echo "$as_me: failed program was:" >&5
34914sed 's/^/| /' conftest.$ac_ext >&5
34915
34916 eval "$as_ac_var=no"
34917fi
34918
Bill Wendlingebcceee2009-04-18 11:20:33 +000034919rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034920 conftest$ac_exeext conftest.$ac_ext
34921fi
34922ac_res=`eval echo '${'$as_ac_var'}'`
34923 { echo "$as_me:$LINENO: result: $ac_res" >&5
34924echo "${ECHO_T}$ac_res" >&6; }
34925if test `eval echo '${'$as_ac_var'}'` = yes; then
34926 cat >>confdefs.h <<_ACEOF
34927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34928_ACEOF
34929
34930fi
34931done
34932
34933
Reid Spencera773bd52006-08-04 18:18:08 +000034934{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34935echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034936if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34937 echo $ECHO_N "(cached) $ECHO_C" >&6
34938else
34939 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034940if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034941 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034942 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34943 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034944 if test $? -eq 0 ; then
34945 llvm_cv_llvmgcc_sanity="yes"
34946 fi
34947 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034948fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034949fi
Reid Spencera773bd52006-08-04 18:18:08 +000034950{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34951echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034952
34953if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034954 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34955echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034956 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034957 LLVMCC1=$llvmcc1path
34958
Reid Spencer502935f2004-12-22 05:56:56 +000034959 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034960 LLVMCC1PLUS=$llvmcc1pluspath
34961
Reid Spencer502935f2004-12-22 05:56:56 +000034962 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34963 LLVMGCCDIR=$llvmgccdir
34964
Reid Spencer282d8c12006-12-21 22:55:41 +000034965 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34966 LLVMGCCLIBEXEC=$llvmgcclibexec
34967
Reid Spencerb5d75b82006-05-09 00:31:01 +000034968 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034969 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34970 LLVMGCC_VERSION=$llvmgccversion
34971
34972 LLVMGCC_MAJVERS=$llvmgccmajvers
34973
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034974 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034975 LLVMGCC_LANGS=$llvmgcclangs
34976
34977 { echo "$as_me:$LINENO: result: ok" >&5
34978echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034979fi
34980
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034981SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034982
34983
Reid Spencere9de0912004-08-20 09:03:57 +000034984# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034985# information into substitutions that will end up in Makefile.config.in
34986# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034987if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034988 prefix="/usr/local"
34989fi
Reid Spencere9de0912004-08-20 09:03:57 +000034990eval LLVM_PREFIX="${prefix}";
34991eval LLVM_BINDIR="${prefix}/bin";
34992eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034993eval LLVM_DATADIR="${prefix}/share/llvm";
34994eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34995eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034996eval LLVM_INCLUDEDIR="${prefix}/include";
34997eval LLVM_INFODIR="${prefix}/info";
34998eval LLVM_MANDIR="${prefix}/man";
34999LLVM_CONFIGTIME=`date`
35000
35001
35002
35003
35004
35005
35006
35007
35008
35009
35010
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035011# Place the various directores into the config.h file as #defines so that we
35012# can know about the installation paths within LLVM.
35013
Reid Spencere9de0912004-08-20 09:03:57 +000035014cat >>confdefs.h <<_ACEOF
35015#define LLVM_PREFIX "$LLVM_PREFIX"
35016_ACEOF
35017
35018
35019cat >>confdefs.h <<_ACEOF
35020#define LLVM_BINDIR "$LLVM_BINDIR"
35021_ACEOF
35022
35023
35024cat >>confdefs.h <<_ACEOF
35025#define LLVM_LIBDIR "$LLVM_LIBDIR"
35026_ACEOF
35027
35028
35029cat >>confdefs.h <<_ACEOF
35030#define LLVM_DATADIR "$LLVM_DATADIR"
35031_ACEOF
35032
35033
35034cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000035035#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035036_ACEOF
35037
35038
35039cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000035040#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000035041_ACEOF
35042
35043
35044cat >>confdefs.h <<_ACEOF
35045#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
35046_ACEOF
35047
35048
35049cat >>confdefs.h <<_ACEOF
35050#define LLVM_INFODIR "$LLVM_INFODIR"
35051_ACEOF
35052
35053
35054cat >>confdefs.h <<_ACEOF
35055#define LLVM_MANDIR "$LLVM_MANDIR"
35056_ACEOF
35057
35058
35059cat >>confdefs.h <<_ACEOF
35060#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
35061_ACEOF
35062
35063
Eric Christopher790e11c2007-12-01 00:34:39 +000035064cat >>confdefs.h <<_ACEOF
35065#define LLVM_HOSTTRIPLE "$host"
35066_ACEOF
35067
35068
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035069# Determine which bindings to build.
35070if test "$BINDINGS_TO_BUILD" = auto ; then
35071 BINDINGS_TO_BUILD=""
35072 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
35073 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
35074 fi
35075fi
35076BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
35077
35078
35079# This isn't really configurey, but it avoids having to repeat the list in
35080# other files.
35081ALL_BINDINGS=ocaml
35082
35083
Gordon Henriksenf0915682007-10-02 16:42:22 +000035084# Do any work necessary to ensure that bindings have what they need.
35085binding_prereqs_failed=0
35086for a_binding in $BINDINGS_TO_BUILD ; do
35087 case "$a_binding" in
35088 ocaml)
35089 if test "x$OCAMLC" = x ; then
35090 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
35091echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
35092 binding_prereqs_failed=1
35093 fi
35094 if test "x$OCAMLDEP" = x ; then
35095 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
35096echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
35097 binding_prereqs_failed=1
35098 fi
35099 if test "x$OCAMLOPT" = x ; then
35100 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
35101echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
35102 fi
35103 if test "x$with_ocaml_libdir" != xauto ; then
35104 OCAML_LIBDIR=$with_ocaml_libdir
35105
35106 else
35107 ocaml_stdlib="`"$OCAMLC" -where`"
35108 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
35109 then
35110 # ocaml stdlib is beneath our prefix; use stdlib
35111 OCAML_LIBDIR=$ocaml_stdlib
35112
35113 else
35114 # ocaml stdlib is outside our prefix; use libdir/ocaml
35115 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
35116
35117 fi
35118 fi
35119 ;;
35120 esac
35121done
35122if test "$binding_prereqs_failed" = 1 ; then
35123 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
35124echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
35125 { (exit 1); exit 1; }; }
35126fi
35127
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035128{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
35129echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
35130if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
35131 echo $ECHO_N "(cached) $ECHO_C" >&6
35132else
35133 ac_ext=cpp
35134ac_cpp='$CXXCPP $CPPFLAGS'
35135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35138
35139 oldcxxflags="$CXXFLAGS"
35140 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
35141 cat >conftest.$ac_ext <<_ACEOF
35142/* confdefs.h. */
35143_ACEOF
35144cat confdefs.h >>conftest.$ac_ext
35145cat >>conftest.$ac_ext <<_ACEOF
35146/* end confdefs.h. */
35147
35148int
35149main ()
35150{
35151
35152 ;
35153 return 0;
35154}
35155_ACEOF
35156rm -f conftest.$ac_objext
35157if { (ac_try="$ac_compile"
35158case "(($ac_try" in
35159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35160 *) ac_try_echo=$ac_try;;
35161esac
35162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35163 (eval "$ac_compile") 2>conftest.er1
35164 ac_status=$?
35165 grep -v '^ *+' conftest.er1 >conftest.err
35166 rm -f conftest.er1
35167 cat conftest.err >&5
35168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000035169 (exit $ac_status); } &&
35170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
35171 { (case "(($ac_try" in
35172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35173 *) ac_try_echo=$ac_try;;
35174esac
35175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35176 (eval "$ac_try") 2>&5
35177 ac_status=$?
35178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 (exit $ac_status); }; } &&
35180 { ac_try='test -s conftest.$ac_objext'
35181 { (case "(($ac_try" in
35182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35183 *) ac_try_echo=$ac_try;;
35184esac
35185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35186 (eval "$ac_try") 2>&5
35187 ac_status=$?
35188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35189 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035190 llvm_cv_cxx_visibility_inlines_hidden=yes
35191else
35192 echo "$as_me: failed program was:" >&5
35193sed 's/^/| /' conftest.$ac_ext >&5
35194
35195 llvm_cv_cxx_visibility_inlines_hidden=no
35196fi
35197
35198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35199 CXXFLAGS="$oldcxxflags"
35200 ac_ext=c
35201ac_cpp='$CPP $CPPFLAGS'
35202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35204ac_compiler_gnu=$ac_cv_c_compiler_gnu
35205
35206
35207fi
35208{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
35209echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
35210if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
35211 ENABLE_VISIBILITY_INLINES_HIDDEN=1
35212
35213else
35214 ENABLE_VISIBILITY_INLINES_HIDDEN=0
35215
35216fi
35217
Gordon Henriksenf0915682007-10-02 16:42:22 +000035218
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035219if test "$llvm_cv_link_use_r" = "yes" ; then
35220 RPATH="-Wl,-R"
35221else
35222 RPATH="-Wl,-rpath"
35223fi
35224
35225
35226if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
35227 RDYNAMIC="-Wl,-export-dynamic"
35228else
35229 RDYNAMIC=""
35230fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035231
35232
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035233
Reid Spencera773bd52006-08-04 18:18:08 +000035234ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035235
Douglas Gregor1555a232009-06-16 20:12:29 +000035236ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
35237
35238ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
35239
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035240ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
35241
Reid Spencera773bd52006-08-04 18:18:08 +000035242ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035243
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035244ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035245
35246
Reid Spencera773bd52006-08-04 18:18:08 +000035247ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035248
35249
Reid Spencerea949cf2006-08-16 00:45:38 +000035250ac_config_files="$ac_config_files llvm.spec"
35251
35252
Reid Spencera773bd52006-08-04 18:18:08 +000035253ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000035254
35255
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035256ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
35257
35258
Reid Spencera773bd52006-08-04 18:18:08 +000035259ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000035260
35261
Reid Spencera773bd52006-08-04 18:18:08 +000035262ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000035263
Reid Spencera773bd52006-08-04 18:18:08 +000035264ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035265
35266
Reid Spencera773bd52006-08-04 18:18:08 +000035267ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035268
35269
Reid Spencera773bd52006-08-04 18:18:08 +000035270ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035271
35272
Reid Spencera773bd52006-08-04 18:18:08 +000035273ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035274
35275
Reid Spencer8b2e1412006-11-17 03:32:33 +000035276ac_config_commands="$ac_config_commands runtime/Makefile"
35277
35278
Reid Spencera773bd52006-08-04 18:18:08 +000035279ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035280
35281
Reid Spencera773bd52006-08-04 18:18:08 +000035282ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035283
35284
Bill Wendlingf24eb392009-01-04 23:12:30 +000035285ac_config_commands="$ac_config_commands unittests/Makefile"
35286
35287
Reid Spencera773bd52006-08-04 18:18:08 +000035288ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035289
35290
Reid Spencera773bd52006-08-04 18:18:08 +000035291ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035292
35293
Reid Spencera773bd52006-08-04 18:18:08 +000035294ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035295
35296
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035297ac_config_commands="$ac_config_commands bindings/Makefile"
35298
35299
35300ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
35301
35302
Reid Spencer5e1d9a52004-11-25 04:51:04 +000035303
John Criswell7a73b802003-06-30 21:59:07 +000035304cat >confcache <<\_ACEOF
35305# This file is a shell script that caches the results of configure
35306# tests run on this system so they can be shared between configure
35307# scripts and configure runs, see configure's option --config-cache.
35308# It is not useful on other systems. If it contains results you don't
35309# want to keep, you may remove or edit it.
35310#
35311# config.status only pays attention to the cache file if you give it
35312# the --recheck option to rerun configure.
35313#
John Criswell0c38eaf2003-09-10 15:17:25 +000035314# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000035315# loading this file, other *unset* `ac_cv_foo' will be assigned the
35316# following values.
35317
35318_ACEOF
35319
35320# The following way of writing the cache mishandles newlines in values,
35321# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000035322# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000035323# Ultrix sh set writes to stderr and can't be redirected directly,
35324# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000035325(
35326 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35327 eval ac_val=\$$ac_var
35328 case $ac_val in #(
35329 *${as_nl}*)
35330 case $ac_var in #(
35331 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
35332echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
35333 esac
35334 case $ac_var in #(
35335 _ | IFS | as_nl) ;; #(
35336 *) $as_unset $ac_var ;;
35337 esac ;;
35338 esac
35339 done
35340
John Criswell7a73b802003-06-30 21:59:07 +000035341 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000035342 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35343 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000035344 # `set' does not quote correctly, so add quotes (double-quote
35345 # substitution turns \\\\ into \\, and sed turns \\ into \).
35346 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035347 "s/'/'\\\\''/g;
35348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000035349 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000035350 *)
35351 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000035352 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000035353 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035354 esac |
35355 sort
35356) |
John Criswell7a73b802003-06-30 21:59:07 +000035357 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035358 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000035359 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000035360 :clear
John Criswell7a73b802003-06-30 21:59:07 +000035361 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35362 t end
Reid Spencera773bd52006-08-04 18:18:08 +000035363 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35364 :end' >>confcache
35365if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35366 if test -w "$cache_file"; then
35367 test "x$cache_file" != "x/dev/null" &&
35368 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
35369echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035370 cat confcache >$cache_file
35371 else
Reid Spencera773bd52006-08-04 18:18:08 +000035372 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
35373echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000035374 fi
35375fi
35376rm -f confcache
35377
35378test "x$prefix" = xNONE && prefix=$ac_default_prefix
35379# Let make expand exec_prefix.
35380test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35381
John Criswell7a73b802003-06-30 21:59:07 +000035382DEFS=-DHAVE_CONFIG_H
35383
John Criswell0c38eaf2003-09-10 15:17:25 +000035384ac_libobjs=
35385ac_ltlibobjs=
35386for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35387 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000035388 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35389 ac_i=`echo "$ac_i" | sed "$ac_script"`
35390 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35391 # will be set to the directory where LIBOBJS objects are built.
35392 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35393 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000035394done
35395LIBOBJS=$ac_libobjs
35396
35397LTLIBOBJS=$ac_ltlibobjs
35398
35399
Reid Spencer2bc7bd52004-11-29 12:29:58 +000035400if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35401 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
35402Usually this means the macro was only invoked conditionally." >&5
35403echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
35404Usually this means the macro was only invoked conditionally." >&2;}
35405 { (exit 1); exit 1; }; }
35406fi
35407if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35408 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35409Usually this means the macro was only invoked conditionally." >&5
35410echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
35411Usually this means the macro was only invoked conditionally." >&2;}
35412 { (exit 1); exit 1; }; }
35413fi
John Criswell7a73b802003-06-30 21:59:07 +000035414
35415: ${CONFIG_STATUS=./config.status}
35416ac_clean_files_save=$ac_clean_files
35417ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35418{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
35419echo "$as_me: creating $CONFIG_STATUS" >&6;}
35420cat >$CONFIG_STATUS <<_ACEOF
35421#! $SHELL
35422# Generated by $as_me.
35423# Run this file to recreate the current configuration.
35424# Compiler output produced by configure, useful for debugging
35425# configure, is in config.log if it exists.
35426
35427debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000035428ac_cs_recheck=false
35429ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000035430SHELL=\${CONFIG_SHELL-$SHELL}
35431_ACEOF
35432
35433cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035434## --------------------- ##
35435## M4sh Initialization. ##
35436## --------------------- ##
35437
Bill Wendlingebcceee2009-04-18 11:20:33 +000035438# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000035439if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
35440 emulate sh
35441 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035442 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
35443 # is contrary to our usage. Disable this feature.
35444 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000035445 setopt NO_GLOB_SUBST
35446else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035447 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000035448fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035449BIN_SH=xpg4; export BIN_SH # for Tru64
35450DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000035451
John Criswell7a73b802003-06-30 21:59:07 +000035452
Reid Spencera773bd52006-08-04 18:18:08 +000035453# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000035454# Avoid depending upon Character Ranges.
35455as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35456as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35457as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35458as_cr_digits='0123456789'
35459as_cr_alnum=$as_cr_Letters$as_cr_digits
35460
35461# The user is always right.
35462if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000035463 echo "#! /bin/sh" >conf$$.sh
35464 echo "exit 0" >>conf$$.sh
35465 chmod +x conf$$.sh
35466 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035467 PATH_SEPARATOR=';'
35468 else
35469 PATH_SEPARATOR=:
35470 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000035471 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000035472fi
35473
Reid Spencera773bd52006-08-04 18:18:08 +000035474# Support unset when possible.
35475if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35476 as_unset=unset
35477else
35478 as_unset=false
35479fi
John Criswell7a73b802003-06-30 21:59:07 +000035480
Reid Spencera773bd52006-08-04 18:18:08 +000035481
35482# IFS
35483# We need space, tab and new line, in precisely that order. Quoting is
35484# there to prevent editors from complaining about space-tab.
35485# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35486# splitting by setting IFS to empty value.)
35487as_nl='
35488'
35489IFS=" "" $as_nl"
35490
35491# Find who we are. Look in the path if we contain no directory separator.
35492case $0 in
35493 *[\\/]* ) as_myself=$0 ;;
35494 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000035495for as_dir in $PATH
35496do
35497 IFS=$as_save_IFS
35498 test -z "$as_dir" && as_dir=.
35499 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35500done
Reid Spencera773bd52006-08-04 18:18:08 +000035501IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000035502
Reid Spencera773bd52006-08-04 18:18:08 +000035503 ;;
35504esac
35505# We did not find ourselves, most probably we were run as `sh COMMAND'
35506# in which case we are not to be found in the path.
35507if test "x$as_myself" = x; then
35508 as_myself=$0
35509fi
35510if test ! -f "$as_myself"; then
35511 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35512 { (exit 1); exit 1; }
35513fi
35514
35515# Work around bugs in pre-3.0 UWIN ksh.
35516for as_var in ENV MAIL MAILPATH
35517do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35518done
35519PS1='$ '
35520PS2='> '
35521PS4='+ '
35522
35523# NLS nuisances.
35524for as_var in \
35525 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
35526 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
35527 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000035528do
Reid Spencera773bd52006-08-04 18:18:08 +000035529 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
35530 eval $as_var=C; export $as_var
35531 else
35532 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
35533 fi
35534done
35535
35536# Required to use basename.
35537if expr a : '\(a\)' >/dev/null 2>&1 &&
35538 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35539 as_expr=expr
35540else
35541 as_expr=false
35542fi
35543
35544if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35545 as_basename=basename
35546else
35547 as_basename=false
35548fi
35549
35550
35551# Name of the executable.
35552as_me=`$as_basename -- "$0" ||
35553$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35554 X"$0" : 'X\(//\)$' \| \
35555 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35556echo X/"$0" |
35557 sed '/^.*\/\([^/][^/]*\)\/*$/{
35558 s//\1/
35559 q
35560 }
35561 /^X\/\(\/\/\)$/{
35562 s//\1/
35563 q
35564 }
35565 /^X\/\(\/\).*/{
35566 s//\1/
35567 q
35568 }
35569 s/.*/./; q'`
35570
35571# CDPATH.
35572$as_unset CDPATH
35573
35574
35575
John Criswell7a73b802003-06-30 21:59:07 +000035576 as_lineno_1=$LINENO
35577 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000035578 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000035579 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000035580
35581 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
35582 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000035583 # line-number line after each line using $LINENO; the second 'sed'
35584 # does the real work. The second script uses 'N' to pair each
35585 # line-number line with the line containing $LINENO, and appends
35586 # trailing '-' during substitution so that $LINENO is not a special
35587 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000035588 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000035589 # scripts with optimization help from Paolo Bonzini. Blame Lee
35590 # E. McMahon (1931-1989) for sed's syntax. :-)
35591 sed -n '
35592 p
35593 /[$]LINENO/=
35594 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000035595 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000035596 s/[$]LINENO.*/&-/
35597 t lineno
35598 b
35599 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000035600 N
Reid Spencera773bd52006-08-04 18:18:08 +000035601 :loop
35602 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000035603 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000035604 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000035605 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000035606 chmod +x "$as_me.lineno" ||
35607 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000035608 { (exit 1); exit 1; }; }
35609
35610 # Don't try to exec as it changes $[0], causing all sort of problems
35611 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000035612 # original and so on. Autoconf is especially sensitive to this).
35613 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000035614 # Exit status is that of the last command.
35615 exit
35616}
35617
35618
Reid Spencera773bd52006-08-04 18:18:08 +000035619if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35620 as_dirname=dirname
35621else
35622 as_dirname=false
35623fi
35624
35625ECHO_C= ECHO_N= ECHO_T=
35626case `echo -n x` in
35627-n*)
35628 case `echo 'x\c'` in
35629 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35630 *) ECHO_C='\c';;
35631 esac;;
35632*)
35633 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000035634esac
35635
Reid Spencera773bd52006-08-04 18:18:08 +000035636if expr a : '\(a\)' >/dev/null 2>&1 &&
35637 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000035638 as_expr=expr
35639else
35640 as_expr=false
35641fi
35642
35643rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000035644if test -d conf$$.dir; then
35645 rm -f conf$$.dir/conf$$.file
35646else
35647 rm -f conf$$.dir
35648 mkdir conf$$.dir
35649fi
John Criswell7a73b802003-06-30 21:59:07 +000035650echo >conf$$.file
35651if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000035652 as_ln_s='ln -s'
35653 # ... but there are two gotchas:
35654 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35655 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35656 # In both cases, we have to default to `cp -p'.
35657 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000035658 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000035659elif ln conf$$.file conf$$ 2>/dev/null; then
35660 as_ln_s=ln
35661else
35662 as_ln_s='cp -p'
35663fi
Reid Spencera773bd52006-08-04 18:18:08 +000035664rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35665rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000035666
John Criswell0c38eaf2003-09-10 15:17:25 +000035667if mkdir -p . 2>/dev/null; then
35668 as_mkdir_p=:
35669else
Reid Spencer2706f8c2004-09-19 23:53:36 +000035670 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000035671 as_mkdir_p=false
35672fi
35673
Bill Wendlingebcceee2009-04-18 11:20:33 +000035674# Find out whether ``test -x'' works. Don't use a zero-byte file, as
35675# systems may use methods other than mode bits to determine executability.
35676cat >conf$$.file <<_ASEOF
35677#! /bin/sh
35678exit 0
35679_ASEOF
35680chmod +x conf$$.file
35681if test -x conf$$.file >/dev/null 2>&1; then
35682 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000035683else
Bill Wendlingebcceee2009-04-18 11:20:33 +000035684 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000035685fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000035686rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000035687
35688# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035689as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035690
35691# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000035692as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000035693
35694
John Criswell7a73b802003-06-30 21:59:07 +000035695exec 6>&1
35696
Reid Spencera773bd52006-08-04 18:18:08 +000035697# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035698# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035699# values after options handling.
35700ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035701This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000035702generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035703
35704 CONFIG_FILES = $CONFIG_FILES
35705 CONFIG_HEADERS = $CONFIG_HEADERS
35706 CONFIG_LINKS = $CONFIG_LINKS
35707 CONFIG_COMMANDS = $CONFIG_COMMANDS
35708 $ $0 $@
35709
Reid Spencera773bd52006-08-04 18:18:08 +000035710on `(hostname || uname -n) 2>/dev/null | sed 1q`
35711"
35712
John Criswell7a73b802003-06-30 21:59:07 +000035713_ACEOF
35714
Reid Spencera773bd52006-08-04 18:18:08 +000035715cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035716# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035717config_files="$ac_config_files"
35718config_headers="$ac_config_headers"
35719config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035720
Reid Spencera773bd52006-08-04 18:18:08 +000035721_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035722
35723cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035724ac_cs_usage="\
35725\`$as_me' instantiates files from templates according to the
35726current configuration.
35727
35728Usage: $0 [OPTIONS] [FILE]...
35729
35730 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000035731 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035732 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035733 -d, --debug don't remove temporary files
35734 --recheck update $as_me by reconfiguring in the same conditions
35735 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035736 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035737 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035738 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035739
35740Configuration files:
35741$config_files
35742
35743Configuration headers:
35744$config_headers
35745
John Criswellc764fbc2003-09-06 15:17:13 +000035746Configuration commands:
35747$config_commands
35748
John Criswell7a73b802003-06-30 21:59:07 +000035749Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035750
Reid Spencera773bd52006-08-04 18:18:08 +000035751_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035752cat >>$CONFIG_STATUS <<_ACEOF
35753ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035754llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000035755configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035756 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035757
Reid Spencera773bd52006-08-04 18:18:08 +000035758Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035759This config.status script is free software; the Free Software Foundation
35760gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035761
35762ac_pwd='$ac_pwd'
35763srcdir='$srcdir'
35764INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035765_ACEOF
35766
35767cat >>$CONFIG_STATUS <<\_ACEOF
35768# If no file are specified by the user, then we need to provide default
35769# value. By we need to know if files were specified by the user.
35770ac_need_defaults=:
35771while test $# != 0
35772do
35773 case $1 in
35774 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035775 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35776 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035777 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035778 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035779 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035780 ac_option=$1
35781 ac_optarg=$2
35782 ac_shift=shift
35783 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035784 esac
35785
John Criswell0c38eaf2003-09-10 15:17:25 +000035786 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035787 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035788 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35789 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035790 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35791 echo "$ac_cs_version"; exit ;;
35792 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035793 debug=: ;;
35794 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035795 $ac_shift
35796 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035797 ac_need_defaults=false;;
35798 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035799 $ac_shift
35800 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035801 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035802 --he | --h)
35803 # Conflict between --help and --header
35804 { echo "$as_me: error: ambiguous option: $1
35805Try \`$0 --help' for more information." >&2
35806 { (exit 1); exit 1; }; };;
35807 --help | --hel | -h )
35808 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035809 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35810 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35811 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035812
35813 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035814 -*) { echo "$as_me: error: unrecognized option: $1
35815Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035816 { (exit 1); exit 1; }; } ;;
35817
Reid Spencera773bd52006-08-04 18:18:08 +000035818 *) ac_config_targets="$ac_config_targets $1"
35819 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035820
35821 esac
35822 shift
35823done
35824
John Criswell0c38eaf2003-09-10 15:17:25 +000035825ac_configure_extra_args=
35826
35827if $ac_cs_silent; then
35828 exec 6>/dev/null
35829 ac_configure_extra_args="$ac_configure_extra_args --silent"
35830fi
35831
35832_ACEOF
35833cat >>$CONFIG_STATUS <<_ACEOF
35834if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035835 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35836 CONFIG_SHELL=$SHELL
35837 export CONFIG_SHELL
35838 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035839fi
35840
John Criswell7a73b802003-06-30 21:59:07 +000035841_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035842cat >>$CONFIG_STATUS <<\_ACEOF
35843exec 5>>config.log
35844{
35845 echo
35846 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35847## Running $as_me. ##
35848_ASBOX
35849 echo "$ac_log"
35850} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035851
Reid Spencera773bd52006-08-04 18:18:08 +000035852_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035853cat >>$CONFIG_STATUS <<_ACEOF
35854#
Reid Spencera773bd52006-08-04 18:18:08 +000035855# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035856#
Reid Spencerc0682832005-02-24 19:05:19 +000035857llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035858
35859_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035860
John Criswell7a73b802003-06-30 21:59:07 +000035861cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035862
35863# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035864for ac_config_target in $ac_config_targets
35865do
Reid Spencera773bd52006-08-04 18:18:08 +000035866 case $ac_config_target in
35867 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000035868 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
35869 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000035870 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035871 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035872 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035873 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035874 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035875 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035876 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035877 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35878 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35879 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35880 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35881 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35882 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035883 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035884 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35885 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035886 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035887 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35888 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35889 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035890 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35891 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035892
John Criswell7a73b802003-06-30 21:59:07 +000035893 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35894echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35895 { (exit 1); exit 1; }; };;
35896 esac
35897done
35898
Reid Spencera773bd52006-08-04 18:18:08 +000035899
John Criswell7a73b802003-06-30 21:59:07 +000035900# If the user did not use the arguments to specify the items to instantiate,
35901# then the envvar interface is used. Set only those that are not.
35902# We use the long form for the default assignment because of an extremely
35903# bizarre bug on SunOS 4.1.3.
35904if $ac_need_defaults; then
35905 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35906 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035907 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035908fi
35909
John Criswell0c38eaf2003-09-10 15:17:25 +000035910# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035911# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035912# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035913# Hook for its removal unless debugging.
35914# Note that there is a small window in which the directory will not be cleaned:
35915# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035916$debug ||
35917{
Reid Spencera773bd52006-08-04 18:18:08 +000035918 tmp=
35919 trap 'exit_status=$?
35920 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35921' 0
John Criswell7a73b802003-06-30 21:59:07 +000035922 trap '{ (exit 1); exit 1; }' 1 2 13 15
35923}
John Criswell7a73b802003-06-30 21:59:07 +000035924# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035925
John Criswell7a73b802003-06-30 21:59:07 +000035926{
Reid Spencera773bd52006-08-04 18:18:08 +000035927 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035928 test -n "$tmp" && test -d "$tmp"
35929} ||
35930{
Reid Spencera773bd52006-08-04 18:18:08 +000035931 tmp=./conf$$-$RANDOM
35932 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035933} ||
35934{
John Criswell0c38eaf2003-09-10 15:17:25 +000035935 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035936 { (exit 1); exit 1; }
35937}
35938
John Criswell7a73b802003-06-30 21:59:07 +000035939#
Reid Spencera773bd52006-08-04 18:18:08 +000035940# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035941#
35942
35943# No need to generate the scripts if there are no CONFIG_FILES.
35944# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035945if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035946
35947_ACEOF
35948
Reid Spencera773bd52006-08-04 18:18:08 +000035949
35950
35951ac_delim='%!_!# '
35952for ac_last_try in false false false false false :; do
35953 cat >conf$$subs.sed <<_ACEOF
35954SHELL!$SHELL$ac_delim
35955PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35956PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35957PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35958PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35959PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35960PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35961exec_prefix!$exec_prefix$ac_delim
35962prefix!$prefix$ac_delim
35963program_transform_name!$program_transform_name$ac_delim
35964bindir!$bindir$ac_delim
35965sbindir!$sbindir$ac_delim
35966libexecdir!$libexecdir$ac_delim
35967datarootdir!$datarootdir$ac_delim
35968datadir!$datadir$ac_delim
35969sysconfdir!$sysconfdir$ac_delim
35970sharedstatedir!$sharedstatedir$ac_delim
35971localstatedir!$localstatedir$ac_delim
35972includedir!$includedir$ac_delim
35973oldincludedir!$oldincludedir$ac_delim
35974docdir!$docdir$ac_delim
35975infodir!$infodir$ac_delim
35976htmldir!$htmldir$ac_delim
35977dvidir!$dvidir$ac_delim
35978pdfdir!$pdfdir$ac_delim
35979psdir!$psdir$ac_delim
35980libdir!$libdir$ac_delim
35981localedir!$localedir$ac_delim
35982mandir!$mandir$ac_delim
35983DEFS!$DEFS$ac_delim
35984ECHO_C!$ECHO_C$ac_delim
35985ECHO_N!$ECHO_N$ac_delim
35986ECHO_T!$ECHO_T$ac_delim
35987LIBS!$LIBS$ac_delim
35988build_alias!$build_alias$ac_delim
35989host_alias!$host_alias$ac_delim
35990target_alias!$target_alias$ac_delim
35991LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35992subdirs!$subdirs$ac_delim
35993build!$build$ac_delim
35994build_cpu!$build_cpu$ac_delim
35995build_vendor!$build_vendor$ac_delim
35996build_os!$build_os$ac_delim
35997host!$host$ac_delim
35998host_cpu!$host_cpu$ac_delim
35999host_vendor!$host_vendor$ac_delim
36000host_os!$host_os$ac_delim
36001target!$target$ac_delim
36002target_cpu!$target_cpu$ac_delim
36003target_vendor!$target_vendor$ac_delim
36004target_os!$target_os$ac_delim
36005OS!$OS$ac_delim
36006LINKALL!$LINKALL$ac_delim
36007NOLINKALL!$NOLINKALL$ac_delim
36008LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
36009LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000036010ARCH!$ARCH$ac_delim
36011ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036012CC!$CC$ac_delim
36013CFLAGS!$CFLAGS$ac_delim
36014LDFLAGS!$LDFLAGS$ac_delim
36015CPPFLAGS!$CPPFLAGS$ac_delim
36016ac_ct_CC!$ac_ct_CC$ac_delim
36017EXEEXT!$EXEEXT$ac_delim
36018OBJEXT!$OBJEXT$ac_delim
36019CPP!$CPP$ac_delim
36020GREP!$GREP$ac_delim
36021EGREP!$EGREP$ac_delim
36022LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
36023BUILD_CC!$BUILD_CC$ac_delim
36024BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000036025BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036026CVSBUILD!$CVSBUILD$ac_delim
36027ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036028ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036029DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000036030ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
36031EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000036032DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036033JIT!$JIT$ac_delim
36034TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
36035ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
36036ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000036037ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036038TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036039LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
36040LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036041LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000036042ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036043EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000036044BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036045ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
36046ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036047CXX!$CXX$ac_delim
36048CXXFLAGS!$CXXFLAGS$ac_delim
36049ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000036050NM!$NM$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036051_ACEOF
36052
36053 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
36054 break
36055 elif $ac_last_try; then
36056 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36057echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36058 { (exit 1); exit 1; }; }
36059 else
36060 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000036061 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036062done
36063
36064ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36065if test -n "$ac_eof"; then
36066 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36067 ac_eof=`expr $ac_eof + 1`
36068fi
36069
36070cat >>$CONFIG_STATUS <<_ACEOF
36071cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
36072/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36073_ACEOF
36074sed '
36075s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36076s/^/s,@/; s/!/@,|#_!!_#|/
36077:n
36078t n
36079s/'"$ac_delim"'$/,g/; t
36080s/$/\\/; p
36081N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36082' >>$CONFIG_STATUS <conf$$subs.sed
36083rm -f conf$$subs.sed
36084cat >>$CONFIG_STATUS <<_ACEOF
36085CEOF$ac_eof
36086_ACEOF
36087
36088
36089ac_delim='%!_!# '
36090for ac_last_try in false false false false false :; do
36091 cat >conf$$subs.sed <<_ACEOF
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036092ifGNUmake!$ifGNUmake$ac_delim
Mikhail Glushenkovd0f27c42009-07-04 14:23:08 +000036093LN_S!$LN_S$ac_delim
36094CMP!$CMP$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000036095CP!$CP$ac_delim
36096DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000036097FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036098MKDIR!$MKDIR$ac_delim
36099MV!$MV$ac_delim
36100RANLIB!$RANLIB$ac_delim
36101RM!$RM$ac_delim
36102SED!$SED$ac_delim
36103TAR!$TAR$ac_delim
36104BINPWD!$BINPWD$ac_delim
36105GRAPHVIZ!$GRAPHVIZ$ac_delim
36106DOT!$DOT$ac_delim
David Greenef0b9eff2009-07-09 17:16:26 +000036107FDP!$FDP$ac_delim
36108NEATO!$NEATO$ac_delim
36109TWOPI!$TWOPI$ac_delim
36110CIRCO!$CIRCO$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036111GV!$GV$ac_delim
36112DOTTY!$DOTTY$ac_delim
36113PERL!$PERL$ac_delim
36114HAVE_PERL!$HAVE_PERL$ac_delim
36115INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
36116INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
36117INSTALL_DATA!$INSTALL_DATA$ac_delim
36118BZIP2!$BZIP2$ac_delim
36119DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036120GROFF!$GROFF$ac_delim
36121GZIP!$GZIP$ac_delim
36122POD2HTML!$POD2HTML$ac_delim
36123POD2MAN!$POD2MAN$ac_delim
36124RUNTEST!$RUNTEST$ac_delim
36125TCLSH!$TCLSH$ac_delim
36126ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000036127OCAMLC!$OCAMLC$ac_delim
36128OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000036129OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000036130OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000036131GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036132INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
36133INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
36134CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
36135CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
36136LIBADD_DL!$LIBADD_DL$ac_delim
36137ECHO!$ECHO$ac_delim
36138AR!$AR$ac_delim
36139STRIP!$STRIP$ac_delim
36140CXXCPP!$CXXCPP$ac_delim
36141F77!$F77$ac_delim
36142FFLAGS!$FFLAGS$ac_delim
36143ac_ct_F77!$ac_ct_F77$ac_delim
36144LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000036145LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
36146LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000036147LLVMGCC!$LLVMGCC$ac_delim
36148LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000036149USE_UDIS86!$USE_UDIS86$ac_delim
Jeffrey Yasskina93e7702009-07-10 21:09:55 +000036150USE_OPROFILE!$USE_OPROFILE$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000036151HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000036152HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036153ALLOCA!$ALLOCA$ac_delim
36154MMAP_FILE!$MMAP_FILE$ac_delim
36155LLVMCC1!$LLVMCC1$ac_delim
36156LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
36157LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000036158LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036159LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
36160LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000036161LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036162SHLIBEXT!$SHLIBEXT$ac_delim
36163LLVM_PREFIX!$LLVM_PREFIX$ac_delim
36164LLVM_BINDIR!$LLVM_BINDIR$ac_delim
36165LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
36166LLVM_DATADIR!$LLVM_DATADIR$ac_delim
36167LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
36168LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
36169LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
36170LLVM_INFODIR!$LLVM_INFODIR$ac_delim
36171LLVM_MANDIR!$LLVM_MANDIR$ac_delim
36172LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000036173BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
36174ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000036175OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000036176ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000036177RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000036178RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000036179LIBOBJS!$LIBOBJS$ac_delim
36180LTLIBOBJS!$LTLIBOBJS$ac_delim
36181_ACEOF
36182
Jeffrey Yasskinafa709d2009-07-17 21:33:35 +000036183 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
Reid Spencera773bd52006-08-04 18:18:08 +000036184 break
36185 elif $ac_last_try; then
36186 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
36187echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
36188 { (exit 1); exit 1; }; }
36189 else
36190 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36191 fi
36192done
36193
36194ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
36195if test -n "$ac_eof"; then
36196 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
36197 ac_eof=`expr $ac_eof + 1`
36198fi
36199
36200cat >>$CONFIG_STATUS <<_ACEOF
36201cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
36202/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
36203_ACEOF
36204sed '
36205s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
36206s/^/s,@/; s/!/@,|#_!!_#|/
36207:n
36208t n
36209s/'"$ac_delim"'$/,g/; t
36210s/$/\\/; p
36211N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
36212' >>$CONFIG_STATUS <conf$$subs.sed
36213rm -f conf$$subs.sed
36214cat >>$CONFIG_STATUS <<_ACEOF
36215:end
36216s/|#_!!_#|//g
36217CEOF$ac_eof
36218_ACEOF
36219
36220
36221# VPATH may cause trouble with some makes, so we remove $(srcdir),
36222# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36223# trailing colons and then remove the whole line if VPATH becomes empty
36224# (actually we leave an empty line to preserve line numbers).
36225if test "x$srcdir" = x.; then
36226 ac_vpsub='/^[ ]*VPATH[ ]*=/{
36227s/:*\$(srcdir):*/:/
36228s/:*\${srcdir}:*/:/
36229s/:*@srcdir@:*/:/
36230s/^\([^=]*=[ ]*\):*/\1/
36231s/:*$//
36232s/^[^=]*=[ ]*$//
36233}'
36234fi
36235
36236cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036237fi # test -n "$CONFIG_FILES"
36238
Reid Spencera773bd52006-08-04 18:18:08 +000036239
36240for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
36241do
36242 case $ac_tag in
36243 :[FHLC]) ac_mode=$ac_tag; continue;;
36244 esac
36245 case $ac_mode$ac_tag in
36246 :[FHL]*:*);;
36247 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
36248echo "$as_me: error: Invalid tag $ac_tag." >&2;}
36249 { (exit 1); exit 1; }; };;
36250 :[FH]-) ac_tag=-:-;;
36251 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36252 esac
36253 ac_save_IFS=$IFS
36254 IFS=:
36255 set x $ac_tag
36256 IFS=$ac_save_IFS
36257 shift
36258 ac_file=$1
36259 shift
36260
36261 case $ac_mode in
36262 :L) ac_source=$1;;
36263 :[FH])
36264 ac_file_inputs=
36265 for ac_f
36266 do
36267 case $ac_f in
36268 -) ac_f="$tmp/stdin";;
36269 *) # Look for the file first in the build tree, then in the source tree
36270 # (if the path is not absolute). The absolute path cannot be DOS-style,
36271 # because $ac_f cannot contain `:'.
36272 test -f "$ac_f" ||
36273 case $ac_f in
36274 [\\/$]*) false;;
36275 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36276 esac ||
36277 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
36278echo "$as_me: error: cannot find input file: $ac_f" >&2;}
36279 { (exit 1); exit 1; }; };;
36280 esac
36281 ac_file_inputs="$ac_file_inputs $ac_f"
36282 done
36283
36284 # Let's still pretend it is `configure' which instantiates (i.e., don't
36285 # use $as_me), people would be surprised to read:
36286 # /* config.h. Generated by config.status. */
36287 configure_input="Generated from "`IFS=:
36288 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
36289 if test x"$ac_file" != x-; then
36290 configure_input="$ac_file. $configure_input"
36291 { echo "$as_me:$LINENO: creating $ac_file" >&5
36292echo "$as_me: creating $ac_file" >&6;}
36293 fi
36294
36295 case $ac_tag in
36296 *:-:* | *:-) cat >"$tmp/stdin";;
36297 esac
36298 ;;
John Criswell7a73b802003-06-30 21:59:07 +000036299 esac
36300
Reid Spencera773bd52006-08-04 18:18:08 +000036301 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000036302$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036303 X"$ac_file" : 'X\(//\)[^/]' \| \
36304 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036305 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000036306echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000036307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36308 s//\1/
36309 q
36310 }
36311 /^X\(\/\/\)[^/].*/{
36312 s//\1/
36313 q
36314 }
36315 /^X\(\/\/\)$/{
36316 s//\1/
36317 q
36318 }
36319 /^X\(\/\).*/{
36320 s//\1/
36321 q
36322 }
36323 s/.*/./; q'`
36324 { as_dir="$ac_dir"
36325 case $as_dir in #(
36326 -*) as_dir=./$as_dir;;
36327 esac
36328 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000036329 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036330 while :; do
36331 case $as_dir in #(
36332 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36333 *) as_qdir=$as_dir;;
36334 esac
36335 as_dirs="'$as_qdir' $as_dirs"
36336 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036337$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036338 X"$as_dir" : 'X\(//\)[^/]' \| \
36339 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036340 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000036341echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36343 s//\1/
36344 q
36345 }
36346 /^X\(\/\/\)[^/].*/{
36347 s//\1/
36348 q
36349 }
36350 /^X\(\/\/\)$/{
36351 s//\1/
36352 q
36353 }
36354 /^X\(\/\).*/{
36355 s//\1/
36356 q
36357 }
36358 s/.*/./; q'`
36359 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000036360 done
Reid Spencera773bd52006-08-04 18:18:08 +000036361 test -z "$as_dirs" || eval "mkdir $as_dirs"
36362 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36363echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000036364 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000036365 ac_builddir=.
36366
Reid Spencera773bd52006-08-04 18:18:08 +000036367case "$ac_dir" in
36368.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36369*)
John Criswell7a73b802003-06-30 21:59:07 +000036370 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036371 # A ".." for each directory in $ac_dir_suffix.
36372 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36373 case $ac_top_builddir_sub in
36374 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36375 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36376 esac ;;
36377esac
36378ac_abs_top_builddir=$ac_pwd
36379ac_abs_builddir=$ac_pwd$ac_dir_suffix
36380# for backward compatibility:
36381ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000036382
36383case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036384 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000036385 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036386 ac_top_srcdir=$ac_top_builddir_sub
36387 ac_abs_top_srcdir=$ac_pwd ;;
36388 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000036389 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036390 ac_top_srcdir=$srcdir
36391 ac_abs_top_srcdir=$srcdir ;;
36392 *) # Relative name.
36393 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36394 ac_top_srcdir=$ac_top_build_prefix$srcdir
36395 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000036396esac
Reid Spencera773bd52006-08-04 18:18:08 +000036397ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000036398
John Criswell7a73b802003-06-30 21:59:07 +000036399
Reid Spencera773bd52006-08-04 18:18:08 +000036400 case $ac_mode in
36401 :F)
36402 #
36403 # CONFIG_FILE
36404 #
John Criswell7a73b802003-06-30 21:59:07 +000036405
36406 case $INSTALL in
36407 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036408 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000036409 esac
John Criswell7a73b802003-06-30 21:59:07 +000036410_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036411
36412cat >>$CONFIG_STATUS <<\_ACEOF
36413# If the template does not know about datarootdir, expand it.
36414# FIXME: This hack should be removed a few years after 2.60.
36415ac_datarootdir_hack=; ac_datarootdir_seen=
36416
36417case `sed -n '/datarootdir/ {
36418 p
36419 q
36420}
36421/@datadir@/p
36422/@docdir@/p
36423/@infodir@/p
36424/@localedir@/p
36425/@mandir@/p
36426' $ac_file_inputs` in
36427*datarootdir*) ac_datarootdir_seen=yes;;
36428*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36429 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36430echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36431_ACEOF
36432cat >>$CONFIG_STATUS <<_ACEOF
36433 ac_datarootdir_hack='
36434 s&@datadir@&$datadir&g
36435 s&@docdir@&$docdir&g
36436 s&@infodir@&$infodir&g
36437 s&@localedir@&$localedir&g
36438 s&@mandir@&$mandir&g
36439 s&\\\${datarootdir}&$datarootdir&g' ;;
36440esac
36441_ACEOF
36442
36443# Neutralize VPATH when `$srcdir' = `.'.
36444# Shell code in configure.ac might set extrasub.
36445# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000036446cat >>$CONFIG_STATUS <<_ACEOF
36447 sed "$ac_vpsub
36448$extrasub
36449_ACEOF
36450cat >>$CONFIG_STATUS <<\_ACEOF
36451:t
36452/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000036453s&@configure_input@&$configure_input&;t t
36454s&@top_builddir@&$ac_top_builddir_sub&;t t
36455s&@srcdir@&$ac_srcdir&;t t
36456s&@abs_srcdir@&$ac_abs_srcdir&;t t
36457s&@top_srcdir@&$ac_top_srcdir&;t t
36458s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36459s&@builddir@&$ac_builddir&;t t
36460s&@abs_builddir@&$ac_abs_builddir&;t t
36461s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36462s&@INSTALL@&$ac_INSTALL&;t t
36463$ac_datarootdir_hack
36464" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000036465
Reid Spencera773bd52006-08-04 18:18:08 +000036466test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36467 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
36468 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
36469 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36470which seems to be undefined. Please make sure it is defined." >&5
36471echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36472which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000036473
Reid Spencera773bd52006-08-04 18:18:08 +000036474 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000036475 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000036476 -) cat "$tmp/out"; rm -f "$tmp/out";;
36477 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000036478 esac
Reid Spencera773bd52006-08-04 18:18:08 +000036479 ;;
36480 :H)
36481 #
36482 # CONFIG_HEADER
36483 #
John Criswell7a73b802003-06-30 21:59:07 +000036484_ACEOF
36485
Reid Spencera773bd52006-08-04 18:18:08 +000036486# Transform confdefs.h into a sed script `conftest.defines', that
36487# substitutes the proper values into config.h.in to produce config.h.
36488rm -f conftest.defines conftest.tail
36489# First, append a space to every undef/define line, to ease matching.
36490echo 's/$/ /' >conftest.defines
36491# Then, protect against being on the right side of a sed subst, or in
36492# an unquoted here document, in config.status. If some macros were
36493# called several times there might be several #defines for the same
36494# symbol, which is useless. But do not sort them, since the last
36495# AC_DEFINE must be honored.
36496ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36497# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
36498# NAME is the cpp macro being defined, VALUE is the value it is being given.
36499# PARAMS is the parameter list in the macro definition--in most cases, it's
36500# just an empty string.
36501ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
36502ac_dB='\\)[ (].*,\\1define\\2'
36503ac_dC=' '
36504ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000036505
Reid Spencera773bd52006-08-04 18:18:08 +000036506uniq confdefs.h |
36507 sed -n '
36508 t rset
36509 :rset
36510 s/^[ ]*#[ ]*define[ ][ ]*//
36511 t ok
36512 d
36513 :ok
36514 s/[\\&,]/\\&/g
36515 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
36516 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
36517 ' >>conftest.defines
36518
36519# Remove the space that was appended to ease matching.
36520# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000036521# example, in the case of _POSIX_SOURCE, which is predefined and required
36522# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000036523# (The regexp can be short, since the line contains either #define or #undef.)
36524echo 's/ $//
36525s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000036526
Reid Spencera773bd52006-08-04 18:18:08 +000036527# Break up conftest.defines:
36528ac_max_sed_lines=50
36529
36530# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
36531# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
36532# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
36533# et cetera.
36534ac_in='$ac_file_inputs'
36535ac_out='"$tmp/out1"'
36536ac_nxt='"$tmp/out2"'
36537
36538while :
John Criswell7a73b802003-06-30 21:59:07 +000036539do
Reid Spencera773bd52006-08-04 18:18:08 +000036540 # Write a here document:
36541 cat >>$CONFIG_STATUS <<_ACEOF
36542 # First, check the format of the line:
36543 cat >"\$tmp/defines.sed" <<\\CEOF
36544/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
36545/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
36546b
36547:def
36548_ACEOF
36549 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036550 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000036551 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
36552 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
36553 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
36554 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000036555 rm -f conftest.defines
36556 mv conftest.tail conftest.defines
36557done
Reid Spencera773bd52006-08-04 18:18:08 +000036558rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000036559
Reid Spencera773bd52006-08-04 18:18:08 +000036560echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000036561cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000036562 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000036563 echo "/* $configure_input */" >"$tmp/config.h"
36564 cat "$ac_result" >>"$tmp/config.h"
36565 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000036566 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
36567echo "$as_me: $ac_file is unchanged" >&6;}
36568 else
John Criswell7a73b802003-06-30 21:59:07 +000036569 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000036570 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000036571 fi
36572 else
Reid Spencera773bd52006-08-04 18:18:08 +000036573 echo "/* $configure_input */"
36574 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000036575 fi
Reid Spencera773bd52006-08-04 18:18:08 +000036576 rm -f "$tmp/out12"
36577 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036578
Reid Spencera773bd52006-08-04 18:18:08 +000036579 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
36580echo "$as_me: executing $ac_file commands" >&6;}
36581 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000036582 esac
John Criswell7a73b802003-06-30 21:59:07 +000036583
Reid Spencera773bd52006-08-04 18:18:08 +000036584
36585 case $ac_file$ac_mode in
36586 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
36587 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
36588 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
36589 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
36590 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
36591 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
36592 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
36593 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000036594 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
36595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036596 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
36597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
36598 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
36599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000036600 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
36601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036602 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
36603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
36604 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
36605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
36606 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
36607 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000036608 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
36609 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
36610 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
36611 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036612
36613 esac
36614done # for ac_tag
36615
John Criswell7a73b802003-06-30 21:59:07 +000036616
36617{ (exit 0); exit 0; }
36618_ACEOF
36619chmod +x $CONFIG_STATUS
36620ac_clean_files=$ac_clean_files_save
36621
36622
36623# configure is writing to config.log, and then calls config.status.
36624# config.status does its own redirection, appending to config.log.
36625# Unfortunately, on DOS this fails, as config.log is still kept open
36626# by configure, so config.status won't be able to write to it; its
36627# output is simply discarded. So we exec the FD to /dev/null,
36628# effectively closing config.log, so it can be properly (re)opened and
36629# appended to by config.status. When coming back to configure, we
36630# need to make the FD available again.
36631if test "$no_create" != yes; then
36632 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000036633 ac_config_status_args=
36634 test "$silent" = yes &&
36635 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000036636 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000036637 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000036638 exec 5>>config.log
36639 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36640 # would make configure fail if this is the last instruction.
36641 $ac_cs_success || { (exit 1); exit 1; }
36642fi
36643
John Criswell12399a12003-09-30 15:55:44 +000036644#
36645# CONFIG_SUBDIRS section.
36646#
36647if test "$no_recursion" != yes; then
36648
36649 # Remove --cache-file and --srcdir arguments so they do not pile up.
36650 ac_sub_configure_args=
36651 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000036652 eval "set x $ac_configure_args"
36653 shift
36654 for ac_arg
36655 do
John Criswell12399a12003-09-30 15:55:44 +000036656 if test -n "$ac_prev"; then
36657 ac_prev=
36658 continue
36659 fi
36660 case $ac_arg in
36661 -cache-file | --cache-file | --cache-fil | --cache-fi \
36662 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
36663 ac_prev=cache_file ;;
36664 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
36665 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
36666 | --c=*)
36667 ;;
36668 --config-cache | -C)
36669 ;;
36670 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
36671 ac_prev=srcdir ;;
36672 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
36673 ;;
36674 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
36675 ac_prev=prefix ;;
36676 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
36677 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036678 *)
36679 case $ac_arg in
36680 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36681 esac
36682 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000036683 esac
36684 done
36685
36686 # Always prepend --prefix to ensure using the same prefix
36687 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000036688 ac_arg="--prefix=$prefix"
36689 case $ac_arg in
36690 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
36691 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000036692 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000036693
36694 ac_popdir=`pwd`
36695 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
36696
36697 # Do not complain, so a configure script can configure whichever
36698 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000036699 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000036700
Reid Spencera773bd52006-08-04 18:18:08 +000036701 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
36702 echo "$as_me:$LINENO: $ac_msg" >&5
36703 echo "$ac_msg" >&6
36704 { as_dir="$ac_dir"
36705 case $as_dir in #(
36706 -*) as_dir=./$as_dir;;
36707 esac
36708 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000036709 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036710 while :; do
36711 case $as_dir in #(
36712 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36713 *) as_qdir=$as_dir;;
36714 esac
36715 as_dirs="'$as_qdir' $as_dirs"
36716 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036717$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036718 X"$as_dir" : 'X\(//\)[^/]' \| \
36719 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036720 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036721echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36723 s//\1/
36724 q
36725 }
36726 /^X\(\/\/\)[^/].*/{
36727 s//\1/
36728 q
36729 }
36730 /^X\(\/\/\)$/{
36731 s//\1/
36732 q
36733 }
36734 /^X\(\/\).*/{
36735 s//\1/
36736 q
36737 }
36738 s/.*/./; q'`
36739 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036740 done
Reid Spencera773bd52006-08-04 18:18:08 +000036741 test -z "$as_dirs" || eval "mkdir $as_dirs"
36742 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36743echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036744 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036745 ac_builddir=.
36746
Reid Spencera773bd52006-08-04 18:18:08 +000036747case "$ac_dir" in
36748.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36749*)
John Criswell12399a12003-09-30 15:55:44 +000036750 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036751 # A ".." for each directory in $ac_dir_suffix.
36752 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36753 case $ac_top_builddir_sub in
36754 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36755 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36756 esac ;;
36757esac
36758ac_abs_top_builddir=$ac_pwd
36759ac_abs_builddir=$ac_pwd$ac_dir_suffix
36760# for backward compatibility:
36761ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036762
36763case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036764 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036765 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036766 ac_top_srcdir=$ac_top_builddir_sub
36767 ac_abs_top_srcdir=$ac_pwd ;;
36768 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036769 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036770 ac_top_srcdir=$srcdir
36771 ac_abs_top_srcdir=$srcdir ;;
36772 *) # Relative name.
36773 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36774 ac_top_srcdir=$ac_top_build_prefix$srcdir
36775 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036776esac
Reid Spencera773bd52006-08-04 18:18:08 +000036777ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036778
36779
Reid Spencera773bd52006-08-04 18:18:08 +000036780 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036781
36782 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036783 if test -f "$ac_srcdir/configure.gnu"; then
36784 ac_sub_configure=$ac_srcdir/configure.gnu
36785 elif test -f "$ac_srcdir/configure"; then
36786 ac_sub_configure=$ac_srcdir/configure
36787 elif test -f "$ac_srcdir/configure.in"; then
36788 # This should be Cygnus configure.
36789 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036790 else
36791 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36792echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36793 ac_sub_configure=
36794 fi
36795
36796 # The recursion is here.
36797 if test -n "$ac_sub_configure"; then
36798 # Make the cache file name correct relative to the subdirectory.
36799 case $cache_file in
36800 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036801 *) # Relative name.
36802 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036803 esac
36804
Reid Spencera773bd52006-08-04 18:18:08 +000036805 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36806echo "$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 +000036807 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036808 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36809 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036810 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036811echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36812 { (exit 1); exit 1; }; }
36813 fi
36814
Reid Spencera773bd52006-08-04 18:18:08 +000036815 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036816 done
36817fi
36818