blob: 7fdb067bf2fafb1ec521989e8e5ed8db8e5078ee [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Bill Wendlingebcceee2009-04-18 11:20:33 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Bill Wendlingebcceee2009-04-18 11:20:33 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Bill Wendlingebcceee2009-04-18 11:20:33 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Wendlingebcceee2009-04-18 11:20:33 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Bill Wendlingebcceee2009-04-18 11:20:33 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Bill Wendlingebcceee2009-04-18 11:20:33 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Bill Wendlingebcceee2009-04-18 11:20:33 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Bill Wendlingebcceee2009-04-18 11:20:33 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Bill Wendlingebcceee2009-04-18 11:20:33 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
Bill Wendlinga0833352009-03-12 04:10:09 +0000815ARCH
816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
David Greene2a5a12c2009-04-17 14:50:39 +0000833ENABLE_PROFILING
Reid Spencera773bd52006-08-04 18:18:08 +0000834DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000835ENABLE_EXPENSIVE_CHECKS
836EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000837DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000838JIT
839TARGET_HAS_JIT
840ENABLE_DOXYGEN
841ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000842ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000843TARGETS_TO_BUILD
Douglas Gregor1555a232009-06-16 20:12:29 +0000844LLVM_ENUM_TARGETS
845LLVM_ENUM_ASM_PRINTERS
Reid Spencer65c5d752006-11-05 17:08:18 +0000846ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000847EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000848BINUTILS_INCDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000849CXX
850CXXFLAGS
851ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000852NM
853ifGNUmake
854LN_S
855CMP
856CP
857DATE
858FIND
859MKDIR
860MV
861RANLIB
862RM
863SED
864TAR
865BINPWD
866GRAPHVIZ
867DOT
868GV
869DOTTY
870PERL
871HAVE_PERL
872INSTALL_PROGRAM
873INSTALL_SCRIPT
874INSTALL_DATA
875BZIP2
876DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000877GROFF
878GZIP
879POD2HTML
880POD2MAN
881RUNTEST
882TCLSH
883ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000884OCAMLC
885OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000886OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000887OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000888GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000889INSTALL_LTDL_TRUE
890INSTALL_LTDL_FALSE
891CONVENIENCE_LTDL_TRUE
892CONVENIENCE_LTDL_FALSE
893LIBADD_DL
894ECHO
895AR
896STRIP
897CXXCPP
898F77
899FFLAGS
900ac_ct_F77
901LIBTOOL
Mikhail Glushenkov4558f482009-04-21 19:46:10 +0000902LLVMGCCCOMMAND
903LLVMGXXCOMMAND
Douglas Gregor01746742009-05-11 18:05:52 +0000904LLVMGCC
905LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000906USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000907HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000908HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000909ALLOCA
910MMAP_FILE
911LLVMCC1
912LLVMCC1PLUS
913LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000914LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000915LLVMGCC_VERSION
916LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000917LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000918SHLIBEXT
919LLVM_PREFIX
920LLVM_BINDIR
921LLVM_LIBDIR
922LLVM_DATADIR
923LLVM_DOCSDIR
924LLVM_ETCDIR
925LLVM_INCLUDEDIR
926LLVM_INFODIR
927LLVM_MANDIR
928LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000929BINDINGS_TO_BUILD
930ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000931OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000932ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000933RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000934RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000935LIBOBJS
936LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000937ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000938 ac_precious_vars='build_alias
939host_alias
940target_alias
941CC
942CFLAGS
943LDFLAGS
944CPPFLAGS
945CPP
946CXX
947CXXFLAGS
948CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000949CXXCPP
950F77
951FFLAGS'
952ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000953projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000954projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000955projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000956projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000957projects/llvm-reopt
958projects/llvm-gcc
959projects/llvm-java
960projects/llvm-tv
961projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000962projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000963projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000964
965# Initialize some variables set by options.
966ac_init_help=
967ac_init_version=false
968# The variables have the same names as the options, with
969# dashes changed to underlines.
970cache_file=/dev/null
971exec_prefix=NONE
972no_create=
973no_recursion=
974prefix=NONE
975program_prefix=NONE
976program_suffix=NONE
977program_transform_name=s,x,x,
978silent=
979site=
980srcdir=
981verbose=
982x_includes=NONE
983x_libraries=NONE
984
985# Installation directory options.
986# These are left unexpanded so users can "make install exec_prefix=/foo"
987# and all the variables that are supposed to be based on exec_prefix
988# by default will actually change.
989# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000990# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000991bindir='${exec_prefix}/bin'
992sbindir='${exec_prefix}/sbin'
993libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000994datarootdir='${prefix}/share'
995datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000996sysconfdir='${prefix}/etc'
997sharedstatedir='${prefix}/com'
998localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000999includedir='${prefix}/include'
1000oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001001docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1002infodir='${datarootdir}/info'
1003htmldir='${docdir}'
1004dvidir='${docdir}'
1005pdfdir='${docdir}'
1006psdir='${docdir}'
1007libdir='${exec_prefix}/lib'
1008localedir='${datarootdir}/locale'
1009mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001010
1011ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001012ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001013for ac_option
1014do
1015 # If the previous option needs an argument, assign it.
1016 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001017 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001018 ac_prev=
1019 continue
1020 fi
1021
Reid Spencera773bd52006-08-04 18:18:08 +00001022 case $ac_option in
1023 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 *) ac_optarg=yes ;;
1025 esac
John Criswell7a73b802003-06-30 21:59:07 +00001026
1027 # Accept the important Cygnus configure options, so we can diagnose typos.
1028
Reid Spencera773bd52006-08-04 18:18:08 +00001029 case $ac_dashdash$ac_option in
1030 --)
1031 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001032
1033 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1034 ac_prev=bindir ;;
1035 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1036 bindir=$ac_optarg ;;
1037
1038 -build | --build | --buil | --bui | --bu)
1039 ac_prev=build_alias ;;
1040 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1041 build_alias=$ac_optarg ;;
1042
1043 -cache-file | --cache-file | --cache-fil | --cache-fi \
1044 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1045 ac_prev=cache_file ;;
1046 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1047 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1048 cache_file=$ac_optarg ;;
1049
1050 --config-cache | -C)
1051 cache_file=config.cache ;;
1052
Reid Spencera773bd52006-08-04 18:18:08 +00001053 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001054 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001055 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001056 datadir=$ac_optarg ;;
1057
Reid Spencera773bd52006-08-04 18:18:08 +00001058 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1059 | --dataroo | --dataro | --datar)
1060 ac_prev=datarootdir ;;
1061 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1062 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1063 datarootdir=$ac_optarg ;;
1064
John Criswell7a73b802003-06-30 21:59:07 +00001065 -disable-* | --disable-*)
1066 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001068 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001069 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1070 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001071 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001072 eval enable_$ac_feature=no ;;
1073
1074 -docdir | --docdir | --docdi | --doc | --do)
1075 ac_prev=docdir ;;
1076 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1077 docdir=$ac_optarg ;;
1078
1079 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1080 ac_prev=dvidir ;;
1081 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1082 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001083
1084 -enable-* | --enable-*)
1085 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001087 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001088 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1089 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001090 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001091 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001092
1093 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1094 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1095 | --exec | --exe | --ex)
1096 ac_prev=exec_prefix ;;
1097 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1098 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1099 | --exec=* | --exe=* | --ex=*)
1100 exec_prefix=$ac_optarg ;;
1101
1102 -gas | --gas | --ga | --g)
1103 # Obsolete; use --with-gas.
1104 with_gas=yes ;;
1105
1106 -help | --help | --hel | --he | -h)
1107 ac_init_help=long ;;
1108 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1109 ac_init_help=recursive ;;
1110 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1111 ac_init_help=short ;;
1112
1113 -host | --host | --hos | --ho)
1114 ac_prev=host_alias ;;
1115 -host=* | --host=* | --hos=* | --ho=*)
1116 host_alias=$ac_optarg ;;
1117
Reid Spencera773bd52006-08-04 18:18:08 +00001118 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1119 ac_prev=htmldir ;;
1120 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1121 | --ht=*)
1122 htmldir=$ac_optarg ;;
1123
John Criswell7a73b802003-06-30 21:59:07 +00001124 -includedir | --includedir | --includedi | --included | --include \
1125 | --includ | --inclu | --incl | --inc)
1126 ac_prev=includedir ;;
1127 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1128 | --includ=* | --inclu=* | --incl=* | --inc=*)
1129 includedir=$ac_optarg ;;
1130
1131 -infodir | --infodir | --infodi | --infod | --info | --inf)
1132 ac_prev=infodir ;;
1133 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1134 infodir=$ac_optarg ;;
1135
1136 -libdir | --libdir | --libdi | --libd)
1137 ac_prev=libdir ;;
1138 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1139 libdir=$ac_optarg ;;
1140
1141 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1142 | --libexe | --libex | --libe)
1143 ac_prev=libexecdir ;;
1144 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1145 | --libexe=* | --libex=* | --libe=*)
1146 libexecdir=$ac_optarg ;;
1147
Reid Spencera773bd52006-08-04 18:18:08 +00001148 -localedir | --localedir | --localedi | --localed | --locale)
1149 ac_prev=localedir ;;
1150 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1151 localedir=$ac_optarg ;;
1152
John Criswell7a73b802003-06-30 21:59:07 +00001153 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001154 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001155 ac_prev=localstatedir ;;
1156 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001157 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001158 localstatedir=$ac_optarg ;;
1159
1160 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1161 ac_prev=mandir ;;
1162 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1163 mandir=$ac_optarg ;;
1164
1165 -nfp | --nfp | --nf)
1166 # Obsolete; use --without-fp.
1167 with_fp=no ;;
1168
1169 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1170 | --no-cr | --no-c | -n)
1171 no_create=yes ;;
1172
1173 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1174 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1175 no_recursion=yes ;;
1176
1177 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1178 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1179 | --oldin | --oldi | --old | --ol | --o)
1180 ac_prev=oldincludedir ;;
1181 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1182 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1183 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1184 oldincludedir=$ac_optarg ;;
1185
1186 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1187 ac_prev=prefix ;;
1188 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1189 prefix=$ac_optarg ;;
1190
1191 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1192 | --program-pre | --program-pr | --program-p)
1193 ac_prev=program_prefix ;;
1194 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1195 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1196 program_prefix=$ac_optarg ;;
1197
1198 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1199 | --program-suf | --program-su | --program-s)
1200 ac_prev=program_suffix ;;
1201 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1202 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1203 program_suffix=$ac_optarg ;;
1204
1205 -program-transform-name | --program-transform-name \
1206 | --program-transform-nam | --program-transform-na \
1207 | --program-transform-n | --program-transform- \
1208 | --program-transform | --program-transfor \
1209 | --program-transfo | --program-transf \
1210 | --program-trans | --program-tran \
1211 | --progr-tra | --program-tr | --program-t)
1212 ac_prev=program_transform_name ;;
1213 -program-transform-name=* | --program-transform-name=* \
1214 | --program-transform-nam=* | --program-transform-na=* \
1215 | --program-transform-n=* | --program-transform-=* \
1216 | --program-transform=* | --program-transfor=* \
1217 | --program-transfo=* | --program-transf=* \
1218 | --program-trans=* | --program-tran=* \
1219 | --progr-tra=* | --program-tr=* | --program-t=*)
1220 program_transform_name=$ac_optarg ;;
1221
Reid Spencera773bd52006-08-04 18:18:08 +00001222 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1223 ac_prev=pdfdir ;;
1224 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1225 pdfdir=$ac_optarg ;;
1226
1227 -psdir | --psdir | --psdi | --psd | --ps)
1228 ac_prev=psdir ;;
1229 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1230 psdir=$ac_optarg ;;
1231
John Criswell7a73b802003-06-30 21:59:07 +00001232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1233 | -silent | --silent | --silen | --sile | --sil)
1234 silent=yes ;;
1235
1236 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1237 ac_prev=sbindir ;;
1238 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1239 | --sbi=* | --sb=*)
1240 sbindir=$ac_optarg ;;
1241
1242 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1243 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1244 | --sharedst | --shareds | --shared | --share | --shar \
1245 | --sha | --sh)
1246 ac_prev=sharedstatedir ;;
1247 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1248 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1249 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1250 | --sha=* | --sh=*)
1251 sharedstatedir=$ac_optarg ;;
1252
1253 -site | --site | --sit)
1254 ac_prev=site ;;
1255 -site=* | --site=* | --sit=*)
1256 site=$ac_optarg ;;
1257
1258 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1259 ac_prev=srcdir ;;
1260 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1261 srcdir=$ac_optarg ;;
1262
1263 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1264 | --syscon | --sysco | --sysc | --sys | --sy)
1265 ac_prev=sysconfdir ;;
1266 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1267 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1268 sysconfdir=$ac_optarg ;;
1269
1270 -target | --target | --targe | --targ | --tar | --ta | --t)
1271 ac_prev=target_alias ;;
1272 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1273 target_alias=$ac_optarg ;;
1274
1275 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1276 verbose=yes ;;
1277
1278 -version | --version | --versio | --versi | --vers | -V)
1279 ac_init_version=: ;;
1280
1281 -with-* | --with-*)
1282 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1283 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001284 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001285 { echo "$as_me: error: invalid package name: $ac_package" >&2
1286 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001287 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001288 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001289
1290 -without-* | --without-*)
1291 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
Bill Wendlingebcceee2009-04-18 11:20:33 +00001293 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001294 { echo "$as_me: error: invalid package name: $ac_package" >&2
1295 { (exit 1); exit 1; }; }
Bill Wendlingebcceee2009-04-18 11:20:33 +00001296 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001297 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001298
1299 --x)
1300 # Obsolete; use --with-x.
1301 with_x=yes ;;
1302
1303 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1304 | --x-incl | --x-inc | --x-in | --x-i)
1305 ac_prev=x_includes ;;
1306 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1307 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1308 x_includes=$ac_optarg ;;
1309
1310 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1311 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1312 ac_prev=x_libraries ;;
1313 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1314 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1315 x_libraries=$ac_optarg ;;
1316
1317 -*) { echo "$as_me: error: unrecognized option: $ac_option
1318Try \`$0 --help' for more information." >&2
1319 { (exit 1); exit 1; }; }
1320 ;;
1321
1322 *=*)
1323 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1326 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1327 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001328 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001329 export $ac_envvar ;;
1330
1331 *)
1332 # FIXME: should be removed in autoconf 3.0.
1333 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1334 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1335 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1336 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1337 ;;
1338
1339 esac
1340done
1341
1342if test -n "$ac_prev"; then
1343 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1344 { echo "$as_me: error: missing argument to $ac_option" >&2
1345 { (exit 1); exit 1; }; }
1346fi
1347
Reid Spencera773bd52006-08-04 18:18:08 +00001348# Be sure to have absolute directory names.
1349for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1350 datadir sysconfdir sharedstatedir localstatedir includedir \
1351 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1352 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001353do
Reid Spencera773bd52006-08-04 18:18:08 +00001354 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001355 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001358 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001359 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001361done
1362
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375 If a cross compiler is detected then cross compile mode will be used." >&2
1376 elif test "x$build_alias" != "x$host_alias"; then
1377 cross_compiling=yes
1378 fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
Reid Spencera773bd52006-08-04 18:18:08 +00001387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390 { echo "$as_me: error: Working directory cannot be determined" >&2
1391 { (exit 1); exit 1; }; }
1392test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 { echo "$as_me: error: pwd does not report name of working directory" >&2
1394 { (exit 1); exit 1; }; }
1395
1396
John Criswell7a73b802003-06-30 21:59:07 +00001397# Find the source files, if location was not specified.
1398if test -z "$srcdir"; then
1399 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001402$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001403 X"$0" : 'X\(//\)[^/]' \| \
1404 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001406echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)[^/].*/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\/\)$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\).*/{
1420 s//\1/
1421 q
1422 }
1423 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001424 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001425 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001426 srcdir=..
1427 fi
1428else
1429 ac_srcdir_defaulted=no
1430fi
Reid Spencera773bd52006-08-04 18:18:08 +00001431if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001434 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001435fi
Reid Spencera773bd52006-08-04 18:18:08 +00001436ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437ac_abs_confdir=`(
1438 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001439 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001440 pwd)`
1441# When building in place, set srcdir=.
1442if test "$ac_abs_confdir" = "$ac_pwd"; then
1443 srcdir=.
1444fi
1445# Remove unnecessary trailing slashes from srcdir.
1446# Double slashes in file names in object file debugging info
1447# mess up M-x gdb in Emacs.
1448case $srcdir in
1449*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450esac
1451for ac_var in $ac_precious_vars; do
1452 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_${ac_var}_value=\$${ac_var}
1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456done
John Criswell7a73b802003-06-30 21:59:07 +00001457
1458#
1459# Report the --help message.
1460#
1461if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1464 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001465\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001466
1467Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470VAR=VALUE. See below for descriptions of some of the useful variables.
1471
1472Defaults for the options are specified in brackets.
1473
1474Configuration:
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484
John Criswell7a73b802003-06-30 21:59:07 +00001485Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001487 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001489 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001490
1491By default, \`make install' will install all the files in
1492\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494for instance \`--prefix=\$HOME'.
1495
1496For better control, use the options below.
1497
1498Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001518_ACEOF
1519
1520 cat <<\_ACEOF
1521
1522System types:
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1525 --target=TARGET configure for building compilers for TARGET [HOST]
1526_ACEOF
1527fi
1528
1529if test -n "$ac_init_help"; then
1530 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001531 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001532 esac
1533 cat <<\_ACEOF
1534
1535Optional Features:
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001538 --enable-optimized Compile with optimizations enabled (default is NO)
1539 --enable-profiling Compile with profiling enabled (default is NO)
1540 --enable-assertions Compile with assertion checks enabled (default is
1541 YES)
David Greenea696d242007-06-28 19:36:08 +00001542 --enable-expensive-checks
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001543 Compile with expensive debug checks enabled (default
1544 is NO)
1545 --enable-debug-runtime Build runtime libs with debug symbols (default is
1546 NO)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001547 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001548 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001549 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001550 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001551 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001552 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001553 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001554 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1555 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001556 --enable-bindings Build specific language bindings:
1557 all,auto,none,{binding-name} (default=auto)
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00001558 --enable-libffi Check for the presence of libffi (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001559 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001560 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001561 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001562 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001563 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001564 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001565 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001566 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001567 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001568
1569Optional Packages:
1570 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1571 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001572 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1573 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001574 --with-llvmgcc Specify location of llvm-gcc driver (default
1575 searches PATH)
1576 --with-llvmgxx Specify location of llvm-g++ driver (default
1577 searches PATH)
Duncan Sandse4eb2d22009-05-13 13:13:18 +00001578 --with-extra-options Specify additional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001579 --with-ocaml-libdir Specify install location for ocaml bindings (default
1580 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001581 --with-binutils-include Specify path to binutils/include/ containing
1582 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001583 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001584 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1585 --with-pic try to use only PIC/non-PIC objects [default=use
1586 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001587 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001588 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001589
1590Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001591 CC C compiler command
1592 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001593 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1594 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001595 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001597 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001598 CXX C++ compiler command
1599 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001600 CXXCPP C++ preprocessor
1601 F77 Fortran 77 compiler command
1602 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001603
1604Use these variables to override the choices made by `configure' or to help
1605it to find libraries and programs with nonstandard names/locations.
1606
1607Report bugs to <llvmbugs@cs.uiuc.edu>.
1608_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001609ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001610fi
1611
1612if test "$ac_init_help" = "recursive"; then
1613 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001614 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001615 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001616 ac_builddir=.
1617
Reid Spencera773bd52006-08-04 18:18:08 +00001618case "$ac_dir" in
1619.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620*)
John Criswell7a73b802003-06-30 21:59:07 +00001621 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001622 # A ".." for each directory in $ac_dir_suffix.
1623 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1624 case $ac_top_builddir_sub in
1625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1627 esac ;;
1628esac
1629ac_abs_top_builddir=$ac_pwd
1630ac_abs_builddir=$ac_pwd$ac_dir_suffix
1631# for backward compatibility:
1632ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001633
1634case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001635 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001636 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001637 ac_top_srcdir=$ac_top_builddir_sub
1638 ac_abs_top_srcdir=$ac_pwd ;;
1639 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001640 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001641 ac_top_srcdir=$srcdir
1642 ac_abs_top_srcdir=$srcdir ;;
1643 *) # Relative name.
1644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1645 ac_top_srcdir=$ac_top_build_prefix$srcdir
1646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001647esac
Reid Spencera773bd52006-08-04 18:18:08 +00001648ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001649
Reid Spencera773bd52006-08-04 18:18:08 +00001650 cd "$ac_dir" || { ac_status=$?; continue; }
1651 # Check for guested configure.
1652 if test -f "$ac_srcdir/configure.gnu"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1655 elif test -f "$ac_srcdir/configure"; then
1656 echo &&
1657 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001658 else
1659 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001660 fi || ac_status=$?
1661 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001662 done
1663fi
1664
Reid Spencera773bd52006-08-04 18:18:08 +00001665test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001666if $ac_init_version; then
1667 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001668llvm configure 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +00001669generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001670
Reid Spencera773bd52006-08-04 18:18:08 +00001671Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16722002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001673This configure script is free software; the Free Software Foundation
1674gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001675
Tanya Lattnercf067672008-01-17 05:57:22 +00001676Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001677_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001678 exit
John Criswell7a73b802003-06-30 21:59:07 +00001679fi
Reid Spencera773bd52006-08-04 18:18:08 +00001680cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001681This file contains any messages produced by compilers while
1682running configure, to aid debugging if configure makes a mistake.
1683
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001684It was created by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +00001685generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001686
1687 $ $0 $@
1688
1689_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001690exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001691{
1692cat <<_ASUNAME
1693## --------- ##
1694## Platform. ##
1695## --------- ##
1696
1697hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1698uname -m = `(uname -m) 2>/dev/null || echo unknown`
1699uname -r = `(uname -r) 2>/dev/null || echo unknown`
1700uname -s = `(uname -s) 2>/dev/null || echo unknown`
1701uname -v = `(uname -v) 2>/dev/null || echo unknown`
1702
1703/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1704/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1705
1706/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1707/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1708/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001709/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001710/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1711/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1712/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1713
1714_ASUNAME
1715
1716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1717for as_dir in $PATH
1718do
1719 IFS=$as_save_IFS
1720 test -z "$as_dir" && as_dir=.
1721 echo "PATH: $as_dir"
1722done
Reid Spencera773bd52006-08-04 18:18:08 +00001723IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001724
1725} >&5
1726
1727cat >&5 <<_ACEOF
1728
1729
1730## ----------- ##
1731## Core tests. ##
1732## ----------- ##
1733
1734_ACEOF
1735
1736
1737# Keep a trace of the command line.
1738# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001739# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001740# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001741# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001742ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001743ac_configure_args0=
1744ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001745ac_must_keep_next=false
1746for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001747do
John Criswell0c38eaf2003-09-10 15:17:25 +00001748 for ac_arg
1749 do
1750 case $ac_arg in
1751 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1752 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1753 | -silent | --silent | --silen | --sile | --sil)
1754 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001755 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001756 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1757 esac
1758 case $ac_pass in
1759 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1760 2)
1761 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1762 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001763 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001764 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001765 case $ac_arg in
1766 *=* | --config-cache | -C | -disable-* | --disable-* \
1767 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1768 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1769 | -with-* | --with-* | -without-* | --without-* | --x)
1770 case "$ac_configure_args0 " in
1771 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1772 esac
1773 ;;
1774 -* ) ac_must_keep_next=true ;;
1775 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001776 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001777 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001778 ;;
1779 esac
1780 done
John Criswell7a73b802003-06-30 21:59:07 +00001781done
John Criswell0c38eaf2003-09-10 15:17:25 +00001782$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1783$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001784
1785# When interrupted or exit'd, cleanup temporary files, and complete
1786# config.log. We remove comments because anyway the quotes in there
1787# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001788# WARNING: Use '\'' to represent an apostrophe within the trap.
1789# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001790trap 'exit_status=$?
1791 # Save into config.log some information that might help in debugging.
1792 {
1793 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001794
John Criswell7a73b802003-06-30 21:59:07 +00001795 cat <<\_ASBOX
1796## ---------------- ##
1797## Cache variables. ##
1798## ---------------- ##
1799_ASBOX
1800 echo
1801 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001802(
1803 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1804 eval ac_val=\$$ac_var
1805 case $ac_val in #(
1806 *${as_nl}*)
1807 case $ac_var in #(
1808 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1809echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1810 esac
1811 case $ac_var in #(
1812 _ | IFS | as_nl) ;; #(
1813 *) $as_unset $ac_var ;;
1814 esac ;;
1815 esac
1816 done
John Criswell7a73b802003-06-30 21:59:07 +00001817 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001818 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1819 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001820 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001821 "s/'\''/'\''\\\\'\'''\''/g;
1822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1823 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001824 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001826 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001827 esac |
1828 sort
1829)
John Criswell7a73b802003-06-30 21:59:07 +00001830 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001831
1832 cat <<\_ASBOX
1833## ----------------- ##
1834## Output variables. ##
1835## ----------------- ##
1836_ASBOX
1837 echo
1838 for ac_var in $ac_subst_vars
1839 do
Reid Spencera773bd52006-08-04 18:18:08 +00001840 eval ac_val=\$$ac_var
1841 case $ac_val in
1842 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1843 esac
1844 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001845 done | sort
1846 echo
1847
1848 if test -n "$ac_subst_files"; then
1849 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001850## ------------------- ##
1851## File substitutions. ##
1852## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001853_ASBOX
1854 echo
1855 for ac_var in $ac_subst_files
1856 do
Reid Spencera773bd52006-08-04 18:18:08 +00001857 eval ac_val=\$$ac_var
1858 case $ac_val in
1859 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1860 esac
1861 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001862 done | sort
1863 echo
1864 fi
1865
John Criswell7a73b802003-06-30 21:59:07 +00001866 if test -s confdefs.h; then
1867 cat <<\_ASBOX
1868## ----------- ##
1869## confdefs.h. ##
1870## ----------- ##
1871_ASBOX
1872 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001873 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001874 echo
1875 fi
1876 test "$ac_signal" != 0 &&
1877 echo "$as_me: caught signal $ac_signal"
1878 echo "$as_me: exit $exit_status"
1879 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001882 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001883' 0
John Criswell7a73b802003-06-30 21:59:07 +00001884for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1886done
1887ac_signal=0
1888
1889# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001890rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001891
1892# Predefined preprocessor variables.
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_NAME "$PACKAGE_NAME"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_VERSION "$PACKAGE_VERSION"
1906_ACEOF
1907
1908
1909cat >>confdefs.h <<_ACEOF
1910#define PACKAGE_STRING "$PACKAGE_STRING"
1911_ACEOF
1912
1913
1914cat >>confdefs.h <<_ACEOF
1915#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916_ACEOF
1917
1918
1919# Let the site file select an alternate cache file if it wants to.
1920# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001921if test -n "$CONFIG_SITE"; then
1922 set x "$CONFIG_SITE"
1923elif test "x$prefix" != xNONE; then
1924 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1925else
1926 set x "$ac_default_prefix/share/config.site" \
1927 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001928fi
Reid Spencera773bd52006-08-04 18:18:08 +00001929shift
1930for ac_site_file
1931do
John Criswell7a73b802003-06-30 21:59:07 +00001932 if test -r "$ac_site_file"; then
1933 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1934echo "$as_me: loading site script $ac_site_file" >&6;}
1935 sed 's/^/| /' "$ac_site_file" >&5
1936 . "$ac_site_file"
1937 fi
1938done
1939
1940if test -r "$cache_file"; then
1941 # Some versions of bash will fail to source /dev/null (special
1942 # files actually), so we avoid doing that.
1943 if test -f "$cache_file"; then
1944 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1945echo "$as_me: loading cache $cache_file" >&6;}
1946 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001947 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1948 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001949 esac
1950 fi
1951else
1952 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1953echo "$as_me: creating cache $cache_file" >&6;}
1954 >$cache_file
1955fi
1956
1957# Check that the precious variables saved in the cache have kept the same
1958# value.
1959ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001960for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001961 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1962 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001963 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1964 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001965 case $ac_old_set,$ac_new_set in
1966 set,)
1967 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1968echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1969 ac_cache_corrupted=: ;;
1970 ,set)
1971 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1972echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1973 ac_cache_corrupted=: ;;
1974 ,);;
1975 *)
1976 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001977 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001978echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001979 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001980echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001981 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001982echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001983 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001984 fi;;
1985 esac
1986 # Pass precious variables to config.status.
1987 if test "$ac_new_set" = set; then
1988 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001989 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001990 *) ac_arg=$ac_var=$ac_new_val ;;
1991 esac
1992 case " $ac_configure_args " in
1993 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1994 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1995 esac
1996 fi
1997done
1998if $ac_cache_corrupted; then
1999 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2000echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2001 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2002echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2003 { (exit 1); exit 1; }; }
2004fi
2005
Reid Spencera773bd52006-08-04 18:18:08 +00002006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
John Criswell7a73b802003-06-30 21:59:07 +00002030ac_ext=c
2031ac_cpp='$CPP $CPPFLAGS'
2032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035
2036
2037
Tanya Lattnercf067672008-01-17 05:57:22 +00002038LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002039
2040
2041
2042
2043
2044
2045
John Criswell7a73b802003-06-30 21:59:07 +00002046ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002047for ac_dir in autoconf "$srcdir"/autoconf; do
2048 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install-sh -c"
2051 break
Reid Spencera773bd52006-08-04 18:18:08 +00002052 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/install.sh -c"
2055 break
Reid Spencera773bd52006-08-04 18:18:08 +00002056 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/shtool install -c"
2059 break
2060 fi
2061done
2062if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002063 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2064echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002065 { (exit 1); exit 1; }; }
2066fi
Reid Spencera773bd52006-08-04 18:18:08 +00002067
2068# These three variables are undocumented and unsupported,
2069# and are intended to be withdrawn in a future Autoconf release.
2070# They can cause serious problems if a builder's source tree is in a directory
2071# whose full name contains unusual characters.
2072ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2073ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2074ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2075
John Criswell7a73b802003-06-30 21:59:07 +00002076
John Criswell392aaa32003-07-22 19:18:09 +00002077
Reid Spencer2706f8c2004-09-19 23:53:36 +00002078if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002079 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2080 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002081echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2082 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002083 fi
John Criswell93e1c722003-09-15 17:04:06 +00002084fi
2085
John Criswell33a911a2003-11-25 20:36:46 +00002086for i in `ls ${srcdir}/projects`
2087do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002088 if test -d ${srcdir}/projects/${i} ; then
2089 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002090 CVS) ;;
2091 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002092 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002093 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002094 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002095 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002096 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002097 # llvm-test is the old name of the test-suite, kept here for backwards
2098 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002099 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002100 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002101 test-suite) subdirs="$subdirs projects/test-suite"
2102 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002103 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002104;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002106 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002107 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002108 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002109 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002110 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002111 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002112 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002113 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002114 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002115 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002116 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002117 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002118 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2119echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002120 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002121 esac
John Criswell33a911a2003-11-25 20:36:46 +00002122 fi
2123done
John Criswell559a6c12003-09-30 16:31:48 +00002124
John Criswell7a73b802003-06-30 21:59:07 +00002125
2126# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002127$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2128 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002130 { (exit 1); exit 1; }; }
2131
Reid Spencera773bd52006-08-04 18:18:08 +00002132{ echo "$as_me:$LINENO: checking build system type" >&5
2133echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002134if test "${ac_cv_build+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136else
Reid Spencera773bd52006-08-04 18:18:08 +00002137 ac_build_alias=$build_alias
2138test "x$ac_build_alias" = x &&
2139 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2140test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002144ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002147 { (exit 1); exit 1; }; }
2148
2149fi
Reid Spencera773bd52006-08-04 18:18:08 +00002150{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151echo "${ECHO_T}$ac_cv_build" >&6; }
2152case $ac_cv_build in
2153*-*-*) ;;
2154*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155echo "$as_me: error: invalid value of canonical build" >&2;}
2156 { (exit 1); exit 1; }; };;
2157esac
John Criswell7a73b802003-06-30 21:59:07 +00002158build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002159ac_save_IFS=$IFS; IFS='-'
2160set x $ac_cv_build
2161shift
2162build_cpu=$1
2163build_vendor=$2
2164shift; shift
2165# Remember, the first character of IFS is used to create $*,
2166# except with old shells:
2167build_os=$*
2168IFS=$ac_save_IFS
2169case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002170
2171
Reid Spencera773bd52006-08-04 18:18:08 +00002172{ echo "$as_me:$LINENO: checking host system type" >&5
2173echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002174if test "${ac_cv_host+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
Reid Spencera773bd52006-08-04 18:18:08 +00002177 if test "x$host_alias" = x; then
2178 ac_cv_host=$ac_cv_build
2179else
2180 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002183 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002184fi
John Criswell7a73b802003-06-30 21:59:07 +00002185
2186fi
Reid Spencera773bd52006-08-04 18:18:08 +00002187{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188echo "${ECHO_T}$ac_cv_host" >&6; }
2189case $ac_cv_host in
2190*-*-*) ;;
2191*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192echo "$as_me: error: invalid value of canonical host" >&2;}
2193 { (exit 1); exit 1; }; };;
2194esac
John Criswell7a73b802003-06-30 21:59:07 +00002195host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002196ac_save_IFS=$IFS; IFS='-'
2197set x $ac_cv_host
2198shift
2199host_cpu=$1
2200host_vendor=$2
2201shift; shift
2202# Remember, the first character of IFS is used to create $*,
2203# except with old shells:
2204host_os=$*
2205IFS=$ac_save_IFS
2206case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002207
2208
Reid Spencera773bd52006-08-04 18:18:08 +00002209{ echo "$as_me:$LINENO: checking target system type" >&5
2210echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002211if test "${ac_cv_target+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213else
Reid Spencera773bd52006-08-04 18:18:08 +00002214 if test "x$target_alias" = x; then
2215 ac_cv_target=$ac_cv_host
2216else
2217 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2218 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2219echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002220 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002221fi
John Criswell7a73b802003-06-30 21:59:07 +00002222
2223fi
Reid Spencera773bd52006-08-04 18:18:08 +00002224{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2225echo "${ECHO_T}$ac_cv_target" >&6; }
2226case $ac_cv_target in
2227*-*-*) ;;
2228*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2229echo "$as_me: error: invalid value of canonical target" >&2;}
2230 { (exit 1); exit 1; }; };;
2231esac
John Criswell7a73b802003-06-30 21:59:07 +00002232target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002233ac_save_IFS=$IFS; IFS='-'
2234set x $ac_cv_target
2235shift
2236target_cpu=$1
2237target_vendor=$2
2238shift; shift
2239# Remember, the first character of IFS is used to create $*,
2240# except with old shells:
2241target_os=$*
2242IFS=$ac_save_IFS
2243case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002244
2245
2246# The aliases save the names the user supplied, while $host etc.
2247# will get canonicalized.
2248test -n "$target_alias" &&
2249 test "$program_prefix$program_suffix$program_transform_name" = \
2250 NONENONEs,x,x, &&
2251 program_prefix=${target_alias}-
2252
Reid Spencera773bd52006-08-04 18:18:08 +00002253{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2254echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002255if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002256 echo $ECHO_N "(cached) $ECHO_C" >&6
2257else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002258 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002259 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002262 llvm_cv_os_type="AIX"
2263 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002264 *-*-irix*)
2265 llvm_cv_link_all_option="-Wl,--whole-archive"
2266 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2267 llvm_cv_os_type="IRIX"
2268 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002272 llvm_cv_os_type="Cygwin"
2273 llvm_cv_platform_type="Unix" ;;
2274 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002275 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002276 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002277 llvm_cv_os_type="Darwin"
2278 llvm_cv_platform_type="Unix" ;;
2279 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002282 llvm_cv_os_type="FreeBSD"
2283 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002284 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002287 llvm_cv_os_type="OpenBSD"
2288 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002289 *-*-netbsd*)
2290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2292 llvm_cv_os_type="NetBSD"
2293 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002294 *-*-dragonfly*)
2295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2297 llvm_cv_os_type="DragonFly"
2298 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002299 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002302 llvm_cv_os_type="HP-UX"
2303 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002307 llvm_cv_os_type="Interix"
2308 llvm_cv_platform_type="Unix" ;;
2309 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002312 llvm_cv_os_type="Linux"
2313 llvm_cv_platform_type="Unix" ;;
2314 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002315 llvm_cv_link_all_option="-Wl,-z,allextract"
2316 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317 llvm_cv_os_type="SunOS"
2318 llvm_cv_platform_type="Unix" ;;
2319 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002320 llvm_cv_link_all_option="-Wl,--whole-archive"
2321 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002322 llvm_cv_os_type="Win32"
2323 llvm_cv_platform_type="Win32" ;;
2324 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002325 llvm_cv_link_all_option="-Wl,--whole-archive"
2326 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002327 llvm_cv_os_type="MingW"
2328 llvm_cv_platform_type="Win32" ;;
2329 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002330 llvm_cv_link_all_option=""
2331 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002332 llvm_cv_os_type="Unknown"
2333 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002334esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002335fi
Reid Spencera773bd52006-08-04 18:18:08 +00002336{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2337echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002338
Reid Spencer7b3e8512004-12-24 06:29:05 +00002339if test "$llvm_cv_os_type" = "Unknown" ; then
2340 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2341echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002342 { (exit 1); exit 1; }; }
2343fi
2344
Reid Spencer7b3e8512004-12-24 06:29:05 +00002345OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002346
2347
Reid Spencera773bd52006-08-04 18:18:08 +00002348LINKALL=$llvm_cv_link_all_option
2349
2350NOLINKALL=$llvm_cv_no_link_all_option
2351
2352
Reid Spencer7b3e8512004-12-24 06:29:05 +00002353case $llvm_cv_platform_type in
2354 Unix)
2355
2356cat >>confdefs.h <<\_ACEOF
2357#define LLVM_ON_UNIX 1
2358_ACEOF
2359
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002360 LLVM_ON_UNIX=1
2361
2362 LLVM_ON_WIN32=0
2363
Reid Spencer7b3e8512004-12-24 06:29:05 +00002364 ;;
2365 Win32)
2366
2367cat >>confdefs.h <<\_ACEOF
2368#define LLVM_ON_WIN32 1
2369_ACEOF
2370
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002371 LLVM_ON_UNIX=0
2372
2373 LLVM_ON_WIN32=1
2374
Reid Spencer7b3e8512004-12-24 06:29:05 +00002375 ;;
2376esac
2377
Reid Spencera773bd52006-08-04 18:18:08 +00002378{ echo "$as_me:$LINENO: checking target architecture" >&5
2379echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002380if test "${llvm_cv_target_arch+set}" = set; then
2381 echo $ECHO_N "(cached) $ECHO_C" >&6
2382else
2383 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002384 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002385 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002386 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2387 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002388 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002389 ia64-*) llvm_cv_target_arch="IA64" ;;
Nick Lewyckyfa8ffc12009-04-18 18:11:26 +00002390 arm*-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002391 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002392 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002393 xcore-*) llvm_cv_target_arch="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00002394 msp430-*) llvm_cv_target_arch="MSP430" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002395 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002396esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397fi
Reid Spencera773bd52006-08-04 18:18:08 +00002398{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2399echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002400
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401if test "$llvm_cv_target_arch" = "Unknown" ; then
2402 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2403echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2404fi
John Criswell76595452003-07-01 22:07:39 +00002405
Bill Wendlinga0833352009-03-12 04:10:09 +00002406ARCH=$llvm_cv_target_arch
2407
2408
2409ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002410ac_cpp='$CPP $CPPFLAGS'
2411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002414if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002415 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2416set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419if test "${ac_cv_prog_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421else
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2424else
2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426for as_dir in $PATH
2427do
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002431 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 +00002432 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 break 2
2435 fi
2436done
2437done
Reid Spencera773bd52006-08-04 18:18:08 +00002438IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002439
2440fi
2441fi
2442CC=$ac_cv_prog_CC
2443if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002444 { echo "$as_me:$LINENO: result: $CC" >&5
2445echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002446else
Reid Spencera773bd52006-08-04 18:18:08 +00002447 { echo "$as_me:$LINENO: result: no" >&5
2448echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449fi
2450
Reid Spencera773bd52006-08-04 18:18:08 +00002451
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002452fi
2453if test -z "$ac_cv_prog_CC"; then
2454 ac_ct_CC=$CC
2455 # Extract the first word of "gcc", so it can be a program name with args.
2456set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2461else
2462 if test -n "$ac_ct_CC"; then
2463 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2464else
2465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2466for as_dir in $PATH
2467do
2468 IFS=$as_save_IFS
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002471 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 +00002472 ac_cv_prog_ac_ct_CC="gcc"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 break 2
2475 fi
2476done
2477done
Reid Spencera773bd52006-08-04 18:18:08 +00002478IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002479
2480fi
2481fi
2482ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002484 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002486else
Reid Spencera773bd52006-08-04 18:18:08 +00002487 { echo "$as_me:$LINENO: result: no" >&5
2488echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002489fi
2490
Reid Spencera773bd52006-08-04 18:18:08 +00002491 if test "x$ac_ct_CC" = x; then
2492 CC=""
2493 else
2494 case $cross_compiling:$ac_tool_warned in
2495yes:)
2496{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2497whose name does not start with the host triplet. If you think this
2498configuration is useful to you, please write to autoconf@gnu.org." >&5
2499echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2500whose name does not start with the host triplet. If you think this
2501configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2502ac_tool_warned=yes ;;
2503esac
2504 CC=$ac_ct_CC
2505 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002506else
2507 CC="$ac_cv_prog_CC"
2508fi
2509
2510if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002511 if test -n "$ac_tool_prefix"; then
2512 # 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 +00002513set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002514{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002516if test "${ac_cv_prog_CC+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519 if test -n "$CC"; then
2520 ac_cv_prog_CC="$CC" # Let the user override the test.
2521else
2522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523for as_dir in $PATH
2524do
2525 IFS=$as_save_IFS
2526 test -z "$as_dir" && as_dir=.
2527 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002528 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 +00002529 ac_cv_prog_CC="${ac_tool_prefix}cc"
2530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 break 2
2532 fi
2533done
2534done
Reid Spencera773bd52006-08-04 18:18:08 +00002535IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002536
2537fi
2538fi
2539CC=$ac_cv_prog_CC
2540if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002541 { echo "$as_me:$LINENO: result: $CC" >&5
2542echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002543else
Reid Spencera773bd52006-08-04 18:18:08 +00002544 { echo "$as_me:$LINENO: result: no" >&5
2545echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546fi
2547
Reid Spencera773bd52006-08-04 18:18:08 +00002548
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002549 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550fi
2551if test -z "$CC"; then
2552 # Extract the first word of "cc", so it can be a program name with args.
2553set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002556if test "${ac_cv_prog_CC+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2558else
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2561else
2562 ac_prog_rejected=no
2563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564for as_dir in $PATH
2565do
2566 IFS=$as_save_IFS
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002569 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 +00002570 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2571 ac_prog_rejected=yes
2572 continue
2573 fi
2574 ac_cv_prog_CC="cc"
2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2577 fi
2578done
2579done
Reid Spencera773bd52006-08-04 18:18:08 +00002580IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002581
2582if test $ac_prog_rejected = yes; then
2583 # We found a bogon in the path, so make sure we never use it.
2584 set dummy $ac_cv_prog_CC
2585 shift
2586 if test $# != 0; then
2587 # We chose a different compiler from the bogus one.
2588 # However, it has the same basename, so the bogon will be chosen
2589 # first if we set CC to just the basename; use the full file name.
2590 shift
2591 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2592 fi
2593fi
2594fi
2595fi
2596CC=$ac_cv_prog_CC
2597if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002598 { echo "$as_me:$LINENO: result: $CC" >&5
2599echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600else
Reid Spencera773bd52006-08-04 18:18:08 +00002601 { echo "$as_me:$LINENO: result: no" >&5
2602echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603fi
2604
Reid Spencera773bd52006-08-04 18:18:08 +00002605
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002606fi
2607if test -z "$CC"; then
2608 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002609 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002610 do
2611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002613{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002615if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002616 echo $ECHO_N "(cached) $ECHO_C" >&6
2617else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002618 if test -n "$CC"; then
2619 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002620else
2621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002627 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 +00002628 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632done
2633done
Reid Spencera773bd52006-08-04 18:18:08 +00002634IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002635
2636fi
2637fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638CC=$ac_cv_prog_CC
2639if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002640 { echo "$as_me:$LINENO: result: $CC" >&5
2641echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002642else
Reid Spencera773bd52006-08-04 18:18:08 +00002643 { echo "$as_me:$LINENO: result: no" >&5
2644echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002645fi
2646
Reid Spencera773bd52006-08-04 18:18:08 +00002647
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002648 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002649 done
2650fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651if test -z "$CC"; then
2652 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002653 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002654do
2655 # Extract the first word of "$ac_prog", so it can be a program name with args.
2656set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002659if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002662 if test -n "$ac_ct_CC"; then
2663 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002664else
2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00002671 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 +00002672 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676done
2677done
Reid Spencera773bd52006-08-04 18:18:08 +00002678IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002679
2680fi
2681fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002682ac_ct_CC=$ac_cv_prog_ac_ct_CC
2683if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002684 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2685echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002686else
Reid Spencera773bd52006-08-04 18:18:08 +00002687 { echo "$as_me:$LINENO: result: no" >&5
2688echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002689fi
2690
Reid Spencera773bd52006-08-04 18:18:08 +00002691
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002692 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002693done
John Criswell7a73b802003-06-30 21:59:07 +00002694
Reid Spencera773bd52006-08-04 18:18:08 +00002695 if test "x$ac_ct_CC" = x; then
2696 CC=""
2697 else
2698 case $cross_compiling:$ac_tool_warned in
2699yes:)
2700{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2701whose name does not start with the host triplet. If you think this
2702configuration is useful to you, please write to autoconf@gnu.org." >&5
2703echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2704whose name does not start with the host triplet. If you think this
2705configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2706ac_tool_warned=yes ;;
2707esac
2708 CC=$ac_ct_CC
2709 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002710fi
2711
John Criswell7a73b802003-06-30 21:59:07 +00002712fi
2713
2714
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002715test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2716See \`config.log' for more details." >&5
2717echo "$as_me: error: no acceptable C compiler found in \$PATH
2718See \`config.log' for more details." >&2;}
2719 { (exit 1); exit 1; }; }
2720
John Criswell7a73b802003-06-30 21:59:07 +00002721# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002722echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002723ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002724{ (ac_try="$ac_compiler --version >&5"
2725case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002734{ (ac_try="$ac_compiler -v >&5"
2735case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738esac
2739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002744{ (ac_try="$ac_compiler -V >&5"
2745case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748esac
2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }
2754
2755cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002756/* confdefs.h. */
2757_ACEOF
2758cat confdefs.h >>conftest.$ac_ext
2759cat >>conftest.$ac_ext <<_ACEOF
2760/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002761
John Criswell7a73b802003-06-30 21:59:07 +00002762int
2763main ()
2764{
2765
2766 ;
2767 return 0;
2768}
2769_ACEOF
2770ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002771ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002772# Try to create an executable without -o first, disregard a.out.
2773# It will help us diagnose broken compilers, and finding out an intuition
2774# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002775{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2776echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002777ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002778#
2779# List of possible output files, starting from the most likely.
2780# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2781# only as a last resort. b.out is created by i960 compilers.
2782ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2783#
2784# The IRIX 6 linker writes into existing files which may not be
2785# executable, retaining their permissions. Remove them first so a
2786# subsequent execution test works.
2787ac_rmfiles=
2788for ac_file in $ac_files
2789do
2790 case $ac_file in
2791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2792 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2793 esac
2794done
2795rm -f $ac_rmfiles
2796
2797if { (ac_try="$ac_link_default"
2798case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801esac
2802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002804 ac_status=$?
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002807 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2808# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2809# in a Makefile. We should not override ac_cv_exeext if it was cached,
2810# so that the user can short-circuit this test for compilers unknown to
2811# Autoconf.
Bill Wendlingebcceee2009-04-18 11:20:33 +00002812for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002813do
2814 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002815 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002817 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002818 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002819 # We found the default executable, but exeext='' is most
2820 # certainly right.
2821 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002822 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002823 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2824 then :; else
2825 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2826 fi
2827 # We set ac_cv_exeext here because the later test for it is not
2828 # safe: cross compilers may not add the suffix if given an `-o'
2829 # argument, so we may need to know it at that point already.
2830 # Even if this section looks crufty: it has the advantage of
2831 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002832 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002833 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002834 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002835 esac
2836done
Reid Spencera773bd52006-08-04 18:18:08 +00002837test "$ac_cv_exeext" = no && ac_cv_exeext=
2838
John Criswell7a73b802003-06-30 21:59:07 +00002839else
2840 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002841sed 's/^/| /' conftest.$ac_ext >&5
2842
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002843{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002844See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002845echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002846See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002847 { (exit 77); exit 77; }; }
2848fi
2849
2850ac_exeext=$ac_cv_exeext
Bill Wendlingebcceee2009-04-18 11:20:33 +00002851{ echo "$as_me:$LINENO: result: $ac_file" >&5
2852echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002853
Reid Spencera773bd52006-08-04 18:18:08 +00002854# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002855# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002856{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2857echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002858# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2859# If not cross compiling, check that we can run a simple program.
2860if test "$cross_compiling" != yes; then
2861 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002862 { (case "(($ac_try" in
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2865esac
2866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 cross_compiling=no
2872 else
2873 if test "$cross_compiling" = maybe; then
2874 cross_compiling=yes
2875 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002876 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002877If you meant to cross compile, use \`--host'.
2878See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002879echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002880If you meant to cross compile, use \`--host'.
2881See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002882 { (exit 1); exit 1; }; }
2883 fi
2884 fi
2885fi
Reid Spencera773bd52006-08-04 18:18:08 +00002886{ echo "$as_me:$LINENO: result: yes" >&5
2887echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002888
John Criswell0c38eaf2003-09-10 15:17:25 +00002889rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002890ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002891# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002892# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002893{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2894echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2895{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2896echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002897
Reid Spencera773bd52006-08-04 18:18:08 +00002898{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2899echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2900if { (ac_try="$ac_link"
2901case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904esac
2905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; then
2910 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2911# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2912# work properly (i.e., refer to `conftest.exe'), while it won't with
2913# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002914for ac_file in conftest.exe conftest conftest.*; do
2915 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002916 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002918 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002919 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002920 * ) break;;
2921 esac
2922done
2923else
John Criswell0c38eaf2003-09-10 15:17:25 +00002924 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2925See \`config.log' for more details." >&5
2926echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2927See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002928 { (exit 1); exit 1; }; }
2929fi
2930
2931rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002932{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2933echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002934
2935rm -f conftest.$ac_ext
2936EXEEXT=$ac_cv_exeext
2937ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002938{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2939echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002940if test "${ac_cv_objext+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942else
2943 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002944/* confdefs.h. */
2945_ACEOF
2946cat confdefs.h >>conftest.$ac_ext
2947cat >>conftest.$ac_ext <<_ACEOF
2948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002949
John Criswell7a73b802003-06-30 21:59:07 +00002950int
2951main ()
2952{
2953
2954 ;
2955 return 0;
2956}
2957_ACEOF
2958rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002959if { (ac_try="$ac_compile"
2960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2965 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002969 for ac_file in conftest.o conftest.obj conftest.*; do
2970 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002971 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002973 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2974 break;;
2975 esac
2976done
2977else
2978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2982See \`config.log' for more details." >&5
2983echo "$as_me: error: cannot compute suffix of object files: cannot compile
2984See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002985 { (exit 1); exit 1; }; }
2986fi
2987
2988rm -f conftest.$ac_cv_objext conftest.$ac_ext
2989fi
Reid Spencera773bd52006-08-04 18:18:08 +00002990{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2991echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002992OBJEXT=$ac_cv_objext
2993ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002994{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2995echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002996if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002997 echo $ECHO_N "(cached) $ECHO_C" >&6
2998else
2999 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003000/* confdefs.h. */
3001_ACEOF
3002cat confdefs.h >>conftest.$ac_ext
3003cat >>conftest.$ac_ext <<_ACEOF
3004/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003005
John Criswell7a73b802003-06-30 21:59:07 +00003006int
3007main ()
3008{
3009#ifndef __GNUC__
3010 choke me
3011#endif
3012
3013 ;
3014 return 0;
3015}
3016_ACEOF
3017rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003018if { (ac_try="$ac_compile"
3019case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022esac
3023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003026 grep -v '^ *+' conftest.er1 >conftest.err
3027 rm -f conftest.er1
3028 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3032 { (case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_try") 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003051 ac_compiler_gnu=yes
3052else
3053 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003054sed 's/^/| /' conftest.$ac_ext >&5
3055
Reid Spencera773bd52006-08-04 18:18:08 +00003056 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003057fi
Reid Spencera773bd52006-08-04 18:18:08 +00003058
3059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003060ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003061
3062fi
Reid Spencera773bd52006-08-04 18:18:08 +00003063{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3064echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003065GCC=`test $ac_compiler_gnu = yes && echo yes`
3066ac_test_CFLAGS=${CFLAGS+set}
3067ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003068{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3069echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003070if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072else
Reid Spencera773bd52006-08-04 18:18:08 +00003073 ac_save_c_werror_flag=$ac_c_werror_flag
3074 ac_c_werror_flag=yes
3075 ac_cv_prog_cc_g=no
3076 CFLAGS="-g"
3077 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003083
John Criswell7a73b802003-06-30 21:59:07 +00003084int
3085main ()
3086{
3087
3088 ;
3089 return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003093if { (ac_try="$ac_compile"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003105 (exit $ac_status); } &&
3106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110esac
3111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
3121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_try") 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003126 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003127else
3128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003129sed 's/^/| /' conftest.$ac_ext >&5
3130
Reid Spencera773bd52006-08-04 18:18:08 +00003131 CFLAGS=""
3132 cat >conftest.$ac_ext <<_ACEOF
3133/* confdefs.h. */
3134_ACEOF
3135cat confdefs.h >>conftest.$ac_ext
3136cat >>conftest.$ac_ext <<_ACEOF
3137/* end confdefs.h. */
3138
3139int
3140main ()
3141{
3142
3143 ;
3144 return 0;
3145}
3146_ACEOF
3147rm -f conftest.$ac_objext
3148if { (ac_try="$ac_compile"
3149case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152esac
3153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_compile") 2>conftest.er1
3155 ac_status=$?
3156 grep -v '^ *+' conftest.er1 >conftest.err
3157 rm -f conftest.er1
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003160 (exit $ac_status); } &&
3161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3162 { (case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
3166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_try") 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_try") 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003181 :
3182else
3183 echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
3186 ac_c_werror_flag=$ac_save_c_werror_flag
3187 CFLAGS="-g"
3188 cat >conftest.$ac_ext <<_ACEOF
3189/* confdefs.h. */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h. */
3194
3195int
3196main ()
3197{
3198
3199 ;
3200 return 0;
3201}
3202_ACEOF
3203rm -f conftest.$ac_objext
3204if { (ac_try="$ac_compile"
3205case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_compile") 2>conftest.er1
3211 ac_status=$?
3212 grep -v '^ *+' conftest.er1 >conftest.err
3213 rm -f conftest.er1
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003216 (exit $ac_status); } &&
3217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3218 { (case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221esac
3222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_try") 2>&5
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; } &&
3227 { ac_try='test -s conftest.$ac_objext'
3228 { (case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231esac
3232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_try") 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003237 ac_cv_prog_cc_g=yes
3238else
3239 echo "$as_me: failed program was:" >&5
3240sed 's/^/| /' conftest.$ac_ext >&5
3241
3242
John Criswell7a73b802003-06-30 21:59:07 +00003243fi
Reid Spencera773bd52006-08-04 18:18:08 +00003244
3245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003246fi
Reid Spencera773bd52006-08-04 18:18:08 +00003247
3248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249fi
3250
3251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 ac_c_werror_flag=$ac_save_c_werror_flag
3253fi
3254{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3255echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256if test "$ac_test_CFLAGS" = set; then
3257 CFLAGS=$ac_save_CFLAGS
3258elif test $ac_cv_prog_cc_g = yes; then
3259 if test "$GCC" = yes; then
3260 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003261 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003263 fi
3264else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265 if test "$GCC" = yes; then
3266 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003267 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003269 fi
3270fi
Reid Spencera773bd52006-08-04 18:18:08 +00003271{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3272echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3273if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003274 echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
Reid Spencera773bd52006-08-04 18:18:08 +00003276 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003277ac_save_CC=$CC
3278cat >conftest.$ac_ext <<_ACEOF
3279/* confdefs.h. */
3280_ACEOF
3281cat confdefs.h >>conftest.$ac_ext
3282cat >>conftest.$ac_ext <<_ACEOF
3283/* end confdefs.h. */
3284#include <stdarg.h>
3285#include <stdio.h>
3286#include <sys/types.h>
3287#include <sys/stat.h>
3288/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3289struct buf { int x; };
3290FILE * (*rcsopen) (struct buf *, struct stat *, int);
3291static char *e (p, i)
3292 char **p;
3293 int i;
3294{
3295 return p[i];
3296}
3297static char *f (char * (*g) (char **, int), char **p, ...)
3298{
3299 char *s;
3300 va_list v;
3301 va_start (v,p);
3302 s = g (p, va_arg (v,int));
3303 va_end (v);
3304 return s;
3305}
3306
3307/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3308 function prototypes and stuff, but not '\xHH' hex character constants.
3309 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003310 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003311 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3312 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003313 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3315
Reid Spencera773bd52006-08-04 18:18:08 +00003316/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3317 inside strings and character constants. */
3318#define FOO(x) 'x'
3319int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3320
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003321int test (int i, double x);
3322struct s1 {int (*f) (int a);};
3323struct s2 {int (*f) (double a);};
3324int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3325int argc;
3326char **argv;
3327int
3328main ()
3329{
3330return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3331 ;
3332 return 0;
3333}
3334_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003335for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3336 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003337do
3338 CC="$ac_save_CC $ac_arg"
3339 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003340if { (ac_try="$ac_compile"
3341case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344esac
3345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003352 (exit $ac_status); } &&
3353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3354 { (case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357esac
3358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_try") 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; } &&
3363 { ac_try='test -s conftest.$ac_objext'
3364 { (case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367esac
3368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_try") 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003373 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374else
3375 echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
Reid Spencera773bd52006-08-04 18:18:08 +00003378
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003379fi
Reid Spencera773bd52006-08-04 18:18:08 +00003380
3381rm -f core conftest.err conftest.$ac_objext
3382 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003383done
Reid Spencera773bd52006-08-04 18:18:08 +00003384rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385CC=$ac_save_CC
3386
3387fi
Reid Spencera773bd52006-08-04 18:18:08 +00003388# AC_CACHE_VAL
3389case "x$ac_cv_prog_cc_c89" in
3390 x)
3391 { echo "$as_me:$LINENO: result: none needed" >&5
3392echo "${ECHO_T}none needed" >&6; } ;;
3393 xno)
3394 { echo "$as_me:$LINENO: result: unsupported" >&5
3395echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003396 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003397 CC="$CC $ac_cv_prog_cc_c89"
3398 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3399echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400esac
3401
John Criswell0c38eaf2003-09-10 15:17:25 +00003402
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003403ac_ext=c
3404ac_cpp='$CPP $CPPFLAGS'
3405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408
3409
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003410ac_ext=c
3411ac_cpp='$CPP $CPPFLAGS'
3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003415{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3416echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003417# On Suns, sometimes $CPP names a directory.
3418if test -n "$CPP" && test -d "$CPP"; then
3419 CPP=
3420fi
3421if test -z "$CPP"; then
3422 if test "${ac_cv_prog_CPP+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3424else
3425 # Double quotes because CPP needs to be expanded
3426 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3427 do
3428 ac_preproc_ok=false
3429for ac_c_preproc_warn_flag in '' yes
3430do
3431 # Use a header file that comes with gcc, so configuring glibc
3432 # with a fresh cross-compiler works.
3433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3434 # <limits.h> exists even on freestanding compilers.
3435 # On the NeXT, cc -E runs the code through the compiler's parser,
3436 # not just through cpp. "Syntax error" is here to catch this case.
3437 cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h. */
3439_ACEOF
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h. */
3443#ifdef __STDC__
3444# include <limits.h>
3445#else
3446# include <assert.h>
3447#endif
3448 Syntax error
3449_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003450if { (ac_try="$ac_cpp conftest.$ac_ext"
3451case "(($ac_try" in
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3454esac
3455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003457 ac_status=$?
3458 grep -v '^ *+' conftest.er1 >conftest.err
3459 rm -f conftest.er1
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003462 (exit $ac_status); } >/dev/null; then
3463 if test -s conftest.err; then
3464 ac_cpp_err=$ac_c_preproc_warn_flag
3465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3466 else
3467 ac_cpp_err=
3468 fi
3469else
3470 ac_cpp_err=yes
3471fi
3472if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003473 :
3474else
3475 echo "$as_me: failed program was:" >&5
3476sed 's/^/| /' conftest.$ac_ext >&5
3477
3478 # Broken: fails on valid input.
3479continue
3480fi
Reid Spencera773bd52006-08-04 18:18:08 +00003481
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003482rm -f conftest.err conftest.$ac_ext
3483
Reid Spencera773bd52006-08-04 18:18:08 +00003484 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003485 # can be detected and how.
3486 cat >conftest.$ac_ext <<_ACEOF
3487/* confdefs.h. */
3488_ACEOF
3489cat confdefs.h >>conftest.$ac_ext
3490cat >>conftest.$ac_ext <<_ACEOF
3491/* end confdefs.h. */
3492#include <ac_nonexistent.h>
3493_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003494if { (ac_try="$ac_cpp conftest.$ac_ext"
3495case "(($ac_try" in
3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3497 *) ac_try_echo=$ac_try;;
3498esac
3499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003501 ac_status=$?
3502 grep -v '^ *+' conftest.er1 >conftest.err
3503 rm -f conftest.er1
3504 cat conftest.err >&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003506 (exit $ac_status); } >/dev/null; then
3507 if test -s conftest.err; then
3508 ac_cpp_err=$ac_c_preproc_warn_flag
3509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3510 else
3511 ac_cpp_err=
3512 fi
3513else
3514 ac_cpp_err=yes
3515fi
3516if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003517 # Broken: success on invalid input.
3518continue
3519else
3520 echo "$as_me: failed program was:" >&5
3521sed 's/^/| /' conftest.$ac_ext >&5
3522
3523 # Passes both tests.
3524ac_preproc_ok=:
3525break
3526fi
Reid Spencera773bd52006-08-04 18:18:08 +00003527
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003528rm -f conftest.err conftest.$ac_ext
3529
3530done
3531# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3532rm -f conftest.err conftest.$ac_ext
3533if $ac_preproc_ok; then
3534 break
3535fi
3536
3537 done
3538 ac_cv_prog_CPP=$CPP
3539
3540fi
3541 CPP=$ac_cv_prog_CPP
3542else
3543 ac_cv_prog_CPP=$CPP
3544fi
Reid Spencera773bd52006-08-04 18:18:08 +00003545{ echo "$as_me:$LINENO: result: $CPP" >&5
3546echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003547ac_preproc_ok=false
3548for ac_c_preproc_warn_flag in '' yes
3549do
3550 # Use a header file that comes with gcc, so configuring glibc
3551 # with a fresh cross-compiler works.
3552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3553 # <limits.h> exists even on freestanding compilers.
3554 # On the NeXT, cc -E runs the code through the compiler's parser,
3555 # not just through cpp. "Syntax error" is here to catch this case.
3556 cat >conftest.$ac_ext <<_ACEOF
3557/* confdefs.h. */
3558_ACEOF
3559cat confdefs.h >>conftest.$ac_ext
3560cat >>conftest.$ac_ext <<_ACEOF
3561/* end confdefs.h. */
3562#ifdef __STDC__
3563# include <limits.h>
3564#else
3565# include <assert.h>
3566#endif
3567 Syntax error
3568_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003569if { (ac_try="$ac_cpp conftest.$ac_ext"
3570case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573esac
3574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003581 (exit $ac_status); } >/dev/null; then
3582 if test -s conftest.err; then
3583 ac_cpp_err=$ac_c_preproc_warn_flag
3584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3585 else
3586 ac_cpp_err=
3587 fi
3588else
3589 ac_cpp_err=yes
3590fi
3591if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003592 :
3593else
3594 echo "$as_me: failed program was:" >&5
3595sed 's/^/| /' conftest.$ac_ext >&5
3596
3597 # Broken: fails on valid input.
3598continue
3599fi
Reid Spencera773bd52006-08-04 18:18:08 +00003600
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003601rm -f conftest.err conftest.$ac_ext
3602
Reid Spencera773bd52006-08-04 18:18:08 +00003603 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003604 # can be detected and how.
3605 cat >conftest.$ac_ext <<_ACEOF
3606/* confdefs.h. */
3607_ACEOF
3608cat confdefs.h >>conftest.$ac_ext
3609cat >>conftest.$ac_ext <<_ACEOF
3610/* end confdefs.h. */
3611#include <ac_nonexistent.h>
3612_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003613if { (ac_try="$ac_cpp conftest.$ac_ext"
3614case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617esac
3618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003620 ac_status=$?
3621 grep -v '^ *+' conftest.er1 >conftest.err
3622 rm -f conftest.er1
3623 cat conftest.err >&5
3624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003625 (exit $ac_status); } >/dev/null; then
3626 if test -s conftest.err; then
3627 ac_cpp_err=$ac_c_preproc_warn_flag
3628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3629 else
3630 ac_cpp_err=
3631 fi
3632else
3633 ac_cpp_err=yes
3634fi
3635if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003636 # Broken: success on invalid input.
3637continue
3638else
3639 echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 # Passes both tests.
3643ac_preproc_ok=:
3644break
3645fi
Reid Spencera773bd52006-08-04 18:18:08 +00003646
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003647rm -f conftest.err conftest.$ac_ext
3648
3649done
3650# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3651rm -f conftest.err conftest.$ac_ext
3652if $ac_preproc_ok; then
3653 :
3654else
3655 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3656See \`config.log' for more details." >&5
3657echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3658See \`config.log' for more details." >&2;}
3659 { (exit 1); exit 1; }; }
3660fi
3661
John Criswell7a73b802003-06-30 21:59:07 +00003662ac_ext=c
3663ac_cpp='$CPP $CPPFLAGS'
3664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666ac_compiler_gnu=$ac_cv_c_compiler_gnu
3667
John Criswell7a73b802003-06-30 21:59:07 +00003668
Reid Spencera773bd52006-08-04 18:18:08 +00003669{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3670echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003671if test "${ac_cv_path_GREP+set}" = set; then
3672 echo $ECHO_N "(cached) $ECHO_C" >&6
3673else
Reid Spencera773bd52006-08-04 18:18:08 +00003674 # Extract the first word of "grep ggrep" to use in msg output
3675if test -z "$GREP"; then
3676set dummy grep ggrep; ac_prog_name=$2
3677if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679else
Reid Spencera773bd52006-08-04 18:18:08 +00003680 ac_path_GREP_found=false
3681# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003683for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003684do
3685 IFS=$as_save_IFS
3686 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003687 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003688 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003689 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003690 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003691 # Check for GNU ac_path_GREP and select it if it is found.
3692 # Check for GNU $ac_path_GREP
3693case `"$ac_path_GREP" --version 2>&1` in
3694*GNU*)
3695 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3696*)
3697 ac_count=0
3698 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3699 while :
3700 do
3701 cat "conftest.in" "conftest.in" >"conftest.tmp"
3702 mv "conftest.tmp" "conftest.in"
3703 cp "conftest.in" "conftest.nl"
3704 echo 'GREP' >> "conftest.nl"
3705 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3707 ac_count=`expr $ac_count + 1`
3708 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3709 # Best one so far, save it but keep looking for a better one
3710 ac_cv_path_GREP="$ac_path_GREP"
3711 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003712 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003713 # 10*(2^10) chars as input seems more than enough
3714 test $ac_count -gt 10 && break
3715 done
3716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3717esac
3718
3719
3720 $ac_path_GREP_found && break 3
3721 done
3722done
3723
3724done
3725IFS=$as_save_IFS
3726
3727
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003728fi
Reid Spencera773bd52006-08-04 18:18:08 +00003729
3730GREP="$ac_cv_path_GREP"
3731if test -z "$GREP"; then
3732 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3733echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3734 { (exit 1); exit 1; }; }
3735fi
3736
3737else
3738 ac_cv_path_GREP=$GREP
3739fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003740
John Criswell7a73b802003-06-30 21:59:07 +00003741
Reid Spencera773bd52006-08-04 18:18:08 +00003742fi
3743{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3744echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3745 GREP="$ac_cv_path_GREP"
3746
3747
3748{ echo "$as_me:$LINENO: checking for egrep" >&5
3749echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3750if test "${ac_cv_path_EGREP+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752else
3753 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3754 then ac_cv_path_EGREP="$GREP -E"
3755 else
3756 # Extract the first word of "egrep" to use in msg output
3757if test -z "$EGREP"; then
3758set dummy egrep; ac_prog_name=$2
3759if test "${ac_cv_path_EGREP+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761else
3762 ac_path_EGREP_found=false
3763# Loop through the user's path and test for each of PROGNAME-LIST
3764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3766do
3767 IFS=$as_save_IFS
3768 test -z "$as_dir" && as_dir=.
3769 for ac_prog in egrep; do
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Bill Wendlingebcceee2009-04-18 11:20:33 +00003772 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003773 # Check for GNU ac_path_EGREP and select it if it is found.
3774 # Check for GNU $ac_path_EGREP
3775case `"$ac_path_EGREP" --version 2>&1` in
3776*GNU*)
3777 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3778*)
3779 ac_count=0
3780 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3781 while :
3782 do
3783 cat "conftest.in" "conftest.in" >"conftest.tmp"
3784 mv "conftest.tmp" "conftest.in"
3785 cp "conftest.in" "conftest.nl"
3786 echo 'EGREP' >> "conftest.nl"
3787 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3789 ac_count=`expr $ac_count + 1`
3790 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3791 # Best one so far, save it but keep looking for a better one
3792 ac_cv_path_EGREP="$ac_path_EGREP"
3793 ac_path_EGREP_max=$ac_count
3794 fi
3795 # 10*(2^10) chars as input seems more than enough
3796 test $ac_count -gt 10 && break
3797 done
3798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3799esac
3800
3801
3802 $ac_path_EGREP_found && break 3
3803 done
3804done
3805
3806done
3807IFS=$as_save_IFS
3808
3809
3810fi
3811
3812EGREP="$ac_cv_path_EGREP"
3813if test -z "$EGREP"; then
3814 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3815echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3816 { (exit 1); exit 1; }; }
3817fi
3818
3819else
3820 ac_cv_path_EGREP=$EGREP
3821fi
3822
3823
3824 fi
3825fi
3826{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3827echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3828 EGREP="$ac_cv_path_EGREP"
3829
3830
3831{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3832echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003833if test "${ac_cv_header_stdc+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3835else
3836 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003837/* confdefs.h. */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
3841/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003842#include <stdlib.h>
3843#include <stdarg.h>
3844#include <string.h>
3845#include <float.h>
3846
John Criswell0c38eaf2003-09-10 15:17:25 +00003847int
3848main ()
3849{
3850
3851 ;
3852 return 0;
3853}
John Criswell7a73b802003-06-30 21:59:07 +00003854_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003855rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003856if { (ac_try="$ac_compile"
3857case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860esac
3861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003863 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00003868 (exit $ac_status); } &&
3869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3870 { (case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873esac
3874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875 (eval "$ac_try") 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; } &&
3879 { ac_try='test -s conftest.$ac_objext'
3880 { (case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3883esac
3884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_try") 2>&5
3886 ac_status=$?
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003889 ac_cv_header_stdc=yes
3890else
3891 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003892sed 's/^/| /' conftest.$ac_ext >&5
3893
Reid Spencera773bd52006-08-04 18:18:08 +00003894 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003895fi
Reid Spencera773bd52006-08-04 18:18:08 +00003896
3897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003898
3899if test $ac_cv_header_stdc = yes; then
3900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3901 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003902/* confdefs.h. */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003907#include <string.h>
3908
3909_ACEOF
3910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003911 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003912 :
3913else
3914 ac_cv_header_stdc=no
3915fi
3916rm -f conftest*
3917
3918fi
3919
3920if test $ac_cv_header_stdc = yes; then
3921 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3922 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003923/* confdefs.h. */
3924_ACEOF
3925cat confdefs.h >>conftest.$ac_ext
3926cat >>conftest.$ac_ext <<_ACEOF
3927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003928#include <stdlib.h>
3929
3930_ACEOF
3931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003932 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003933 :
3934else
3935 ac_cv_header_stdc=no
3936fi
3937rm -f conftest*
3938
3939fi
3940
3941if test $ac_cv_header_stdc = yes; then
3942 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3943 if test "$cross_compiling" = yes; then
3944 :
3945else
3946 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003947/* confdefs.h. */
3948_ACEOF
3949cat confdefs.h >>conftest.$ac_ext
3950cat >>conftest.$ac_ext <<_ACEOF
3951/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003952#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003953#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003954#if ((' ' & 0x0FF) == 0x020)
3955# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3956# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3957#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003958# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003959 (('a' <= (c) && (c) <= 'i') \
3960 || ('j' <= (c) && (c) <= 'r') \
3961 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003962# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3963#endif
3964
3965#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3966int
3967main ()
3968{
3969 int i;
3970 for (i = 0; i < 256; i++)
3971 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003972 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003973 return 2;
3974 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003975}
3976_ACEOF
3977rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003978if { (ac_try="$ac_link"
3979case "(($ac_try" in
3980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3981 *) ac_try_echo=$ac_try;;
3982esac
3983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3984 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003985 ac_status=$?
3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003988 { (case "(($ac_try" in
3989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990 *) ac_try_echo=$ac_try;;
3991esac
3992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3993 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; }; then
3997 :
3998else
3999 echo "$as_me: program exited with status $ac_status" >&5
4000echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004001sed 's/^/| /' conftest.$ac_ext >&5
4002
John Criswell7a73b802003-06-30 21:59:07 +00004003( exit $ac_status )
4004ac_cv_header_stdc=no
4005fi
Reid Spencera773bd52006-08-04 18:18:08 +00004006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4007fi
4008
4009
John Criswell7a73b802003-06-30 21:59:07 +00004010fi
4011fi
Reid Spencera773bd52006-08-04 18:18:08 +00004012{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4013echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004014if test $ac_cv_header_stdc = yes; then
4015
4016cat >>confdefs.h <<\_ACEOF
4017#define STDC_HEADERS 1
4018_ACEOF
4019
4020fi
4021
Reid Spencera773bd52006-08-04 18:18:08 +00004022# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4033 inttypes.h stdint.h unistd.h
4034do
4035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4036{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4038if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040else
4041 cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h. */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */
4047$ac_includes_default
4048
4049#include <$ac_header>
4050_ACEOF
4051rm -f conftest.$ac_objext
4052if { (ac_try="$ac_compile"
4053case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_compile") 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004064 (exit $ac_status); } &&
4065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4066 { (case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_try") 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; } &&
4075 { ac_try='test -s conftest.$ac_objext'
4076 { (case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_try") 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004085 eval "$as_ac_Header=yes"
4086else
4087 echo "$as_me: failed program was:" >&5
4088sed 's/^/| /' conftest.$ac_ext >&5
4089
4090 eval "$as_ac_Header=no"
4091fi
4092
4093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094fi
4095ac_res=`eval echo '${'$as_ac_Header'}'`
4096 { echo "$as_me:$LINENO: result: $ac_res" >&5
4097echo "${ECHO_T}$ac_res" >&6; }
4098if test `eval echo '${'$as_ac_Header'}'` = yes; then
4099 cat >>confdefs.h <<_ACEOF
4100#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4101_ACEOF
4102
4103fi
4104
4105done
4106
4107
4108{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4109echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4110if test "${ac_cv_c_bigendian+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113 # See if sys/param.h defines the BYTE_ORDER macro.
4114cat >conftest.$ac_ext <<_ACEOF
4115/* confdefs.h. */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
4119/* end confdefs.h. */
4120#include <sys/types.h>
4121#include <sys/param.h>
4122
4123int
4124main ()
4125{
Bill Wendlingebcceee2009-04-18 11:20:33 +00004126#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004127 bogus endian macros
4128#endif
4129
4130 ;
4131 return 0;
4132}
4133_ACEOF
4134rm -f conftest.$ac_objext
4135if { (ac_try="$ac_compile"
4136case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4142 ac_status=$?
4143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004147 (exit $ac_status); } &&
4148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149 { (case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152esac
4153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_try") 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest.$ac_objext'
4159 { (case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162esac
4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_try") 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004168 # It does; now see whether it defined to BIG_ENDIAN or not.
4169cat >conftest.$ac_ext <<_ACEOF
4170/* confdefs.h. */
4171_ACEOF
4172cat confdefs.h >>conftest.$ac_ext
4173cat >>conftest.$ac_ext <<_ACEOF
4174/* end confdefs.h. */
4175#include <sys/types.h>
4176#include <sys/param.h>
4177
4178int
4179main ()
4180{
4181#if BYTE_ORDER != BIG_ENDIAN
4182 not big endian
4183#endif
4184
4185 ;
4186 return 0;
4187}
4188_ACEOF
4189rm -f conftest.$ac_objext
4190if { (ac_try="$ac_compile"
4191case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4194esac
4195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_compile") 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004202 (exit $ac_status); } &&
4203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4204 { (case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207esac
4208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_try") 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; } &&
4213 { ac_try='test -s conftest.$ac_objext'
4214 { (case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217esac
4218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_try") 2>&5
4220 ac_status=$?
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004223 ac_cv_c_bigendian=yes
4224else
4225 echo "$as_me: failed program was:" >&5
4226sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 ac_cv_c_bigendian=no
4229fi
4230
4231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232else
4233 echo "$as_me: failed program was:" >&5
4234sed 's/^/| /' conftest.$ac_ext >&5
4235
4236 # It does not; compile a test program.
4237if test "$cross_compiling" = yes; then
4238 # try to guess the endianness by grepping values into an object file
4239 ac_cv_c_bigendian=unknown
4240 cat >conftest.$ac_ext <<_ACEOF
4241/* confdefs.h. */
4242_ACEOF
4243cat confdefs.h >>conftest.$ac_ext
4244cat >>conftest.$ac_ext <<_ACEOF
4245/* end confdefs.h. */
4246short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4247short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4248void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4249short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4250short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4251void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4252int
4253main ()
4254{
4255 _ascii (); _ebcdic ();
4256 ;
4257 return 0;
4258}
4259_ACEOF
4260rm -f conftest.$ac_objext
4261if { (ac_try="$ac_compile"
4262case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_compile") 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00004273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4275 { (case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_try") 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288esac
4289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_try") 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004294 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4295 ac_cv_c_bigendian=yes
4296fi
4297if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4298 if test "$ac_cv_c_bigendian" = unknown; then
4299 ac_cv_c_bigendian=no
4300 else
4301 # finding both strings is unlikely to happen, but who knows?
4302 ac_cv_c_bigendian=unknown
4303 fi
4304fi
4305else
4306 echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
4308
4309
4310fi
4311
4312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313else
4314 cat >conftest.$ac_ext <<_ACEOF
4315/* confdefs.h. */
4316_ACEOF
4317cat confdefs.h >>conftest.$ac_ext
4318cat >>conftest.$ac_ext <<_ACEOF
4319/* end confdefs.h. */
4320$ac_includes_default
4321int
4322main ()
4323{
4324
4325 /* Are we little or big endian? From Harbison&Steele. */
4326 union
4327 {
4328 long int l;
4329 char c[sizeof (long int)];
4330 } u;
4331 u.l = 1;
4332 return u.c[sizeof (long int) - 1] == 1;
4333
4334 ;
4335 return 0;
4336}
4337_ACEOF
4338rm -f conftest$ac_exeext
4339if { (ac_try="$ac_link"
4340case "(($ac_try" in
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4343esac
4344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345 (eval "$ac_link") 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4349 { (case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4352esac
4353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_try") 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 ac_cv_c_bigendian=no
4359else
4360 echo "$as_me: program exited with status $ac_status" >&5
4361echo "$as_me: failed program was:" >&5
4362sed 's/^/| /' conftest.$ac_ext >&5
4363
4364( exit $ac_status )
4365ac_cv_c_bigendian=yes
4366fi
4367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4368fi
4369
4370
4371fi
4372
4373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374fi
4375{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4376echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4377case $ac_cv_c_bigendian in
4378 yes)
4379 ENDIAN=big
4380 ;;
4381 no)
4382 ENDIAN=little
4383 ;;
4384 *)
4385 { { echo "$as_me:$LINENO: error: unknown endianness
4386presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4387echo "$as_me: error: unknown endianness
4388presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4389 { (exit 1); exit 1; }; } ;;
4390esac
4391
4392
4393if test "$cross_compiling" = yes; then
4394 LLVM_CROSS_COMPILING=1
4395
4396
4397{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4398echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4399if test "${ac_cv_build_exeext+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4401else
4402 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4403 ac_cv_build_exeext=.exe
4404else
4405 ac_build_prefix=${build_alias}-
4406
4407 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4408set dummy ${ac_build_prefix}gcc; ac_word=$2
4409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4411if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413else
4414 if test -n "$BUILD_CC"; then
4415 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4416else
4417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH
4419do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004423 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 +00004424 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4427 fi
4428done
4429done
4430IFS=$as_save_IFS
4431
4432fi
4433fi
4434BUILD_CC=$ac_cv_prog_BUILD_CC
4435if test -n "$BUILD_CC"; then
4436 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4437echo "${ECHO_T}$BUILD_CC" >&6; }
4438else
4439 { echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6; }
4441fi
4442
4443
4444 if test -z "$BUILD_CC"; then
4445 # Extract the first word of "gcc", so it can be a program name with args.
4446set dummy gcc; ac_word=$2
4447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4451else
4452 if test -n "$BUILD_CC"; then
4453 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4454else
4455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456for as_dir in $PATH
4457do
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004461 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 +00004462 ac_cv_prog_BUILD_CC="gcc"
4463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 break 2
4465 fi
4466done
4467done
4468IFS=$as_save_IFS
4469
4470fi
4471fi
4472BUILD_CC=$ac_cv_prog_BUILD_CC
4473if test -n "$BUILD_CC"; then
4474 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4475echo "${ECHO_T}$BUILD_CC" >&6; }
4476else
4477 { echo "$as_me:$LINENO: result: no" >&5
4478echo "${ECHO_T}no" >&6; }
4479fi
4480
4481
4482 if test -z "$BUILD_CC"; then
4483 # Extract the first word of "cc", so it can be a program name with args.
4484set dummy cc; ac_word=$2
4485{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4487if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
4489else
4490 if test -n "$BUILD_CC"; then
4491 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4492else
4493 ac_prog_rejected=no
4494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH
4496do
4497 IFS=$as_save_IFS
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004500 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 +00004501 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4502 ac_prog_rejected=yes
4503 continue
4504 fi
4505 ac_cv_prog_BUILD_CC="cc"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4508 fi
4509done
4510done
4511IFS=$as_save_IFS
4512
4513if test $ac_prog_rejected = yes; then
4514 # We found a bogon in the path, so make sure we never use it.
4515 set dummy $ac_cv_prog_BUILD_CC
4516 shift
4517 if test $# != 0; then
4518 # We chose a different compiler from the bogus one.
4519 # However, it has the same basename, so the bogon will be chosen
4520 # first if we set BUILD_CC to just the basename; use the full file name.
4521 shift
4522 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4523 fi
4524fi
4525fi
4526fi
4527BUILD_CC=$ac_cv_prog_BUILD_CC
4528if test -n "$BUILD_CC"; then
4529 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4530echo "${ECHO_T}$BUILD_CC" >&6; }
4531else
4532 { echo "$as_me:$LINENO: result: no" >&5
4533echo "${ECHO_T}no" >&6; }
4534fi
4535
4536
4537 fi
4538 fi
4539 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4540echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4541 { (exit 1); exit 1; }; }
4542 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4543 rm -f conftest*
4544 echo 'int main () { return 0; }' > conftest.$ac_ext
4545 ac_cv_build_exeext=
4546 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4547 (eval $ac_build_link) 2>&5
4548 ac_status=$?
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); }; then
4551 for file in conftest.*; do
4552 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004553 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004554 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4555 esac
4556 done
4557 else
4558 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4559echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4560 { (exit 1); exit 1; }; }
4561 fi
4562 rm -f conftest*
4563 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4564fi
4565fi
4566
4567BUILD_EXEEXT=""
4568test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4569{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4570echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4571ac_build_exeext=$BUILD_EXEEXT
4572
Jim Grosbach673612e2008-10-02 22:56:44 +00004573 ac_build_prefix=${build_alias}-
4574 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4575set dummy ${ac_build_prefix}g++; ac_word=$2
4576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581 if test -n "$BUILD_CXX"; then
4582 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4583else
4584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585for as_dir in $PATH
4586do
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004590 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 +00004591 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4594 fi
4595done
4596done
4597IFS=$as_save_IFS
4598
4599fi
4600fi
4601BUILD_CXX=$ac_cv_prog_BUILD_CXX
4602if test -n "$BUILD_CXX"; then
4603 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4604echo "${ECHO_T}$BUILD_CXX" >&6; }
4605else
4606 { echo "$as_me:$LINENO: result: no" >&5
4607echo "${ECHO_T}no" >&6; }
4608fi
4609
4610
4611 if test -z "$BUILD_CXX"; then
4612 # Extract the first word of "g++", so it can be a program name with args.
4613set dummy g++; ac_word=$2
4614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618else
4619 if test -n "$BUILD_CXX"; then
4620 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4621else
4622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623for as_dir in $PATH
4624do
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004628 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 +00004629 ac_cv_prog_BUILD_CXX="g++"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4632 fi
4633done
4634done
4635IFS=$as_save_IFS
4636
4637fi
4638fi
4639BUILD_CXX=$ac_cv_prog_BUILD_CXX
4640if test -n "$BUILD_CXX"; then
4641 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4642echo "${ECHO_T}$BUILD_CXX" >&6; }
4643else
4644 { echo "$as_me:$LINENO: result: no" >&5
4645echo "${ECHO_T}no" >&6; }
4646fi
4647
4648
4649 if test -z "$BUILD_CXX"; then
4650 # Extract the first word of "c++", so it can be a program name with args.
4651set dummy c++; ac_word=$2
4652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657 if test -n "$BUILD_CXX"; then
4658 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4659else
4660 ac_prog_rejected=no
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
4666 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00004667 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 +00004668 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4669 ac_prog_rejected=yes
4670 continue
4671 fi
4672 ac_cv_prog_BUILD_CXX="c++"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4675 fi
4676done
4677done
4678IFS=$as_save_IFS
4679
4680if test $ac_prog_rejected = yes; then
4681 # We found a bogon in the path, so make sure we never use it.
4682 set dummy $ac_cv_prog_BUILD_CXX
4683 shift
4684 if test $# != 0; then
4685 # We chose a different compiler from the bogus one.
4686 # However, it has the same basename, so the bogon will be chosen
4687 # first if we set BUILD_CXX to just the basename; use the full file name.
4688 shift
4689 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4690 fi
4691fi
4692fi
4693fi
4694BUILD_CXX=$ac_cv_prog_BUILD_CXX
4695if test -n "$BUILD_CXX"; then
4696 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4697echo "${ECHO_T}$BUILD_CXX" >&6; }
4698else
4699 { echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6; }
4701fi
4702
4703
4704 fi
4705 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004706else
4707 LLVM_CROSS_COMPILING=0
4708
4709fi
4710
Nick Lewycky5b28f862009-04-10 05:18:27 +00004711if 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 +00004712 cvsbuild="yes"
4713 optimize="no"
4714 CVSBUILD=CVSBUILD=1
4715
4716else
4717 cvsbuild="no"
4718 optimize="yes"
4719fi
4720
4721
4722# Check whether --enable-optimized was given.
4723if test "${enable_optimized+set}" = set; then
4724 enableval=$enable_optimized;
4725else
4726 enableval=$optimize
4727fi
4728
4729if test ${enableval} = "no" ; then
4730 ENABLE_OPTIMIZED=
4731
4732else
4733 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4734
4735fi
4736
David Greene2a5a12c2009-04-17 14:50:39 +00004737# Check whether --enable-profiling was given.
4738if test "${enable_profiling+set}" = set; then
4739 enableval=$enable_profiling;
4740else
4741 enableval="no"
4742fi
4743
4744if test ${enableval} = "no" ; then
4745 ENABLE_PROFILING=
4746
4747else
4748 ENABLE_PROFILING=ENABLE_PROFILING=1
4749
4750fi
4751
Reid Spencera773bd52006-08-04 18:18:08 +00004752# Check whether --enable-assertions was given.
4753if test "${enable_assertions+set}" = set; then
4754 enableval=$enable_assertions;
4755else
4756 enableval="yes"
4757fi
4758
4759if test ${enableval} = "yes" ; then
4760 DISABLE_ASSERTIONS=
4761
4762else
4763 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4764
4765fi
4766
David Greenea696d242007-06-28 19:36:08 +00004767# Check whether --enable-expensive-checks was given.
4768if test "${enable_expensive_checks+set}" = set; then
4769 enableval=$enable_expensive_checks;
4770else
4771 enableval="no"
4772fi
4773
4774if test ${enableval} = "yes" ; then
4775 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4776
4777 EXPENSIVE_CHECKS=yes
4778
4779else
4780 ENABLE_EXPENSIVE_CHECKS=
4781
4782 EXPENSIVE_CHECKS=no
4783
4784fi
4785
Reid Spencer8b2e1412006-11-17 03:32:33 +00004786# Check whether --enable-debug-runtime was given.
4787if test "${enable_debug_runtime+set}" = set; then
4788 enableval=$enable_debug_runtime;
4789else
4790 enableval=no
4791fi
4792
4793if test ${enableval} = "no" ; then
4794 DEBUG_RUNTIME=
4795
4796else
4797 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4798
4799fi
4800
Reid Spencera773bd52006-08-04 18:18:08 +00004801# Check whether --enable-jit was given.
4802if test "${enable_jit+set}" = set; then
4803 enableval=$enable_jit;
4804else
4805 enableval=default
4806fi
4807
4808if test ${enableval} = "no"
4809then
4810 JIT=
4811
4812else
4813 case "$llvm_cv_target_arch" in
4814 x86) TARGET_HAS_JIT=1
4815 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004816 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004817 ;;
4818 PowerPC) TARGET_HAS_JIT=1
4819 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004820 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004821 ;;
4822 Alpha) TARGET_HAS_JIT=1
4823 ;;
4824 IA64) TARGET_HAS_JIT=0
4825 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004826 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004827 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004828 Mips) TARGET_HAS_JIT=0
4829 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004830 PIC16) TARGET_HAS_JIT=0
4831 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004832 XCore) TARGET_HAS_JIT=0
4833 ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004834 MSP430) TARGET_HAS_JIT=0
4835 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004836 *) TARGET_HAS_JIT=0
4837 ;;
4838 esac
4839fi
4840
4841# Check whether --enable-doxygen was given.
4842if test "${enable_doxygen+set}" = set; then
4843 enableval=$enable_doxygen;
4844else
4845 enableval=default
4846fi
4847
4848case "$enableval" in
4849 yes) ENABLE_DOXYGEN=1
4850 ;;
4851 no) ENABLE_DOXYGEN=0
4852 ;;
4853 default) ENABLE_DOXYGEN=0
4854 ;;
4855 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4856echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4857 { (exit 1); exit 1; }; } ;;
4858esac
4859
4860# Check whether --enable-threads was given.
4861if test "${enable_threads+set}" = set; then
4862 enableval=$enable_threads;
4863else
Reid Spencer65c5d752006-11-05 17:08:18 +00004864 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004865fi
4866
4867case "$enableval" in
4868 yes) ENABLE_THREADS=1
4869 ;;
4870 no) ENABLE_THREADS=0
4871 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004872 default) ENABLE_THREADS=1
4873 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004874 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4875echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4876 { (exit 1); exit 1; }; } ;;
4877esac
4878
Owen Andersona8603702009-05-19 22:18:56 +00004879cat >>confdefs.h <<_ACEOF
4880#define ENABLE_THREADS $ENABLE_THREADS
4881_ACEOF
4882
4883
Reid Spencer89b0d992006-12-16 22:07:52 +00004884# Check whether --enable-pic was given.
4885if test "${enable_pic+set}" = set; then
4886 enableval=$enable_pic;
4887else
4888 enableval=default
4889fi
4890
4891case "$enableval" in
4892 yes) ENABLE_PIC=1
4893 ;;
4894 no) ENABLE_PIC=0
4895 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004896 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004897 ;;
4898 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4899echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4900 { (exit 1); exit 1; }; } ;;
4901esac
4902
4903cat >>confdefs.h <<_ACEOF
4904#define ENABLE_PIC $ENABLE_PIC
4905_ACEOF
4906
4907
Reid Spencera773bd52006-08-04 18:18:08 +00004908TARGETS_TO_BUILD=""
4909# Check whether --enable-targets was given.
4910if test "${enable_targets+set}" = set; then
4911 enableval=$enable_targets;
4912else
4913 enableval=all
4914fi
4915
4916case "$enableval" in
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004917 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore MSP430 CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004918 host-only)
4919 case "$llvm_cv_target_arch" in
4920 x86) TARGETS_TO_BUILD="X86" ;;
4921 x86_64) TARGETS_TO_BUILD="X86" ;;
4922 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4923 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4924 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4925 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004926 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004927 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004928 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004929 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004930 XCore) TARGETS_TO_BUILD="XCore" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004931 MSP430) TARGETS_TO_BUILD="MSP430" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004932 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4933echo "$as_me: error: Can not set target to build" >&2;}
4934 { (exit 1); exit 1; }; } ;;
4935 esac
4936 ;;
4937 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4938 case "$a_target" in
4939 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4940 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4941 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4942 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4943 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4944 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004945 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004946 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004947 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004948 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004949 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Anton Korobeynikov2c4718b2009-05-03 13:42:23 +00004950 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004951 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4952 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004953 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004954 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4955echo "$as_me: error: Unrecognized target $a_target" >&2;}
4956 { (exit 1); exit 1; }; } ;;
4957 esac
4958 done
4959 ;;
4960esac
Reid Spencera773bd52006-08-04 18:18:08 +00004961TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4962
4963
Douglas Gregor1555a232009-06-16 20:12:29 +00004964# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
4965# Targets.def and AsmPrinters.def.
4966LLVM_ENUM_TARGETS=""
4967LLVM_ENUM_ASM_PRINTERS=""
4968for target_to_build in $TARGETS_TO_BUILD; do
4969 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4970 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4971 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4972 fi
4973done
4974
4975
4976
Reid Spencer65c5d752006-11-05 17:08:18 +00004977# Check whether --enable-cbe-printf-a was given.
4978if test "${enable_cbe_printf_a+set}" = set; then
4979 enableval=$enable_cbe_printf_a;
4980else
4981 enableval=default
4982fi
4983
4984case "$enableval" in
4985 yes) ENABLE_CBE_PRINTF_A=1
4986 ;;
4987 no) ENABLE_CBE_PRINTF_A=0
4988 ;;
4989 default) ENABLE_CBE_PRINTF_A=1
4990 ;;
4991 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4992echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4993 { (exit 1); exit 1; }; } ;;
4994esac
4995
4996cat >>confdefs.h <<_ACEOF
4997#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4998_ACEOF
4999
5000
Reid Spencera773bd52006-08-04 18:18:08 +00005001
5002# Check whether --with-llvmgccdir was given.
5003if test "${with_llvmgccdir+set}" = set; then
5004 withval=$with_llvmgccdir;
5005else
5006 withval=default
5007fi
5008
5009case "$withval" in
5010 default) WITH_LLVMGCCDIR=default ;;
5011 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5012 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5013echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5014 { (exit 1); exit 1; }; } ;;
5015esac
5016
5017
Devang Patel5d28b882007-12-04 22:54:47 +00005018# Check whether --with-llvmgcc was given.
5019if test "${with_llvmgcc+set}" = set; then
5020 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5021 WITH_LLVMGCCDIR=""
5022fi
5023
5024
5025
5026# Check whether --with-llvmgxx was given.
5027if test "${with_llvmgxx+set}" = set; then
5028 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5029 WITH_LLVMGCCDIR=""
5030fi
5031
Douglas Gregor01746742009-05-11 18:05:52 +00005032
Mikhail Glushenkov4558f482009-04-21 19:46:10 +00005033if test -n "$LLVMGCC"; then
5034 LLVMGCCCOMMAND="$LLVMGCC"
5035fi
5036
5037if test -n "$LLVMGXX"; then
5038 LLVMGXXCOMMAND="$LLVMGXX"
5039fi
Devang Patel5d28b882007-12-04 22:54:47 +00005040
5041if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5042 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5043echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5044 { (exit 1); exit 1; }; };
5045fi
5046
5047if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5048 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5049echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5050 { (exit 1); exit 1; }; };
5051fi
5052
5053
Reid Spencera773bd52006-08-04 18:18:08 +00005054# Check whether --with-extra-options was given.
5055if test "${with_extra_options+set}" = set; then
5056 withval=$with_extra_options;
5057else
5058 withval=default
5059fi
5060
5061case "$withval" in
5062 default) EXTRA_OPTIONS= ;;
5063 *) EXTRA_OPTIONS=$withval ;;
5064esac
5065EXTRA_OPTIONS=$EXTRA_OPTIONS
5066
5067
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005068# Check whether --enable-bindings was given.
5069if test "${enable_bindings+set}" = set; then
5070 enableval=$enable_bindings;
5071else
5072 enableval=default
5073fi
5074
5075BINDINGS_TO_BUILD=""
5076case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005077 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005078 all ) BINDINGS_TO_BUILD="ocaml" ;;
5079 none | no) BINDINGS_TO_BUILD="" ;;
5080 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5081 case "$a_binding" in
5082 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5083 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5084echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5085 { (exit 1); exit 1; }; } ;;
5086 esac
5087 done
5088 ;;
5089esac
5090
Reid Spencera773bd52006-08-04 18:18:08 +00005091
Gordon Henriksenf0915682007-10-02 16:42:22 +00005092# Check whether --with-ocaml-libdir was given.
5093if test "${with_ocaml_libdir+set}" = set; then
5094 withval=$with_ocaml_libdir;
5095else
5096 withval=auto
5097fi
5098
5099case "$withval" in
5100 auto) with_ocaml_libdir="$withval" ;;
5101 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5102 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5103echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5105esac
5106
5107
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005108# Check whether --with-binutils-include was given.
5109if test "${with_binutils_include+set}" = set; then
5110 withval=$with_binutils_include;
5111else
5112 withval=default
5113fi
5114
5115case "$withval" in
5116 default) WITH_BINUTILS_INCDIR=default ;;
5117 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5118 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5119echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5120 { (exit 1); exit 1; }; } ;;
5121esac
5122if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5123 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5124
5125 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5126 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5127 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5128echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5129 { (exit 1); exit 1; }; };
5130 fi
5131fi
5132
Nick Lewyckyb4a921a2009-06-06 06:25:09 +00005133# Check whether --enable-libffi was given.
5134if test "${enable_libffi+set}" = set; then
5135 enableval=$enable_libffi;
5136else
5137 enableval=yes
5138fi
5139
5140case "$enableval" in
5141 yes) llvm_cv_enable_libffi="yes" ;;
5142 no) llvm_cv_enable_libffi="no" ;;
5143 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5144echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5145 { (exit 1); exit 1; }; } ;;
5146esac
5147
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005148
Reid Spencera773bd52006-08-04 18:18:08 +00005149ac_ext=c
5150ac_cpp='$CPP $CPPFLAGS'
5151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153ac_compiler_gnu=$ac_cv_c_compiler_gnu
5154{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5155echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5156# On Suns, sometimes $CPP names a directory.
5157if test -n "$CPP" && test -d "$CPP"; then
5158 CPP=
5159fi
5160if test -z "$CPP"; then
5161 if test "${ac_cv_prog_CPP+set}" = set; then
5162 echo $ECHO_N "(cached) $ECHO_C" >&6
5163else
5164 # Double quotes because CPP needs to be expanded
5165 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5166 do
5167 ac_preproc_ok=false
5168for ac_c_preproc_warn_flag in '' yes
5169do
5170 # Use a header file that comes with gcc, so configuring glibc
5171 # with a fresh cross-compiler works.
5172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5173 # <limits.h> exists even on freestanding compilers.
5174 # On the NeXT, cc -E runs the code through the compiler's parser,
5175 # not just through cpp. "Syntax error" is here to catch this case.
5176 cat >conftest.$ac_ext <<_ACEOF
5177/* confdefs.h. */
5178_ACEOF
5179cat confdefs.h >>conftest.$ac_ext
5180cat >>conftest.$ac_ext <<_ACEOF
5181/* end confdefs.h. */
5182#ifdef __STDC__
5183# include <limits.h>
5184#else
5185# include <assert.h>
5186#endif
5187 Syntax error
5188_ACEOF
5189if { (ac_try="$ac_cpp conftest.$ac_ext"
5190case "(($ac_try" in
5191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5192 *) ac_try_echo=$ac_try;;
5193esac
5194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005201 (exit $ac_status); } >/dev/null; then
5202 if test -s conftest.err; then
5203 ac_cpp_err=$ac_c_preproc_warn_flag
5204 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5205 else
5206 ac_cpp_err=
5207 fi
5208else
5209 ac_cpp_err=yes
5210fi
5211if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005212 :
5213else
5214 echo "$as_me: failed program was:" >&5
5215sed 's/^/| /' conftest.$ac_ext >&5
5216
5217 # Broken: fails on valid input.
5218continue
5219fi
5220
5221rm -f conftest.err conftest.$ac_ext
5222
5223 # OK, works on sane cases. Now check whether nonexistent headers
5224 # can be detected and how.
5225 cat >conftest.$ac_ext <<_ACEOF
5226/* confdefs.h. */
5227_ACEOF
5228cat confdefs.h >>conftest.$ac_ext
5229cat >>conftest.$ac_ext <<_ACEOF
5230/* end confdefs.h. */
5231#include <ac_nonexistent.h>
5232_ACEOF
5233if { (ac_try="$ac_cpp conftest.$ac_ext"
5234case "(($ac_try" in
5235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5236 *) ac_try_echo=$ac_try;;
5237esac
5238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5240 ac_status=$?
5241 grep -v '^ *+' conftest.er1 >conftest.err
5242 rm -f conftest.er1
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005245 (exit $ac_status); } >/dev/null; then
5246 if test -s conftest.err; then
5247 ac_cpp_err=$ac_c_preproc_warn_flag
5248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5249 else
5250 ac_cpp_err=
5251 fi
5252else
5253 ac_cpp_err=yes
5254fi
5255if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005256 # Broken: success on invalid input.
5257continue
5258else
5259 echo "$as_me: failed program was:" >&5
5260sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 # Passes both tests.
5263ac_preproc_ok=:
5264break
5265fi
5266
5267rm -f conftest.err conftest.$ac_ext
5268
5269done
5270# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5271rm -f conftest.err conftest.$ac_ext
5272if $ac_preproc_ok; then
5273 break
5274fi
5275
5276 done
5277 ac_cv_prog_CPP=$CPP
5278
5279fi
5280 CPP=$ac_cv_prog_CPP
5281else
5282 ac_cv_prog_CPP=$CPP
5283fi
5284{ echo "$as_me:$LINENO: result: $CPP" >&5
5285echo "${ECHO_T}$CPP" >&6; }
5286ac_preproc_ok=false
5287for ac_c_preproc_warn_flag in '' yes
5288do
5289 # Use a header file that comes with gcc, so configuring glibc
5290 # with a fresh cross-compiler works.
5291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5292 # <limits.h> exists even on freestanding compilers.
5293 # On the NeXT, cc -E runs the code through the compiler's parser,
5294 # not just through cpp. "Syntax error" is here to catch this case.
5295 cat >conftest.$ac_ext <<_ACEOF
5296/* confdefs.h. */
5297_ACEOF
5298cat confdefs.h >>conftest.$ac_ext
5299cat >>conftest.$ac_ext <<_ACEOF
5300/* end confdefs.h. */
5301#ifdef __STDC__
5302# include <limits.h>
5303#else
5304# include <assert.h>
5305#endif
5306 Syntax error
5307_ACEOF
5308if { (ac_try="$ac_cpp conftest.$ac_ext"
5309case "(($ac_try" in
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5312esac
5313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5315 ac_status=$?
5316 grep -v '^ *+' conftest.er1 >conftest.err
5317 rm -f conftest.er1
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005320 (exit $ac_status); } >/dev/null; then
5321 if test -s conftest.err; then
5322 ac_cpp_err=$ac_c_preproc_warn_flag
5323 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5324 else
5325 ac_cpp_err=
5326 fi
5327else
5328 ac_cpp_err=yes
5329fi
5330if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005331 :
5332else
5333 echo "$as_me: failed program was:" >&5
5334sed 's/^/| /' conftest.$ac_ext >&5
5335
5336 # Broken: fails on valid input.
5337continue
5338fi
5339
5340rm -f conftest.err conftest.$ac_ext
5341
5342 # OK, works on sane cases. Now check whether nonexistent headers
5343 # can be detected and how.
5344 cat >conftest.$ac_ext <<_ACEOF
5345/* confdefs.h. */
5346_ACEOF
5347cat confdefs.h >>conftest.$ac_ext
5348cat >>conftest.$ac_ext <<_ACEOF
5349/* end confdefs.h. */
5350#include <ac_nonexistent.h>
5351_ACEOF
5352if { (ac_try="$ac_cpp conftest.$ac_ext"
5353case "(($ac_try" in
5354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5355 *) ac_try_echo=$ac_try;;
5356esac
5357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5359 ac_status=$?
5360 grep -v '^ *+' conftest.er1 >conftest.err
5361 rm -f conftest.er1
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005364 (exit $ac_status); } >/dev/null; then
5365 if test -s conftest.err; then
5366 ac_cpp_err=$ac_c_preproc_warn_flag
5367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5368 else
5369 ac_cpp_err=
5370 fi
5371else
5372 ac_cpp_err=yes
5373fi
5374if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005375 # Broken: success on invalid input.
5376continue
5377else
5378 echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 # Passes both tests.
5382ac_preproc_ok=:
5383break
5384fi
5385
5386rm -f conftest.err conftest.$ac_ext
5387
5388done
5389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5390rm -f conftest.err conftest.$ac_ext
5391if $ac_preproc_ok; then
5392 :
5393else
5394 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5395See \`config.log' for more details." >&5
5396echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5397See \`config.log' for more details." >&2;}
5398 { (exit 1); exit 1; }; }
5399fi
5400
5401ac_ext=c
5402ac_cpp='$CPP $CPPFLAGS'
5403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405ac_compiler_gnu=$ac_cv_c_compiler_gnu
5406
5407ac_ext=c
5408ac_cpp='$CPP $CPPFLAGS'
5409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412if test -n "$ac_tool_prefix"; then
5413 for ac_prog in gcc
5414 do
5415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5416set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5419if test "${ac_cv_prog_CC+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421else
5422 if test -n "$CC"; then
5423 ac_cv_prog_CC="$CC" # Let the user override the test.
5424else
5425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426for as_dir in $PATH
5427do
5428 IFS=$as_save_IFS
5429 test -z "$as_dir" && as_dir=.
5430 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005431 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 +00005432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 break 2
5435 fi
5436done
5437done
5438IFS=$as_save_IFS
5439
5440fi
5441fi
5442CC=$ac_cv_prog_CC
5443if test -n "$CC"; then
5444 { echo "$as_me:$LINENO: result: $CC" >&5
5445echo "${ECHO_T}$CC" >&6; }
5446else
5447 { echo "$as_me:$LINENO: result: no" >&5
5448echo "${ECHO_T}no" >&6; }
5449fi
5450
5451
5452 test -n "$CC" && break
5453 done
5454fi
5455if test -z "$CC"; then
5456 ac_ct_CC=$CC
5457 for ac_prog in gcc
5458do
5459 # Extract the first word of "$ac_prog", so it can be a program name with args.
5460set dummy $ac_prog; ac_word=$2
5461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5463if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466 if test -n "$ac_ct_CC"; then
5467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5468else
5469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470for as_dir in $PATH
5471do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00005475 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 +00005476 ac_cv_prog_ac_ct_CC="$ac_prog"
5477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5479 fi
5480done
5481done
5482IFS=$as_save_IFS
5483
5484fi
5485fi
5486ac_ct_CC=$ac_cv_prog_ac_ct_CC
5487if test -n "$ac_ct_CC"; then
5488 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5489echo "${ECHO_T}$ac_ct_CC" >&6; }
5490else
5491 { echo "$as_me:$LINENO: result: no" >&5
5492echo "${ECHO_T}no" >&6; }
5493fi
5494
5495
5496 test -n "$ac_ct_CC" && break
5497done
5498
5499 if test "x$ac_ct_CC" = x; then
5500 CC=""
5501 else
5502 case $cross_compiling:$ac_tool_warned in
5503yes:)
5504{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5505whose name does not start with the host triplet. If you think this
5506configuration is useful to you, please write to autoconf@gnu.org." >&5
5507echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5508whose name does not start with the host triplet. If you think this
5509configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5510ac_tool_warned=yes ;;
5511esac
5512 CC=$ac_ct_CC
5513 fi
5514fi
5515
5516
5517test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5518See \`config.log' for more details." >&5
5519echo "$as_me: error: no acceptable C compiler found in \$PATH
5520See \`config.log' for more details." >&2;}
5521 { (exit 1); exit 1; }; }
5522
5523# Provide some information about the compiler.
5524echo "$as_me:$LINENO: checking for C compiler version" >&5
5525ac_compiler=`set X $ac_compile; echo $2`
5526{ (ac_try="$ac_compiler --version >&5"
5527case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530esac
5531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compiler --version >&5") 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }
5536{ (ac_try="$ac_compiler -v >&5"
5537case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540esac
5541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compiler -v >&5") 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }
5546{ (ac_try="$ac_compiler -V >&5"
5547case "(($ac_try" in
5548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5550esac
5551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_compiler -V >&5") 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }
5556
5557{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5558echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5559if test "${ac_cv_c_compiler_gnu+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562 cat >conftest.$ac_ext <<_ACEOF
5563/* confdefs.h. */
5564_ACEOF
5565cat confdefs.h >>conftest.$ac_ext
5566cat >>conftest.$ac_ext <<_ACEOF
5567/* end confdefs.h. */
5568
5569int
5570main ()
5571{
5572#ifndef __GNUC__
5573 choke me
5574#endif
5575
5576 ;
5577 return 0;
5578}
5579_ACEOF
5580rm -f conftest.$ac_objext
5581if { (ac_try="$ac_compile"
5582case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585esac
5586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005593 (exit $ac_status); } &&
5594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5595 { (case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5598esac
5599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_try") 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; } &&
5604 { ac_try='test -s conftest.$ac_objext'
5605 { (case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608esac
5609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_try") 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005614 ac_compiler_gnu=yes
5615else
5616 echo "$as_me: failed program was:" >&5
5617sed 's/^/| /' conftest.$ac_ext >&5
5618
5619 ac_compiler_gnu=no
5620fi
5621
5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623ac_cv_c_compiler_gnu=$ac_compiler_gnu
5624
5625fi
5626{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5627echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5628GCC=`test $ac_compiler_gnu = yes && echo yes`
5629ac_test_CFLAGS=${CFLAGS+set}
5630ac_save_CFLAGS=$CFLAGS
5631{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5632echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5633if test "${ac_cv_prog_cc_g+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636 ac_save_c_werror_flag=$ac_c_werror_flag
5637 ac_c_werror_flag=yes
5638 ac_cv_prog_cc_g=no
5639 CFLAGS="-g"
5640 cat >conftest.$ac_ext <<_ACEOF
5641/* confdefs.h. */
5642_ACEOF
5643cat confdefs.h >>conftest.$ac_ext
5644cat >>conftest.$ac_ext <<_ACEOF
5645/* end confdefs.h. */
5646
5647int
5648main ()
5649{
5650
5651 ;
5652 return 0;
5653}
5654_ACEOF
5655rm -f conftest.$ac_objext
5656if { (ac_try="$ac_compile"
5657case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660esac
5661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005668 (exit $ac_status); } &&
5669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5670 { (case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673esac
5674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_try") 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; } &&
5679 { ac_try='test -s conftest.$ac_objext'
5680 { (case "(($ac_try" in
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5683esac
5684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_try") 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005689 ac_cv_prog_cc_g=yes
5690else
5691 echo "$as_me: failed program was:" >&5
5692sed 's/^/| /' conftest.$ac_ext >&5
5693
5694 CFLAGS=""
5695 cat >conftest.$ac_ext <<_ACEOF
5696/* confdefs.h. */
5697_ACEOF
5698cat confdefs.h >>conftest.$ac_ext
5699cat >>conftest.$ac_ext <<_ACEOF
5700/* end confdefs.h. */
5701
5702int
5703main ()
5704{
5705
5706 ;
5707 return 0;
5708}
5709_ACEOF
5710rm -f conftest.$ac_objext
5711if { (ac_try="$ac_compile"
5712case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715esac
5716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005723 (exit $ac_status); } &&
5724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5725 { (case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728esac
5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_try") 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; } &&
5734 { ac_try='test -s conftest.$ac_objext'
5735 { (case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5738esac
5739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_try") 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005744 :
5745else
5746 echo "$as_me: failed program was:" >&5
5747sed 's/^/| /' conftest.$ac_ext >&5
5748
5749 ac_c_werror_flag=$ac_save_c_werror_flag
5750 CFLAGS="-g"
5751 cat >conftest.$ac_ext <<_ACEOF
5752/* confdefs.h. */
5753_ACEOF
5754cat confdefs.h >>conftest.$ac_ext
5755cat >>conftest.$ac_ext <<_ACEOF
5756/* end confdefs.h. */
5757
5758int
5759main ()
5760{
5761
5762 ;
5763 return 0;
5764}
5765_ACEOF
5766rm -f conftest.$ac_objext
5767if { (ac_try="$ac_compile"
5768case "(($ac_try" in
5769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770 *) ac_try_echo=$ac_try;;
5771esac
5772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773 (eval "$ac_compile") 2>conftest.er1
5774 ac_status=$?
5775 grep -v '^ *+' conftest.er1 >conftest.err
5776 rm -f conftest.er1
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005779 (exit $ac_status); } &&
5780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5781 { (case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5784esac
5785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_try") 2>&5
5787 ac_status=$?
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794esac
5795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_try") 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005800 ac_cv_prog_cc_g=yes
5801else
5802 echo "$as_me: failed program was:" >&5
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
5805
5806fi
5807
5808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5809fi
5810
5811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812fi
5813
5814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 ac_c_werror_flag=$ac_save_c_werror_flag
5816fi
5817{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5818echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5819if test "$ac_test_CFLAGS" = set; then
5820 CFLAGS=$ac_save_CFLAGS
5821elif test $ac_cv_prog_cc_g = yes; then
5822 if test "$GCC" = yes; then
5823 CFLAGS="-g -O2"
5824 else
5825 CFLAGS="-g"
5826 fi
5827else
5828 if test "$GCC" = yes; then
5829 CFLAGS="-O2"
5830 else
5831 CFLAGS=
5832 fi
5833fi
5834{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5835echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5836if test "${ac_cv_prog_cc_c89+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838else
5839 ac_cv_prog_cc_c89=no
5840ac_save_CC=$CC
5841cat >conftest.$ac_ext <<_ACEOF
5842/* confdefs.h. */
5843_ACEOF
5844cat confdefs.h >>conftest.$ac_ext
5845cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h. */
5847#include <stdarg.h>
5848#include <stdio.h>
5849#include <sys/types.h>
5850#include <sys/stat.h>
5851/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5852struct buf { int x; };
5853FILE * (*rcsopen) (struct buf *, struct stat *, int);
5854static char *e (p, i)
5855 char **p;
5856 int i;
5857{
5858 return p[i];
5859}
5860static char *f (char * (*g) (char **, int), char **p, ...)
5861{
5862 char *s;
5863 va_list v;
5864 va_start (v,p);
5865 s = g (p, va_arg (v,int));
5866 va_end (v);
5867 return s;
5868}
5869
5870/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5871 function prototypes and stuff, but not '\xHH' hex character constants.
5872 These don't provoke an error unfortunately, instead are silently treated
5873 as 'x'. The following induces an error, until -std is added to get
5874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5875 array size at least. It's necessary to write '\x00'==0 to get something
5876 that's true only with -std. */
5877int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5878
5879/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5880 inside strings and character constants. */
5881#define FOO(x) 'x'
5882int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5883
5884int test (int i, double x);
5885struct s1 {int (*f) (int a);};
5886struct s2 {int (*f) (double a);};
5887int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5888int argc;
5889char **argv;
5890int
5891main ()
5892{
5893return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5894 ;
5895 return 0;
5896}
5897_ACEOF
5898for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5900do
5901 CC="$ac_save_CC $ac_arg"
5902 rm -f conftest.$ac_objext
5903if { (ac_try="$ac_compile"
5904case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907esac
5908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00005915 (exit $ac_status); } &&
5916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5917 { (case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920esac
5921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_try") 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest.$ac_objext'
5927 { (case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930esac
5931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_try") 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005936 ac_cv_prog_cc_c89=$ac_arg
5937else
5938 echo "$as_me: failed program was:" >&5
5939sed 's/^/| /' conftest.$ac_ext >&5
5940
5941
5942fi
5943
5944rm -f core conftest.err conftest.$ac_objext
5945 test "x$ac_cv_prog_cc_c89" != "xno" && break
5946done
5947rm -f conftest.$ac_ext
5948CC=$ac_save_CC
5949
5950fi
5951# AC_CACHE_VAL
5952case "x$ac_cv_prog_cc_c89" in
5953 x)
5954 { echo "$as_me:$LINENO: result: none needed" >&5
5955echo "${ECHO_T}none needed" >&6; } ;;
5956 xno)
5957 { echo "$as_me:$LINENO: result: unsupported" >&5
5958echo "${ECHO_T}unsupported" >&6; } ;;
5959 *)
5960 CC="$CC $ac_cv_prog_cc_c89"
5961 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5962echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5963esac
5964
5965
5966ac_ext=c
5967ac_cpp='$CPP $CPPFLAGS'
5968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5970ac_compiler_gnu=$ac_cv_c_compiler_gnu
5971
5972ac_ext=cpp
5973ac_cpp='$CXXCPP $CPPFLAGS'
5974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5977if test -z "$CXX"; then
5978 if test -n "$CCC"; then
5979 CXX=$CCC
5980 else
5981 if test -n "$ac_tool_prefix"; then
5982 for ac_prog in g++
5983 do
5984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5985set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988if test "${ac_cv_prog_CXX+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991 if test -n "$CXX"; then
5992 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5993else
5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006000 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 +00006001 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005done
6006done
6007IFS=$as_save_IFS
6008
6009fi
6010fi
6011CXX=$ac_cv_prog_CXX
6012if test -n "$CXX"; then
6013 { echo "$as_me:$LINENO: result: $CXX" >&5
6014echo "${ECHO_T}$CXX" >&6; }
6015else
6016 { echo "$as_me:$LINENO: result: no" >&5
6017echo "${ECHO_T}no" >&6; }
6018fi
6019
6020
6021 test -n "$CXX" && break
6022 done
6023fi
6024if test -z "$CXX"; then
6025 ac_ct_CXX=$CXX
6026 for ac_prog in g++
6027do
6028 # Extract the first word of "$ac_prog", so it can be a program name with args.
6029set dummy $ac_prog; ac_word=$2
6030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6032if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6034else
6035 if test -n "$ac_ct_CXX"; then
6036 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6037else
6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006044 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 +00006045 ac_cv_prog_ac_ct_CXX="$ac_prog"
6046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049done
6050done
6051IFS=$as_save_IFS
6052
6053fi
6054fi
6055ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6056if test -n "$ac_ct_CXX"; then
6057 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6058echo "${ECHO_T}$ac_ct_CXX" >&6; }
6059else
6060 { echo "$as_me:$LINENO: result: no" >&5
6061echo "${ECHO_T}no" >&6; }
6062fi
6063
6064
6065 test -n "$ac_ct_CXX" && break
6066done
6067
6068 if test "x$ac_ct_CXX" = x; then
6069 CXX="g++"
6070 else
6071 case $cross_compiling:$ac_tool_warned in
6072yes:)
6073{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6074whose name does not start with the host triplet. If you think this
6075configuration is useful to you, please write to autoconf@gnu.org." >&5
6076echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6077whose name does not start with the host triplet. If you think this
6078configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6079ac_tool_warned=yes ;;
6080esac
6081 CXX=$ac_ct_CXX
6082 fi
6083fi
6084
6085 fi
6086fi
6087# Provide some information about the compiler.
6088echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6089ac_compiler=`set X $ac_compile; echo $2`
6090{ (ac_try="$ac_compiler --version >&5"
6091case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094esac
6095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_compiler --version >&5") 2>&5
6097 ac_status=$?
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); }
6100{ (ac_try="$ac_compiler -v >&5"
6101case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104esac
6105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_compiler -v >&5") 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }
6110{ (ac_try="$ac_compiler -V >&5"
6111case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114esac
6115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compiler -V >&5") 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }
6120
6121{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6122echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6123if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125else
6126 cat >conftest.$ac_ext <<_ACEOF
6127/* confdefs.h. */
6128_ACEOF
6129cat confdefs.h >>conftest.$ac_ext
6130cat >>conftest.$ac_ext <<_ACEOF
6131/* end confdefs.h. */
6132
6133int
6134main ()
6135{
6136#ifndef __GNUC__
6137 choke me
6138#endif
6139
6140 ;
6141 return 0;
6142}
6143_ACEOF
6144rm -f conftest.$ac_objext
6145if { (ac_try="$ac_compile"
6146case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6149esac
6150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_compile") 2>conftest.er1
6152 ac_status=$?
6153 grep -v '^ *+' conftest.er1 >conftest.err
6154 rm -f conftest.er1
6155 cat conftest.err >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006157 (exit $ac_status); } &&
6158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6159 { (case "(($ac_try" in
6160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6161 *) ac_try_echo=$ac_try;;
6162esac
6163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6164 (eval "$ac_try") 2>&5
6165 ac_status=$?
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; } &&
6168 { ac_try='test -s conftest.$ac_objext'
6169 { (case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172esac
6173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_try") 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006178 ac_compiler_gnu=yes
6179else
6180 echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
6183 ac_compiler_gnu=no
6184fi
6185
6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6188
6189fi
6190{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6191echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6192GXX=`test $ac_compiler_gnu = yes && echo yes`
6193ac_test_CXXFLAGS=${CXXFLAGS+set}
6194ac_save_CXXFLAGS=$CXXFLAGS
6195{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6196echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6197if test "${ac_cv_prog_cxx_g+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199else
6200 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6201 ac_cxx_werror_flag=yes
6202 ac_cv_prog_cxx_g=no
6203 CXXFLAGS="-g"
6204 cat >conftest.$ac_ext <<_ACEOF
6205/* confdefs.h. */
6206_ACEOF
6207cat confdefs.h >>conftest.$ac_ext
6208cat >>conftest.$ac_ext <<_ACEOF
6209/* end confdefs.h. */
6210
6211int
6212main ()
6213{
6214
6215 ;
6216 return 0;
6217}
6218_ACEOF
6219rm -f conftest.$ac_objext
6220if { (ac_try="$ac_compile"
6221case "(($ac_try" in
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6224esac
6225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_compile") 2>conftest.er1
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006232 (exit $ac_status); } &&
6233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6234 { (case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237esac
6238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_try") 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; } &&
6243 { ac_try='test -s conftest.$ac_objext'
6244 { (case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247esac
6248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_try") 2>&5
6250 ac_status=$?
6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006253 ac_cv_prog_cxx_g=yes
6254else
6255 echo "$as_me: failed program was:" >&5
6256sed 's/^/| /' conftest.$ac_ext >&5
6257
6258 CXXFLAGS=""
6259 cat >conftest.$ac_ext <<_ACEOF
6260/* confdefs.h. */
6261_ACEOF
6262cat confdefs.h >>conftest.$ac_ext
6263cat >>conftest.$ac_ext <<_ACEOF
6264/* end confdefs.h. */
6265
6266int
6267main ()
6268{
6269
6270 ;
6271 return 0;
6272}
6273_ACEOF
6274rm -f conftest.$ac_objext
6275if { (ac_try="$ac_compile"
6276case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279esac
6280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_compile") 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6289 { (case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_try") 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest.$ac_objext'
6299 { (case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302esac
6303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_try") 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006308 :
6309else
6310 echo "$as_me: failed program was:" >&5
6311sed 's/^/| /' conftest.$ac_ext >&5
6312
6313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6314 CXXFLAGS="-g"
6315 cat >conftest.$ac_ext <<_ACEOF
6316/* confdefs.h. */
6317_ACEOF
6318cat confdefs.h >>conftest.$ac_ext
6319cat >>conftest.$ac_ext <<_ACEOF
6320/* end confdefs.h. */
6321
6322int
6323main ()
6324{
6325
6326 ;
6327 return 0;
6328}
6329_ACEOF
6330rm -f conftest.$ac_objext
6331if { (ac_try="$ac_compile"
6332case "(($ac_try" in
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6335esac
6336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_compile") 2>conftest.er1
6338 ac_status=$?
6339 grep -v '^ *+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00006343 (exit $ac_status); } &&
6344 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6345 { (case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6348esac
6349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_try") 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6358esac
6359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_try") 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006364 ac_cv_prog_cxx_g=yes
6365else
6366 echo "$as_me: failed program was:" >&5
6367sed 's/^/| /' conftest.$ac_ext >&5
6368
6369
6370fi
6371
6372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373fi
6374
6375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376fi
6377
6378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6380fi
6381{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6382echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6383if test "$ac_test_CXXFLAGS" = set; then
6384 CXXFLAGS=$ac_save_CXXFLAGS
6385elif test $ac_cv_prog_cxx_g = yes; then
6386 if test "$GXX" = yes; then
6387 CXXFLAGS="-g -O2"
6388 else
6389 CXXFLAGS="-g"
6390 fi
6391else
6392 if test "$GXX" = yes; then
6393 CXXFLAGS="-O2"
6394 else
6395 CXXFLAGS=
6396 fi
6397fi
6398ac_ext=c
6399ac_cpp='$CPP $CPPFLAGS'
6400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6402ac_compiler_gnu=$ac_cv_c_compiler_gnu
6403
Reid Spencera773bd52006-08-04 18:18:08 +00006404
6405{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6406echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6407if test "${lt_cv_path_NM+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6409else
6410 if test -n "$NM"; then
6411 # Let the user override the test.
6412 lt_cv_path_NM="$NM"
6413else
6414 lt_nm_to_check="${ac_tool_prefix}nm"
6415 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6416 lt_nm_to_check="$lt_nm_to_check nm"
6417 fi
6418 for lt_tmp_nm in $lt_nm_to_check; do
6419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6420 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6421 IFS="$lt_save_ifs"
6422 test -z "$ac_dir" && ac_dir=.
6423 tmp_nm="$ac_dir/$lt_tmp_nm"
6424 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6425 # Check to see if the nm accepts a BSD-compat flag.
6426 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6427 # nm: unknown option "B" ignored
6428 # Tru64's nm complains that /dev/null is an invalid object file
6429 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6430 */dev/null* | *'Invalid file or object type'*)
6431 lt_cv_path_NM="$tmp_nm -B"
6432 break
6433 ;;
6434 *)
6435 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6436 */dev/null*)
6437 lt_cv_path_NM="$tmp_nm -p"
6438 break
6439 ;;
6440 *)
6441 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6442 continue # so that we can try to find one that supports BSD flags
6443 ;;
6444 esac
6445 ;;
6446 esac
6447 fi
6448 done
6449 IFS="$lt_save_ifs"
6450 done
6451 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6452fi
6453fi
6454{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6455echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6456NM="$lt_cv_path_NM"
6457
6458
6459
6460{ echo "$as_me:$LINENO: checking for GNU make" >&5
6461echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6462if test "${llvm_cv_gnu_make_command+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464else
6465 llvm_cv_gnu_make_command=''
6466 for a in "$MAKE" make gmake gnumake ; do
6467 if test -z "$a" ; then continue ; fi ;
6468 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6469 then
6470 llvm_cv_gnu_make_command=$a ;
6471 break;
6472 fi
6473 done
6474fi
6475{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6476echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6477 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6478 ifGNUmake='' ;
6479 else
6480 ifGNUmake='#' ;
6481 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6482echo "${ECHO_T}\"Not found\"" >&6; };
6483 fi
6484
6485
6486{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6487echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6488LN_S=$as_ln_s
6489if test "$LN_S" = "ln -s"; then
6490 { echo "$as_me:$LINENO: result: yes" >&5
6491echo "${ECHO_T}yes" >&6; }
6492else
6493 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6494echo "${ECHO_T}no, using $LN_S" >&6; }
6495fi
6496
6497# Extract the first word of "cmp", so it can be a program name with args.
6498set dummy cmp; ac_word=$2
6499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6501if test "${ac_cv_path_CMP+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503else
6504 case $CMP in
6505 [\\/]* | ?:[\\/]*)
6506 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6507 ;;
6508 *)
6509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510for as_dir in $PATH
6511do
6512 IFS=$as_save_IFS
6513 test -z "$as_dir" && as_dir=.
6514 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006515 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 +00006516 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 break 2
6519 fi
6520done
6521done
6522IFS=$as_save_IFS
6523
6524 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6525 ;;
6526esac
6527fi
6528CMP=$ac_cv_path_CMP
6529if test -n "$CMP"; then
6530 { echo "$as_me:$LINENO: result: $CMP" >&5
6531echo "${ECHO_T}$CMP" >&6; }
6532else
6533 { echo "$as_me:$LINENO: result: no" >&5
6534echo "${ECHO_T}no" >&6; }
6535fi
6536
6537
6538# Extract the first word of "cp", so it can be a program name with args.
6539set dummy cp; ac_word=$2
6540{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542if test "${ac_cv_path_CP+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545 case $CP in
6546 [\\/]* | ?:[\\/]*)
6547 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6548 ;;
6549 *)
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006556 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 +00006557 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 break 2
6560 fi
6561done
6562done
6563IFS=$as_save_IFS
6564
6565 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6566 ;;
6567esac
6568fi
6569CP=$ac_cv_path_CP
6570if test -n "$CP"; then
6571 { echo "$as_me:$LINENO: result: $CP" >&5
6572echo "${ECHO_T}$CP" >&6; }
6573else
6574 { echo "$as_me:$LINENO: result: no" >&5
6575echo "${ECHO_T}no" >&6; }
6576fi
6577
6578
6579# Extract the first word of "date", so it can be a program name with args.
6580set dummy date; ac_word=$2
6581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6583if test "${ac_cv_path_DATE+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585else
6586 case $DATE in
6587 [\\/]* | ?:[\\/]*)
6588 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6589 ;;
6590 *)
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594 IFS=$as_save_IFS
6595 test -z "$as_dir" && as_dir=.
6596 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006597 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 +00006598 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 break 2
6601 fi
6602done
6603done
6604IFS=$as_save_IFS
6605
6606 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6607 ;;
6608esac
6609fi
6610DATE=$ac_cv_path_DATE
6611if test -n "$DATE"; then
6612 { echo "$as_me:$LINENO: result: $DATE" >&5
6613echo "${ECHO_T}$DATE" >&6; }
6614else
6615 { echo "$as_me:$LINENO: result: no" >&5
6616echo "${ECHO_T}no" >&6; }
6617fi
6618
6619
6620# Extract the first word of "find", so it can be a program name with args.
6621set dummy find; ac_word=$2
6622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624if test "${ac_cv_path_FIND+set}" = set; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626else
6627 case $FIND in
6628 [\\/]* | ?:[\\/]*)
6629 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6630 ;;
6631 *)
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006638 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 +00006639 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643done
6644done
6645IFS=$as_save_IFS
6646
6647 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6648 ;;
6649esac
6650fi
6651FIND=$ac_cv_path_FIND
6652if test -n "$FIND"; then
6653 { echo "$as_me:$LINENO: result: $FIND" >&5
6654echo "${ECHO_T}$FIND" >&6; }
6655else
6656 { echo "$as_me:$LINENO: result: no" >&5
6657echo "${ECHO_T}no" >&6; }
6658fi
6659
6660
6661# Extract the first word of "grep", so it can be a program name with args.
6662set dummy grep; ac_word=$2
6663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665if test "${ac_cv_path_GREP+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6667else
6668 case $GREP in
6669 [\\/]* | ?:[\\/]*)
6670 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6671 ;;
6672 *)
6673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6674for as_dir in $PATH
6675do
6676 IFS=$as_save_IFS
6677 test -z "$as_dir" && as_dir=.
6678 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006679 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 +00006680 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6682 break 2
6683 fi
6684done
6685done
6686IFS=$as_save_IFS
6687
6688 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6689 ;;
6690esac
6691fi
6692GREP=$ac_cv_path_GREP
6693if test -n "$GREP"; then
6694 { echo "$as_me:$LINENO: result: $GREP" >&5
6695echo "${ECHO_T}$GREP" >&6; }
6696else
6697 { echo "$as_me:$LINENO: result: no" >&5
6698echo "${ECHO_T}no" >&6; }
6699fi
6700
6701
6702# Extract the first word of "mkdir", so it can be a program name with args.
6703set dummy mkdir; ac_word=$2
6704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6706if test "${ac_cv_path_MKDIR+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709 case $MKDIR in
6710 [\\/]* | ?:[\\/]*)
6711 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6712 ;;
6713 *)
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006720 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 +00006721 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725done
6726done
6727IFS=$as_save_IFS
6728
6729 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6730 ;;
6731esac
6732fi
6733MKDIR=$ac_cv_path_MKDIR
6734if test -n "$MKDIR"; then
6735 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6736echo "${ECHO_T}$MKDIR" >&6; }
6737else
6738 { echo "$as_me:$LINENO: result: no" >&5
6739echo "${ECHO_T}no" >&6; }
6740fi
6741
6742
6743# Extract the first word of "mv", so it can be a program name with args.
6744set dummy mv; ac_word=$2
6745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747if test "${ac_cv_path_MV+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6749else
6750 case $MV in
6751 [\\/]* | ?:[\\/]*)
6752 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6753 ;;
6754 *)
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756for as_dir in $PATH
6757do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006761 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 +00006762 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766done
6767done
6768IFS=$as_save_IFS
6769
6770 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6771 ;;
6772esac
6773fi
6774MV=$ac_cv_path_MV
6775if test -n "$MV"; then
6776 { echo "$as_me:$LINENO: result: $MV" >&5
6777echo "${ECHO_T}$MV" >&6; }
6778else
6779 { echo "$as_me:$LINENO: result: no" >&5
6780echo "${ECHO_T}no" >&6; }
6781fi
6782
6783
6784if test -n "$ac_tool_prefix"; then
6785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6786set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6787{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789if test "${ac_cv_prog_RANLIB+set}" = set; then
6790 echo $ECHO_N "(cached) $ECHO_C" >&6
6791else
6792 if test -n "$RANLIB"; then
6793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6794else
6795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796for as_dir in $PATH
6797do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006801 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 +00006802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806done
6807done
6808IFS=$as_save_IFS
6809
6810fi
6811fi
6812RANLIB=$ac_cv_prog_RANLIB
6813if test -n "$RANLIB"; then
6814 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6815echo "${ECHO_T}$RANLIB" >&6; }
6816else
6817 { echo "$as_me:$LINENO: result: no" >&5
6818echo "${ECHO_T}no" >&6; }
6819fi
6820
6821
6822fi
6823if test -z "$ac_cv_prog_RANLIB"; then
6824 ac_ct_RANLIB=$RANLIB
6825 # Extract the first word of "ranlib", so it can be a program name with args.
6826set dummy ranlib; ac_word=$2
6827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6831else
6832 if test -n "$ac_ct_RANLIB"; then
6833 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6834else
6835as_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_prog_ac_ct_RANLIB="ranlib"
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
6850fi
6851fi
6852ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6853if test -n "$ac_ct_RANLIB"; then
6854 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6855echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6856else
6857 { echo "$as_me:$LINENO: result: no" >&5
6858echo "${ECHO_T}no" >&6; }
6859fi
6860
6861 if test "x$ac_ct_RANLIB" = x; then
6862 RANLIB=":"
6863 else
6864 case $cross_compiling:$ac_tool_warned in
6865yes:)
6866{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6867whose name does not start with the host triplet. If you think this
6868configuration is useful to you, please write to autoconf@gnu.org." >&5
6869echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6870whose name does not start with the host triplet. If you think this
6871configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6872ac_tool_warned=yes ;;
6873esac
6874 RANLIB=$ac_ct_RANLIB
6875 fi
6876else
6877 RANLIB="$ac_cv_prog_RANLIB"
6878fi
6879
6880# Extract the first word of "rm", so it can be a program name with args.
6881set dummy rm; ac_word=$2
6882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884if test "${ac_cv_path_RM+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886else
6887 case $RM in
6888 [\\/]* | ?:[\\/]*)
6889 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6890 ;;
6891 *)
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893for as_dir in $PATH
6894do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006898 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 +00006899 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6902 fi
6903done
6904done
6905IFS=$as_save_IFS
6906
6907 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6908 ;;
6909esac
6910fi
6911RM=$ac_cv_path_RM
6912if test -n "$RM"; then
6913 { echo "$as_me:$LINENO: result: $RM" >&5
6914echo "${ECHO_T}$RM" >&6; }
6915else
6916 { echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6; }
6918fi
6919
6920
6921# Extract the first word of "sed", so it can be a program name with args.
6922set dummy sed; ac_word=$2
6923{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925if test "${ac_cv_path_SED+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6927else
6928 case $SED in
6929 [\\/]* | ?:[\\/]*)
6930 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6931 ;;
6932 *)
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934for as_dir in $PATH
6935do
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006939 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 +00006940 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6943 fi
6944done
6945done
6946IFS=$as_save_IFS
6947
6948 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6949 ;;
6950esac
6951fi
6952SED=$ac_cv_path_SED
6953if test -n "$SED"; then
6954 { echo "$as_me:$LINENO: result: $SED" >&5
6955echo "${ECHO_T}$SED" >&6; }
6956else
6957 { echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6; }
6959fi
6960
6961
6962# Extract the first word of "tar", so it can be a program name with args.
6963set dummy tar; ac_word=$2
6964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966if test "${ac_cv_path_TAR+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968else
6969 case $TAR in
6970 [\\/]* | ?:[\\/]*)
6971 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6972 ;;
6973 *)
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975for as_dir in $PATH
6976do
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00006980 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 +00006981 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6984 fi
6985done
6986done
6987IFS=$as_save_IFS
6988
6989 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6990 ;;
6991esac
6992fi
6993TAR=$ac_cv_path_TAR
6994if test -n "$TAR"; then
6995 { echo "$as_me:$LINENO: result: $TAR" >&5
6996echo "${ECHO_T}$TAR" >&6; }
6997else
6998 { echo "$as_me:$LINENO: result: no" >&5
6999echo "${ECHO_T}no" >&6; }
7000fi
7001
7002
7003# Extract the first word of "pwd", so it can be a program name with args.
7004set dummy pwd; ac_word=$2
7005{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7007if test "${ac_cv_path_BINPWD+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009else
7010 case $BINPWD in
7011 [\\/]* | ?:[\\/]*)
7012 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7013 ;;
7014 *)
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016for as_dir in $PATH
7017do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007021 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 +00007022 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026done
7027done
7028IFS=$as_save_IFS
7029
7030 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7031 ;;
7032esac
7033fi
7034BINPWD=$ac_cv_path_BINPWD
7035if test -n "$BINPWD"; then
7036 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7037echo "${ECHO_T}$BINPWD" >&6; }
7038else
7039 { echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6; }
7041fi
7042
7043
7044
7045# Extract the first word of "Graphviz", so it can be a program name with args.
7046set dummy Graphviz; ac_word=$2
7047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7051else
7052 case $GRAPHVIZ in
7053 [\\/]* | ?:[\\/]*)
7054 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7055 ;;
7056 *)
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7058for as_dir in $PATH
7059do
7060 IFS=$as_save_IFS
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007063 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 +00007064 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7066 break 2
7067 fi
7068done
7069done
7070IFS=$as_save_IFS
7071
7072 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7073 ;;
7074esac
7075fi
7076GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7077if test -n "$GRAPHVIZ"; then
7078 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7079echo "${ECHO_T}$GRAPHVIZ" >&6; }
7080else
7081 { echo "$as_me:$LINENO: result: no" >&5
7082echo "${ECHO_T}no" >&6; }
7083fi
7084
7085
7086if test "$GRAPHVIZ" != "echo Graphviz" ; then
7087
7088cat >>confdefs.h <<\_ACEOF
7089#define HAVE_GRAPHVIZ 1
7090_ACEOF
7091
Jeff Cohen28783c32007-01-12 18:22:38 +00007092 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007093 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7094 fi
7095
7096cat >>confdefs.h <<_ACEOF
7097#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7098_ACEOF
7099
7100fi
7101# Extract the first word of "dot", so it can be a program name with args.
7102set dummy dot; ac_word=$2
7103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105if test "${ac_cv_path_DOT+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7107else
7108 case $DOT in
7109 [\\/]* | ?:[\\/]*)
7110 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7111 ;;
7112 *)
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116 IFS=$as_save_IFS
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007119 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 +00007120 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122 break 2
7123 fi
7124done
7125done
7126IFS=$as_save_IFS
7127
7128 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7129 ;;
7130esac
7131fi
7132DOT=$ac_cv_path_DOT
7133if test -n "$DOT"; then
7134 { echo "$as_me:$LINENO: result: $DOT" >&5
7135echo "${ECHO_T}$DOT" >&6; }
7136else
7137 { echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6; }
7139fi
7140
7141
7142if test "$DOT" != "echo dot" ; then
7143
7144cat >>confdefs.h <<\_ACEOF
7145#define HAVE_DOT 1
7146_ACEOF
7147
Jeff Cohen28783c32007-01-12 18:22:38 +00007148 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007149 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7150 fi
7151
7152cat >>confdefs.h <<_ACEOF
7153#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7154_ACEOF
7155
7156fi
7157for ac_prog in gv gsview32
7158do
7159 # Extract the first word of "$ac_prog", so it can be a program name with args.
7160set dummy $ac_prog; ac_word=$2
7161{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163if test "${ac_cv_path_GV+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165else
7166 case $GV in
7167 [\\/]* | ?:[\\/]*)
7168 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7169 ;;
7170 *)
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007177 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 +00007178 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 break 2
7181 fi
7182done
7183done
7184IFS=$as_save_IFS
7185
7186 ;;
7187esac
7188fi
7189GV=$ac_cv_path_GV
7190if test -n "$GV"; then
7191 { echo "$as_me:$LINENO: result: $GV" >&5
7192echo "${ECHO_T}$GV" >&6; }
7193else
7194 { echo "$as_me:$LINENO: result: no" >&5
7195echo "${ECHO_T}no" >&6; }
7196fi
7197
7198
7199 test -n "$GV" && break
7200done
7201test -n "$GV" || GV="echo gv"
7202
7203if test "$GV" != "echo gv" ; then
7204
7205cat >>confdefs.h <<\_ACEOF
7206#define HAVE_GV 1
7207_ACEOF
7208
Jeff Cohen28783c32007-01-12 18:22:38 +00007209 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007210 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7211 fi
7212
7213cat >>confdefs.h <<_ACEOF
7214#define LLVM_PATH_GV "$GV${EXEEXT}"
7215_ACEOF
7216
7217fi
7218# Extract the first word of "dotty", so it can be a program name with args.
7219set dummy dotty; ac_word=$2
7220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7222if test "${ac_cv_path_DOTTY+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7224else
7225 case $DOTTY in
7226 [\\/]* | ?:[\\/]*)
7227 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7228 ;;
7229 *)
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007236 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 +00007237 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7240 fi
7241done
7242done
7243IFS=$as_save_IFS
7244
7245 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7246 ;;
7247esac
7248fi
7249DOTTY=$ac_cv_path_DOTTY
7250if test -n "$DOTTY"; then
7251 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7252echo "${ECHO_T}$DOTTY" >&6; }
7253else
7254 { echo "$as_me:$LINENO: result: no" >&5
7255echo "${ECHO_T}no" >&6; }
7256fi
7257
7258
7259if test "$DOTTY" != "echo dotty" ; then
7260
7261cat >>confdefs.h <<\_ACEOF
7262#define HAVE_DOTTY 1
7263_ACEOF
7264
Jeff Cohen28783c32007-01-12 18:22:38 +00007265 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007266 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7267 fi
7268
7269cat >>confdefs.h <<_ACEOF
7270#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7271_ACEOF
7272
7273fi
7274
7275
7276# Extract the first word of "perl", so it can be a program name with args.
7277set dummy perl; ac_word=$2
7278{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280if test "${ac_cv_path_PERL+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282else
7283 case $PERL in
7284 [\\/]* | ?:[\\/]*)
7285 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7286 ;;
7287 *)
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007294 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 +00007295 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299done
7300done
7301IFS=$as_save_IFS
7302
7303 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7304 ;;
7305esac
7306fi
7307PERL=$ac_cv_path_PERL
7308if test -n "$PERL"; then
7309 { echo "$as_me:$LINENO: result: $PERL" >&5
7310echo "${ECHO_T}$PERL" >&6; }
7311else
7312 { echo "$as_me:$LINENO: result: no" >&5
7313echo "${ECHO_T}no" >&6; }
7314fi
7315
7316
7317if test "$PERL" != "none"; then
7318 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7319echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7320 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7321 { echo "$as_me:$LINENO: result: yes" >&5
7322echo "${ECHO_T}yes" >&6; }
7323 else
7324 PERL=none
7325 { echo "$as_me:$LINENO: result: not found" >&5
7326echo "${ECHO_T}not found" >&6; }
7327 fi
7328fi
7329
7330
7331if test x"$PERL" = xnone; then
7332 HAVE_PERL=0
7333
Reid Spencer59807fa2007-05-17 18:11:03 +00007334 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7335echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7336 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007337else
7338 HAVE_PERL=1
7339
7340fi
7341
7342# Find a good install program. We prefer a C program (faster),
7343# so one script is as good as another. But avoid the broken or
7344# incompatible versions:
7345# SysV /etc/install, /usr/sbin/install
7346# SunOS /usr/etc/install
7347# IRIX /sbin/install
7348# AIX /bin/install
7349# AmigaOS /C/install, which installs bootblocks on floppy discs
7350# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7351# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7352# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7353# OS/2's system install, which has a completely different semantic
7354# ./install, which can be erroneously created by make from ./install.sh.
7355{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7356echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7357if test -z "$INSTALL"; then
7358if test "${ac_cv_path_install+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7360else
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 # Account for people who put trailing slashes in PATH elements.
7367case $as_dir/ in
7368 ./ | .// | /cC/* | \
7369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7370 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7371 /usr/ucb/* ) ;;
7372 *)
7373 # OSF1 and SCO ODT 3.0 have their own names for install.
7374 # Don't use installbsd from OSF since it installs stuff as root
7375 # by default.
7376 for ac_prog in ginstall scoinst install; do
7377 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007378 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 +00007379 if test $ac_prog = install &&
7380 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7381 # AIX install. It has an incompatible calling convention.
7382 :
7383 elif test $ac_prog = install &&
7384 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7385 # program-specific install script used by HP pwplus--don't use.
7386 :
7387 else
7388 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7389 break 3
7390 fi
7391 fi
7392 done
7393 done
7394 ;;
7395esac
7396done
7397IFS=$as_save_IFS
7398
7399
7400fi
7401 if test "${ac_cv_path_install+set}" = set; then
7402 INSTALL=$ac_cv_path_install
7403 else
7404 # As a last resort, use the slow shell script. Don't cache a
7405 # value for INSTALL within a source directory, because that will
7406 # break other packages using the cache if that directory is
7407 # removed, or if the value is a relative name.
7408 INSTALL=$ac_install_sh
7409 fi
7410fi
7411{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7412echo "${ECHO_T}$INSTALL" >&6; }
7413
7414# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7415# It thinks the first close brace ends the variable substitution.
7416test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7417
7418test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7419
7420test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7421
7422
7423# Extract the first word of "bzip2", so it can be a program name with args.
7424set dummy bzip2; ac_word=$2
7425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7427if test "${ac_cv_path_BZIP2+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
7430 case $BZIP2 in
7431 [\\/]* | ?:[\\/]*)
7432 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7433 ;;
7434 *)
7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438 IFS=$as_save_IFS
7439 test -z "$as_dir" && as_dir=.
7440 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007441 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 +00007442 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7444 break 2
7445 fi
7446done
7447done
7448IFS=$as_save_IFS
7449
Reid Spencera773bd52006-08-04 18:18:08 +00007450 ;;
7451esac
7452fi
7453BZIP2=$ac_cv_path_BZIP2
7454if test -n "$BZIP2"; then
7455 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7456echo "${ECHO_T}$BZIP2" >&6; }
7457else
7458 { echo "$as_me:$LINENO: result: no" >&5
7459echo "${ECHO_T}no" >&6; }
7460fi
7461
7462
7463# Extract the first word of "doxygen", so it can be a program name with args.
7464set dummy doxygen; 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_DOXYGEN+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469else
7470 case $DOXYGEN in
7471 [\\/]* | ?:[\\/]*)
7472 ac_cv_path_DOXYGEN="$DOXYGEN" # 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_DOXYGEN="$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
Reid Spencera773bd52006-08-04 18:18:08 +00007490 ;;
7491esac
7492fi
7493DOXYGEN=$ac_cv_path_DOXYGEN
7494if test -n "$DOXYGEN"; then
7495 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7496echo "${ECHO_T}$DOXYGEN" >&6; }
7497else
7498 { echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6; }
7500fi
7501
7502
Reid Spencera773bd52006-08-04 18:18:08 +00007503# Extract the first word of "groff", so it can be a program name with args.
7504set dummy groff; ac_word=$2
7505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507if test "${ac_cv_path_GROFF+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 case $GROFF in
7511 [\\/]* | ?:[\\/]*)
7512 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7513 ;;
7514 *)
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007521 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 +00007522 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526done
7527done
7528IFS=$as_save_IFS
7529
Reid Spencera773bd52006-08-04 18:18:08 +00007530 ;;
7531esac
7532fi
7533GROFF=$ac_cv_path_GROFF
7534if test -n "$GROFF"; then
7535 { echo "$as_me:$LINENO: result: $GROFF" >&5
7536echo "${ECHO_T}$GROFF" >&6; }
7537else
7538 { echo "$as_me:$LINENO: result: no" >&5
7539echo "${ECHO_T}no" >&6; }
7540fi
7541
7542
7543# Extract the first word of "gzip", so it can be a program name with args.
7544set dummy gzip; ac_word=$2
7545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547if test "${ac_cv_path_GZIP+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7549else
7550 case $GZIP in
7551 [\\/]* | ?:[\\/]*)
7552 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7553 ;;
7554 *)
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007561 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 +00007562 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566done
7567done
7568IFS=$as_save_IFS
7569
Reid Spencera773bd52006-08-04 18:18:08 +00007570 ;;
7571esac
7572fi
7573GZIP=$ac_cv_path_GZIP
7574if test -n "$GZIP"; then
7575 { echo "$as_me:$LINENO: result: $GZIP" >&5
7576echo "${ECHO_T}$GZIP" >&6; }
7577else
7578 { echo "$as_me:$LINENO: result: no" >&5
7579echo "${ECHO_T}no" >&6; }
7580fi
7581
7582
7583# Extract the first word of "pod2html", so it can be a program name with args.
7584set dummy pod2html; ac_word=$2
7585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7587if test "${ac_cv_path_POD2HTML+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7589else
7590 case $POD2HTML in
7591 [\\/]* | ?:[\\/]*)
7592 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7593 ;;
7594 *)
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007601 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 +00007602 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7605 fi
7606done
7607done
7608IFS=$as_save_IFS
7609
Reid Spencera773bd52006-08-04 18:18:08 +00007610 ;;
7611esac
7612fi
7613POD2HTML=$ac_cv_path_POD2HTML
7614if test -n "$POD2HTML"; then
7615 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7616echo "${ECHO_T}$POD2HTML" >&6; }
7617else
7618 { echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6; }
7620fi
7621
7622
7623# Extract the first word of "pod2man", so it can be a program name with args.
7624set dummy pod2man; ac_word=$2
7625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7627if test "${ac_cv_path_POD2MAN+set}" = set; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630 case $POD2MAN in
7631 [\\/]* | ?:[\\/]*)
7632 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7633 ;;
7634 *)
7635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007641 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 +00007642 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646done
7647done
7648IFS=$as_save_IFS
7649
Reid Spencera773bd52006-08-04 18:18:08 +00007650 ;;
7651esac
7652fi
7653POD2MAN=$ac_cv_path_POD2MAN
7654if test -n "$POD2MAN"; then
7655 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7656echo "${ECHO_T}$POD2MAN" >&6; }
7657else
7658 { echo "$as_me:$LINENO: result: no" >&5
7659echo "${ECHO_T}no" >&6; }
7660fi
7661
7662
7663# Extract the first word of "runtest", so it can be a program name with args.
7664set dummy runtest; ac_word=$2
7665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667if test "${ac_cv_path_RUNTEST+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670 case $RUNTEST in
7671 [\\/]* | ?:[\\/]*)
7672 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7673 ;;
7674 *)
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676for as_dir in $PATH
7677do
7678 IFS=$as_save_IFS
7679 test -z "$as_dir" && as_dir=.
7680 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007681 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 +00007682 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7684 break 2
7685 fi
7686done
7687done
7688IFS=$as_save_IFS
7689
Reid Spencera773bd52006-08-04 18:18:08 +00007690 ;;
7691esac
7692fi
7693RUNTEST=$ac_cv_path_RUNTEST
7694if test -n "$RUNTEST"; then
7695 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7696echo "${ECHO_T}$RUNTEST" >&6; }
7697else
7698 { echo "$as_me:$LINENO: result: no" >&5
7699echo "${ECHO_T}no" >&6; }
7700fi
7701
7702
7703
7704no_itcl=true
7705{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7706echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7707
7708# Check whether --with-tclinclude was given.
7709if test "${with_tclinclude+set}" = set; then
7710 withval=$with_tclinclude; with_tclinclude=${withval}
7711else
7712 with_tclinclude=''
7713fi
7714
7715if test "${ac_cv_path_tclsh+set}" = set; then
7716 echo $ECHO_N "(cached) $ECHO_C" >&6
7717else
7718
7719if test x"${with_tclinclude}" != x ; then
7720 if test -f ${with_tclinclude}/tclsh ; then
7721 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7722 elif test -f ${with_tclinclude}/src/tclsh ; then
7723 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7724 else
7725 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7726echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7727 { (exit 1); exit 1; }; }
7728 fi
7729fi
7730
7731if test x"${ac_cv_path_tclsh}" = x ; then
7732 { echo "$as_me:$LINENO: result: none" >&5
7733echo "${ECHO_T}none" >&6; }
7734 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
7735do
7736 # Extract the first word of "$ac_prog", so it can be a program name with args.
7737set dummy $ac_prog; ac_word=$2
7738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7740if test "${ac_cv_path_TCLSH+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742else
7743 case $TCLSH in
7744 [\\/]* | ?:[\\/]*)
7745 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7746 ;;
7747 *)
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749for as_dir in $PATH
7750do
7751 IFS=$as_save_IFS
7752 test -z "$as_dir" && as_dir=.
7753 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007754 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 +00007755 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 break 2
7758 fi
7759done
7760done
7761IFS=$as_save_IFS
7762
7763 ;;
7764esac
7765fi
7766TCLSH=$ac_cv_path_TCLSH
7767if test -n "$TCLSH"; then
7768 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7769echo "${ECHO_T}$TCLSH" >&6; }
7770else
7771 { echo "$as_me:$LINENO: result: no" >&5
7772echo "${ECHO_T}no" >&6; }
7773fi
7774
7775
7776 test -n "$TCLSH" && break
7777done
7778
7779 if test x"${TCLSH}" = x ; then
7780 ac_cv_path_tclsh='';
7781 else
7782 ac_cv_path_tclsh="${TCLSH}";
7783 fi
7784else
7785 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7786echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7787 TCLSH="${ac_cv_path_tclsh}"
7788
7789fi
7790
7791fi
7792
7793# Extract the first word of "zip", so it can be a program name with args.
7794set dummy zip; ac_word=$2
7795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7797if test "${ac_cv_path_ZIP+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7799else
7800 case $ZIP in
7801 [\\/]* | ?:[\\/]*)
7802 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7803 ;;
7804 *)
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806for as_dir in $PATH
7807do
7808 IFS=$as_save_IFS
7809 test -z "$as_dir" && as_dir=.
7810 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007811 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 +00007812 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 break 2
7815 fi
7816done
7817done
7818IFS=$as_save_IFS
7819
Reid Spencera773bd52006-08-04 18:18:08 +00007820 ;;
7821esac
7822fi
7823ZIP=$ac_cv_path_ZIP
7824if test -n "$ZIP"; then
7825 { echo "$as_me:$LINENO: result: $ZIP" >&5
7826echo "${ECHO_T}$ZIP" >&6; }
7827else
7828 { echo "$as_me:$LINENO: result: no" >&5
7829echo "${ECHO_T}no" >&6; }
7830fi
7831
7832
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007833for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007834do
7835 # Extract the first word of "$ac_prog", so it can be a program name with args.
7836set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007837{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7839if test "${ac_cv_path_OCAMLC+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842 case $OCAMLC in
7843 [\\/]* | ?:[\\/]*)
7844 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7845 ;;
7846 *)
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848for as_dir in $PATH
7849do
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007853 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 +00007854 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 break 2
7857 fi
7858done
7859done
7860IFS=$as_save_IFS
7861
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007862 ;;
7863esac
7864fi
7865OCAMLC=$ac_cv_path_OCAMLC
7866if test -n "$OCAMLC"; then
7867 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7868echo "${ECHO_T}$OCAMLC" >&6; }
7869else
7870 { echo "$as_me:$LINENO: result: no" >&5
7871echo "${ECHO_T}no" >&6; }
7872fi
7873
7874
Gordon Henriksene7072162008-03-07 18:20:01 +00007875 test -n "$OCAMLC" && break
7876done
7877
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007878for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007879do
7880 # Extract the first word of "$ac_prog", so it can be a program name with args.
7881set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7884if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7885 echo $ECHO_N "(cached) $ECHO_C" >&6
7886else
7887 case $OCAMLOPT in
7888 [\\/]* | ?:[\\/]*)
7889 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7890 ;;
7891 *)
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893for as_dir in $PATH
7894do
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007898 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 +00007899 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7901 break 2
7902 fi
7903done
7904done
7905IFS=$as_save_IFS
7906
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007907 ;;
7908esac
7909fi
7910OCAMLOPT=$ac_cv_path_OCAMLOPT
7911if test -n "$OCAMLOPT"; then
7912 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7913echo "${ECHO_T}$OCAMLOPT" >&6; }
7914else
7915 { echo "$as_me:$LINENO: result: no" >&5
7916echo "${ECHO_T}no" >&6; }
7917fi
7918
7919
Gordon Henriksene7072162008-03-07 18:20:01 +00007920 test -n "$OCAMLOPT" && break
7921done
7922
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007923for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007924do
7925 # Extract the first word of "$ac_prog", so it can be a program name with args.
7926set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7929if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7930 echo $ECHO_N "(cached) $ECHO_C" >&6
7931else
7932 case $OCAMLDEP in
7933 [\\/]* | ?:[\\/]*)
7934 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7935 ;;
7936 *)
7937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938for as_dir in $PATH
7939do
7940 IFS=$as_save_IFS
7941 test -z "$as_dir" && as_dir=.
7942 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007943 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 +00007944 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7946 break 2
7947 fi
7948done
7949done
7950IFS=$as_save_IFS
7951
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007952 ;;
7953esac
7954fi
7955OCAMLDEP=$ac_cv_path_OCAMLDEP
7956if test -n "$OCAMLDEP"; then
7957 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7958echo "${ECHO_T}$OCAMLDEP" >&6; }
7959else
7960 { echo "$as_me:$LINENO: result: no" >&5
7961echo "${ECHO_T}no" >&6; }
7962fi
7963
7964
Gordon Henriksene7072162008-03-07 18:20:01 +00007965 test -n "$OCAMLDEP" && break
7966done
7967
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007968for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007969do
7970 # Extract the first word of "$ac_prog", so it can be a program name with args.
7971set dummy $ac_prog; ac_word=$2
7972{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7974if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976else
7977 case $OCAMLDOC in
7978 [\\/]* | ?:[\\/]*)
7979 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7980 ;;
7981 *)
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00007988 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 +00007989 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993done
7994done
7995IFS=$as_save_IFS
7996
7997 ;;
7998esac
7999fi
8000OCAMLDOC=$ac_cv_path_OCAMLDOC
8001if test -n "$OCAMLDOC"; then
8002 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8003echo "${ECHO_T}$OCAMLDOC" >&6; }
8004else
8005 { echo "$as_me:$LINENO: result: no" >&5
8006echo "${ECHO_T}no" >&6; }
8007fi
8008
8009
8010 test -n "$OCAMLDOC" && break
8011done
8012
Torok Edwincc499a42008-10-22 09:56:27 +00008013for ac_prog in gas as
8014do
8015 # Extract the first word of "$ac_prog", so it can be a program name with args.
8016set dummy $ac_prog; ac_word=$2
8017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8019if test "${ac_cv_path_GAS+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8021else
8022 case $GAS in
8023 [\\/]* | ?:[\\/]*)
8024 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8025 ;;
8026 *)
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
8032 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +00008033 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 +00008034 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 break 2
8037 fi
8038done
8039done
8040IFS=$as_save_IFS
8041
8042 ;;
8043esac
8044fi
8045GAS=$ac_cv_path_GAS
8046if test -n "$GAS"; then
8047 { echo "$as_me:$LINENO: result: $GAS" >&5
8048echo "${ECHO_T}$GAS" >&6; }
8049else
8050 { echo "$as_me:$LINENO: result: no" >&5
8051echo "${ECHO_T}no" >&6; }
8052fi
8053
8054
8055 test -n "$GAS" && break
8056done
8057
Reid Spencera773bd52006-08-04 18:18:08 +00008058
8059{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8060echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8061if test "${llvm_cv_link_use_r+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8063else
8064 ac_ext=c
8065ac_cpp='$CPP $CPPFLAGS'
8066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8068ac_compiler_gnu=$ac_cv_c_compiler_gnu
8069
8070 oldcflags="$CFLAGS"
8071 CFLAGS="$CFLAGS -Wl,-R."
8072 cat >conftest.$ac_ext <<_ACEOF
8073/* confdefs.h. */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h. */
8078
8079int
8080main ()
8081{
8082int main() { return 0; }
8083 ;
8084 return 0;
8085}
8086_ACEOF
8087rm -f conftest.$ac_objext conftest$ac_exeext
8088if { (ac_try="$ac_link"
8089case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8092esac
8093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8094 (eval "$ac_link") 2>conftest.er1
8095 ac_status=$?
8096 grep -v '^ *+' conftest.er1 >conftest.err
8097 rm -f conftest.er1
8098 cat conftest.err >&5
8099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008100 (exit $ac_status); } &&
8101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8102 { (case "(($ac_try" in
8103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8105esac
8106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_try") 2>&5
8108 ac_status=$?
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); }; } &&
8111 { ac_try='test -s conftest$ac_exeext'
8112 { (case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_try") 2>&5
8118 ac_status=$?
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008121 llvm_cv_link_use_r=yes
8122else
8123 echo "$as_me: failed program was:" >&5
8124sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 llvm_cv_link_use_r=no
8127fi
8128
Bill Wendlingebcceee2009-04-18 11:20:33 +00008129rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008130 conftest$ac_exeext conftest.$ac_ext
8131 CFLAGS="$oldcflags"
8132 ac_ext=c
8133ac_cpp='$CPP $CPPFLAGS'
8134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136ac_compiler_gnu=$ac_cv_c_compiler_gnu
8137
8138
8139fi
8140{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8141echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8142if test "$llvm_cv_link_use_r" = yes ; then
8143
8144cat >>confdefs.h <<\_ACEOF
8145#define HAVE_LINK_R 1
8146_ACEOF
8147
8148 fi
8149
8150
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008151{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8152echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8153if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8155else
8156 ac_ext=c
8157ac_cpp='$CPP $CPPFLAGS'
8158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8160ac_compiler_gnu=$ac_cv_c_compiler_gnu
8161
8162 oldcflags="$CFLAGS"
8163 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8164 cat >conftest.$ac_ext <<_ACEOF
8165/* confdefs.h. */
8166_ACEOF
8167cat confdefs.h >>conftest.$ac_ext
8168cat >>conftest.$ac_ext <<_ACEOF
8169/* end confdefs.h. */
8170
8171int
8172main ()
8173{
8174int main() { return 0; }
8175 ;
8176 return 0;
8177}
8178_ACEOF
8179rm -f conftest.$ac_objext conftest$ac_exeext
8180if { (ac_try="$ac_link"
8181case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184esac
8185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_link") 2>conftest.er1
8187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008192 (exit $ac_status); } &&
8193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8194 { (case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197esac
8198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_try") 2>&5
8200 ac_status=$?
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); }; } &&
8203 { ac_try='test -s conftest$ac_exeext'
8204 { (case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207esac
8208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_try") 2>&5
8210 ac_status=$?
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008213 llvm_cv_link_use_export_dynamic=yes
8214else
8215 echo "$as_me: failed program was:" >&5
8216sed 's/^/| /' conftest.$ac_ext >&5
8217
8218 llvm_cv_link_use_export_dynamic=no
8219fi
8220
Bill Wendlingebcceee2009-04-18 11:20:33 +00008221rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008222 conftest$ac_exeext conftest.$ac_ext
8223 CFLAGS="$oldcflags"
8224 ac_ext=c
8225ac_cpp='$CPP $CPPFLAGS'
8226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228ac_compiler_gnu=$ac_cv_c_compiler_gnu
8229
8230
8231fi
8232{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8233echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8234if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8235
8236cat >>confdefs.h <<\_ACEOF
8237#define HAVE_LINK_EXPORT_DYNAMIC 1
8238_ACEOF
8239
8240 fi
8241
8242
Reid Spencera773bd52006-08-04 18:18:08 +00008243
8244
8245{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8246echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8247if test "${ac_cv_c_const+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8249else
8250 cat >conftest.$ac_ext <<_ACEOF
8251/* confdefs.h. */
8252_ACEOF
8253cat confdefs.h >>conftest.$ac_ext
8254cat >>conftest.$ac_ext <<_ACEOF
8255/* end confdefs.h. */
8256
8257int
8258main ()
8259{
8260/* FIXME: Include the comments suggested by Paul. */
8261#ifndef __cplusplus
8262 /* Ultrix mips cc rejects this. */
8263 typedef int charset[2];
Bill Wendlingebcceee2009-04-18 11:20:33 +00008264 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008265 /* SunOS 4.1.1 cc rejects this. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008266 char const *const *ccp;
8267 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008268 /* NEC SVR4.0.2 mips cc rejects this. */
8269 struct point {int x, y;};
8270 static struct point const zero = {0,0};
8271 /* AIX XL C 1.02.0.0 rejects this.
8272 It does not let you subtract one const X* pointer from another in
8273 an arm of an if-expression whose if-part is not a constant
8274 expression */
8275 const char *g = "string";
Bill Wendlingebcceee2009-04-18 11:20:33 +00008276 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008277 /* HPUX 7.0 cc rejects these. */
Bill Wendlingebcceee2009-04-18 11:20:33 +00008278 ++ccp;
8279 p = (char**) ccp;
8280 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008281 { /* SCO 3.2v4 cc rejects this. */
8282 char *t;
8283 char const *s = 0 ? (char *) 0 : (char const *) 0;
8284
8285 *t++ = 0;
8286 if (s) return 0;
8287 }
8288 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8289 int x[] = {25, 17};
8290 const int *foo = &x[0];
8291 ++foo;
8292 }
8293 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8294 typedef const int *iptr;
8295 iptr p = 0;
8296 ++p;
8297 }
8298 { /* AIX XL C 1.02.0.0 rejects this saying
8299 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8300 struct s { int j; const int *ap[3]; };
8301 struct s *b; b->j = 5;
8302 }
8303 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8304 const int foo = 10;
8305 if (!foo) return 0;
8306 }
Bill Wendlingebcceee2009-04-18 11:20:33 +00008307 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008308#endif
8309
8310 ;
8311 return 0;
8312}
8313_ACEOF
8314rm -f conftest.$ac_objext
8315if { (ac_try="$ac_compile"
8316case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8319esac
8320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_compile") 2>conftest.er1
8322 ac_status=$?
8323 grep -v '^ *+' conftest.er1 >conftest.err
8324 rm -f conftest.er1
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008327 (exit $ac_status); } &&
8328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8329 { (case "(($ac_try" in
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8332esac
8333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_try") 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); }; } &&
8338 { ac_try='test -s conftest.$ac_objext'
8339 { (case "(($ac_try" in
8340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8341 *) ac_try_echo=$ac_try;;
8342esac
8343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8344 (eval "$ac_try") 2>&5
8345 ac_status=$?
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008348 ac_cv_c_const=yes
8349else
8350 echo "$as_me: failed program was:" >&5
8351sed 's/^/| /' conftest.$ac_ext >&5
8352
8353 ac_cv_c_const=no
8354fi
8355
8356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357fi
8358{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8359echo "${ECHO_T}$ac_cv_c_const" >&6; }
8360if test $ac_cv_c_const = no; then
8361
8362cat >>confdefs.h <<\_ACEOF
8363#define const
8364_ACEOF
8365
8366fi
8367
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008368
8369
8370
8371
8372
8373ac_header_dirent=no
8374for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8375 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008376{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8377echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008379 echo $ECHO_N "(cached) $ECHO_C" >&6
8380else
8381 cat >conftest.$ac_ext <<_ACEOF
8382/* confdefs.h. */
8383_ACEOF
8384cat confdefs.h >>conftest.$ac_ext
8385cat >>conftest.$ac_ext <<_ACEOF
8386/* end confdefs.h. */
8387#include <sys/types.h>
8388#include <$ac_hdr>
8389
8390int
8391main ()
8392{
8393if ((DIR *) 0)
8394return 0;
8395 ;
8396 return 0;
8397}
8398_ACEOF
8399rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008400if { (ac_try="$ac_compile"
8401case "(($ac_try" in
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8404esac
8405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008407 ac_status=$?
8408 grep -v '^ *+' conftest.er1 >conftest.err
8409 rm -f conftest.er1
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8414 { (case "(($ac_try" in
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8417esac
8418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419 (eval "$ac_try") 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; } &&
8423 { ac_try='test -s conftest.$ac_objext'
8424 { (case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8427esac
8428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_try") 2>&5
8430 ac_status=$?
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008433 eval "$as_ac_Header=yes"
8434else
8435 echo "$as_me: failed program was:" >&5
8436sed 's/^/| /' conftest.$ac_ext >&5
8437
Reid Spencera773bd52006-08-04 18:18:08 +00008438 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008439fi
Reid Spencera773bd52006-08-04 18:18:08 +00008440
8441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008442fi
Reid Spencera773bd52006-08-04 18:18:08 +00008443ac_res=`eval echo '${'$as_ac_Header'}'`
8444 { echo "$as_me:$LINENO: result: $ac_res" >&5
8445echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008446if test `eval echo '${'$as_ac_Header'}'` = yes; then
8447 cat >>confdefs.h <<_ACEOF
8448#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8449_ACEOF
8450
8451ac_header_dirent=$ac_hdr; break
8452fi
8453
8454done
8455# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8456if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008457 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8458echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008459if test "${ac_cv_search_opendir+set}" = set; then
8460 echo $ECHO_N "(cached) $ECHO_C" >&6
8461else
8462 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008463cat >conftest.$ac_ext <<_ACEOF
8464/* confdefs.h. */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h. */
8469
Reid Spencera773bd52006-08-04 18:18:08 +00008470/* Override any GCC internal prototype to avoid an error.
8471 Use char because int might match the return type of a GCC
8472 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008473#ifdef __cplusplus
8474extern "C"
8475#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008476char opendir ();
8477int
8478main ()
8479{
Reid Spencera773bd52006-08-04 18:18:08 +00008480return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008481 ;
8482 return 0;
8483}
8484_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008485for ac_lib in '' dir; do
8486 if test -z "$ac_lib"; then
8487 ac_res="none required"
8488 else
8489 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008491 fi
8492 rm -f conftest.$ac_objext conftest$ac_exeext
8493if { (ac_try="$ac_link"
8494case "(($ac_try" in
8495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8496 *) ac_try_echo=$ac_try;;
8497esac
8498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8499 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008500 ac_status=$?
8501 grep -v '^ *+' conftest.er1 >conftest.err
8502 rm -f conftest.er1
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008505 (exit $ac_status); } &&
8506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8507 { (case "(($ac_try" in
8508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8509 *) ac_try_echo=$ac_try;;
8510esac
8511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8512 (eval "$ac_try") 2>&5
8513 ac_status=$?
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); }; } &&
8516 { ac_try='test -s conftest$ac_exeext'
8517 { (case "(($ac_try" in
8518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8519 *) ac_try_echo=$ac_try;;
8520esac
8521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522 (eval "$ac_try") 2>&5
8523 ac_status=$?
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008526 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008527else
8528 echo "$as_me: failed program was:" >&5
8529sed 's/^/| /' conftest.$ac_ext >&5
8530
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008531
8532fi
8533
Bill Wendlingebcceee2009-04-18 11:20:33 +00008534rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008535 conftest$ac_exeext
8536 if test "${ac_cv_search_opendir+set}" = set; then
8537 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008538fi
John Criswell7a73b802003-06-30 21:59:07 +00008539done
Reid Spencera773bd52006-08-04 18:18:08 +00008540if test "${ac_cv_search_opendir+set}" = set; then
8541 :
8542else
8543 ac_cv_search_opendir=no
8544fi
8545rm conftest.$ac_ext
8546LIBS=$ac_func_search_save_LIBS
8547fi
8548{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8549echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8550ac_res=$ac_cv_search_opendir
8551if test "$ac_res" != no; then
8552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008553
Reid Spencera773bd52006-08-04 18:18:08 +00008554fi
8555
8556else
8557 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8558echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8559if test "${ac_cv_search_opendir+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561else
8562 ac_func_search_save_LIBS=$LIBS
8563cat >conftest.$ac_ext <<_ACEOF
8564/* confdefs.h. */
8565_ACEOF
8566cat confdefs.h >>conftest.$ac_ext
8567cat >>conftest.$ac_ext <<_ACEOF
8568/* end confdefs.h. */
8569
8570/* Override any GCC internal prototype to avoid an error.
8571 Use char because int might match the return type of a GCC
8572 builtin and then its argument prototype would still apply. */
8573#ifdef __cplusplus
8574extern "C"
8575#endif
8576char opendir ();
8577int
8578main ()
8579{
8580return opendir ();
8581 ;
8582 return 0;
8583}
8584_ACEOF
8585for ac_lib in '' x; do
8586 if test -z "$ac_lib"; then
8587 ac_res="none required"
8588 else
8589 ac_res=-l$ac_lib
8590 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8591 fi
8592 rm -f conftest.$ac_objext conftest$ac_exeext
8593if { (ac_try="$ac_link"
8594case "(($ac_try" in
8595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8597esac
8598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_link") 2>conftest.er1
8600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008605 (exit $ac_status); } &&
8606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8607 { (case "(($ac_try" in
8608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8609 *) ac_try_echo=$ac_try;;
8610esac
8611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8612 (eval "$ac_try") 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (case "(($ac_try" in
8618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8619 *) ac_try_echo=$ac_try;;
8620esac
8621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8622 (eval "$ac_try") 2>&5
8623 ac_status=$?
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008626 ac_cv_search_opendir=$ac_res
8627else
8628 echo "$as_me: failed program was:" >&5
8629sed 's/^/| /' conftest.$ac_ext >&5
8630
8631
8632fi
8633
Bill Wendlingebcceee2009-04-18 11:20:33 +00008634rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008635 conftest$ac_exeext
8636 if test "${ac_cv_search_opendir+set}" = set; then
8637 break
8638fi
8639done
8640if test "${ac_cv_search_opendir+set}" = set; then
8641 :
8642else
8643 ac_cv_search_opendir=no
8644fi
8645rm conftest.$ac_ext
8646LIBS=$ac_func_search_save_LIBS
8647fi
8648{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8649echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8650ac_res=$ac_cv_search_opendir
8651if test "$ac_res" != no; then
8652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8653
8654fi
8655
8656fi
John Criswell7a73b802003-06-30 21:59:07 +00008657
8658
8659for ac_header in dlfcn.h
8660do
8661as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8664echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008666 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008667fi
Reid Spencera773bd52006-08-04 18:18:08 +00008668ac_res=`eval echo '${'$as_ac_Header'}'`
8669 { echo "$as_me:$LINENO: result: $ac_res" >&5
8670echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008671else
Brian Gaeke0a621332004-09-08 20:38:05 +00008672 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008673{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8674echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008675cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008676/* confdefs.h. */
8677_ACEOF
8678cat confdefs.h >>conftest.$ac_ext
8679cat >>conftest.$ac_ext <<_ACEOF
8680/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008681$ac_includes_default
8682#include <$ac_header>
8683_ACEOF
8684rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008685if { (ac_try="$ac_compile"
8686case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8689esac
8690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008692 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008693 grep -v '^ *+' conftest.er1 >conftest.err
8694 rm -f conftest.er1
8695 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008697 (exit $ac_status); } &&
8698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8699 { (case "(($ac_try" in
8700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8701 *) ac_try_echo=$ac_try;;
8702esac
8703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8704 (eval "$ac_try") 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; } &&
8708 { ac_try='test -s conftest.$ac_objext'
8709 { (case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8712esac
8713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_try") 2>&5
8715 ac_status=$?
8716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008718 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008719else
8720 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008721sed 's/^/| /' conftest.$ac_ext >&5
8722
Reid Spencera773bd52006-08-04 18:18:08 +00008723 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008724fi
Reid Spencera773bd52006-08-04 18:18:08 +00008725
8726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8727{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8728echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008729
8730# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008731{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8732echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008733cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008734/* confdefs.h. */
8735_ACEOF
8736cat confdefs.h >>conftest.$ac_ext
8737cat >>conftest.$ac_ext <<_ACEOF
8738/* end confdefs.h. */
8739#include <$ac_header>
8740_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008741if { (ac_try="$ac_cpp conftest.$ac_ext"
8742case "(($ac_try" in
8743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744 *) ac_try_echo=$ac_try;;
8745esac
8746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008748 ac_status=$?
8749 grep -v '^ *+' conftest.er1 >conftest.err
8750 rm -f conftest.er1
8751 cat conftest.err >&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00008753 (exit $ac_status); } >/dev/null; then
8754 if test -s conftest.err; then
8755 ac_cpp_err=$ac_c_preproc_warn_flag
8756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8757 else
8758 ac_cpp_err=
8759 fi
8760else
8761 ac_cpp_err=yes
8762fi
8763if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008764 ac_header_preproc=yes
8765else
8766 echo "$as_me: failed program was:" >&5
8767sed 's/^/| /' conftest.$ac_ext >&5
8768
8769 ac_header_preproc=no
8770fi
Reid Spencera773bd52006-08-04 18:18:08 +00008771
Brian Gaeke0a621332004-09-08 20:38:05 +00008772rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008773{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8774echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008775
8776# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008777case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8778 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8780echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8782echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8783 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008784 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008785 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8787echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8789echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8791echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8793echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8795echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8797echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008798 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008799## ----------------------------------- ##
8800## Report this to llvmbugs@cs.uiuc.edu ##
8801## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008802_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008803 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008804 ;;
8805esac
Reid Spencera773bd52006-08-04 18:18:08 +00008806{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008809 echo $ECHO_N "(cached) $ECHO_C" >&6
8810else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008811 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008812fi
Reid Spencera773bd52006-08-04 18:18:08 +00008813ac_res=`eval echo '${'$as_ac_Header'}'`
8814 { echo "$as_me:$LINENO: result: $ac_res" >&5
8815echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008816
8817fi
John Criswell7a73b802003-06-30 21:59:07 +00008818if test `eval echo '${'$as_ac_Header'}'` = yes; then
8819 cat >>confdefs.h <<_ACEOF
8820#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8821_ACEOF
8822
8823fi
8824
8825done
8826
Reid Spencera773bd52006-08-04 18:18:08 +00008827# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008828if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008829 enableval=$enable_ltdl_install;
8830fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008831
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008832
Bill Wendlingebcceee2009-04-18 11:20:33 +00008833
8834
8835if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008836 INSTALL_LTDL_TRUE=
8837 INSTALL_LTDL_FALSE='#'
8838else
8839 INSTALL_LTDL_TRUE='#'
8840 INSTALL_LTDL_FALSE=
8841fi
8842
Bill Wendlingebcceee2009-04-18 11:20:33 +00008843
8844
8845if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008846 CONVENIENCE_LTDL_TRUE=
8847 CONVENIENCE_LTDL_FALSE='#'
8848else
8849 CONVENIENCE_LTDL_TRUE='#'
8850 CONVENIENCE_LTDL_FALSE=
8851fi
8852
8853
Reid Spencera773bd52006-08-04 18:18:08 +00008854{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8855echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008856library_names_spec=
8857libname_spec='lib$name'
8858soname_spec=
8859shrext_cmds=".so"
8860postinstall_cmds=
8861postuninstall_cmds=
8862finish_cmds=
8863finish_eval=
8864shlibpath_var=
8865shlibpath_overrides_runpath=unknown
8866version_type=none
8867dynamic_linker="$host_os ld.so"
8868sys_lib_dlsearch_path_spec="/lib /usr/lib"
8869if test "$GCC" = yes; then
8870 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8871 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8872 # if the path contains ";" then we assume it to be the separator
8873 # otherwise default to the standard path separator (i.e. ":") - it is
8874 # assumed that no part of a normal pathname contains ";" but that should
8875 # okay in the real world where ";" in dirpaths is itself problematic.
8876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8877 else
8878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8879 fi
8880else
8881 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8882fi
8883need_lib_prefix=unknown
8884hardcode_into_libs=no
8885
8886# when you set need_version to no, make sure it does not cause -set_version
8887# flags to be left without arguments
8888need_version=unknown
8889
8890case $host_os in
8891aix3*)
8892 version_type=linux
8893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8894 shlibpath_var=LIBPATH
8895
8896 # AIX 3 has no versioning support, so we append a major version to the name.
8897 soname_spec='${libname}${release}${shared_ext}$major'
8898 ;;
8899
8900aix4* | aix5*)
8901 version_type=linux
8902 need_lib_prefix=no
8903 need_version=no
8904 hardcode_into_libs=yes
8905 if test "$host_cpu" = ia64; then
8906 # AIX 5 supports IA64
8907 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8908 shlibpath_var=LD_LIBRARY_PATH
8909 else
8910 # With GCC up to 2.95.x, collect2 would create an import file
8911 # for dependence libraries. The import file would start with
8912 # the line `#! .'. This would cause the generated library to
8913 # depend on `.', always an invalid library. This was fixed in
8914 # development snapshots of GCC prior to 3.0.
8915 case $host_os in
8916 aix4 | aix4.[01] | aix4.[01].*)
8917 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8918 echo ' yes '
8919 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8920 :
8921 else
8922 can_build_shared=no
8923 fi
8924 ;;
8925 esac
8926 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8927 # soname into executable. Probably we can add versioning support to
8928 # collect2, so additional links can be useful in future.
8929 if test "$aix_use_runtimelinking" = yes; then
8930 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8931 # instead of lib<name>.a to let people know that these are not
8932 # typical AIX shared libraries.
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934 else
8935 # We preserve .a as extension for shared libraries through AIX4.2
8936 # and later when we are not doing run time linking.
8937 library_names_spec='${libname}${release}.a $libname.a'
8938 soname_spec='${libname}${release}${shared_ext}$major'
8939 fi
8940 shlibpath_var=LIBPATH
8941 fi
8942 ;;
8943
8944amigaos*)
8945 library_names_spec='$libname.ixlibrary $libname.a'
8946 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8947 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'
8948 ;;
8949
8950beos*)
8951 library_names_spec='${libname}${shared_ext}'
8952 dynamic_linker="$host_os ld.so"
8953 shlibpath_var=LIBRARY_PATH
8954 ;;
8955
8956bsdi[45]*)
8957 version_type=linux
8958 need_version=no
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8960 soname_spec='${libname}${release}${shared_ext}$major'
8961 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8964 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8965 # the default ld.so.conf also contains /usr/contrib/lib and
8966 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8967 # libtool to hard-code these into programs
8968 ;;
8969
8970cygwin* | mingw* | pw32*)
8971 version_type=windows
8972 shrext_cmds=".dll"
8973 need_version=no
8974 need_lib_prefix=no
8975
8976 case $GCC,$host_os in
8977 yes,cygwin* | yes,mingw* | yes,pw32*)
8978 library_names_spec='$libname.dll.a'
8979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8980 postinstall_cmds='base_file=`basename \${file}`~
8981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8982 dldir=$destdir/`dirname \$dlpath`~
8983 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008984 $install_prog $dir/$dlname \$dldir/$dlname~
8985 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008986 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8987 dlpath=$dir/\$dldll~
8988 $rm \$dlpath'
8989 shlibpath_overrides_runpath=yes
8990
8991 case $host_os in
8992 cygwin*)
8993 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8994 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8995 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8996 ;;
8997 mingw*)
8998 # MinGW DLLs use traditional 'lib' prefix
8999 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9000 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9001 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9002 # It is most probably a Windows format PATH printed by
9003 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9004 # path with ; separators, and with drive letters. We can handle the
9005 # drive letters (cygwin fileutils understands them), so leave them,
9006 # especially as we might pass files found there to a mingw objdump,
9007 # which wouldn't understand a cygwinified path. Ahh.
9008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9009 else
9010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9011 fi
9012 ;;
9013 pw32*)
9014 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009015 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 +00009016 ;;
9017 esac
9018 ;;
9019
9020 *)
9021 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9022 ;;
9023 esac
9024 dynamic_linker='Win32 ld.exe'
9025 # FIXME: first we should search . and the directory the executable is in
9026 shlibpath_var=PATH
9027 ;;
9028
9029darwin* | rhapsody*)
9030 dynamic_linker="$host_os dyld"
9031 version_type=darwin
9032 need_lib_prefix=no
9033 need_version=no
9034 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9035 soname_spec='${libname}${release}${major}$shared_ext'
9036 shlibpath_overrides_runpath=yes
9037 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009038 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009039 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9040 if test "$GCC" = yes; then
9041 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"`
9042 else
9043 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9044 fi
9045 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9046 ;;
9047
9048dgux*)
9049 version_type=linux
9050 need_lib_prefix=no
9051 need_version=no
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9053 soname_spec='${libname}${release}${shared_ext}$major'
9054 shlibpath_var=LD_LIBRARY_PATH
9055 ;;
9056
9057freebsd1*)
9058 dynamic_linker=no
9059 ;;
9060
9061kfreebsd*-gnu)
9062 version_type=linux
9063 need_lib_prefix=no
9064 need_version=no
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9066 soname_spec='${libname}${release}${shared_ext}$major'
9067 shlibpath_var=LD_LIBRARY_PATH
9068 shlibpath_overrides_runpath=no
9069 hardcode_into_libs=yes
9070 dynamic_linker='GNU ld.so'
9071 ;;
9072
Reid Spencera773bd52006-08-04 18:18:08 +00009073freebsd* | dragonfly*)
9074 # DragonFly does not have aout. When/if they implement a new
9075 # versioning mechanism, adjust this.
9076 if test -x /usr/bin/objformat; then
9077 objformat=`/usr/bin/objformat`
9078 else
9079 case $host_os in
9080 freebsd[123]*) objformat=aout ;;
9081 *) objformat=elf ;;
9082 esac
9083 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009084 version_type=freebsd-$objformat
9085 case $version_type in
9086 freebsd-elf*)
9087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9088 need_version=no
9089 need_lib_prefix=no
9090 ;;
9091 freebsd-*)
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9093 need_version=yes
9094 ;;
9095 esac
9096 shlibpath_var=LD_LIBRARY_PATH
9097 case $host_os in
9098 freebsd2*)
9099 shlibpath_overrides_runpath=yes
9100 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009101 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009102 shlibpath_overrides_runpath=yes
9103 hardcode_into_libs=yes
9104 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009105 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9106 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009107 shlibpath_overrides_runpath=no
9108 hardcode_into_libs=yes
9109 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009110 freebsd*) # from 4.6 on
9111 shlibpath_overrides_runpath=yes
9112 hardcode_into_libs=yes
9113 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009114 esac
9115 ;;
9116
9117gnu*)
9118 version_type=linux
9119 need_lib_prefix=no
9120 need_version=no
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 hardcode_into_libs=yes
9125 ;;
9126
9127hpux9* | hpux10* | hpux11*)
9128 # Give a soname corresponding to the major version so that dld.sl refuses to
9129 # link against other versions.
9130 version_type=sunos
9131 need_lib_prefix=no
9132 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009133 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009134 ia64*)
9135 shrext_cmds='.so'
9136 hardcode_into_libs=yes
9137 dynamic_linker="$host_os dld.so"
9138 shlibpath_var=LD_LIBRARY_PATH
9139 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 if test "X$HPUX_IA64_MODE" = X32; then
9143 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9144 else
9145 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9146 fi
9147 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9148 ;;
9149 hppa*64*)
9150 shrext_cmds='.sl'
9151 hardcode_into_libs=yes
9152 dynamic_linker="$host_os dld.sl"
9153 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9159 ;;
9160 *)
9161 shrext_cmds='.sl'
9162 dynamic_linker="$host_os dld.sl"
9163 shlibpath_var=SHLIB_PATH
9164 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9166 soname_spec='${libname}${release}${shared_ext}$major'
9167 ;;
9168 esac
9169 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9170 postinstall_cmds='chmod 555 $lib'
9171 ;;
9172
Reid Spencera773bd52006-08-04 18:18:08 +00009173interix3*)
9174 version_type=linux
9175 need_lib_prefix=no
9176 need_version=no
9177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9178 soname_spec='${libname}${release}${shared_ext}$major'
9179 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9180 shlibpath_var=LD_LIBRARY_PATH
9181 shlibpath_overrides_runpath=no
9182 hardcode_into_libs=yes
9183 ;;
9184
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009185irix5* | irix6* | nonstopux*)
9186 case $host_os in
9187 nonstopux*) version_type=nonstopux ;;
9188 *)
9189 if test "$lt_cv_prog_gnu_ld" = yes; then
9190 version_type=linux
9191 else
9192 version_type=irix
9193 fi ;;
9194 esac
9195 need_lib_prefix=no
9196 need_version=no
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9199 case $host_os in
9200 irix5* | nonstopux*)
9201 libsuff= shlibsuff=
9202 ;;
9203 *)
9204 case $LD in # libtool.m4 will add one of these switches to LD
9205 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9206 libsuff= shlibsuff= libmagic=32-bit;;
9207 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9208 libsuff=32 shlibsuff=N32 libmagic=N32;;
9209 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9210 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9211 *) libsuff= shlibsuff= libmagic=never-match;;
9212 esac
9213 ;;
9214 esac
9215 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9216 shlibpath_overrides_runpath=no
9217 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9218 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9219 hardcode_into_libs=yes
9220 ;;
9221
9222# No shared lib support for Linux oldld, aout, or coff.
9223linux*oldld* | linux*aout* | linux*coff*)
9224 dynamic_linker=no
9225 ;;
9226
9227# This must be Linux ELF.
9228linux*)
9229 version_type=linux
9230 need_lib_prefix=no
9231 need_version=no
9232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec='${libname}${release}${shared_ext}$major'
9234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 shlibpath_overrides_runpath=no
9237 # This implies no fast_install, which is unacceptable.
9238 # Some rework will be needed to allow for fast_install
9239 # before this can be enabled.
9240 hardcode_into_libs=yes
9241
9242 # Append ld.so.conf contents to the search path
9243 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009244 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 +00009245 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9246 fi
9247
9248 # We used to test for /lib/ld.so.1 and disable shared libraries on
9249 # powerpc, because MkLinux only supported shared libraries with the
9250 # GNU dynamic linker. Since this was broken with cross compilers,
9251 # most powerpc-linux boxes support dynamic linking these days and
9252 # people can always --disable-shared, the test was removed, and we
9253 # assume the GNU/Linux dynamic linker is in use.
9254 dynamic_linker='GNU/Linux ld.so'
9255 ;;
9256
9257knetbsd*-gnu)
9258 version_type=linux
9259 need_lib_prefix=no
9260 need_version=no
9261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9262 soname_spec='${libname}${release}${shared_ext}$major'
9263 shlibpath_var=LD_LIBRARY_PATH
9264 shlibpath_overrides_runpath=no
9265 hardcode_into_libs=yes
9266 dynamic_linker='GNU ld.so'
9267 ;;
9268
9269netbsd*)
9270 version_type=sunos
9271 need_lib_prefix=no
9272 need_version=no
9273 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9276 dynamic_linker='NetBSD (a.out) ld.so'
9277 else
9278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9279 soname_spec='${libname}${release}${shared_ext}$major'
9280 dynamic_linker='NetBSD ld.elf_so'
9281 fi
9282 shlibpath_var=LD_LIBRARY_PATH
9283 shlibpath_overrides_runpath=yes
9284 hardcode_into_libs=yes
9285 ;;
9286
9287newsos6)
9288 version_type=linux
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 shlibpath_overrides_runpath=yes
9292 ;;
9293
9294nto-qnx*)
9295 version_type=linux
9296 need_lib_prefix=no
9297 need_version=no
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 shlibpath_overrides_runpath=yes
9302 ;;
9303
9304openbsd*)
9305 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009306 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009307 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009308 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9309 case $host_os in
9310 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9311 *) need_version=no ;;
9312 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9315 shlibpath_var=LD_LIBRARY_PATH
9316 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9317 case $host_os in
9318 openbsd2.[89] | openbsd2.[89].*)
9319 shlibpath_overrides_runpath=no
9320 ;;
9321 *)
9322 shlibpath_overrides_runpath=yes
9323 ;;
9324 esac
9325 else
9326 shlibpath_overrides_runpath=yes
9327 fi
9328 ;;
9329
9330os2*)
9331 libname_spec='$name'
9332 shrext_cmds=".dll"
9333 need_lib_prefix=no
9334 library_names_spec='$libname${shared_ext} $libname.a'
9335 dynamic_linker='OS/2 ld.exe'
9336 shlibpath_var=LIBPATH
9337 ;;
9338
9339osf3* | osf4* | osf5*)
9340 version_type=osf
9341 need_lib_prefix=no
9342 need_version=no
9343 soname_spec='${libname}${release}${shared_ext}$major'
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9345 shlibpath_var=LD_LIBRARY_PATH
9346 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9347 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9348 ;;
9349
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009350solaris*)
9351 version_type=linux
9352 need_lib_prefix=no
9353 need_version=no
9354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9355 soname_spec='${libname}${release}${shared_ext}$major'
9356 shlibpath_var=LD_LIBRARY_PATH
9357 shlibpath_overrides_runpath=yes
9358 hardcode_into_libs=yes
9359 # ldd complains unless libraries are executable
9360 postinstall_cmds='chmod +x $lib'
9361 ;;
9362
9363sunos4*)
9364 version_type=sunos
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9366 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 shlibpath_overrides_runpath=yes
9369 if test "$with_gnu_ld" = yes; then
9370 need_lib_prefix=no
9371 fi
9372 need_version=yes
9373 ;;
9374
Reid Spencera773bd52006-08-04 18:18:08 +00009375sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009376 version_type=linux
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378 soname_spec='${libname}${release}${shared_ext}$major'
9379 shlibpath_var=LD_LIBRARY_PATH
9380 case $host_vendor in
9381 sni)
9382 shlibpath_overrides_runpath=no
9383 need_lib_prefix=no
9384 export_dynamic_flag_spec='${wl}-Blargedynsym'
9385 runpath_var=LD_RUN_PATH
9386 ;;
9387 siemens)
9388 need_lib_prefix=no
9389 ;;
9390 motorola)
9391 need_lib_prefix=no
9392 need_version=no
9393 shlibpath_overrides_runpath=no
9394 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9395 ;;
9396 esac
9397 ;;
9398
9399sysv4*MP*)
9400 if test -d /usr/nec ;then
9401 version_type=linux
9402 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9403 soname_spec='$libname${shared_ext}.$major'
9404 shlibpath_var=LD_LIBRARY_PATH
9405 fi
9406 ;;
9407
Reid Spencera773bd52006-08-04 18:18:08 +00009408sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9409 version_type=freebsd-elf
9410 need_lib_prefix=no
9411 need_version=no
9412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9413 soname_spec='${libname}${release}${shared_ext}$major'
9414 shlibpath_var=LD_LIBRARY_PATH
9415 hardcode_into_libs=yes
9416 if test "$with_gnu_ld" = yes; then
9417 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9418 shlibpath_overrides_runpath=no
9419 else
9420 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9421 shlibpath_overrides_runpath=yes
9422 case $host_os in
9423 sco3.2v5*)
9424 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9425 ;;
9426 esac
9427 fi
9428 sys_lib_dlsearch_path_spec='/usr/lib'
9429 ;;
9430
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009431uts4*)
9432 version_type=linux
9433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 ;;
9437
9438*)
9439 dynamic_linker=no
9440 ;;
9441esac
Reid Spencera773bd52006-08-04 18:18:08 +00009442{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9443echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009444test "$dynamic_linker" = no && can_build_shared=no
9445
Reid Spencera773bd52006-08-04 18:18:08 +00009446variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9447if test "$GCC" = yes; then
9448 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9449fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009450
Reid Spencera773bd52006-08-04 18:18:08 +00009451
9452{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9453echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009454if test "${libltdl_cv_shlibext+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456else
9457
9458module=yes
9459eval libltdl_cv_shlibext=$shrext_cmds
9460
9461fi
Reid Spencera773bd52006-08-04 18:18:08 +00009462{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9463echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009464if test -n "$libltdl_cv_shlibext"; then
9465
9466cat >>confdefs.h <<_ACEOF
9467#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9468_ACEOF
9469
9470fi
9471
9472
Reid Spencera773bd52006-08-04 18:18:08 +00009473{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9474echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009475if test "${libltdl_cv_shlibpath_var+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9477else
9478 libltdl_cv_shlibpath_var="$shlibpath_var"
9479fi
Reid Spencera773bd52006-08-04 18:18:08 +00009480{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9481echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009482if test -n "$libltdl_cv_shlibpath_var"; then
9483
9484cat >>confdefs.h <<_ACEOF
9485#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9486_ACEOF
9487
9488fi
9489
9490
Reid Spencera773bd52006-08-04 18:18:08 +00009491{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9492echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009493if test "${libltdl_cv_sys_search_path+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9495else
9496 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9497fi
Reid Spencera773bd52006-08-04 18:18:08 +00009498{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9499echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009500if test -n "$libltdl_cv_sys_search_path"; then
9501 sys_search_path=
9502 for dir in $libltdl_cv_sys_search_path; do
9503 if test -z "$sys_search_path"; then
9504 sys_search_path="$dir"
9505 else
9506 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9507 fi
9508 done
9509
9510cat >>confdefs.h <<_ACEOF
9511#define LTDL_SYSSEARCHPATH "$sys_search_path"
9512_ACEOF
9513
9514fi
9515
Reid Spencera773bd52006-08-04 18:18:08 +00009516{ echo "$as_me:$LINENO: checking for objdir" >&5
9517echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009518if test "${libltdl_cv_objdir+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520else
9521 libltdl_cv_objdir="$objdir"
9522 if test -n "$objdir"; then
9523 :
9524 else
9525 rm -f .libs 2>/dev/null
9526 mkdir .libs 2>/dev/null
9527 if test -d .libs; then
9528 libltdl_cv_objdir=.libs
9529 else
9530 # MS-DOS does not allow filenames that begin with a dot.
9531 libltdl_cv_objdir=_libs
9532 fi
9533 rmdir .libs 2>/dev/null
9534 fi
9535
9536fi
Reid Spencera773bd52006-08-04 18:18:08 +00009537{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9538echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009539
9540cat >>confdefs.h <<_ACEOF
9541#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9542_ACEOF
9543
9544
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009545
9546
9547
9548
9549# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009550{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9551echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009552if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554else
9555
9556# These are sane defaults that work on at least a few old systems.
9557# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9558
9559# Character class describing NM global symbol codes.
9560symcode='[BCDEGRST]'
9561
9562# Regexp to match symbols that can be accessed directly from C.
9563sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9564
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009565# Transform an extracted symbol line into a proper C declaration
9566lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9567
9568# Transform an extracted symbol line into symbol name and symbol address
9569lt_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'"
9570
9571# Define system-specific variables.
9572case $host_os in
9573aix*)
9574 symcode='[BCDT]'
9575 ;;
9576cygwin* | mingw* | pw32*)
9577 symcode='[ABCDGISTW]'
9578 ;;
9579hpux*) # Its linker distinguishes data from code symbols
9580 if test "$host_cpu" = ia64; then
9581 symcode='[ABCDEGRST]'
9582 fi
9583 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9584 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'"
9585 ;;
9586linux*)
9587 if test "$host_cpu" = ia64; then
9588 symcode='[ABCDGIRSTW]'
9589 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9590 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'"
9591 fi
9592 ;;
9593irix* | nonstopux*)
9594 symcode='[BCDEGRST]'
9595 ;;
9596osf*)
9597 symcode='[BCDEGQRST]'
9598 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009599solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009600 symcode='[BDRT]'
9601 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009602sco3.2v5*)
9603 symcode='[DT]'
9604 ;;
9605sysv4.2uw2*)
9606 symcode='[DT]'
9607 ;;
9608sysv5* | sco5v6* | unixware* | OpenUNIX*)
9609 symcode='[ABDT]'
9610 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611sysv4)
9612 symcode='[DFNSTU]'
9613 ;;
9614esac
9615
9616# Handle CRLF in mingw tool chain
9617opt_cr=
9618case $build_os in
9619mingw*)
9620 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9621 ;;
9622esac
9623
9624# If we're using GNU nm, then use its standard symbol codes.
9625case `$NM -V 2>&1` in
9626*GNU* | *'with BFD'*)
9627 symcode='[ABCDGIRSTW]' ;;
9628esac
9629
9630# Try without a prefix undercore, then with it.
9631for ac_symprfx in "" "_"; do
9632
Reid Spencera773bd52006-08-04 18:18:08 +00009633 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9634 symxfrm="\\1 $ac_symprfx\\2 \\2"
9635
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009636 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009637 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 +00009638
9639 # Check to see that the pipe works correctly.
9640 pipe_works=no
9641
9642 rm -f conftest*
9643 cat > conftest.$ac_ext <<EOF
9644#ifdef __cplusplus
9645extern "C" {
9646#endif
9647char nm_test_var;
9648void nm_test_func(){}
9649#ifdef __cplusplus
9650}
9651#endif
9652int main(){nm_test_var='a';nm_test_func();return(0);}
9653EOF
9654
9655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656 (eval $ac_compile) 2>&5
9657 ac_status=$?
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; then
9660 # Now try to grab the symbols.
9661 nlist=conftest.nm
9662 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9663 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && test -s "$nlist"; then
9667 # Try sorting and uniquifying the output.
9668 if sort "$nlist" | uniq > "$nlist"T; then
9669 mv -f "$nlist"T "$nlist"
9670 else
9671 rm -f "$nlist"T
9672 fi
9673
9674 # Make sure that we snagged all the symbols we need.
9675 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9676 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9677 cat <<EOF > conftest.$ac_ext
9678#ifdef __cplusplus
9679extern "C" {
9680#endif
9681
9682EOF
9683 # Now generate the symbol file.
9684 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9685
9686 cat <<EOF >> conftest.$ac_ext
9687#if defined (__STDC__) && __STDC__
9688# define lt_ptr_t void *
9689#else
9690# define lt_ptr_t char *
9691# define const
9692#endif
9693
9694/* The mapping between symbol names and symbols. */
9695const struct {
9696 const char *name;
9697 lt_ptr_t address;
9698}
9699lt_preloaded_symbols[] =
9700{
9701EOF
9702 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9703 cat <<\EOF >> conftest.$ac_ext
9704 {0, (lt_ptr_t) 0}
9705};
9706
9707#ifdef __cplusplus
9708}
9709#endif
9710EOF
9711 # Now try linking the two files.
9712 mv conftest.$ac_objext conftstm.$ac_objext
9713 lt_save_LIBS="$LIBS"
9714 lt_save_CFLAGS="$CFLAGS"
9715 LIBS="conftstm.$ac_objext"
9716 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9718 (eval $ac_link) 2>&5
9719 ac_status=$?
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9722 pipe_works=yes
9723 fi
9724 LIBS="$lt_save_LIBS"
9725 CFLAGS="$lt_save_CFLAGS"
9726 else
9727 echo "cannot find nm_test_func in $nlist" >&5
9728 fi
9729 else
9730 echo "cannot find nm_test_var in $nlist" >&5
9731 fi
9732 else
9733 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9734 fi
9735 else
9736 echo "$progname: failed program was:" >&5
9737 cat conftest.$ac_ext >&5
9738 fi
9739 rm -f conftest* conftst*
9740
9741 # Do not use the global_symbol_pipe unless it works.
9742 if test "$pipe_works" = yes; then
9743 break
9744 else
9745 lt_cv_sys_global_symbol_pipe=
9746 fi
9747done
9748
9749fi
9750
9751if test -z "$lt_cv_sys_global_symbol_pipe"; then
9752 lt_cv_sys_global_symbol_to_cdecl=
9753fi
9754if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009755 { echo "$as_me:$LINENO: result: failed" >&5
9756echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009757else
Reid Spencera773bd52006-08-04 18:18:08 +00009758 { echo "$as_me:$LINENO: result: ok" >&5
9759echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009760fi
9761
9762
Reid Spencera773bd52006-08-04 18:18:08 +00009763{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9764echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009765if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9766 echo $ECHO_N "(cached) $ECHO_C" >&6
9767else
9768 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9769 libltdl_cv_preloaded_symbols=yes
9770 else
9771 libltdl_cv_preloaded_symbols=no
9772 fi
9773
9774fi
Reid Spencera773bd52006-08-04 18:18:08 +00009775{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9776echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9778
9779cat >>confdefs.h <<\_ACEOF
9780#define HAVE_PRELOADED_SYMBOLS 1
9781_ACEOF
9782
9783fi
9784
9785LIBADD_DL=
9786
9787ac_ext=c
9788ac_cpp='$CPP $CPPFLAGS'
9789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9791ac_compiler_gnu=$ac_cv_c_compiler_gnu
9792
9793
Reid Spencera773bd52006-08-04 18:18:08 +00009794{ echo "$as_me:$LINENO: checking for shl_load" >&5
9795echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009796if test "${ac_cv_func_shl_load+set}" = set; then
9797 echo $ECHO_N "(cached) $ECHO_C" >&6
9798else
9799 cat >conftest.$ac_ext <<_ACEOF
9800/* confdefs.h. */
9801_ACEOF
9802cat confdefs.h >>conftest.$ac_ext
9803cat >>conftest.$ac_ext <<_ACEOF
9804/* end confdefs.h. */
9805/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9807#define shl_load innocuous_shl_load
9808
9809/* System header to define __stub macros and hopefully few prototypes,
9810 which can conflict with char shl_load (); below.
9811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9812 <limits.h> exists even on freestanding compilers. */
9813
9814#ifdef __STDC__
9815# include <limits.h>
9816#else
9817# include <assert.h>
9818#endif
9819
9820#undef shl_load
9821
Reid Spencera773bd52006-08-04 18:18:08 +00009822/* Override any GCC internal prototype to avoid an error.
9823 Use char because int might match the return type of a GCC
9824 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009825#ifdef __cplusplus
9826extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009828char shl_load ();
9829/* The GNU C library defines this for functions which it implements
9830 to always fail with ENOSYS. Some functions are actually named
9831 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009832#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009833choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009834#endif
9835
9836int
9837main ()
9838{
Reid Spencera773bd52006-08-04 18:18:08 +00009839return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009840 ;
9841 return 0;
9842}
9843_ACEOF
9844rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009845if { (ac_try="$ac_link"
9846case "(($ac_try" in
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9849esac
9850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9859 { (case "(($ac_try" in
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9862esac
9863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_try") 2>&5
9865 ac_status=$?
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; } &&
9868 { ac_try='test -s conftest$ac_exeext'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872esac
9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009878 ac_cv_func_shl_load=yes
9879else
9880 echo "$as_me: failed program was:" >&5
9881sed 's/^/| /' conftest.$ac_ext >&5
9882
Reid Spencera773bd52006-08-04 18:18:08 +00009883 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009884fi
Reid Spencera773bd52006-08-04 18:18:08 +00009885
Bill Wendlingebcceee2009-04-18 11:20:33 +00009886rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009887 conftest$ac_exeext conftest.$ac_ext
9888fi
Reid Spencera773bd52006-08-04 18:18:08 +00009889{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9890echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009891if test $ac_cv_func_shl_load = yes; then
9892
9893cat >>confdefs.h <<\_ACEOF
9894#define HAVE_SHL_LOAD 1
9895_ACEOF
9896
9897else
Reid Spencera773bd52006-08-04 18:18:08 +00009898 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9899echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009900if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9902else
9903 ac_check_lib_save_LIBS=$LIBS
9904LIBS="-ldld $LIBS"
9905cat >conftest.$ac_ext <<_ACEOF
9906/* confdefs.h. */
9907_ACEOF
9908cat confdefs.h >>conftest.$ac_ext
9909cat >>conftest.$ac_ext <<_ACEOF
9910/* end confdefs.h. */
9911
Reid Spencera773bd52006-08-04 18:18:08 +00009912/* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009915#ifdef __cplusplus
9916extern "C"
9917#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918char shl_load ();
9919int
9920main ()
9921{
Reid Spencera773bd52006-08-04 18:18:08 +00009922return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923 ;
9924 return 0;
9925}
9926_ACEOF
9927rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009928if { (ac_try="$ac_link"
9929case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932esac
9933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +00009940 (exit $ac_status); } &&
9941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9942 { (case "(($ac_try" in
9943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9944 *) ac_try_echo=$ac_try;;
9945esac
9946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9947 (eval "$ac_try") 2>&5
9948 ac_status=$?
9949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9950 (exit $ac_status); }; } &&
9951 { ac_try='test -s conftest$ac_exeext'
9952 { (case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9955esac
9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_try") 2>&5
9958 ac_status=$?
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009961 ac_cv_lib_dld_shl_load=yes
9962else
9963 echo "$as_me: failed program was:" >&5
9964sed 's/^/| /' conftest.$ac_ext >&5
9965
Reid Spencera773bd52006-08-04 18:18:08 +00009966 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009967fi
Reid Spencera773bd52006-08-04 18:18:08 +00009968
Bill Wendlingebcceee2009-04-18 11:20:33 +00009969rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009970 conftest$ac_exeext conftest.$ac_ext
9971LIBS=$ac_check_lib_save_LIBS
9972fi
Reid Spencera773bd52006-08-04 18:18:08 +00009973{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9974echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009975if test $ac_cv_lib_dld_shl_load = yes; then
9976
9977cat >>confdefs.h <<\_ACEOF
9978#define HAVE_SHL_LOAD 1
9979_ACEOF
9980
9981 LIBADD_DL="$LIBADD_DL -ldld"
9982else
Reid Spencera773bd52006-08-04 18:18:08 +00009983 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9984echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009985if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9987else
9988 ac_check_lib_save_LIBS=$LIBS
9989LIBS="-ldl $LIBS"
9990cat >conftest.$ac_ext <<_ACEOF
9991/* confdefs.h. */
9992_ACEOF
9993cat confdefs.h >>conftest.$ac_ext
9994cat >>conftest.$ac_ext <<_ACEOF
9995/* end confdefs.h. */
9996
Reid Spencera773bd52006-08-04 18:18:08 +00009997/* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000#ifdef __cplusplus
10001extern "C"
10002#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003char dlopen ();
10004int
10005main ()
10006{
Reid Spencera773bd52006-08-04 18:18:08 +000010007return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008 ;
10009 return 0;
10010}
10011_ACEOF
10012rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010013if { (ac_try="$ac_link"
10014case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010025 (exit $ac_status); } &&
10026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10027 { (case "(($ac_try" in
10028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10029 *) ac_try_echo=$ac_try;;
10030esac
10031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_try") 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; } &&
10036 { ac_try='test -s conftest$ac_exeext'
10037 { (case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040esac
10041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10042 (eval "$ac_try") 2>&5
10043 ac_status=$?
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010046 ac_cv_lib_dl_dlopen=yes
10047else
10048 echo "$as_me: failed program was:" >&5
10049sed 's/^/| /' conftest.$ac_ext >&5
10050
Reid Spencera773bd52006-08-04 18:18:08 +000010051 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010052fi
Reid Spencera773bd52006-08-04 18:18:08 +000010053
Bill Wendlingebcceee2009-04-18 11:20:33 +000010054rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010055 conftest$ac_exeext conftest.$ac_ext
10056LIBS=$ac_check_lib_save_LIBS
10057fi
Reid Spencera773bd52006-08-04 18:18:08 +000010058{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10059echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010060if test $ac_cv_lib_dl_dlopen = yes; then
10061
10062cat >>confdefs.h <<\_ACEOF
10063#define HAVE_LIBDL 1
10064_ACEOF
10065
10066 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10067else
10068 cat >conftest.$ac_ext <<_ACEOF
10069/* confdefs.h. */
10070_ACEOF
10071cat confdefs.h >>conftest.$ac_ext
10072cat >>conftest.$ac_ext <<_ACEOF
10073/* end confdefs.h. */
10074#if HAVE_DLFCN_H
10075# include <dlfcn.h>
10076#endif
10077
10078int
10079main ()
10080{
10081dlopen(0, 0);
10082 ;
10083 return 0;
10084}
10085_ACEOF
10086rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010087if { (ac_try="$ac_link"
10088case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10091esac
10092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10093 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010094 ac_status=$?
10095 grep -v '^ *+' conftest.er1 >conftest.err
10096 rm -f conftest.er1
10097 cat conftest.err >&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010099 (exit $ac_status); } &&
10100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10101 { (case "(($ac_try" in
10102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10103 *) ac_try_echo=$ac_try;;
10104esac
10105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10106 (eval "$ac_try") 2>&5
10107 ac_status=$?
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; } &&
10110 { ac_try='test -s conftest$ac_exeext'
10111 { (case "(($ac_try" in
10112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113 *) ac_try_echo=$ac_try;;
10114esac
10115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116 (eval "$ac_try") 2>&5
10117 ac_status=$?
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010120
10121cat >>confdefs.h <<\_ACEOF
10122#define HAVE_LIBDL 1
10123_ACEOF
10124 libltdl_cv_func_dlopen="yes"
10125else
10126 echo "$as_me: failed program was:" >&5
10127sed 's/^/| /' conftest.$ac_ext >&5
10128
Reid Spencera773bd52006-08-04 18:18:08 +000010129 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10130echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010131if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133else
10134 ac_check_lib_save_LIBS=$LIBS
10135LIBS="-lsvld $LIBS"
10136cat >conftest.$ac_ext <<_ACEOF
10137/* confdefs.h. */
10138_ACEOF
10139cat confdefs.h >>conftest.$ac_ext
10140cat >>conftest.$ac_ext <<_ACEOF
10141/* end confdefs.h. */
10142
Reid Spencera773bd52006-08-04 18:18:08 +000010143/* Override any GCC internal prototype to avoid an error.
10144 Use char because int might match the return type of a GCC
10145 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010146#ifdef __cplusplus
10147extern "C"
10148#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010149char dlopen ();
10150int
10151main ()
10152{
Reid Spencera773bd52006-08-04 18:18:08 +000010153return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154 ;
10155 return 0;
10156}
10157_ACEOF
10158rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010159if { (ac_try="$ac_link"
10160case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163esac
10164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010166 ac_status=$?
10167 grep -v '^ *+' conftest.er1 >conftest.err
10168 rm -f conftest.er1
10169 cat conftest.err >&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010171 (exit $ac_status); } &&
10172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10182 { ac_try='test -s conftest$ac_exeext'
10183 { (case "(($ac_try" in
10184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10186esac
10187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_try") 2>&5
10189 ac_status=$?
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192 ac_cv_lib_svld_dlopen=yes
10193else
10194 echo "$as_me: failed program was:" >&5
10195sed 's/^/| /' conftest.$ac_ext >&5
10196
Reid Spencera773bd52006-08-04 18:18:08 +000010197 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198fi
Reid Spencera773bd52006-08-04 18:18:08 +000010199
Bill Wendlingebcceee2009-04-18 11:20:33 +000010200rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010201 conftest$ac_exeext conftest.$ac_ext
10202LIBS=$ac_check_lib_save_LIBS
10203fi
Reid Spencera773bd52006-08-04 18:18:08 +000010204{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10205echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010206if test $ac_cv_lib_svld_dlopen = yes; then
10207
10208cat >>confdefs.h <<\_ACEOF
10209#define HAVE_LIBDL 1
10210_ACEOF
10211
10212 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10213else
Reid Spencera773bd52006-08-04 18:18:08 +000010214 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10215echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010216if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10218else
10219 ac_check_lib_save_LIBS=$LIBS
10220LIBS="-ldld $LIBS"
10221cat >conftest.$ac_ext <<_ACEOF
10222/* confdefs.h. */
10223_ACEOF
10224cat confdefs.h >>conftest.$ac_ext
10225cat >>conftest.$ac_ext <<_ACEOF
10226/* end confdefs.h. */
10227
Reid Spencera773bd52006-08-04 18:18:08 +000010228/* Override any GCC internal prototype to avoid an error.
10229 Use char because int might match the return type of a GCC
10230 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010231#ifdef __cplusplus
10232extern "C"
10233#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010234char dld_link ();
10235int
10236main ()
10237{
Reid Spencera773bd52006-08-04 18:18:08 +000010238return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010239 ;
10240 return 0;
10241}
10242_ACEOF
10243rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010244if { (ac_try="$ac_link"
10245case "(($ac_try" in
10246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247 *) ac_try_echo=$ac_try;;
10248esac
10249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010256 (exit $ac_status); } &&
10257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10258 { (case "(($ac_try" in
10259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10260 *) ac_try_echo=$ac_try;;
10261esac
10262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10263 (eval "$ac_try") 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest$ac_exeext'
10268 { (case "(($ac_try" in
10269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270 *) ac_try_echo=$ac_try;;
10271esac
10272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273 (eval "$ac_try") 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010277 ac_cv_lib_dld_dld_link=yes
10278else
10279 echo "$as_me: failed program was:" >&5
10280sed 's/^/| /' conftest.$ac_ext >&5
10281
Reid Spencera773bd52006-08-04 18:18:08 +000010282 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283fi
Reid Spencera773bd52006-08-04 18:18:08 +000010284
Bill Wendlingebcceee2009-04-18 11:20:33 +000010285rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010286 conftest$ac_exeext conftest.$ac_ext
10287LIBS=$ac_check_lib_save_LIBS
10288fi
Reid Spencera773bd52006-08-04 18:18:08 +000010289{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10290echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010291if test $ac_cv_lib_dld_dld_link = yes; then
10292
10293cat >>confdefs.h <<\_ACEOF
10294#define HAVE_DLD 1
10295_ACEOF
10296
10297 LIBADD_DL="$LIBADD_DL -ldld"
10298else
Reid Spencera773bd52006-08-04 18:18:08 +000010299 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10300echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010301if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303else
10304 cat >conftest.$ac_ext <<_ACEOF
10305/* confdefs.h. */
10306_ACEOF
10307cat confdefs.h >>conftest.$ac_ext
10308cat >>conftest.$ac_ext <<_ACEOF
10309/* end confdefs.h. */
10310/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10312#define _dyld_func_lookup innocuous__dyld_func_lookup
10313
10314/* System header to define __stub macros and hopefully few prototypes,
10315 which can conflict with char _dyld_func_lookup (); below.
10316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10317 <limits.h> exists even on freestanding compilers. */
10318
10319#ifdef __STDC__
10320# include <limits.h>
10321#else
10322# include <assert.h>
10323#endif
10324
10325#undef _dyld_func_lookup
10326
Reid Spencera773bd52006-08-04 18:18:08 +000010327/* Override any GCC internal prototype to avoid an error.
10328 Use char because int might match the return type of a GCC
10329 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010330#ifdef __cplusplus
10331extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010332#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010333char _dyld_func_lookup ();
10334/* The GNU C library defines this for functions which it implements
10335 to always fail with ENOSYS. Some functions are actually named
10336 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010337#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010338choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010339#endif
10340
10341int
10342main ()
10343{
Reid Spencera773bd52006-08-04 18:18:08 +000010344return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010345 ;
10346 return 0;
10347}
10348_ACEOF
10349rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010350if { (ac_try="$ac_link"
10351case "(($ac_try" in
10352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353 *) ac_try_echo=$ac_try;;
10354esac
10355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010357 ac_status=$?
10358 grep -v '^ *+' conftest.er1 >conftest.err
10359 rm -f conftest.er1
10360 cat conftest.err >&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010362 (exit $ac_status); } &&
10363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10364 { (case "(($ac_try" in
10365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366 *) ac_try_echo=$ac_try;;
10367esac
10368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369 (eval "$ac_try") 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; } &&
10373 { ac_try='test -s conftest$ac_exeext'
10374 { (case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10377esac
10378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_try") 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010383 ac_cv_func__dyld_func_lookup=yes
10384else
10385 echo "$as_me: failed program was:" >&5
10386sed 's/^/| /' conftest.$ac_ext >&5
10387
Reid Spencera773bd52006-08-04 18:18:08 +000010388 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389fi
Reid Spencera773bd52006-08-04 18:18:08 +000010390
Bill Wendlingebcceee2009-04-18 11:20:33 +000010391rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010392 conftest$ac_exeext conftest.$ac_ext
10393fi
Reid Spencera773bd52006-08-04 18:18:08 +000010394{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10395echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010396if test $ac_cv_func__dyld_func_lookup = yes; then
10397
10398cat >>confdefs.h <<\_ACEOF
10399#define HAVE_DYLD 1
10400_ACEOF
10401
10402fi
10403
10404
10405fi
10406
10407
10408fi
10409
10410
10411fi
Reid Spencera773bd52006-08-04 18:18:08 +000010412
Bill Wendlingebcceee2009-04-18 11:20:33 +000010413rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010414 conftest$ac_exeext conftest.$ac_ext
10415
10416fi
10417
10418
10419fi
10420
10421
10422fi
10423
10424
10425if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10426then
10427 lt_save_LIBS="$LIBS"
10428 LIBS="$LIBS $LIBADD_DL"
10429
10430for ac_func in dlerror
10431do
10432as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010433{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10434echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10435if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010436 echo $ECHO_N "(cached) $ECHO_C" >&6
10437else
10438 cat >conftest.$ac_ext <<_ACEOF
10439/* confdefs.h. */
10440_ACEOF
10441cat confdefs.h >>conftest.$ac_ext
10442cat >>conftest.$ac_ext <<_ACEOF
10443/* end confdefs.h. */
10444/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10446#define $ac_func innocuous_$ac_func
10447
10448/* System header to define __stub macros and hopefully few prototypes,
10449 which can conflict with char $ac_func (); below.
10450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10451 <limits.h> exists even on freestanding compilers. */
10452
10453#ifdef __STDC__
10454# include <limits.h>
10455#else
10456# include <assert.h>
10457#endif
10458
10459#undef $ac_func
10460
Reid Spencera773bd52006-08-04 18:18:08 +000010461/* Override any GCC internal prototype to avoid an error.
10462 Use char because int might match the return type of a GCC
10463 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010464#ifdef __cplusplus
10465extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010466#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010467char $ac_func ();
10468/* The GNU C library defines this for functions which it implements
10469 to always fail with ENOSYS. Some functions are actually named
10470 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010471#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010472choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010473#endif
10474
10475int
10476main ()
10477{
Reid Spencera773bd52006-08-04 18:18:08 +000010478return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479 ;
10480 return 0;
10481}
10482_ACEOF
10483rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010484if { (ac_try="$ac_link"
10485case "(($ac_try" in
10486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10487 *) ac_try_echo=$ac_try;;
10488esac
10489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10490 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491 ac_status=$?
10492 grep -v '^ *+' conftest.er1 >conftest.err
10493 rm -f conftest.er1
10494 cat conftest.err >&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010496 (exit $ac_status); } &&
10497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10498 { (case "(($ac_try" in
10499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500 *) ac_try_echo=$ac_try;;
10501esac
10502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503 (eval "$ac_try") 2>&5
10504 ac_status=$?
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; } &&
10507 { ac_try='test -s conftest$ac_exeext'
10508 { (case "(($ac_try" in
10509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10510 *) ac_try_echo=$ac_try;;
10511esac
10512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10513 (eval "$ac_try") 2>&5
10514 ac_status=$?
10515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010517 eval "$as_ac_var=yes"
10518else
10519 echo "$as_me: failed program was:" >&5
10520sed 's/^/| /' conftest.$ac_ext >&5
10521
Reid Spencera773bd52006-08-04 18:18:08 +000010522 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010523fi
Reid Spencera773bd52006-08-04 18:18:08 +000010524
Bill Wendlingebcceee2009-04-18 11:20:33 +000010525rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010526 conftest$ac_exeext conftest.$ac_ext
10527fi
Reid Spencera773bd52006-08-04 18:18:08 +000010528ac_res=`eval echo '${'$as_ac_var'}'`
10529 { echo "$as_me:$LINENO: result: $ac_res" >&5
10530echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010531if test `eval echo '${'$as_ac_var'}'` = yes; then
10532 cat >>confdefs.h <<_ACEOF
10533#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10534_ACEOF
10535
10536fi
10537done
10538
10539 LIBS="$lt_save_LIBS"
10540fi
10541ac_ext=c
10542ac_cpp='$CPP $CPPFLAGS'
10543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10545ac_compiler_gnu=$ac_cv_c_compiler_gnu
10546
10547
10548
Reid Spencera773bd52006-08-04 18:18:08 +000010549{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10550echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010551if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553else
10554 ac_cv_sys_symbol_underscore=no
10555 cat > conftest.$ac_ext <<EOF
10556void nm_test_func(){}
10557int main(){nm_test_func;return 0;}
10558EOF
10559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10560 (eval $ac_compile) 2>&5
10561 ac_status=$?
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); }; then
10564 # Now try to grab the symbols.
10565 ac_nlist=conftest.nm
10566 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10567 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10568 ac_status=$?
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && test -s "$ac_nlist"; then
10571 # See whether the symbols have a leading underscore.
10572 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10573 ac_cv_sys_symbol_underscore=yes
10574 else
10575 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10576 :
10577 else
10578 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10579 fi
10580 fi
10581 else
10582 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10583 fi
10584 else
10585 echo "configure: failed program was:" >&5
10586 cat conftest.c >&5
10587 fi
10588 rm -rf conftest*
10589
10590fi
Reid Spencera773bd52006-08-04 18:18:08 +000010591{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10592echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593
10594
10595if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10596 if test x"$libltdl_cv_func_dlopen" = xyes ||
10597 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010598 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10599echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010600if test "${libltdl_cv_need_uscore+set}" = set; then
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10602else
10603 libltdl_cv_need_uscore=unknown
10604 save_LIBS="$LIBS"
10605 LIBS="$LIBS $LIBADD_DL"
10606 if test "$cross_compiling" = yes; then :
10607 libltdl_cv_need_uscore=cross
10608else
10609 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10610 lt_status=$lt_dlunknown
10611 cat > conftest.$ac_ext <<EOF
Douglas Gregor1555a232009-06-16 20:12:29 +000010612#line 10612 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010613#include "confdefs.h"
10614
10615#if HAVE_DLFCN_H
10616#include <dlfcn.h>
10617#endif
10618
10619#include <stdio.h>
10620
10621#ifdef RTLD_GLOBAL
10622# define LT_DLGLOBAL RTLD_GLOBAL
10623#else
10624# ifdef DL_GLOBAL
10625# define LT_DLGLOBAL DL_GLOBAL
10626# else
10627# define LT_DLGLOBAL 0
10628# endif
10629#endif
10630
10631/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10632 find out it does not work in some platform. */
10633#ifndef LT_DLLAZY_OR_NOW
10634# ifdef RTLD_LAZY
10635# define LT_DLLAZY_OR_NOW RTLD_LAZY
10636# else
10637# ifdef DL_LAZY
10638# define LT_DLLAZY_OR_NOW DL_LAZY
10639# else
10640# ifdef RTLD_NOW
10641# define LT_DLLAZY_OR_NOW RTLD_NOW
10642# else
10643# ifdef DL_NOW
10644# define LT_DLLAZY_OR_NOW DL_NOW
10645# else
10646# define LT_DLLAZY_OR_NOW 0
10647# endif
10648# endif
10649# endif
10650# endif
10651#endif
10652
10653#ifdef __cplusplus
10654extern "C" void exit (int);
10655#endif
10656
10657void fnord() { int i=42;}
10658int main ()
10659{
10660 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10661 int status = $lt_dlunknown;
10662
10663 if (self)
10664 {
10665 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10666 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10667 /* dlclose (self); */
10668 }
Reid Spencera773bd52006-08-04 18:18:08 +000010669 else
10670 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671
10672 exit (status);
10673}
10674EOF
10675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676 (eval $ac_link) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010680 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010681 lt_status=$?
10682 case x$lt_status in
10683 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10684 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010685 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010686 esac
10687 else :
10688 # compilation failed
10689
10690 fi
10691fi
10692rm -fr conftest*
10693
10694 LIBS="$save_LIBS"
10695
10696fi
Reid Spencera773bd52006-08-04 18:18:08 +000010697{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10698echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010699 fi
10700fi
10701
10702if test x"$libltdl_cv_need_uscore" = xyes; then
10703
10704cat >>confdefs.h <<\_ACEOF
10705#define NEED_USCORE 1
10706_ACEOF
10707
10708fi
10709
10710
Reid Spencera773bd52006-08-04 18:18:08 +000010711{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10712echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010713if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10715else
10716 # PORTME does your system automatically load deplibs for dlopen?
10717 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10718 # For now, we just catch OSes we know something about -- in the
10719 # future, we'll try test this programmatically.
10720 libltdl_cv_sys_dlopen_deplibs=unknown
10721 case "$host_os" in
10722 aix3*|aix4.1.*|aix4.2.*)
10723 # Unknown whether this is true for these versions of AIX, but
10724 # we want this `case' here to explicitly catch those versions.
10725 libltdl_cv_sys_dlopen_deplibs=unknown
10726 ;;
10727 aix[45]*)
10728 libltdl_cv_sys_dlopen_deplibs=yes
10729 ;;
10730 darwin*)
10731 # Assuming the user has installed a libdl from somewhere, this is true
10732 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10733 libltdl_cv_sys_dlopen_deplibs=yes
10734 ;;
10735 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10736 # GNU and its variants, using gnu ld.so (Glibc)
10737 libltdl_cv_sys_dlopen_deplibs=yes
10738 ;;
10739 hpux10*|hpux11*)
10740 libltdl_cv_sys_dlopen_deplibs=yes
10741 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010742 interix*)
10743 libltdl_cv_sys_dlopen_deplibs=yes
10744 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010745 irix[12345]*|irix6.[01]*)
10746 # Catch all versions of IRIX before 6.2, and indicate that we don't
10747 # know how it worked for any of those versions.
10748 libltdl_cv_sys_dlopen_deplibs=unknown
10749 ;;
10750 irix*)
10751 # The case above catches anything before 6.2, and it's known that
10752 # at 6.2 and later dlopen does load deplibs.
10753 libltdl_cv_sys_dlopen_deplibs=yes
10754 ;;
10755 netbsd*)
10756 libltdl_cv_sys_dlopen_deplibs=yes
10757 ;;
10758 openbsd*)
10759 libltdl_cv_sys_dlopen_deplibs=yes
10760 ;;
10761 osf[1234]*)
10762 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10763 # it did *not* use an RPATH in a shared library to find objects the
10764 # library depends on, so we explictly say `no'.
10765 libltdl_cv_sys_dlopen_deplibs=no
10766 ;;
10767 osf5.0|osf5.0a|osf5.1)
10768 # dlopen *does* load deplibs and with the right loader patch applied
10769 # it even uses RPATH in a shared library to search for shared objects
10770 # that the library depends on, but there's no easy way to know if that
10771 # patch is installed. Since this is the case, all we can really
10772 # say is unknown -- it depends on the patch being installed. If
10773 # it is, this changes to `yes'. Without it, it would be `no'.
10774 libltdl_cv_sys_dlopen_deplibs=unknown
10775 ;;
10776 osf*)
10777 # the two cases above should catch all versions of osf <= 5.1. Read
10778 # the comments above for what we know about them.
10779 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10780 # is used to find them so we can finally say `yes'.
10781 libltdl_cv_sys_dlopen_deplibs=yes
10782 ;;
10783 solaris*)
10784 libltdl_cv_sys_dlopen_deplibs=yes
10785 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10787 libltdl_cv_sys_dlopen_deplibs=yes
10788 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010789 esac
10790
10791fi
Reid Spencera773bd52006-08-04 18:18:08 +000010792{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10793echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010794if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10795
10796cat >>confdefs.h <<\_ACEOF
10797#define LTDL_DLOPEN_DEPLIBS 1
10798_ACEOF
10799
10800fi
10801
10802
10803for ac_header in argz.h
10804do
10805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010810 echo $ECHO_N "(cached) $ECHO_C" >&6
10811fi
Reid Spencera773bd52006-08-04 18:18:08 +000010812ac_res=`eval echo '${'$as_ac_Header'}'`
10813 { echo "$as_me:$LINENO: result: $ac_res" >&5
10814echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010815else
10816 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010817{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10818echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010819cat >conftest.$ac_ext <<_ACEOF
10820/* confdefs.h. */
10821_ACEOF
10822cat confdefs.h >>conftest.$ac_ext
10823cat >>conftest.$ac_ext <<_ACEOF
10824/* end confdefs.h. */
10825$ac_includes_default
10826#include <$ac_header>
10827_ACEOF
10828rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010829if { (ac_try="$ac_compile"
10830case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10833esac
10834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10835 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836 ac_status=$?
10837 grep -v '^ *+' conftest.er1 >conftest.err
10838 rm -f conftest.er1
10839 cat conftest.err >&5
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010841 (exit $ac_status); } &&
10842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10843 { (case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10846esac
10847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_try") 2>&5
10849 ac_status=$?
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; } &&
10852 { ac_try='test -s conftest.$ac_objext'
10853 { (case "(($ac_try" in
10854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10855 *) ac_try_echo=$ac_try;;
10856esac
10857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_try") 2>&5
10859 ac_status=$?
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010862 ac_header_compiler=yes
10863else
10864 echo "$as_me: failed program was:" >&5
10865sed 's/^/| /' conftest.$ac_ext >&5
10866
Reid Spencera773bd52006-08-04 18:18:08 +000010867 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010868fi
Reid Spencera773bd52006-08-04 18:18:08 +000010869
10870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10871{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10872echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010873
10874# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010875{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10876echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010877cat >conftest.$ac_ext <<_ACEOF
10878/* confdefs.h. */
10879_ACEOF
10880cat confdefs.h >>conftest.$ac_ext
10881cat >>conftest.$ac_ext <<_ACEOF
10882/* end confdefs.h. */
10883#include <$ac_header>
10884_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010885if { (ac_try="$ac_cpp conftest.$ac_ext"
10886case "(($ac_try" in
10887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888 *) ac_try_echo=$ac_try;;
10889esac
10890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010892 ac_status=$?
10893 grep -v '^ *+' conftest.er1 >conftest.err
10894 rm -f conftest.er1
10895 cat conftest.err >&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000010897 (exit $ac_status); } >/dev/null; then
10898 if test -s conftest.err; then
10899 ac_cpp_err=$ac_c_preproc_warn_flag
10900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10901 else
10902 ac_cpp_err=
10903 fi
10904else
10905 ac_cpp_err=yes
10906fi
10907if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908 ac_header_preproc=yes
10909else
10910 echo "$as_me: failed program was:" >&5
10911sed 's/^/| /' conftest.$ac_ext >&5
10912
10913 ac_header_preproc=no
10914fi
Reid Spencera773bd52006-08-04 18:18:08 +000010915
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010916rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010917{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10918echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010919
10920# So? What about this header?
10921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10922 yes:no: )
10923 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10924echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10925 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10926echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10927 ac_header_preproc=yes
10928 ;;
10929 no:yes:* )
10930 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10931echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10932 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10933echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10934 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10935echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10936 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10937echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10939echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10940 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10941echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010942 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010943## ----------------------------------- ##
10944## Report this to llvmbugs@cs.uiuc.edu ##
10945## ----------------------------------- ##
10946_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010947 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010948 ;;
10949esac
Reid Spencera773bd52006-08-04 18:18:08 +000010950{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010953 echo $ECHO_N "(cached) $ECHO_C" >&6
10954else
10955 eval "$as_ac_Header=\$ac_header_preproc"
10956fi
Reid Spencera773bd52006-08-04 18:18:08 +000010957ac_res=`eval echo '${'$as_ac_Header'}'`
10958 { echo "$as_me:$LINENO: result: $ac_res" >&5
10959echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010960
10961fi
10962if test `eval echo '${'$as_ac_Header'}'` = yes; then
10963 cat >>confdefs.h <<_ACEOF
10964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10965_ACEOF
10966
10967fi
10968
10969done
10970
10971
Reid Spencera773bd52006-08-04 18:18:08 +000010972{ echo "$as_me:$LINENO: checking for error_t" >&5
10973echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974if test "${ac_cv_type_error_t+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976else
10977 cat >conftest.$ac_ext <<_ACEOF
10978/* confdefs.h. */
10979_ACEOF
10980cat confdefs.h >>conftest.$ac_ext
10981cat >>conftest.$ac_ext <<_ACEOF
10982/* end confdefs.h. */
10983#if HAVE_ARGZ_H
10984# include <argz.h>
10985#endif
10986
Reid Spencera773bd52006-08-04 18:18:08 +000010987typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010988int
10989main ()
10990{
Reid Spencera773bd52006-08-04 18:18:08 +000010991if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010992 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010993if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010994 return 0;
10995 ;
10996 return 0;
10997}
10998_ACEOF
10999rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011000if { (ac_try="$ac_compile"
11001case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004esac
11005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011007 ac_status=$?
11008 grep -v '^ *+' conftest.er1 >conftest.err
11009 rm -f conftest.er1
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011012 (exit $ac_status); } &&
11013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014 { (case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017esac
11018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_try") 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try='test -s conftest.$ac_objext'
11024 { (case "(($ac_try" in
11025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026 *) ac_try_echo=$ac_try;;
11027esac
11028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029 (eval "$ac_try") 2>&5
11030 ac_status=$?
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033 ac_cv_type_error_t=yes
11034else
11035 echo "$as_me: failed program was:" >&5
11036sed 's/^/| /' conftest.$ac_ext >&5
11037
Reid Spencera773bd52006-08-04 18:18:08 +000011038 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011039fi
Reid Spencera773bd52006-08-04 18:18:08 +000011040
11041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011042fi
Reid Spencera773bd52006-08-04 18:18:08 +000011043{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11044echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011045if test $ac_cv_type_error_t = yes; then
11046
11047cat >>confdefs.h <<_ACEOF
11048#define HAVE_ERROR_T 1
11049_ACEOF
11050
11051
11052else
11053
11054cat >>confdefs.h <<\_ACEOF
11055#define error_t int
11056_ACEOF
11057
11058fi
11059
11060
11061
11062
11063
11064
11065
11066for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11067do
11068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011069{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11071if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073else
11074 cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h. */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h. */
11080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11082#define $ac_func innocuous_$ac_func
11083
11084/* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below.
11086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087 <limits.h> exists even on freestanding compilers. */
11088
11089#ifdef __STDC__
11090# include <limits.h>
11091#else
11092# include <assert.h>
11093#endif
11094
11095#undef $ac_func
11096
Reid Spencera773bd52006-08-04 18:18:08 +000011097/* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011100#ifdef __cplusplus
11101extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011102#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011103char $ac_func ();
11104/* The GNU C library defines this for functions which it implements
11105 to always fail with ENOSYS. Some functions are actually named
11106 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011107#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011108choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011109#endif
11110
11111int
11112main ()
11113{
Reid Spencera773bd52006-08-04 18:18:08 +000011114return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011115 ;
11116 return 0;
11117}
11118_ACEOF
11119rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011120if { (ac_try="$ac_link"
11121case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124esac
11125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011132 (exit $ac_status); } &&
11133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11134 { (case "(($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_try") 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; } &&
11143 { ac_try='test -s conftest$ac_exeext'
11144 { (case "(($ac_try" in
11145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11146 *) ac_try_echo=$ac_try;;
11147esac
11148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_try") 2>&5
11150 ac_status=$?
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011153 eval "$as_ac_var=yes"
11154else
11155 echo "$as_me: failed program was:" >&5
11156sed 's/^/| /' conftest.$ac_ext >&5
11157
Reid Spencera773bd52006-08-04 18:18:08 +000011158 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011159fi
Reid Spencera773bd52006-08-04 18:18:08 +000011160
Bill Wendlingebcceee2009-04-18 11:20:33 +000011161rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011162 conftest$ac_exeext conftest.$ac_ext
11163fi
Reid Spencera773bd52006-08-04 18:18:08 +000011164ac_res=`eval echo '${'$as_ac_var'}'`
11165 { echo "$as_me:$LINENO: result: $ac_res" >&5
11166echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011167if test `eval echo '${'$as_ac_var'}'` = yes; then
11168 cat >>confdefs.h <<_ACEOF
11169#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11170_ACEOF
11171
11172fi
11173done
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11203 stdio.h unistd.h
11204do
11205as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011210 echo $ECHO_N "(cached) $ECHO_C" >&6
11211fi
Reid Spencera773bd52006-08-04 18:18:08 +000011212ac_res=`eval echo '${'$as_ac_Header'}'`
11213 { echo "$as_me:$LINENO: result: $ac_res" >&5
11214echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011215else
11216 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011217{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11218echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011219cat >conftest.$ac_ext <<_ACEOF
11220/* confdefs.h. */
11221_ACEOF
11222cat confdefs.h >>conftest.$ac_ext
11223cat >>conftest.$ac_ext <<_ACEOF
11224/* end confdefs.h. */
11225$ac_includes_default
11226#include <$ac_header>
11227_ACEOF
11228rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011229if { (ac_try="$ac_compile"
11230case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233esac
11234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011236 ac_status=$?
11237 grep -v '^ *+' conftest.er1 >conftest.err
11238 rm -f conftest.er1
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011241 (exit $ac_status); } &&
11242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11243 { (case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246esac
11247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_try") 2>&5
11249 ac_status=$?
11250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11251 (exit $ac_status); }; } &&
11252 { ac_try='test -s conftest.$ac_objext'
11253 { (case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11256esac
11257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_try") 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011262 ac_header_compiler=yes
11263else
11264 echo "$as_me: failed program was:" >&5
11265sed 's/^/| /' conftest.$ac_ext >&5
11266
Reid Spencera773bd52006-08-04 18:18:08 +000011267 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268fi
Reid Spencera773bd52006-08-04 18:18:08 +000011269
11270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11271{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11272echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011273
11274# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011275{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11276echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277cat >conftest.$ac_ext <<_ACEOF
11278/* confdefs.h. */
11279_ACEOF
11280cat confdefs.h >>conftest.$ac_ext
11281cat >>conftest.$ac_ext <<_ACEOF
11282/* end confdefs.h. */
11283#include <$ac_header>
11284_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011285if { (ac_try="$ac_cpp conftest.$ac_ext"
11286case "(($ac_try" in
11287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288 *) ac_try_echo=$ac_try;;
11289esac
11290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011292 ac_status=$?
11293 grep -v '^ *+' conftest.er1 >conftest.err
11294 rm -f conftest.er1
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011297 (exit $ac_status); } >/dev/null; then
11298 if test -s conftest.err; then
11299 ac_cpp_err=$ac_c_preproc_warn_flag
11300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11301 else
11302 ac_cpp_err=
11303 fi
11304else
11305 ac_cpp_err=yes
11306fi
11307if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011308 ac_header_preproc=yes
11309else
11310 echo "$as_me: failed program was:" >&5
11311sed 's/^/| /' conftest.$ac_ext >&5
11312
11313 ac_header_preproc=no
11314fi
Reid Spencera773bd52006-08-04 18:18:08 +000011315
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011316rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011317{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11318echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011319
11320# So? What about this header?
11321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11322 yes:no: )
11323 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11324echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11326echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11327 ac_header_preproc=yes
11328 ;;
11329 no:yes:* )
11330 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11331echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11333echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11335echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11337echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11339echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11340 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11341echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011342 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011343## ----------------------------------- ##
11344## Report this to llvmbugs@cs.uiuc.edu ##
11345## ----------------------------------- ##
11346_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011347 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011348 ;;
11349esac
Reid Spencera773bd52006-08-04 18:18:08 +000011350{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354else
11355 eval "$as_ac_Header=\$ac_header_preproc"
11356fi
Reid Spencera773bd52006-08-04 18:18:08 +000011357ac_res=`eval echo '${'$as_ac_Header'}'`
11358 { echo "$as_me:$LINENO: result: $ac_res" >&5
11359echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011360
11361fi
11362if test `eval echo '${'$as_ac_Header'}'` = yes; then
11363 cat >>confdefs.h <<_ACEOF
11364#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11365_ACEOF
11366
11367fi
11368
11369done
11370
11371
11372
11373
11374
11375for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11376do
11377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011378if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011382 echo $ECHO_N "(cached) $ECHO_C" >&6
11383fi
Reid Spencera773bd52006-08-04 18:18:08 +000011384ac_res=`eval echo '${'$as_ac_Header'}'`
11385 { echo "$as_me:$LINENO: result: $ac_res" >&5
11386echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011387else
11388 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011389{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11390echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391cat >conftest.$ac_ext <<_ACEOF
11392/* confdefs.h. */
11393_ACEOF
11394cat confdefs.h >>conftest.$ac_ext
11395cat >>conftest.$ac_ext <<_ACEOF
11396/* end confdefs.h. */
11397$ac_includes_default
11398#include <$ac_header>
11399_ACEOF
11400rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011401if { (ac_try="$ac_compile"
11402case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405esac
11406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011413 (exit $ac_status); } &&
11414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11415 { (case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11418esac
11419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_try") 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; } &&
11424 { ac_try='test -s conftest.$ac_objext'
11425 { (case "(($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_try") 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011434 ac_header_compiler=yes
11435else
11436 echo "$as_me: failed program was:" >&5
11437sed 's/^/| /' conftest.$ac_ext >&5
11438
Reid Spencera773bd52006-08-04 18:18:08 +000011439 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011440fi
Reid Spencera773bd52006-08-04 18:18:08 +000011441
11442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11443{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11444echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011445
11446# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011447{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449cat >conftest.$ac_ext <<_ACEOF
11450/* confdefs.h. */
11451_ACEOF
11452cat confdefs.h >>conftest.$ac_ext
11453cat >>conftest.$ac_ext <<_ACEOF
11454/* end confdefs.h. */
11455#include <$ac_header>
11456_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011457if { (ac_try="$ac_cpp conftest.$ac_ext"
11458case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11461esac
11462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011469 (exit $ac_status); } >/dev/null; then
11470 if test -s conftest.err; then
11471 ac_cpp_err=$ac_c_preproc_warn_flag
11472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11473 else
11474 ac_cpp_err=
11475 fi
11476else
11477 ac_cpp_err=yes
11478fi
11479if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011480 ac_header_preproc=yes
11481else
11482 echo "$as_me: failed program was:" >&5
11483sed 's/^/| /' conftest.$ac_ext >&5
11484
11485 ac_header_preproc=no
11486fi
Reid Spencera773bd52006-08-04 18:18:08 +000011487
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011488rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011489{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11490echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011491
11492# So? What about this header?
11493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11494 yes:no: )
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11498echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11499 ac_header_preproc=yes
11500 ;;
11501 no:yes:* )
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11505echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11507echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11509echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11513echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011514 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011515## ----------------------------------- ##
11516## Report this to llvmbugs@cs.uiuc.edu ##
11517## ----------------------------------- ##
11518_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011519 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011520 ;;
11521esac
Reid Spencera773bd52006-08-04 18:18:08 +000011522{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011525 echo $ECHO_N "(cached) $ECHO_C" >&6
11526else
11527 eval "$as_ac_Header=\$ac_header_preproc"
11528fi
Reid Spencera773bd52006-08-04 18:18:08 +000011529ac_res=`eval echo '${'$as_ac_Header'}'`
11530 { echo "$as_me:$LINENO: result: $ac_res" >&5
11531echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011532
11533fi
11534if test `eval echo '${'$as_ac_Header'}'` = yes; then
11535 cat >>confdefs.h <<_ACEOF
11536#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11537_ACEOF
11538
11539fi
11540
11541done
11542
11543
11544
11545for ac_header in string.h strings.h
11546do
11547as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011548if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552 echo $ECHO_N "(cached) $ECHO_C" >&6
11553fi
Reid Spencera773bd52006-08-04 18:18:08 +000011554ac_res=`eval echo '${'$as_ac_Header'}'`
11555 { echo "$as_me:$LINENO: result: $ac_res" >&5
11556echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011557else
11558 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011559{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11560echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011561cat >conftest.$ac_ext <<_ACEOF
11562/* confdefs.h. */
11563_ACEOF
11564cat confdefs.h >>conftest.$ac_ext
11565cat >>conftest.$ac_ext <<_ACEOF
11566/* end confdefs.h. */
11567$ac_includes_default
11568#include <$ac_header>
11569_ACEOF
11570rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011571if { (ac_try="$ac_compile"
11572case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11575esac
11576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011583 (exit $ac_status); } &&
11584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11585 { (case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588esac
11589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_try") 2>&5
11591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try='test -s conftest.$ac_objext'
11595 { (case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11598esac
11599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_try") 2>&5
11601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011604 ac_header_compiler=yes
11605else
11606 echo "$as_me: failed program was:" >&5
11607sed 's/^/| /' conftest.$ac_ext >&5
11608
Reid Spencera773bd52006-08-04 18:18:08 +000011609 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011610fi
Reid Spencera773bd52006-08-04 18:18:08 +000011611
11612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11613{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11614echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011615
11616# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011617{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11618echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011619cat >conftest.$ac_ext <<_ACEOF
11620/* confdefs.h. */
11621_ACEOF
11622cat confdefs.h >>conftest.$ac_ext
11623cat >>conftest.$ac_ext <<_ACEOF
11624/* end confdefs.h. */
11625#include <$ac_header>
11626_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011627if { (ac_try="$ac_cpp conftest.$ac_ext"
11628case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631esac
11632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011634 ac_status=$?
11635 grep -v '^ *+' conftest.er1 >conftest.err
11636 rm -f conftest.er1
11637 cat conftest.err >&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011639 (exit $ac_status); } >/dev/null; then
11640 if test -s conftest.err; then
11641 ac_cpp_err=$ac_c_preproc_warn_flag
11642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11643 else
11644 ac_cpp_err=
11645 fi
11646else
11647 ac_cpp_err=yes
11648fi
11649if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011650 ac_header_preproc=yes
11651else
11652 echo "$as_me: failed program was:" >&5
11653sed 's/^/| /' conftest.$ac_ext >&5
11654
11655 ac_header_preproc=no
11656fi
Reid Spencera773bd52006-08-04 18:18:08 +000011657
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011658rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011659{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11660echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011661
11662# So? What about this header?
11663case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11664 yes:no: )
11665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11666echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11668echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11669 ac_header_preproc=yes
11670 ;;
11671 no:yes:* )
11672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11673echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11675echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11677echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11679echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11681echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11683echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011684 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011685## ----------------------------------- ##
11686## Report this to llvmbugs@cs.uiuc.edu ##
11687## ----------------------------------- ##
11688_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011689 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011690 ;;
11691esac
Reid Spencera773bd52006-08-04 18:18:08 +000011692{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11694if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011695 echo $ECHO_N "(cached) $ECHO_C" >&6
11696else
11697 eval "$as_ac_Header=\$ac_header_preproc"
11698fi
Reid Spencera773bd52006-08-04 18:18:08 +000011699ac_res=`eval echo '${'$as_ac_Header'}'`
11700 { echo "$as_me:$LINENO: result: $ac_res" >&5
11701echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011702
11703fi
11704if test `eval echo '${'$as_ac_Header'}'` = yes; then
11705 cat >>confdefs.h <<_ACEOF
11706#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11707_ACEOF
11708 break
11709fi
11710
11711done
11712
11713
11714
11715
11716for ac_func in strchr index
11717do
11718as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011719{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11720echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11721if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723else
11724 cat >conftest.$ac_ext <<_ACEOF
11725/* confdefs.h. */
11726_ACEOF
11727cat confdefs.h >>conftest.$ac_ext
11728cat >>conftest.$ac_ext <<_ACEOF
11729/* end confdefs.h. */
11730/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11732#define $ac_func innocuous_$ac_func
11733
11734/* System header to define __stub macros and hopefully few prototypes,
11735 which can conflict with char $ac_func (); below.
11736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11737 <limits.h> exists even on freestanding compilers. */
11738
11739#ifdef __STDC__
11740# include <limits.h>
11741#else
11742# include <assert.h>
11743#endif
11744
11745#undef $ac_func
11746
Reid Spencera773bd52006-08-04 18:18:08 +000011747/* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011750#ifdef __cplusplus
11751extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011753char $ac_func ();
11754/* The GNU C library defines this for functions which it implements
11755 to always fail with ENOSYS. Some functions are actually named
11756 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011757#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011758choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011759#endif
11760
11761int
11762main ()
11763{
Reid Spencera773bd52006-08-04 18:18:08 +000011764return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011765 ;
11766 return 0;
11767}
11768_ACEOF
11769rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011770if { (ac_try="$ac_link"
11771case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774esac
11775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011782 (exit $ac_status); } &&
11783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11784 { (case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11787esac
11788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_try") 2>&5
11790 ac_status=$?
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); }; } &&
11793 { ac_try='test -s conftest$ac_exeext'
11794 { (case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797esac
11798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_try") 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011803 eval "$as_ac_var=yes"
11804else
11805 echo "$as_me: failed program was:" >&5
11806sed 's/^/| /' conftest.$ac_ext >&5
11807
Reid Spencera773bd52006-08-04 18:18:08 +000011808 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011809fi
Reid Spencera773bd52006-08-04 18:18:08 +000011810
Bill Wendlingebcceee2009-04-18 11:20:33 +000011811rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011812 conftest$ac_exeext conftest.$ac_ext
11813fi
Reid Spencera773bd52006-08-04 18:18:08 +000011814ac_res=`eval echo '${'$as_ac_var'}'`
11815 { echo "$as_me:$LINENO: result: $ac_res" >&5
11816echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011817if test `eval echo '${'$as_ac_var'}'` = yes; then
11818 cat >>confdefs.h <<_ACEOF
11819#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11820_ACEOF
11821 break
11822fi
11823done
11824
11825
11826
11827for ac_func in strrchr rindex
11828do
11829as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011830{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11831echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11832if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011833 echo $ECHO_N "(cached) $ECHO_C" >&6
11834else
11835 cat >conftest.$ac_ext <<_ACEOF
11836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
11841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11843#define $ac_func innocuous_$ac_func
11844
11845/* System header to define __stub macros and hopefully few prototypes,
11846 which can conflict with char $ac_func (); below.
11847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11848 <limits.h> exists even on freestanding compilers. */
11849
11850#ifdef __STDC__
11851# include <limits.h>
11852#else
11853# include <assert.h>
11854#endif
11855
11856#undef $ac_func
11857
Reid Spencera773bd52006-08-04 18:18:08 +000011858/* Override any GCC internal prototype to avoid an error.
11859 Use char because int might match the return type of a GCC
11860 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011861#ifdef __cplusplus
11862extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011864char $ac_func ();
11865/* The GNU C library defines this for functions which it implements
11866 to always fail with ENOSYS. Some functions are actually named
11867 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011868#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011869choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011870#endif
11871
11872int
11873main ()
11874{
Reid Spencera773bd52006-08-04 18:18:08 +000011875return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876 ;
11877 return 0;
11878}
11879_ACEOF
11880rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011881if { (ac_try="$ac_link"
11882case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888 ac_status=$?
11889 grep -v '^ *+' conftest.er1 >conftest.err
11890 rm -f conftest.er1
11891 cat conftest.err >&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000011893 (exit $ac_status); } &&
11894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11895 { (case "(($ac_try" in
11896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11897 *) ac_try_echo=$ac_try;;
11898esac
11899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11900 (eval "$ac_try") 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest$ac_exeext'
11905 { (case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908esac
11909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_try") 2>&5
11911 ac_status=$?
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011914 eval "$as_ac_var=yes"
11915else
11916 echo "$as_me: failed program was:" >&5
11917sed 's/^/| /' conftest.$ac_ext >&5
11918
Reid Spencera773bd52006-08-04 18:18:08 +000011919 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011920fi
Reid Spencera773bd52006-08-04 18:18:08 +000011921
Bill Wendlingebcceee2009-04-18 11:20:33 +000011922rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011923 conftest$ac_exeext conftest.$ac_ext
11924fi
Reid Spencera773bd52006-08-04 18:18:08 +000011925ac_res=`eval echo '${'$as_ac_var'}'`
11926 { echo "$as_me:$LINENO: result: $ac_res" >&5
11927echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011928if test `eval echo '${'$as_ac_var'}'` = yes; then
11929 cat >>confdefs.h <<_ACEOF
11930#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11931_ACEOF
11932 break
11933fi
11934done
11935
11936
11937
11938for ac_func in memcpy bcopy
11939do
11940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011941{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11943if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011944 echo $ECHO_N "(cached) $ECHO_C" >&6
11945else
11946 cat >conftest.$ac_ext <<_ACEOF
11947/* confdefs.h. */
11948_ACEOF
11949cat confdefs.h >>conftest.$ac_ext
11950cat >>conftest.$ac_ext <<_ACEOF
11951/* end confdefs.h. */
11952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11954#define $ac_func innocuous_$ac_func
11955
11956/* System header to define __stub macros and hopefully few prototypes,
11957 which can conflict with char $ac_func (); below.
11958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11959 <limits.h> exists even on freestanding compilers. */
11960
11961#ifdef __STDC__
11962# include <limits.h>
11963#else
11964# include <assert.h>
11965#endif
11966
11967#undef $ac_func
11968
Reid Spencera773bd52006-08-04 18:18:08 +000011969/* Override any GCC internal prototype to avoid an error.
11970 Use char because int might match the return type of a GCC
11971 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011972#ifdef __cplusplus
11973extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011974#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011975char $ac_func ();
11976/* The GNU C library defines this for functions which it implements
11977 to always fail with ENOSYS. Some functions are actually named
11978 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011979#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011980choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011981#endif
11982
11983int
11984main ()
11985{
Reid Spencera773bd52006-08-04 18:18:08 +000011986return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011987 ;
11988 return 0;
11989}
11990_ACEOF
11991rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011992if { (ac_try="$ac_link"
11993case "(($ac_try" in
11994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11995 *) ac_try_echo=$ac_try;;
11996esac
11997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11998 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012004 (exit $ac_status); } &&
12005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12006 { (case "(($ac_try" in
12007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008 *) ac_try_echo=$ac_try;;
12009esac
12010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011 (eval "$ac_try") 2>&5
12012 ac_status=$?
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (case "(($ac_try" in
12017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018 *) ac_try_echo=$ac_try;;
12019esac
12020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021 (eval "$ac_try") 2>&5
12022 ac_status=$?
12023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012025 eval "$as_ac_var=yes"
12026else
12027 echo "$as_me: failed program was:" >&5
12028sed 's/^/| /' conftest.$ac_ext >&5
12029
Reid Spencera773bd52006-08-04 18:18:08 +000012030 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012031fi
Reid Spencera773bd52006-08-04 18:18:08 +000012032
Bill Wendlingebcceee2009-04-18 11:20:33 +000012033rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012034 conftest$ac_exeext conftest.$ac_ext
12035fi
Reid Spencera773bd52006-08-04 18:18:08 +000012036ac_res=`eval echo '${'$as_ac_var'}'`
12037 { echo "$as_me:$LINENO: result: $ac_res" >&5
12038echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012039if test `eval echo '${'$as_ac_var'}'` = yes; then
12040 cat >>confdefs.h <<_ACEOF
12041#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12042_ACEOF
12043 break
12044fi
12045done
12046
12047
12048
12049for ac_func in memmove strcmp
12050do
12051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012052{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12054if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012055 echo $ECHO_N "(cached) $ECHO_C" >&6
12056else
12057 cat >conftest.$ac_ext <<_ACEOF
12058/* confdefs.h. */
12059_ACEOF
12060cat confdefs.h >>conftest.$ac_ext
12061cat >>conftest.$ac_ext <<_ACEOF
12062/* end confdefs.h. */
12063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12065#define $ac_func innocuous_$ac_func
12066
12067/* System header to define __stub macros and hopefully few prototypes,
12068 which can conflict with char $ac_func (); below.
12069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12070 <limits.h> exists even on freestanding compilers. */
12071
12072#ifdef __STDC__
12073# include <limits.h>
12074#else
12075# include <assert.h>
12076#endif
12077
12078#undef $ac_func
12079
Reid Spencera773bd52006-08-04 18:18:08 +000012080/* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012083#ifdef __cplusplus
12084extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012085#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012086char $ac_func ();
12087/* The GNU C library defines this for functions which it implements
12088 to always fail with ENOSYS. Some functions are actually named
12089 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012090#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012091choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012092#endif
12093
12094int
12095main ()
12096{
Reid Spencera773bd52006-08-04 18:18:08 +000012097return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012098 ;
12099 return 0;
12100}
12101_ACEOF
12102rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012103if { (ac_try="$ac_link"
12104case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12107esac
12108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012110 ac_status=$?
12111 grep -v '^ *+' conftest.er1 >conftest.err
12112 rm -f conftest.er1
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012115 (exit $ac_status); } &&
12116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12117 { (case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12120esac
12121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_try") 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest$ac_exeext'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130esac
12131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012136 eval "$as_ac_var=yes"
12137else
12138 echo "$as_me: failed program was:" >&5
12139sed 's/^/| /' conftest.$ac_ext >&5
12140
Reid Spencera773bd52006-08-04 18:18:08 +000012141 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012142fi
Reid Spencera773bd52006-08-04 18:18:08 +000012143
Bill Wendlingebcceee2009-04-18 11:20:33 +000012144rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012145 conftest$ac_exeext conftest.$ac_ext
12146fi
Reid Spencera773bd52006-08-04 18:18:08 +000012147ac_res=`eval echo '${'$as_ac_var'}'`
12148 { echo "$as_me:$LINENO: result: $ac_res" >&5
12149echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012150if test `eval echo '${'$as_ac_var'}'` = yes; then
12151 cat >>confdefs.h <<_ACEOF
12152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12153_ACEOF
12154
12155fi
12156done
12157
12158
12159
12160
12161for ac_func in closedir opendir readdir
12162do
12163as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012164{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12165echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12166if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168else
12169 cat >conftest.$ac_ext <<_ACEOF
12170/* confdefs.h. */
12171_ACEOF
12172cat confdefs.h >>conftest.$ac_ext
12173cat >>conftest.$ac_ext <<_ACEOF
12174/* end confdefs.h. */
12175/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12177#define $ac_func innocuous_$ac_func
12178
12179/* System header to define __stub macros and hopefully few prototypes,
12180 which can conflict with char $ac_func (); below.
12181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12182 <limits.h> exists even on freestanding compilers. */
12183
12184#ifdef __STDC__
12185# include <limits.h>
12186#else
12187# include <assert.h>
12188#endif
12189
12190#undef $ac_func
12191
Reid Spencera773bd52006-08-04 18:18:08 +000012192/* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012195#ifdef __cplusplus
12196extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012197#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012198char $ac_func ();
12199/* The GNU C library defines this for functions which it implements
12200 to always fail with ENOSYS. Some functions are actually named
12201 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012202#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012203choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012204#endif
12205
12206int
12207main ()
12208{
Reid Spencera773bd52006-08-04 18:18:08 +000012209return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012210 ;
12211 return 0;
12212}
12213_ACEOF
12214rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012215if { (ac_try="$ac_link"
12216case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12219esac
12220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12232esac
12233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; } &&
12238 { ac_try='test -s conftest$ac_exeext'
12239 { (case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12242esac
12243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_try") 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012248 eval "$as_ac_var=yes"
12249else
12250 echo "$as_me: failed program was:" >&5
12251sed 's/^/| /' conftest.$ac_ext >&5
12252
Reid Spencera773bd52006-08-04 18:18:08 +000012253 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012254fi
Reid Spencera773bd52006-08-04 18:18:08 +000012255
Bill Wendlingebcceee2009-04-18 11:20:33 +000012256rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012257 conftest$ac_exeext conftest.$ac_ext
12258fi
Reid Spencera773bd52006-08-04 18:18:08 +000012259ac_res=`eval echo '${'$as_ac_var'}'`
12260 { echo "$as_me:$LINENO: result: $ac_res" >&5
12261echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012262if test `eval echo '${'$as_ac_var'}'` = yes; then
12263 cat >>confdefs.h <<_ACEOF
12264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12265_ACEOF
12266
12267fi
12268done
12269
12270
Reid Spencera773bd52006-08-04 18:18:08 +000012271# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012272if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012273 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012274 case $enableval in
12275 yes) enable_shared=yes ;;
12276 no) enable_shared=no ;;
12277 *)
12278 enable_shared=no
12279 # Look at the argument we got. We use all the common list separators.
12280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12281 for pkg in $enableval; do
12282 IFS="$lt_save_ifs"
12283 if test "X$pkg" = "X$p"; then
12284 enable_shared=yes
12285 fi
12286 done
12287 IFS="$lt_save_ifs"
12288 ;;
12289 esac
12290else
12291 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012292fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012293
Reid Spencera773bd52006-08-04 18:18:08 +000012294
12295# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012296if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012297 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012298 case $enableval in
12299 yes) enable_static=yes ;;
12300 no) enable_static=no ;;
12301 *)
12302 enable_static=no
12303 # Look at the argument we got. We use all the common list separators.
12304 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12305 for pkg in $enableval; do
12306 IFS="$lt_save_ifs"
12307 if test "X$pkg" = "X$p"; then
12308 enable_static=yes
12309 fi
12310 done
12311 IFS="$lt_save_ifs"
12312 ;;
12313 esac
12314else
12315 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012316fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012317
Reid Spencera773bd52006-08-04 18:18:08 +000012318
12319# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012320if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012321 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012322 case $enableval in
12323 yes) enable_fast_install=yes ;;
12324 no) enable_fast_install=no ;;
12325 *)
12326 enable_fast_install=no
12327 # Look at the argument we got. We use all the common list separators.
12328 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12329 for pkg in $enableval; do
12330 IFS="$lt_save_ifs"
12331 if test "X$pkg" = "X$p"; then
12332 enable_fast_install=yes
12333 fi
12334 done
12335 IFS="$lt_save_ifs"
12336 ;;
12337 esac
12338else
12339 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012340fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012341
Reid Spencera773bd52006-08-04 18:18:08 +000012342
12343{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12344echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012345if test "${lt_cv_path_SED+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12347else
12348 # Loop through the user's path and test for sed and gsed.
12349# Then use that list of sed's as ones to test for truncation.
12350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351for as_dir in $PATH
12352do
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
12355 for lt_ac_prog in sed gsed; do
12356 for ac_exec_ext in '' $ac_executable_extensions; do
12357 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12358 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12359 fi
12360 done
12361 done
12362done
12363lt_ac_max=0
12364lt_ac_count=0
12365# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12366# along with /bin/sed that truncates output.
12367for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012368 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012369 cat /dev/null > conftest.in
12370 lt_ac_count=0
12371 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12372 # Check for GNU sed and select it if it is found.
12373 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12374 lt_cv_path_SED=$lt_ac_sed
12375 break
12376 fi
12377 while true; do
12378 cat conftest.in conftest.in >conftest.tmp
12379 mv conftest.tmp conftest.in
12380 cp conftest.in conftest.nl
12381 echo >>conftest.nl
12382 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12383 cmp -s conftest.out conftest.nl || break
12384 # 10000 chars as input seems more than enough
12385 test $lt_ac_count -gt 10 && break
12386 lt_ac_count=`expr $lt_ac_count + 1`
12387 if test $lt_ac_count -gt $lt_ac_max; then
12388 lt_ac_max=$lt_ac_count
12389 lt_cv_path_SED=$lt_ac_sed
12390 fi
12391 done
12392done
12393
12394fi
12395
12396SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012397{ echo "$as_me:$LINENO: result: $SED" >&5
12398echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012399
12400
Reid Spencera773bd52006-08-04 18:18:08 +000012401# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012402if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012403 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012404else
12405 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012406fi
12407
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012408ac_prog=ld
12409if test "$GCC" = yes; then
12410 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012411 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12412echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012413 case $host in
12414 *-*-mingw*)
12415 # gcc leaves a trailing carriage return which upsets mingw
12416 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12417 *)
12418 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12419 esac
12420 case $ac_prog in
12421 # Accept absolute paths.
12422 [\\/]* | ?:[\\/]*)
12423 re_direlt='/[^/][^/]*/\.\./'
12424 # Canonicalize the pathname of ld
12425 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12426 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12427 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12428 done
12429 test -z "$LD" && LD="$ac_prog"
12430 ;;
12431 "")
12432 # If it fails, then pretend we aren't using GCC.
12433 ac_prog=ld
12434 ;;
12435 *)
12436 # If it is relative, then search for the first ld in PATH.
12437 with_gnu_ld=unknown
12438 ;;
12439 esac
12440elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012441 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12442echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012443else
Reid Spencera773bd52006-08-04 18:18:08 +000012444 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12445echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012446fi
12447if test "${lt_cv_path_LD+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12449else
12450 if test -z "$LD"; then
12451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12452 for ac_dir in $PATH; do
12453 IFS="$lt_save_ifs"
12454 test -z "$ac_dir" && ac_dir=.
12455 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12456 lt_cv_path_LD="$ac_dir/$ac_prog"
12457 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012458 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012459 # Break only if it was the GNU/non-GNU ld that we prefer.
12460 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12461 *GNU* | *'with BFD'*)
12462 test "$with_gnu_ld" != no && break
12463 ;;
12464 *)
12465 test "$with_gnu_ld" != yes && break
12466 ;;
12467 esac
12468 fi
12469 done
12470 IFS="$lt_save_ifs"
12471else
12472 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12473fi
12474fi
12475
12476LD="$lt_cv_path_LD"
12477if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012478 { echo "$as_me:$LINENO: result: $LD" >&5
12479echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012480else
Reid Spencera773bd52006-08-04 18:18:08 +000012481 { echo "$as_me:$LINENO: result: no" >&5
12482echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012483fi
12484test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12485echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12486 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012487{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12488echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012489if test "${lt_cv_prog_gnu_ld+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12491else
Reid Spencera773bd52006-08-04 18:18:08 +000012492 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012493case `$LD -v 2>&1 </dev/null` in
12494*GNU* | *'with BFD'*)
12495 lt_cv_prog_gnu_ld=yes
12496 ;;
12497*)
12498 lt_cv_prog_gnu_ld=no
12499 ;;
12500esac
12501fi
Reid Spencera773bd52006-08-04 18:18:08 +000012502{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12503echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012504with_gnu_ld=$lt_cv_prog_gnu_ld
12505
12506
Reid Spencera773bd52006-08-04 18:18:08 +000012507{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12508echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012509if test "${lt_cv_ld_reload_flag+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511else
12512 lt_cv_ld_reload_flag='-r'
12513fi
Reid Spencera773bd52006-08-04 18:18:08 +000012514{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12515echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012516reload_flag=$lt_cv_ld_reload_flag
12517case $reload_flag in
12518"" | " "*) ;;
12519*) reload_flag=" $reload_flag" ;;
12520esac
12521reload_cmds='$LD$reload_flag -o $output$reload_objs'
12522case $host_os in
12523 darwin*)
12524 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012525 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012526 else
12527 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12528 fi
12529 ;;
12530esac
12531
Reid Spencera773bd52006-08-04 18:18:08 +000012532{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12533echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012534if test "${lt_cv_deplibs_check_method+set}" = set; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12536else
12537 lt_cv_file_magic_cmd='$MAGIC_CMD'
12538lt_cv_file_magic_test_file=
12539lt_cv_deplibs_check_method='unknown'
12540# Need to set the preceding variable on all platforms that support
12541# interlibrary dependencies.
12542# 'none' -- dependencies not supported.
12543# `unknown' -- same as none, but documents that we really don't know.
12544# 'pass_all' -- all dependencies passed with no checks.
12545# 'test_compile' -- check by making test program.
12546# 'file_magic [[regex]]' -- check by looking for files in library path
12547# which responds to the $file_magic_cmd with a given extended regex.
12548# If you have `file' or equivalent on your system and you're not sure
12549# whether `pass_all' will *always* work, you probably want this one.
12550
12551case $host_os in
12552aix4* | aix5*)
12553 lt_cv_deplibs_check_method=pass_all
12554 ;;
12555
12556beos*)
12557 lt_cv_deplibs_check_method=pass_all
12558 ;;
12559
12560bsdi[45]*)
12561 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12562 lt_cv_file_magic_cmd='/usr/bin/file -L'
12563 lt_cv_file_magic_test_file=/shlib/libc.so
12564 ;;
12565
12566cygwin*)
12567 # func_win32_libid is a shell function defined in ltmain.sh
12568 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12569 lt_cv_file_magic_cmd='func_win32_libid'
12570 ;;
12571
12572mingw* | pw32*)
12573 # Base MSYS/MinGW do not provide the 'file' command needed by
12574 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12575 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12576 lt_cv_file_magic_cmd='$OBJDUMP -f'
12577 ;;
12578
12579darwin* | rhapsody*)
12580 lt_cv_deplibs_check_method=pass_all
12581 ;;
12582
Reid Spencera773bd52006-08-04 18:18:08 +000012583freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012584 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12585 case $host_cpu in
12586 i*86 )
12587 # Not sure whether the presence of OpenBSD here was a mistake.
12588 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012589 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 +000012590 lt_cv_file_magic_cmd=/usr/bin/file
12591 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12592 ;;
12593 esac
12594 else
12595 lt_cv_deplibs_check_method=pass_all
12596 fi
12597 ;;
12598
12599gnu*)
12600 lt_cv_deplibs_check_method=pass_all
12601 ;;
12602
12603hpux10.20* | hpux11*)
12604 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012605 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012606 ia64*)
12607 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12608 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12609 ;;
12610 hppa*64*)
12611 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]'
12612 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12613 ;;
12614 *)
12615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12616 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12617 ;;
12618 esac
12619 ;;
12620
Reid Spencera773bd52006-08-04 18:18:08 +000012621interix3*)
12622 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12624 ;;
12625
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012626irix5* | irix6* | nonstopux*)
12627 case $LD in
12628 *-32|*"-32 ") libmagic=32-bit;;
12629 *-n32|*"-n32 ") libmagic=N32;;
12630 *-64|*"-64 ") libmagic=64-bit;;
12631 *) libmagic=never-match;;
12632 esac
12633 lt_cv_deplibs_check_method=pass_all
12634 ;;
12635
12636# This must be Linux ELF.
12637linux*)
12638 lt_cv_deplibs_check_method=pass_all
12639 ;;
12640
12641netbsd*)
12642 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12644 else
12645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12646 fi
12647 ;;
12648
12649newos6*)
12650 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12651 lt_cv_file_magic_cmd=/usr/bin/file
12652 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12653 ;;
12654
12655nto-qnx*)
12656 lt_cv_deplibs_check_method=unknown
12657 ;;
12658
12659openbsd*)
12660 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12661 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12662 else
12663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12664 fi
12665 ;;
12666
12667osf3* | osf4* | osf5*)
12668 lt_cv_deplibs_check_method=pass_all
12669 ;;
12670
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012671solaris*)
12672 lt_cv_deplibs_check_method=pass_all
12673 ;;
12674
Reid Spencera773bd52006-08-04 18:18:08 +000012675sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012676 case $host_vendor in
12677 motorola)
12678 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]'
12679 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12680 ;;
12681 ncr)
12682 lt_cv_deplibs_check_method=pass_all
12683 ;;
12684 sequent)
12685 lt_cv_file_magic_cmd='/bin/file'
12686 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12687 ;;
12688 sni)
12689 lt_cv_file_magic_cmd='/bin/file'
12690 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12691 lt_cv_file_magic_test_file=/lib/libc.so
12692 ;;
12693 siemens)
12694 lt_cv_deplibs_check_method=pass_all
12695 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012696 pc)
12697 lt_cv_deplibs_check_method=pass_all
12698 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012699 esac
12700 ;;
12701
Reid Spencera773bd52006-08-04 18:18:08 +000012702sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012703 lt_cv_deplibs_check_method=pass_all
12704 ;;
12705esac
12706
12707fi
Reid Spencera773bd52006-08-04 18:18:08 +000012708{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12709echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012710file_magic_cmd=$lt_cv_file_magic_cmd
12711deplibs_check_method=$lt_cv_deplibs_check_method
12712test -z "$deplibs_check_method" && deplibs_check_method=unknown
12713
12714
12715
12716# If no C compiler was specified, use CC.
12717LTCC=${LTCC-"$CC"}
12718
Reid Spencera773bd52006-08-04 18:18:08 +000012719# If no C compiler flags were specified, use CFLAGS.
12720LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12721
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012722# Allow CC to be a program name with arguments.
12723compiler=$CC
12724
Reid Spencera773bd52006-08-04 18:18:08 +000012725# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012726if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012727 enableval=$enable_libtool_lock;
12728fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012729
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012730test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12731
12732# Some flags need to be propagated to the compiler or linker for good
12733# libtool support.
12734case $host in
12735ia64-*-hpux*)
12736 # Find out which ABI we are using.
12737 echo 'int i;' > conftest.$ac_ext
12738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12739 (eval $ac_compile) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; then
12743 case `/usr/bin/file conftest.$ac_objext` in
12744 *ELF-32*)
12745 HPUX_IA64_MODE="32"
12746 ;;
12747 *ELF-64*)
12748 HPUX_IA64_MODE="64"
12749 ;;
12750 esac
12751 fi
12752 rm -rf conftest*
12753 ;;
12754*-*-irix6*)
12755 # Find out which ABI we are using.
Douglas Gregor1555a232009-06-16 20:12:29 +000012756 echo '#line 12756 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12758 (eval $ac_compile) 2>&5
12759 ac_status=$?
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; then
12762 if test "$lt_cv_prog_gnu_ld" = yes; then
12763 case `/usr/bin/file conftest.$ac_objext` in
12764 *32-bit*)
12765 LD="${LD-ld} -melf32bsmip"
12766 ;;
12767 *N32*)
12768 LD="${LD-ld} -melf32bmipn32"
12769 ;;
12770 *64-bit*)
12771 LD="${LD-ld} -melf64bmip"
12772 ;;
12773 esac
12774 else
12775 case `/usr/bin/file conftest.$ac_objext` in
12776 *32-bit*)
12777 LD="${LD-ld} -32"
12778 ;;
12779 *N32*)
12780 LD="${LD-ld} -n32"
12781 ;;
12782 *64-bit*)
12783 LD="${LD-ld} -64"
12784 ;;
12785 esac
12786 fi
12787 fi
12788 rm -rf conftest*
12789 ;;
12790
12791x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12792 # Find out which ABI we are using.
12793 echo 'int i;' > conftest.$ac_ext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12795 (eval $ac_compile) 2>&5
12796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012799 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012800 *32-bit*)
12801 case $host in
12802 x86_64-*linux*)
12803 LD="${LD-ld} -m elf_i386"
12804 ;;
12805 ppc64-*linux*|powerpc64-*linux*)
12806 LD="${LD-ld} -m elf32ppclinux"
12807 ;;
12808 s390x-*linux*)
12809 LD="${LD-ld} -m elf_s390"
12810 ;;
12811 sparc64-*linux*)
12812 LD="${LD-ld} -m elf32_sparc"
12813 ;;
12814 esac
12815 ;;
12816 *64-bit*)
12817 case $host in
12818 x86_64-*linux*)
12819 LD="${LD-ld} -m elf_x86_64"
12820 ;;
12821 ppc*-*linux*|powerpc*-*linux*)
12822 LD="${LD-ld} -m elf64ppc"
12823 ;;
12824 s390*-*linux*)
12825 LD="${LD-ld} -m elf64_s390"
12826 ;;
12827 sparc*-*linux*)
12828 LD="${LD-ld} -m elf64_sparc"
12829 ;;
12830 esac
12831 ;;
12832 esac
12833 fi
12834 rm -rf conftest*
12835 ;;
12836
12837*-*-sco3.2v5*)
12838 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12839 SAVE_CFLAGS="$CFLAGS"
12840 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012841 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12842echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012843if test "${lt_cv_cc_needs_belf+set}" = set; then
12844 echo $ECHO_N "(cached) $ECHO_C" >&6
12845else
12846 ac_ext=c
12847ac_cpp='$CPP $CPPFLAGS'
12848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850ac_compiler_gnu=$ac_cv_c_compiler_gnu
12851
12852 cat >conftest.$ac_ext <<_ACEOF
12853/* confdefs.h. */
12854_ACEOF
12855cat confdefs.h >>conftest.$ac_ext
12856cat >>conftest.$ac_ext <<_ACEOF
12857/* end confdefs.h. */
12858
Reid Spencera773bd52006-08-04 18:18:08 +000012859int
12860main ()
12861{
12862
12863 ;
12864 return 0;
12865}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012866_ACEOF
12867rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012868if { (ac_try="$ac_link"
12869case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872esac
12873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000012880 (exit $ac_status); } &&
12881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
12892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895esac
12896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012901 lt_cv_cc_needs_belf=yes
12902else
12903 echo "$as_me: failed program was:" >&5
12904sed 's/^/| /' conftest.$ac_ext >&5
12905
Reid Spencera773bd52006-08-04 18:18:08 +000012906 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012907fi
Reid Spencera773bd52006-08-04 18:18:08 +000012908
Bill Wendlingebcceee2009-04-18 11:20:33 +000012909rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012910 conftest$ac_exeext conftest.$ac_ext
12911 ac_ext=c
12912ac_cpp='$CPP $CPPFLAGS'
12913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12915ac_compiler_gnu=$ac_cv_c_compiler_gnu
12916
12917fi
Reid Spencera773bd52006-08-04 18:18:08 +000012918{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12919echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012920 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12921 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12922 CFLAGS="$SAVE_CFLAGS"
12923 fi
12924 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012925sparc*-*solaris*)
12926 # Find out which ABI we are using.
12927 echo 'int i;' > conftest.$ac_ext
12928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12929 (eval $ac_compile) 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; then
12933 case `/usr/bin/file conftest.o` in
12934 *64-bit*)
12935 case $lt_cv_prog_gnu_ld in
12936 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12937 *) LD="${LD-ld} -64" ;;
12938 esac
12939 ;;
12940 esac
12941 fi
12942 rm -rf conftest*
12943 ;;
12944
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012945
12946esac
12947
12948need_locks="$enable_libtool_lock"
12949
12950
Reid Spencer2706f8c2004-09-19 23:53:36 +000012951
12952
12953if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12954 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12955 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012956 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012957ac_cpp='$CXXCPP $CPPFLAGS'
12958ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12959ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12960ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012961{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12962echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012963if test -z "$CXXCPP"; then
12964 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012965 echo $ECHO_N "(cached) $ECHO_C" >&6
12966else
John Criswell47fdd832003-07-14 16:52:07 +000012967 # Double quotes because CXXCPP needs to be expanded
12968 for CXXCPP in "$CXX -E" "/lib/cpp"
12969 do
12970 ac_preproc_ok=false
12971for ac_cxx_preproc_warn_flag in '' yes
12972do
12973 # Use a header file that comes with gcc, so configuring glibc
12974 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12976 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012977 # On the NeXT, cc -E runs the code through the compiler's parser,
12978 # not just through cpp. "Syntax error" is here to catch this case.
12979 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012980/* confdefs.h. */
12981_ACEOF
12982cat confdefs.h >>conftest.$ac_ext
12983cat >>conftest.$ac_ext <<_ACEOF
12984/* end confdefs.h. */
12985#ifdef __STDC__
12986# include <limits.h>
12987#else
12988# include <assert.h>
12989#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012990 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012991_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012992if { (ac_try="$ac_cpp conftest.$ac_ext"
12993case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996esac
12997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012999 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013000 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013004 (exit $ac_status); } >/dev/null; then
13005 if test -s conftest.err; then
13006 ac_cpp_err=$ac_cxx_preproc_warn_flag
13007 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13008 else
13009 ac_cpp_err=
13010 fi
13011else
13012 ac_cpp_err=yes
13013fi
13014if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013015 :
13016else
13017 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013018sed 's/^/| /' conftest.$ac_ext >&5
13019
John Criswell47fdd832003-07-14 16:52:07 +000013020 # Broken: fails on valid input.
13021continue
13022fi
Reid Spencera773bd52006-08-04 18:18:08 +000013023
John Criswell47fdd832003-07-14 16:52:07 +000013024rm -f conftest.err conftest.$ac_ext
13025
Reid Spencera773bd52006-08-04 18:18:08 +000013026 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013027 # can be detected and how.
13028 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013029/* confdefs.h. */
13030_ACEOF
13031cat confdefs.h >>conftest.$ac_ext
13032cat >>conftest.$ac_ext <<_ACEOF
13033/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013034#include <ac_nonexistent.h>
13035_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013036if { (ac_try="$ac_cpp conftest.$ac_ext"
13037case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13040esac
13041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013043 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013044 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013045 rm -f conftest.er1
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013048 (exit $ac_status); } >/dev/null; then
13049 if test -s conftest.err; then
13050 ac_cpp_err=$ac_cxx_preproc_warn_flag
13051 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13052 else
13053 ac_cpp_err=
13054 fi
13055else
13056 ac_cpp_err=yes
13057fi
13058if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013059 # Broken: success on invalid input.
13060continue
13061else
13062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013063sed 's/^/| /' conftest.$ac_ext >&5
13064
John Criswell47fdd832003-07-14 16:52:07 +000013065 # Passes both tests.
13066ac_preproc_ok=:
13067break
13068fi
Reid Spencera773bd52006-08-04 18:18:08 +000013069
John Criswell47fdd832003-07-14 16:52:07 +000013070rm -f conftest.err conftest.$ac_ext
13071
13072done
13073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13074rm -f conftest.err conftest.$ac_ext
13075if $ac_preproc_ok; then
13076 break
John Criswell7a73b802003-06-30 21:59:07 +000013077fi
13078
John Criswell47fdd832003-07-14 16:52:07 +000013079 done
13080 ac_cv_prog_CXXCPP=$CXXCPP
13081
13082fi
13083 CXXCPP=$ac_cv_prog_CXXCPP
13084else
13085 ac_cv_prog_CXXCPP=$CXXCPP
13086fi
Reid Spencera773bd52006-08-04 18:18:08 +000013087{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13088echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013089ac_preproc_ok=false
13090for ac_cxx_preproc_warn_flag in '' yes
13091do
13092 # Use a header file that comes with gcc, so configuring glibc
13093 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013094 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13095 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013096 # On the NeXT, cc -E runs the code through the compiler's parser,
13097 # not just through cpp. "Syntax error" is here to catch this case.
13098 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013099/* confdefs.h. */
13100_ACEOF
13101cat confdefs.h >>conftest.$ac_ext
13102cat >>conftest.$ac_ext <<_ACEOF
13103/* end confdefs.h. */
13104#ifdef __STDC__
13105# include <limits.h>
13106#else
13107# include <assert.h>
13108#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013109 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013110_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013111if { (ac_try="$ac_cpp conftest.$ac_ext"
13112case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13115esac
13116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013118 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013119 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013120 rm -f conftest.er1
13121 cat conftest.err >&5
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013123 (exit $ac_status); } >/dev/null; then
13124 if test -s conftest.err; then
13125 ac_cpp_err=$ac_cxx_preproc_warn_flag
13126 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13127 else
13128 ac_cpp_err=
13129 fi
13130else
13131 ac_cpp_err=yes
13132fi
13133if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013134 :
13135else
13136 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013137sed 's/^/| /' conftest.$ac_ext >&5
13138
John Criswell47fdd832003-07-14 16:52:07 +000013139 # Broken: fails on valid input.
13140continue
13141fi
Reid Spencera773bd52006-08-04 18:18:08 +000013142
John Criswell47fdd832003-07-14 16:52:07 +000013143rm -f conftest.err conftest.$ac_ext
13144
Reid Spencera773bd52006-08-04 18:18:08 +000013145 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013146 # can be detected and how.
13147 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013148/* confdefs.h. */
13149_ACEOF
13150cat confdefs.h >>conftest.$ac_ext
13151cat >>conftest.$ac_ext <<_ACEOF
13152/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013153#include <ac_nonexistent.h>
13154_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013155if { (ac_try="$ac_cpp conftest.$ac_ext"
13156case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13159esac
13160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013162 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013163 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013164 rm -f conftest.er1
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013167 (exit $ac_status); } >/dev/null; then
13168 if test -s conftest.err; then
13169 ac_cpp_err=$ac_cxx_preproc_warn_flag
13170 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13171 else
13172 ac_cpp_err=
13173 fi
13174else
13175 ac_cpp_err=yes
13176fi
13177if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013178 # Broken: success on invalid input.
13179continue
13180else
13181 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013182sed 's/^/| /' conftest.$ac_ext >&5
13183
John Criswell47fdd832003-07-14 16:52:07 +000013184 # Passes both tests.
13185ac_preproc_ok=:
13186break
13187fi
Reid Spencera773bd52006-08-04 18:18:08 +000013188
John Criswell47fdd832003-07-14 16:52:07 +000013189rm -f conftest.err conftest.$ac_ext
13190
13191done
13192# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13193rm -f conftest.err conftest.$ac_ext
13194if $ac_preproc_ok; then
13195 :
13196else
John Criswell0c38eaf2003-09-10 15:17:25 +000013197 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13198See \`config.log' for more details." >&5
13199echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13200See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013201 { (exit 1); exit 1; }; }
13202fi
13203
Reid Spencera773bd52006-08-04 18:18:08 +000013204ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013205ac_cpp='$CXXCPP $CPPFLAGS'
13206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13209
Reid Spencer2706f8c2004-09-19 23:53:36 +000013210fi
13211
John Criswell47fdd832003-07-14 16:52:07 +000013212
13213ac_ext=f
13214ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13215ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13216ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13217if test -n "$ac_tool_prefix"; then
Bill Wendlingebcceee2009-04-18 11:20:33 +000013218 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 +000013219 do
13220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013224if test "${ac_cv_prog_F77+set}" = set; then
13225 echo $ECHO_N "(cached) $ECHO_C" >&6
13226else
13227 if test -n "$F77"; then
13228 ac_cv_prog_F77="$F77" # Let the user override the test.
13229else
13230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13231for as_dir in $PATH
13232do
13233 IFS=$as_save_IFS
13234 test -z "$as_dir" && as_dir=.
13235 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013236 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 +000013237 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13239 break 2
13240 fi
13241done
13242done
Reid Spencera773bd52006-08-04 18:18:08 +000013243IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013244
13245fi
13246fi
13247F77=$ac_cv_prog_F77
13248if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013249 { echo "$as_me:$LINENO: result: $F77" >&5
13250echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013251else
Reid Spencera773bd52006-08-04 18:18:08 +000013252 { echo "$as_me:$LINENO: result: no" >&5
13253echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013254fi
13255
Reid Spencera773bd52006-08-04 18:18:08 +000013256
John Criswell47fdd832003-07-14 16:52:07 +000013257 test -n "$F77" && break
13258 done
13259fi
13260if test -z "$F77"; then
13261 ac_ct_F77=$F77
Bill Wendlingebcceee2009-04-18 11:20:33 +000013262 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 +000013263do
13264 # Extract the first word of "$ac_prog", so it can be a program name with args.
13265set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013268if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13269 echo $ECHO_N "(cached) $ECHO_C" >&6
13270else
13271 if test -n "$ac_ct_F77"; then
13272 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13273else
13274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275for as_dir in $PATH
13276do
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
13279 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013280 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 +000013281 ac_cv_prog_ac_ct_F77="$ac_prog"
13282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13283 break 2
13284 fi
13285done
13286done
Reid Spencera773bd52006-08-04 18:18:08 +000013287IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013288
13289fi
13290fi
13291ac_ct_F77=$ac_cv_prog_ac_ct_F77
13292if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013293 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13294echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013295else
Reid Spencera773bd52006-08-04 18:18:08 +000013296 { echo "$as_me:$LINENO: result: no" >&5
13297echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013298fi
13299
Reid Spencera773bd52006-08-04 18:18:08 +000013300
John Criswell47fdd832003-07-14 16:52:07 +000013301 test -n "$ac_ct_F77" && break
13302done
13303
Reid Spencera773bd52006-08-04 18:18:08 +000013304 if test "x$ac_ct_F77" = x; then
13305 F77=""
13306 else
13307 case $cross_compiling:$ac_tool_warned in
13308yes:)
13309{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13310whose name does not start with the host triplet. If you think this
13311configuration is useful to you, please write to autoconf@gnu.org." >&5
13312echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13313whose name does not start with the host triplet. If you think this
13314configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13315ac_tool_warned=yes ;;
13316esac
13317 F77=$ac_ct_F77
13318 fi
John Criswell47fdd832003-07-14 16:52:07 +000013319fi
13320
13321
13322# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013323echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013324ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013325{ (ac_try="$ac_compiler --version >&5"
13326case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13329esac
13330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013335{ (ac_try="$ac_compiler -v >&5"
13336case "(($ac_try" in
13337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338 *) ac_try_echo=$ac_try;;
13339esac
13340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013345{ (ac_try="$ac_compiler -V >&5"
13346case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13349esac
13350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013355rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013356
13357# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013358# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013359ac_save_ext=$ac_ext
13360ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013361{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13362echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013363if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365else
13366 cat >conftest.$ac_ext <<_ACEOF
13367 program main
13368#ifndef __GNUC__
13369 choke me
13370#endif
13371
13372 end
13373_ACEOF
13374rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013375if { (ac_try="$ac_compile"
13376case "(($ac_try" in
13377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378 *) ac_try_echo=$ac_try;;
13379esac
13380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013382 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013383 grep -v '^ *+' conftest.er1 >conftest.err
13384 rm -f conftest.er1
13385 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013387 (exit $ac_status); } &&
13388 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13389 { (case "(($ac_try" in
13390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13391 *) ac_try_echo=$ac_try;;
13392esac
13393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_try") 2>&5
13395 ac_status=$?
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; } &&
13398 { ac_try='test -s conftest.$ac_objext'
13399 { (case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13402esac
13403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_try") 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013408 ac_compiler_gnu=yes
13409else
13410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013411sed 's/^/| /' conftest.$ac_ext >&5
13412
Reid Spencera773bd52006-08-04 18:18:08 +000013413 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013414fi
Reid Spencera773bd52006-08-04 18:18:08 +000013415
13416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013417ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13418
13419fi
Reid Spencera773bd52006-08-04 18:18:08 +000013420{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13421echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013422ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013423ac_test_FFLAGS=${FFLAGS+set}
13424ac_save_FFLAGS=$FFLAGS
13425FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013426{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13427echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013428if test "${ac_cv_prog_f77_g+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13430else
13431 FFLAGS=-g
13432cat >conftest.$ac_ext <<_ACEOF
13433 program main
13434
13435 end
13436_ACEOF
13437rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013438if { (ac_try="$ac_compile"
13439case "(($ac_try" in
13440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13441 *) ac_try_echo=$ac_try;;
13442esac
13443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13444 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013445 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000013450 (exit $ac_status); } &&
13451 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13452 { (case "(($ac_try" in
13453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13454 *) ac_try_echo=$ac_try;;
13455esac
13456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13457 (eval "$ac_try") 2>&5
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; } &&
13461 { ac_try='test -s conftest.$ac_objext'
13462 { (case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465esac
13466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13467 (eval "$ac_try") 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013471 ac_cv_prog_f77_g=yes
13472else
13473 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013474sed 's/^/| /' conftest.$ac_ext >&5
13475
Reid Spencera773bd52006-08-04 18:18:08 +000013476 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013477fi
Reid Spencera773bd52006-08-04 18:18:08 +000013478
13479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013480
13481fi
Reid Spencera773bd52006-08-04 18:18:08 +000013482{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13483echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013484if test "$ac_test_FFLAGS" = set; then
13485 FFLAGS=$ac_save_FFLAGS
13486elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013487 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013488 FFLAGS="-g -O2"
13489 else
13490 FFLAGS="-g"
13491 fi
13492else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013493 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013494 FFLAGS="-O2"
13495 else
13496 FFLAGS=
13497 fi
13498fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013499
13500G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013501ac_ext=c
13502ac_cpp='$CPP $CPPFLAGS'
13503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13505ac_compiler_gnu=$ac_cv_c_compiler_gnu
13506
13507
13508
13509# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13510
13511# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013512{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13513echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013514if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516else
13517 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013518 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013519
13520 case $build_os in
13521 msdosdjgpp*)
13522 # On DJGPP, this test can blow up pretty badly due to problems in libc
13523 # (any single argument exceeding 2000 bytes causes a buffer overrun
13524 # during glob expansion). Even if it were fixed, the result of this
13525 # check would be larger than it should be.
13526 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13527 ;;
13528
13529 gnu*)
13530 # Under GNU Hurd, this test is not required because there is
13531 # no limit to the length of command line arguments.
13532 # Libtool will interpret -1 as no limit whatsoever
13533 lt_cv_sys_max_cmd_len=-1;
13534 ;;
13535
13536 cygwin* | mingw*)
13537 # On Win9x/ME, this test blows up -- it succeeds, but takes
13538 # about 5 minutes as the teststring grows exponentially.
13539 # Worse, since 9x/ME are not pre-emptively multitasking,
13540 # you end up with a "frozen" computer, even though with patience
13541 # the test eventually succeeds (with a max line length of 256k).
13542 # Instead, let's just punt: use the minimum linelength reported by
13543 # all of the supported platforms: 8192 (on NT/2K/XP).
13544 lt_cv_sys_max_cmd_len=8192;
13545 ;;
13546
Reid Spencer2706f8c2004-09-19 23:53:36 +000013547 amigaos*)
13548 # On AmigaOS with pdksh, this test takes hours, literally.
13549 # So we just punt and use a minimum line length of 8192.
13550 lt_cv_sys_max_cmd_len=8192;
13551 ;;
13552
Reid Spencera773bd52006-08-04 18:18:08 +000013553 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013554 # This has been around since 386BSD, at least. Likely further.
13555 if test -x /sbin/sysctl; then
13556 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13557 elif test -x /usr/sbin/sysctl; then
13558 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13559 else
Reid Spencera773bd52006-08-04 18:18:08 +000013560 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013561 fi
13562 # And add a safety zone
13563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013564 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013565 ;;
13566
Reid Spencera773bd52006-08-04 18:18:08 +000013567 interix*)
13568 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13569 lt_cv_sys_max_cmd_len=196608
13570 ;;
13571
13572 osf*)
13573 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13574 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13575 # nice to cause kernel panics so lets avoid the loop below.
13576 # First set a reasonable default.
13577 lt_cv_sys_max_cmd_len=16384
13578 #
13579 if test -x /sbin/sysconfig; then
13580 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13581 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13582 esac
13583 fi
13584 ;;
13585 sco3.2v5*)
13586 lt_cv_sys_max_cmd_len=102400
13587 ;;
13588 sysv5* | sco5v6* | sysv4.2uw2*)
13589 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13590 if test -n "$kargmax"; then
13591 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13592 else
13593 lt_cv_sys_max_cmd_len=32768
13594 fi
13595 ;;
13596 *)
John Criswell47fdd832003-07-14 16:52:07 +000013597 # If test is not a shell built-in, we'll probably end up computing a
13598 # maximum length that is only half of the actual maximum length, but
13599 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013600 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13601 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13602 = "XX$teststring") >/dev/null 2>&1 &&
13603 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013604 lt_cv_sys_max_cmd_len=$new_result &&
13605 test $i != 17 # 1/2 MB should be enough
13606 do
13607 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013608 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013609 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013610 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013611 # Add a significant safety factor because C++ compilers can tack on massive
13612 # amounts of additional arguments before passing them to the linker.
13613 # It appears as though 1/2 is a usable value.
13614 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13615 ;;
13616 esac
13617
13618fi
13619
13620if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013621 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13622echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013623else
Reid Spencera773bd52006-08-04 18:18:08 +000013624 { echo "$as_me:$LINENO: result: none" >&5
13625echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013626fi
13627
13628
13629
13630
13631# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013632{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13633echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013634if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636else
13637
13638# These are sane defaults that work on at least a few old systems.
13639# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13640
13641# Character class describing NM global symbol codes.
13642symcode='[BCDEGRST]'
13643
13644# Regexp to match symbols that can be accessed directly from C.
13645sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13646
John Criswell47fdd832003-07-14 16:52:07 +000013647# Transform an extracted symbol line into a proper C declaration
13648lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13649
13650# Transform an extracted symbol line into symbol name and symbol address
13651lt_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'"
13652
13653# Define system-specific variables.
13654case $host_os in
13655aix*)
13656 symcode='[BCDT]'
13657 ;;
13658cygwin* | mingw* | pw32*)
13659 symcode='[ABCDGISTW]'
13660 ;;
13661hpux*) # Its linker distinguishes data from code symbols
13662 if test "$host_cpu" = ia64; then
13663 symcode='[ABCDEGRST]'
13664 fi
13665 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13666 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'"
13667 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013668linux*)
13669 if test "$host_cpu" = ia64; then
13670 symcode='[ABCDGIRSTW]'
13671 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13672 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'"
13673 fi
13674 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013675irix* | nonstopux*)
13676 symcode='[BCDEGRST]'
13677 ;;
13678osf*)
13679 symcode='[BCDEGQRST]'
13680 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013681solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013682 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013683 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013684sco3.2v5*)
13685 symcode='[DT]'
13686 ;;
13687sysv4.2uw2*)
13688 symcode='[DT]'
13689 ;;
13690sysv5* | sco5v6* | unixware* | OpenUNIX*)
13691 symcode='[ABDT]'
13692 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013693sysv4)
13694 symcode='[DFNSTU]'
13695 ;;
13696esac
13697
13698# Handle CRLF in mingw tool chain
13699opt_cr=
13700case $build_os in
13701mingw*)
13702 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13703 ;;
13704esac
13705
13706# If we're using GNU nm, then use its standard symbol codes.
13707case `$NM -V 2>&1` in
13708*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013709 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013710esac
13711
13712# Try without a prefix undercore, then with it.
13713for ac_symprfx in "" "_"; do
13714
Reid Spencera773bd52006-08-04 18:18:08 +000013715 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13716 symxfrm="\\1 $ac_symprfx\\2 \\2"
13717
John Criswell47fdd832003-07-14 16:52:07 +000013718 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013719 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 +000013720
13721 # Check to see that the pipe works correctly.
13722 pipe_works=no
13723
13724 rm -f conftest*
13725 cat > conftest.$ac_ext <<EOF
13726#ifdef __cplusplus
13727extern "C" {
13728#endif
13729char nm_test_var;
13730void nm_test_func(){}
13731#ifdef __cplusplus
13732}
13733#endif
13734int main(){nm_test_var='a';nm_test_func();return(0);}
13735EOF
13736
13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; then
13742 # Now try to grab the symbols.
13743 nlist=conftest.nm
13744 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13745 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); } && test -s "$nlist"; then
13749 # Try sorting and uniquifying the output.
13750 if sort "$nlist" | uniq > "$nlist"T; then
13751 mv -f "$nlist"T "$nlist"
13752 else
13753 rm -f "$nlist"T
13754 fi
13755
13756 # Make sure that we snagged all the symbols we need.
13757 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13758 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13759 cat <<EOF > conftest.$ac_ext
13760#ifdef __cplusplus
13761extern "C" {
13762#endif
13763
13764EOF
13765 # Now generate the symbol file.
13766 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13767
13768 cat <<EOF >> conftest.$ac_ext
13769#if defined (__STDC__) && __STDC__
13770# define lt_ptr_t void *
13771#else
13772# define lt_ptr_t char *
13773# define const
13774#endif
13775
13776/* The mapping between symbol names and symbols. */
13777const struct {
13778 const char *name;
13779 lt_ptr_t address;
13780}
13781lt_preloaded_symbols[] =
13782{
13783EOF
13784 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13785 cat <<\EOF >> conftest.$ac_ext
13786 {0, (lt_ptr_t) 0}
13787};
13788
13789#ifdef __cplusplus
13790}
13791#endif
13792EOF
13793 # Now try linking the two files.
13794 mv conftest.$ac_objext conftstm.$ac_objext
13795 lt_save_LIBS="$LIBS"
13796 lt_save_CFLAGS="$CFLAGS"
13797 LIBS="conftstm.$ac_objext"
13798 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800 (eval $ac_link) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13804 pipe_works=yes
13805 fi
13806 LIBS="$lt_save_LIBS"
13807 CFLAGS="$lt_save_CFLAGS"
13808 else
13809 echo "cannot find nm_test_func in $nlist" >&5
13810 fi
13811 else
13812 echo "cannot find nm_test_var in $nlist" >&5
13813 fi
13814 else
13815 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13816 fi
13817 else
13818 echo "$progname: failed program was:" >&5
13819 cat conftest.$ac_ext >&5
13820 fi
13821 rm -f conftest* conftst*
13822
13823 # Do not use the global_symbol_pipe unless it works.
13824 if test "$pipe_works" = yes; then
13825 break
13826 else
13827 lt_cv_sys_global_symbol_pipe=
13828 fi
13829done
13830
13831fi
13832
13833if test -z "$lt_cv_sys_global_symbol_pipe"; then
13834 lt_cv_sys_global_symbol_to_cdecl=
13835fi
13836if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013837 { echo "$as_me:$LINENO: result: failed" >&5
13838echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013839else
Reid Spencera773bd52006-08-04 18:18:08 +000013840 { echo "$as_me:$LINENO: result: ok" >&5
13841echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013842fi
13843
Reid Spencera773bd52006-08-04 18:18:08 +000013844{ echo "$as_me:$LINENO: checking for objdir" >&5
13845echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013846if test "${lt_cv_objdir+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13848else
13849 rm -f .libs 2>/dev/null
13850mkdir .libs 2>/dev/null
13851if test -d .libs; then
13852 lt_cv_objdir=.libs
13853else
13854 # MS-DOS does not allow filenames that begin with a dot.
13855 lt_cv_objdir=_libs
13856fi
13857rmdir .libs 2>/dev/null
13858fi
Reid Spencera773bd52006-08-04 18:18:08 +000013859{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13860echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013861objdir=$lt_cv_objdir
13862
13863
13864
13865
13866
13867case $host_os in
13868aix3*)
13869 # AIX sometimes has problems with the GCC collect2 program. For some
13870 # reason, if we set the COLLECT_NAMES environment variable, the problems
13871 # vanish in a puff of smoke.
13872 if test "X${COLLECT_NAMES+set}" != Xset; then
13873 COLLECT_NAMES=
13874 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013875 fi
13876 ;;
13877esac
13878
John Criswell47fdd832003-07-14 16:52:07 +000013879# Sed substitution that helps us do robust quoting. It backslashifies
13880# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013881Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013882sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13883
13884# Same as above, but do not quote variable references.
13885double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13886
13887# Sed substitution to delay expansion of an escaped shell variable in a
13888# double_quote_subst'ed string.
13889delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13890
13891# Sed substitution to avoid accidental globbing in evaled expressions
13892no_glob_subst='s/\*/\\\*/g'
13893
13894# Constants:
13895rm="rm -f"
13896
13897# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013898default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013899can_build_shared=yes
13900
Reid Spencera773bd52006-08-04 18:18:08 +000013901# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013902# which needs '.lib').
13903libext=a
13904ltmain="$ac_aux_dir/ltmain.sh"
13905ofile="$default_ofile"
13906with_gnu_ld="$lt_cv_prog_gnu_ld"
13907
13908if test -n "$ac_tool_prefix"; then
13909 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13910set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013913if test "${ac_cv_prog_AR+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13915else
13916 if test -n "$AR"; then
13917 ac_cv_prog_AR="$AR" # Let the user override the test.
13918else
13919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13920for as_dir in $PATH
13921do
13922 IFS=$as_save_IFS
13923 test -z "$as_dir" && as_dir=.
13924 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013925 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 +000013926 ac_cv_prog_AR="${ac_tool_prefix}ar"
13927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13928 break 2
13929 fi
13930done
13931done
Reid Spencera773bd52006-08-04 18:18:08 +000013932IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013933
13934fi
13935fi
13936AR=$ac_cv_prog_AR
13937if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013938 { echo "$as_me:$LINENO: result: $AR" >&5
13939echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013940else
Reid Spencera773bd52006-08-04 18:18:08 +000013941 { echo "$as_me:$LINENO: result: no" >&5
13942echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013943fi
13944
Reid Spencera773bd52006-08-04 18:18:08 +000013945
John Criswell47fdd832003-07-14 16:52:07 +000013946fi
13947if test -z "$ac_cv_prog_AR"; then
13948 ac_ct_AR=$AR
13949 # Extract the first word of "ar", so it can be a program name with args.
13950set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013953if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13955else
13956 if test -n "$ac_ct_AR"; then
13957 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13958else
13959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13960for as_dir in $PATH
13961do
13962 IFS=$as_save_IFS
13963 test -z "$as_dir" && as_dir=.
13964 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000013965 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 +000013966 ac_cv_prog_ac_ct_AR="ar"
13967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13968 break 2
13969 fi
13970done
13971done
Reid Spencera773bd52006-08-04 18:18:08 +000013972IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013973
John Criswell47fdd832003-07-14 16:52:07 +000013974fi
13975fi
13976ac_ct_AR=$ac_cv_prog_ac_ct_AR
13977if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013978 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13979echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013980else
Reid Spencera773bd52006-08-04 18:18:08 +000013981 { echo "$as_me:$LINENO: result: no" >&5
13982echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013983fi
13984
Reid Spencera773bd52006-08-04 18:18:08 +000013985 if test "x$ac_ct_AR" = x; then
13986 AR="false"
13987 else
13988 case $cross_compiling:$ac_tool_warned in
13989yes:)
13990{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13991whose name does not start with the host triplet. If you think this
13992configuration is useful to you, please write to autoconf@gnu.org." >&5
13993echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13994whose name does not start with the host triplet. If you think this
13995configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13996ac_tool_warned=yes ;;
13997esac
13998 AR=$ac_ct_AR
13999 fi
John Criswell47fdd832003-07-14 16:52:07 +000014000else
14001 AR="$ac_cv_prog_AR"
14002fi
14003
John Criswell7a73b802003-06-30 21:59:07 +000014004if test -n "$ac_tool_prefix"; then
14005 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14006set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014009if test "${ac_cv_prog_RANLIB+set}" = set; then
14010 echo $ECHO_N "(cached) $ECHO_C" >&6
14011else
14012 if test -n "$RANLIB"; then
14013 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14014else
14015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016for as_dir in $PATH
14017do
14018 IFS=$as_save_IFS
14019 test -z "$as_dir" && as_dir=.
14020 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014021 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 +000014022 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14024 break 2
14025 fi
14026done
14027done
Reid Spencera773bd52006-08-04 18:18:08 +000014028IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014029
14030fi
14031fi
14032RANLIB=$ac_cv_prog_RANLIB
14033if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014034 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14035echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014036else
Reid Spencera773bd52006-08-04 18:18:08 +000014037 { echo "$as_me:$LINENO: result: no" >&5
14038echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014039fi
14040
Reid Spencera773bd52006-08-04 18:18:08 +000014041
John Criswell7a73b802003-06-30 21:59:07 +000014042fi
14043if test -z "$ac_cv_prog_RANLIB"; then
14044 ac_ct_RANLIB=$RANLIB
14045 # Extract the first word of "ranlib", so it can be a program name with args.
14046set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014049if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14051else
14052 if test -n "$ac_ct_RANLIB"; then
14053 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14054else
14055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056for as_dir in $PATH
14057do
14058 IFS=$as_save_IFS
14059 test -z "$as_dir" && as_dir=.
14060 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014061 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 +000014062 ac_cv_prog_ac_ct_RANLIB="ranlib"
14063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14064 break 2
14065 fi
14066done
14067done
Reid Spencera773bd52006-08-04 18:18:08 +000014068IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014069
John Criswell7a73b802003-06-30 21:59:07 +000014070fi
14071fi
14072ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14073if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014074 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14075echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014076else
Reid Spencera773bd52006-08-04 18:18:08 +000014077 { echo "$as_me:$LINENO: result: no" >&5
14078echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014079fi
14080
Reid Spencera773bd52006-08-04 18:18:08 +000014081 if test "x$ac_ct_RANLIB" = x; then
14082 RANLIB=":"
14083 else
14084 case $cross_compiling:$ac_tool_warned in
14085yes:)
14086{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14087whose name does not start with the host triplet. If you think this
14088configuration is useful to you, please write to autoconf@gnu.org." >&5
14089echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14090whose name does not start with the host triplet. If you think this
14091configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14092ac_tool_warned=yes ;;
14093esac
14094 RANLIB=$ac_ct_RANLIB
14095 fi
John Criswell7a73b802003-06-30 21:59:07 +000014096else
14097 RANLIB="$ac_cv_prog_RANLIB"
14098fi
14099
14100if test -n "$ac_tool_prefix"; then
14101 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14102set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014105if test "${ac_cv_prog_STRIP+set}" = set; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14107else
14108 if test -n "$STRIP"; then
14109 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14110else
14111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14112for as_dir in $PATH
14113do
14114 IFS=$as_save_IFS
14115 test -z "$as_dir" && as_dir=.
14116 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014117 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 +000014118 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14120 break 2
14121 fi
14122done
14123done
Reid Spencera773bd52006-08-04 18:18:08 +000014124IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014125
14126fi
14127fi
14128STRIP=$ac_cv_prog_STRIP
14129if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014130 { echo "$as_me:$LINENO: result: $STRIP" >&5
14131echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014132else
Reid Spencera773bd52006-08-04 18:18:08 +000014133 { echo "$as_me:$LINENO: result: no" >&5
14134echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014135fi
14136
Reid Spencera773bd52006-08-04 18:18:08 +000014137
John Criswell7a73b802003-06-30 21:59:07 +000014138fi
14139if test -z "$ac_cv_prog_STRIP"; then
14140 ac_ct_STRIP=$STRIP
14141 # Extract the first word of "strip", so it can be a program name with args.
14142set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014143{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014145if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14147else
14148 if test -n "$ac_ct_STRIP"; then
14149 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14150else
14151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14152for as_dir in $PATH
14153do
14154 IFS=$as_save_IFS
14155 test -z "$as_dir" && as_dir=.
14156 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000014157 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 +000014158 ac_cv_prog_ac_ct_STRIP="strip"
14159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14160 break 2
14161 fi
14162done
14163done
Reid Spencera773bd52006-08-04 18:18:08 +000014164IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014165
John Criswell7a73b802003-06-30 21:59:07 +000014166fi
14167fi
14168ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14169if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014170 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14171echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014172else
Reid Spencera773bd52006-08-04 18:18:08 +000014173 { echo "$as_me:$LINENO: result: no" >&5
14174echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014175fi
14176
Reid Spencera773bd52006-08-04 18:18:08 +000014177 if test "x$ac_ct_STRIP" = x; then
14178 STRIP=":"
14179 else
14180 case $cross_compiling:$ac_tool_warned in
14181yes:)
14182{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14183whose name does not start with the host triplet. If you think this
14184configuration is useful to you, please write to autoconf@gnu.org." >&5
14185echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14186whose name does not start with the host triplet. If you think this
14187configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14188ac_tool_warned=yes ;;
14189esac
14190 STRIP=$ac_ct_STRIP
14191 fi
John Criswell7a73b802003-06-30 21:59:07 +000014192else
14193 STRIP="$ac_cv_prog_STRIP"
14194fi
14195
14196
John Criswell7a73b802003-06-30 21:59:07 +000014197old_CC="$CC"
14198old_CFLAGS="$CFLAGS"
14199
14200# Set sane defaults for various variables
14201test -z "$AR" && AR=ar
14202test -z "$AR_FLAGS" && AR_FLAGS=cru
14203test -z "$AS" && AS=as
14204test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014205test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014206test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014207test -z "$DLLTOOL" && DLLTOOL=dlltool
14208test -z "$LD" && LD=ld
14209test -z "$LN_S" && LN_S="ln -s"
14210test -z "$MAGIC_CMD" && MAGIC_CMD=file
14211test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014212test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014213test -z "$OBJDUMP" && OBJDUMP=objdump
14214test -z "$RANLIB" && RANLIB=:
14215test -z "$STRIP" && STRIP=:
14216test -z "$ac_objext" && ac_objext=o
14217
John Criswell7a73b802003-06-30 21:59:07 +000014218# Determine commands to create old-style static archives.
14219old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14220old_postinstall_cmds='chmod 644 $oldlib'
14221old_postuninstall_cmds=
14222
14223if test -n "$RANLIB"; then
14224 case $host_os in
14225 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014226 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014227 ;;
14228 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014229 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014230 ;;
14231 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014232 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014233fi
14234
Reid Spencera773bd52006-08-04 18:18:08 +000014235for cc_temp in $compiler""; do
14236 case $cc_temp in
14237 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14238 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14239 \-*) ;;
14240 *) break;;
14241 esac
14242done
14243cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14244
Reid Spencer2706f8c2004-09-19 23:53:36 +000014245
John Criswell47fdd832003-07-14 16:52:07 +000014246# Only perform the check for file, if the check method requires it
14247case $deplibs_check_method in
14248file_magic*)
14249 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014250 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14251echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014252if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014254else
John Criswell47fdd832003-07-14 16:52:07 +000014255 case $MAGIC_CMD in
14256[\\/*] | ?:[\\/]*)
14257 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14258 ;;
14259*)
14260 lt_save_MAGIC_CMD="$MAGIC_CMD"
14261 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14262 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14263 for ac_dir in $ac_dummy; do
14264 IFS="$lt_save_ifs"
14265 test -z "$ac_dir" && ac_dir=.
14266 if test -f $ac_dir/${ac_tool_prefix}file; then
14267 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14268 if test -n "$file_magic_test_file"; then
14269 case $deplibs_check_method in
14270 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014271 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14273 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14274 $EGREP "$file_magic_regex" > /dev/null; then
14275 :
14276 else
14277 cat <<EOF 1>&2
14278
14279*** Warning: the command libtool uses to detect shared libraries,
14280*** $file_magic_cmd, produces output that libtool cannot recognize.
14281*** The result is that libtool may fail to recognize shared libraries
14282*** as such. This will affect the creation of libtool libraries that
14283*** depend on shared libraries, but programs linked with such libtool
14284*** libraries will work regardless of this problem. Nevertheless, you
14285*** may want to report the problem to your system manager and/or to
14286*** bug-libtool@gnu.org
14287
14288EOF
14289 fi ;;
14290 esac
14291 fi
14292 break
14293 fi
14294 done
14295 IFS="$lt_save_ifs"
14296 MAGIC_CMD="$lt_save_MAGIC_CMD"
14297 ;;
14298esac
John Criswell7a73b802003-06-30 21:59:07 +000014299fi
John Criswell7a73b802003-06-30 21:59:07 +000014300
John Criswell47fdd832003-07-14 16:52:07 +000014301MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14302if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014303 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14304echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014305else
Reid Spencera773bd52006-08-04 18:18:08 +000014306 { echo "$as_me:$LINENO: result: no" >&5
14307echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014308fi
John Criswell7a73b802003-06-30 21:59:07 +000014309
John Criswell47fdd832003-07-14 16:52:07 +000014310if test -z "$lt_cv_path_MAGIC_CMD"; then
14311 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014312 { echo "$as_me:$LINENO: checking for file" >&5
14313echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014314if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14316else
14317 case $MAGIC_CMD in
14318[\\/*] | ?:[\\/]*)
14319 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14320 ;;
14321*)
14322 lt_save_MAGIC_CMD="$MAGIC_CMD"
14323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14324 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14325 for ac_dir in $ac_dummy; do
14326 IFS="$lt_save_ifs"
14327 test -z "$ac_dir" && ac_dir=.
14328 if test -f $ac_dir/file; then
14329 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14330 if test -n "$file_magic_test_file"; then
14331 case $deplibs_check_method in
14332 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014333 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014334 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14335 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14336 $EGREP "$file_magic_regex" > /dev/null; then
14337 :
14338 else
14339 cat <<EOF 1>&2
14340
14341*** Warning: the command libtool uses to detect shared libraries,
14342*** $file_magic_cmd, produces output that libtool cannot recognize.
14343*** The result is that libtool may fail to recognize shared libraries
14344*** as such. This will affect the creation of libtool libraries that
14345*** depend on shared libraries, but programs linked with such libtool
14346*** libraries will work regardless of this problem. Nevertheless, you
14347*** may want to report the problem to your system manager and/or to
14348*** bug-libtool@gnu.org
14349
14350EOF
14351 fi ;;
14352 esac
14353 fi
14354 break
14355 fi
14356 done
14357 IFS="$lt_save_ifs"
14358 MAGIC_CMD="$lt_save_MAGIC_CMD"
14359 ;;
14360esac
14361fi
14362
14363MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14364if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014365 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14366echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014367else
Reid Spencera773bd52006-08-04 18:18:08 +000014368 { echo "$as_me:$LINENO: result: no" >&5
14369echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014370fi
14371
14372 else
14373 MAGIC_CMD=:
14374 fi
14375fi
14376
14377 fi
14378 ;;
14379esac
14380
Reid Spencer17795972004-11-18 09:47:37 +000014381enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014382enable_win32_dll=no
14383
Reid Spencera773bd52006-08-04 18:18:08 +000014384# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014385if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014386 enableval=$enable_libtool_lock;
14387fi
John Criswell47fdd832003-07-14 16:52:07 +000014388
John Criswell47fdd832003-07-14 16:52:07 +000014389test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14390
John Criswell7a73b802003-06-30 21:59:07 +000014391
Reid Spencera773bd52006-08-04 18:18:08 +000014392# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014393if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014394 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014395else
14396 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014397fi
14398
John Criswell7a73b802003-06-30 21:59:07 +000014399test -z "$pic_mode" && pic_mode=default
14400
John Criswell47fdd832003-07-14 16:52:07 +000014401# Use C for the default configuration in the libtool script
14402tagname=
14403lt_save_CC="$CC"
14404ac_ext=c
14405ac_cpp='$CPP $CPPFLAGS'
14406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14408ac_compiler_gnu=$ac_cv_c_compiler_gnu
14409
14410
14411# Source file extension for C test sources.
14412ac_ext=c
14413
14414# Object file extension for compiled C test sources.
14415objext=o
14416objext=$objext
14417
14418# Code to be used in simple compile tests
14419lt_simple_compile_test_code="int some_variable = 0;\n"
14420
14421# Code to be used in simple link tests
14422lt_simple_link_test_code='int main(){return(0);}\n'
14423
14424
14425# If no C compiler was specified, use CC.
14426LTCC=${LTCC-"$CC"}
14427
Reid Spencera773bd52006-08-04 18:18:08 +000014428# If no C compiler flags were specified, use CFLAGS.
14429LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14430
John Criswell47fdd832003-07-14 16:52:07 +000014431# Allow CC to be a program name with arguments.
14432compiler=$CC
14433
14434
Reid Spencera773bd52006-08-04 18:18:08 +000014435# save warnings/boilerplate of simple test code
14436ac_outfile=conftest.$ac_objext
14437printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14438eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14439_lt_compiler_boilerplate=`cat conftest.err`
14440$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014441
Reid Spencera773bd52006-08-04 18:18:08 +000014442ac_outfile=conftest.$ac_objext
14443printf "$lt_simple_link_test_code" >conftest.$ac_ext
14444eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14445_lt_linker_boilerplate=`cat conftest.err`
14446$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014447
14448
John Criswell47fdd832003-07-14 16:52:07 +000014449
14450lt_prog_compiler_no_builtin_flag=
14451
14452if test "$GCC" = yes; then
14453 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14454
Reid Spencer2706f8c2004-09-19 23:53:36 +000014455
Reid Spencera773bd52006-08-04 18:18:08 +000014456{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14457echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014458if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14460else
14461 lt_cv_prog_compiler_rtti_exceptions=no
14462 ac_outfile=conftest.$ac_objext
14463 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14464 lt_compiler_flag="-fno-rtti -fno-exceptions"
14465 # Insert the option either (1) after the last *FLAGS variable, or
14466 # (2) before a word containing "conftest.", or (3) at the end.
14467 # Note that $ac_compile itself does not contain backslashes and begins
14468 # with a dollar sign (not a hyphen), so the echo should work correctly.
14469 # The option is referenced via a variable to avoid confusing sed.
14470 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14473 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor1555a232009-06-16 20:12:29 +000014474 (eval echo "\"\$as_me:14474: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014475 (eval "$lt_compile" 2>conftest.err)
14476 ac_status=$?
14477 cat conftest.err >&5
Douglas Gregor1555a232009-06-16 20:12:29 +000014478 echo "$as_me:14478: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014479 if (exit $ac_status) && test -s "$ac_outfile"; then
14480 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014481 # So say no if there are warnings other than the usual output.
14482 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014485 lt_cv_prog_compiler_rtti_exceptions=yes
14486 fi
14487 fi
14488 $rm conftest*
14489
14490fi
Reid Spencera773bd52006-08-04 18:18:08 +000014491{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14492echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014493
14494if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14495 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14496else
14497 :
14498fi
14499
14500fi
14501
14502lt_prog_compiler_wl=
14503lt_prog_compiler_pic=
14504lt_prog_compiler_static=
14505
Reid Spencera773bd52006-08-04 18:18:08 +000014506{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14507echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014508
14509 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014510 lt_prog_compiler_wl='-Wl,'
14511 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014512
14513 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014514 aix*)
14515 # All AIX code is PIC.
14516 if test "$host_cpu" = ia64; then
14517 # AIX 5 now supports IA64 processor
14518 lt_prog_compiler_static='-Bstatic'
14519 fi
John Criswell7a73b802003-06-30 21:59:07 +000014520 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014521
John Criswell7a73b802003-06-30 21:59:07 +000014522 amigaos*)
14523 # FIXME: we need at least 68020 code to build shared libraries, but
14524 # adding the `-m68020' flag to GCC prevents building anything better,
14525 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014526 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014527 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014528
14529 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014530 # PIC is the default for these OSes.
14531 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014532
14533 mingw* | pw32* | os2*)
14534 # This hack is so that the source file can tell whether it is being
14535 # built for inclusion in a dll (and should export symbols for example).
14536 lt_prog_compiler_pic='-DDLL_EXPORT'
14537 ;;
14538
John Criswell7a73b802003-06-30 21:59:07 +000014539 darwin* | rhapsody*)
14540 # PIC is the default on this platform
14541 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014542 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014543 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014544
Reid Spencera773bd52006-08-04 18:18:08 +000014545 interix3*)
14546 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14547 # Instead, we relocate shared libraries at runtime.
14548 ;;
14549
John Criswell47fdd832003-07-14 16:52:07 +000014550 msdosdjgpp*)
14551 # Just because we use GCC doesn't mean we suddenly get shared libraries
14552 # on systems that don't support them.
14553 lt_prog_compiler_can_build_shared=no
14554 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014555 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014556
John Criswell7a73b802003-06-30 21:59:07 +000014557 sysv4*MP*)
14558 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014559 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014560 fi
14561 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014562
14563 hpux*)
14564 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14565 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014566 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014567 hppa*64*|ia64*)
14568 # +Z the default
14569 ;;
14570 *)
14571 lt_prog_compiler_pic='-fPIC'
14572 ;;
14573 esac
14574 ;;
14575
John Criswell7a73b802003-06-30 21:59:07 +000014576 *)
John Criswell47fdd832003-07-14 16:52:07 +000014577 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014578 ;;
14579 esac
14580 else
John Criswell47fdd832003-07-14 16:52:07 +000014581 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014582 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014583 aix*)
14584 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014585 if test "$host_cpu" = ia64; then
14586 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014587 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014588 else
John Criswell47fdd832003-07-14 16:52:07 +000014589 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014590 fi
14591 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014592 darwin*)
14593 # PIC is the default on this platform
14594 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014595 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014596 xlc*)
14597 lt_prog_compiler_pic='-qnocommon'
14598 lt_prog_compiler_wl='-Wl,'
14599 ;;
14600 esac
14601 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014602
John Criswell47fdd832003-07-14 16:52:07 +000014603 mingw* | pw32* | os2*)
14604 # This hack is so that the source file can tell whether it is being
14605 # built for inclusion in a dll (and should export symbols for example).
14606 lt_prog_compiler_pic='-DDLL_EXPORT'
14607 ;;
14608
John Criswell7a73b802003-06-30 21:59:07 +000014609 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014610 lt_prog_compiler_wl='-Wl,'
14611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14612 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014613 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014614 hppa*64*|ia64*)
14615 # +Z the default
14616 ;;
14617 *)
14618 lt_prog_compiler_pic='+Z'
14619 ;;
14620 esac
14621 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14622 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014623 ;;
14624
John Criswell47fdd832003-07-14 16:52:07 +000014625 irix5* | irix6* | nonstopux*)
14626 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014627 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014628 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014629 ;;
14630
14631 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014632 lt_prog_compiler_pic='-KPIC'
14633 lt_prog_compiler_static='-Bstatic'
14634 ;;
14635
14636 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014637 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014638 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014639 lt_prog_compiler_wl='-Wl,'
14640 lt_prog_compiler_pic='-KPIC'
14641 lt_prog_compiler_static='-static'
14642 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014643 pgcc* | pgf77* | pgf90* | pgf95*)
14644 # Portland Group compilers (*not* the Pentium gcc compiler,
14645 # which looks to be a dead project)
14646 lt_prog_compiler_wl='-Wl,'
14647 lt_prog_compiler_pic='-fpic'
14648 lt_prog_compiler_static='-Bstatic'
14649 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014650 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014651 lt_prog_compiler_wl='-Wl,'
14652 # All Alpha code is PIC.
14653 lt_prog_compiler_static='-non_shared'
14654 ;;
14655 esac
John Criswell7a73b802003-06-30 21:59:07 +000014656 ;;
14657
14658 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014659 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014660 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014661 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014662 ;;
14663
John Criswell7a73b802003-06-30 21:59:07 +000014664 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014665 lt_prog_compiler_pic='-KPIC'
14666 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014667 case $cc_basename in
14668 f77* | f90* | f95*)
14669 lt_prog_compiler_wl='-Qoption ld ';;
14670 *)
14671 lt_prog_compiler_wl='-Wl,';;
14672 esac
John Criswell7a73b802003-06-30 21:59:07 +000014673 ;;
14674
14675 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014676 lt_prog_compiler_wl='-Qoption ld '
14677 lt_prog_compiler_pic='-PIC'
14678 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014679 ;;
14680
Reid Spencera773bd52006-08-04 18:18:08 +000014681 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014682 lt_prog_compiler_wl='-Wl,'
14683 lt_prog_compiler_pic='-KPIC'
14684 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014685 ;;
14686
14687 sysv4*MP*)
14688 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014689 lt_prog_compiler_pic='-Kconform_pic'
14690 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014691 fi
14692 ;;
14693
Reid Spencera773bd52006-08-04 18:18:08 +000014694 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14695 lt_prog_compiler_wl='-Wl,'
14696 lt_prog_compiler_pic='-KPIC'
14697 lt_prog_compiler_static='-Bstatic'
14698 ;;
14699
14700 unicos*)
14701 lt_prog_compiler_wl='-Wl,'
14702 lt_prog_compiler_can_build_shared=no
14703 ;;
14704
John Criswell47fdd832003-07-14 16:52:07 +000014705 uts4*)
14706 lt_prog_compiler_pic='-pic'
14707 lt_prog_compiler_static='-Bstatic'
14708 ;;
14709
John Criswell7a73b802003-06-30 21:59:07 +000014710 *)
John Criswell47fdd832003-07-14 16:52:07 +000014711 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014712 ;;
14713 esac
14714 fi
14715
Reid Spencera773bd52006-08-04 18:18:08 +000014716{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14717echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014718
John Criswell47fdd832003-07-14 16:52:07 +000014719#
14720# Check to make sure the PIC flag actually works.
14721#
14722if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014723
Reid Spencera773bd52006-08-04 18:18:08 +000014724{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14725echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014726if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014727 echo $ECHO_N "(cached) $ECHO_C" >&6
14728else
John Criswell47fdd832003-07-14 16:52:07 +000014729 lt_prog_compiler_pic_works=no
14730 ac_outfile=conftest.$ac_objext
14731 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14732 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14733 # Insert the option either (1) after the last *FLAGS variable, or
14734 # (2) before a word containing "conftest.", or (3) at the end.
14735 # Note that $ac_compile itself does not contain backslashes and begins
14736 # with a dollar sign (not a hyphen), so the echo should work correctly.
14737 # The option is referenced via a variable to avoid confusing sed.
14738 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014739 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014740 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14741 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor1555a232009-06-16 20:12:29 +000014742 (eval echo "\"\$as_me:14742: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014743 (eval "$lt_compile" 2>conftest.err)
14744 ac_status=$?
14745 cat conftest.err >&5
Douglas Gregor1555a232009-06-16 20:12:29 +000014746 echo "$as_me:14746: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014747 if (exit $ac_status) && test -s "$ac_outfile"; then
14748 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014749 # So say no if there are warnings other than the usual output.
14750 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14751 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14752 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014753 lt_prog_compiler_pic_works=yes
14754 fi
14755 fi
14756 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014757
John Criswell47fdd832003-07-14 16:52:07 +000014758fi
Reid Spencera773bd52006-08-04 18:18:08 +000014759{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14760echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014761
John Criswell47fdd832003-07-14 16:52:07 +000014762if test x"$lt_prog_compiler_pic_works" = xyes; then
14763 case $lt_prog_compiler_pic in
14764 "" | " "*) ;;
14765 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14766 esac
John Criswell7a73b802003-06-30 21:59:07 +000014767else
John Criswell47fdd832003-07-14 16:52:07 +000014768 lt_prog_compiler_pic=
14769 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014770fi
14771
John Criswell7a73b802003-06-30 21:59:07 +000014772fi
Reid Spencera773bd52006-08-04 18:18:08 +000014773case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014774 # For platforms which do not support PIC, -DPIC is meaningless:
14775 *djgpp*)
14776 lt_prog_compiler_pic=
14777 ;;
14778 *)
14779 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14780 ;;
14781esac
John Criswell7a73b802003-06-30 21:59:07 +000014782
Reid Spencera773bd52006-08-04 18:18:08 +000014783#
14784# Check to make sure the static flag actually works.
14785#
14786wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14787{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14788echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14789if test "${lt_prog_compiler_static_works+set}" = set; then
14790 echo $ECHO_N "(cached) $ECHO_C" >&6
14791else
14792 lt_prog_compiler_static_works=no
14793 save_LDFLAGS="$LDFLAGS"
14794 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14795 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14796 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14797 # The linker can only warn and ignore the option if not recognized
14798 # So say no if there are warnings
14799 if test -s conftest.err; then
14800 # Append any errors to the config.log.
14801 cat conftest.err 1>&5
14802 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14804 if diff conftest.exp conftest.er2 >/dev/null; then
14805 lt_prog_compiler_static_works=yes
14806 fi
14807 else
14808 lt_prog_compiler_static_works=yes
14809 fi
14810 fi
14811 $rm conftest*
14812 LDFLAGS="$save_LDFLAGS"
14813
14814fi
14815{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14816echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14817
14818if test x"$lt_prog_compiler_static_works" = xyes; then
14819 :
14820else
14821 lt_prog_compiler_static=
14822fi
14823
14824
14825{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14826echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014827if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014828 echo $ECHO_N "(cached) $ECHO_C" >&6
14829else
John Criswell47fdd832003-07-14 16:52:07 +000014830 lt_cv_prog_compiler_c_o=no
14831 $rm -r conftest 2>/dev/null
14832 mkdir conftest
14833 cd conftest
14834 mkdir out
14835 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014836
John Criswell47fdd832003-07-14 16:52:07 +000014837 lt_compiler_flag="-o out/conftest2.$ac_objext"
14838 # Insert the option either (1) after the last *FLAGS variable, or
14839 # (2) before a word containing "conftest.", or (3) at the end.
14840 # Note that $ac_compile itself does not contain backslashes and begins
14841 # with a dollar sign (not a hyphen), so the echo should work correctly.
14842 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14845 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor1555a232009-06-16 20:12:29 +000014846 (eval echo "\"\$as_me:14846: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014847 (eval "$lt_compile" 2>out/conftest.err)
14848 ac_status=$?
14849 cat out/conftest.err >&5
Douglas Gregor1555a232009-06-16 20:12:29 +000014850 echo "$as_me:14850: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014851 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14852 then
14853 # The compiler can only warn and ignore the option if not recognized
14854 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014855 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14856 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14857 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014858 lt_cv_prog_compiler_c_o=yes
14859 fi
14860 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014861 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014862 $rm conftest*
14863 # SGI C++ compiler will create directory out/ii_files/ for
14864 # template instantiation
14865 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14866 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014867 cd ..
14868 rmdir conftest
14869 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014870
14871fi
Reid Spencera773bd52006-08-04 18:18:08 +000014872{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14873echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014874
John Criswell7a73b802003-06-30 21:59:07 +000014875
John Criswell7a73b802003-06-30 21:59:07 +000014876hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014877if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014878 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014879 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14880echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014881 hard_links=yes
14882 $rm conftest*
14883 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14884 touch conftest.a
14885 ln conftest.a conftest.b 2>&5 || hard_links=no
14886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014887 { echo "$as_me:$LINENO: result: $hard_links" >&5
14888echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014889 if test "$hard_links" = no; then
14890 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14891echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14892 need_locks=warn
14893 fi
14894else
14895 need_locks=no
14896fi
John Criswell7a73b802003-06-30 21:59:07 +000014897
Reid Spencera773bd52006-08-04 18:18:08 +000014898{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14899echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014900
14901 runpath_var=
14902 allow_undefined_flag=
14903 enable_shared_with_static_runtimes=no
14904 archive_cmds=
14905 archive_expsym_cmds=
14906 old_archive_From_new_cmds=
14907 old_archive_from_expsyms_cmds=
14908 export_dynamic_flag_spec=
14909 whole_archive_flag_spec=
14910 thread_safe_flag_spec=
14911 hardcode_libdir_flag_spec=
14912 hardcode_libdir_flag_spec_ld=
14913 hardcode_libdir_separator=
14914 hardcode_direct=no
14915 hardcode_minus_L=no
14916 hardcode_shlibpath_var=unsupported
14917 link_all_deplibs=unknown
14918 hardcode_automatic=no
14919 module_cmds=
14920 module_expsym_cmds=
14921 always_export_symbols=no
14922 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14923 # include_expsyms should be a list of space-separated symbols to be *always*
14924 # included in the symbol list
14925 include_expsyms=
14926 # exclude_expsyms can be an extended regexp of symbols to exclude
14927 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14928 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14929 # as well as any symbol that contains `d'.
14930 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14931 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14932 # platforms (ab)use it in PIC code, but their linkers get confused if
14933 # the symbol is explicitly referenced. Since portable code cannot
14934 # rely on this symbol name, it's probably fine to never include it in
14935 # preloaded symbol tables.
14936 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014937 # Just being paranoid about ensuring that cc_basename is set.
14938 for cc_temp in $compiler""; do
14939 case $cc_temp in
14940 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14941 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14942 \-*) ;;
14943 *) break;;
14944 esac
14945done
14946cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014947
14948 case $host_os in
14949 cygwin* | mingw* | pw32*)
14950 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14951 # When not using gcc, we currently assume that we are using
14952 # Microsoft Visual C++.
14953 if test "$GCC" != yes; then
14954 with_gnu_ld=no
14955 fi
14956 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014957 interix*)
14958 # we just hope/assume this is gcc and not c89 (= MSVC++)
14959 with_gnu_ld=yes
14960 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014961 openbsd*)
14962 with_gnu_ld=no
14963 ;;
14964 esac
14965
14966 ld_shlibs=yes
14967 if test "$with_gnu_ld" = yes; then
14968 # If archive_cmds runs LD, not CC, wlarc should be empty
14969 wlarc='${wl}'
14970
Reid Spencera773bd52006-08-04 18:18:08 +000014971 # Set some defaults for GNU ld with shared library support. These
14972 # are reset later if shared libraries are not supported. Putting them
14973 # here allows them to be overridden if necessary.
14974 runpath_var=LD_RUN_PATH
14975 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14976 export_dynamic_flag_spec='${wl}--export-dynamic'
14977 # ancient GNU ld didn't support --whole-archive et. al.
14978 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14979 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14980 else
14981 whole_archive_flag_spec=
14982 fi
14983 supports_anon_versioning=no
14984 case `$LD -v 2>/dev/null` in
14985 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14986 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14987 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14988 *\ 2.11.*) ;; # other 2.11 versions
14989 *) supports_anon_versioning=yes ;;
14990 esac
14991
John Criswell47fdd832003-07-14 16:52:07 +000014992 # See if GNU ld supports shared libraries.
14993 case $host_os in
14994 aix3* | aix4* | aix5*)
14995 # On AIX/PPC, the GNU linker is very broken
14996 if test "$host_cpu" != ia64; then
14997 ld_shlibs=no
14998 cat <<EOF 1>&2
14999
15000*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15001*** to be unable to reliably create shared libraries on AIX.
15002*** Therefore, libtool is disabling shared libraries support. If you
15003*** really care for shared libraries, you may want to modify your PATH
15004*** so that a non-GNU linker is found, and then restart.
15005
15006EOF
15007 fi
15008 ;;
15009
15010 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015011 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 +000015012 hardcode_libdir_flag_spec='-L$libdir'
15013 hardcode_minus_L=yes
15014
15015 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15016 # that the semantics of dynamic libraries on AmigaOS, at least up
15017 # to version 4, is to share data among multiple programs linked
15018 # with the same dynamic library. Since this doesn't match the
15019 # behavior of shared libraries on other platforms, we can't use
15020 # them.
15021 ld_shlibs=no
15022 ;;
15023
15024 beos*)
15025 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15026 allow_undefined_flag=unsupported
15027 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15028 # support --undefined. This deserves some investigation. FIXME
15029 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15030 else
15031 ld_shlibs=no
15032 fi
15033 ;;
15034
15035 cygwin* | mingw* | pw32*)
15036 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15037 # as there is no search path for DLLs.
15038 hardcode_libdir_flag_spec='-L$libdir'
15039 allow_undefined_flag=unsupported
15040 always_export_symbols=no
15041 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015042 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 +000015043
15044 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015045 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 +000015046 # If the export-symbols file already is a .def file (1st line
15047 # is EXPORTS), use it as is; otherwise, prepend...
15048 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15049 cp $export_symbols $output_objdir/$soname.def;
15050 else
15051 echo EXPORTS > $output_objdir/$soname.def;
15052 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015053 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015054 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15055 else
15056 ld_shlibs=no
15057 fi
15058 ;;
15059
15060 interix3*)
15061 hardcode_direct=no
15062 hardcode_shlibpath_var=no
15063 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15064 export_dynamic_flag_spec='${wl}-E'
15065 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15066 # Instead, shared libraries are loaded at an image base (0x10000000 by
15067 # default) and relocated if they conflict, which is a slow very memory
15068 # consuming and fragmenting process. To avoid this, we pick a random,
15069 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15070 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15071 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15072 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'
15073 ;;
15074
15075 linux*)
15076 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15077 tmp_addflag=
15078 case $cc_basename,$host_cpu in
15079 pgcc*) # Portland Group C compiler
15080 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'
15081 tmp_addflag=' $pic_flag'
15082 ;;
15083 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15084 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'
15085 tmp_addflag=' $pic_flag -Mnomain' ;;
15086 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15087 tmp_addflag=' -i_dynamic' ;;
15088 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15089 tmp_addflag=' -i_dynamic -nofor_main' ;;
15090 ifc* | ifort*) # Intel Fortran compiler
15091 tmp_addflag=' -nofor_main' ;;
15092 esac
15093 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15094
15095 if test $supports_anon_versioning = yes; then
15096 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15097 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15098 $echo "local: *; };" >> $output_objdir/$libname.ver~
15099 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15100 fi
John Criswell47fdd832003-07-14 16:52:07 +000015101 else
15102 ld_shlibs=no
15103 fi
15104 ;;
15105
15106 netbsd*)
15107 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15108 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15109 wlarc=
15110 else
15111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15112 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15113 fi
15114 ;;
15115
Reid Spencera773bd52006-08-04 18:18:08 +000015116 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015117 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15118 ld_shlibs=no
15119 cat <<EOF 1>&2
15120
15121*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15122*** create shared libraries on Solaris systems. Therefore, libtool
15123*** is disabling shared libraries support. We urge you to upgrade GNU
15124*** binutils to release 2.9.1 or newer. Another option is to modify
15125*** your PATH or compiler configuration so that the native linker is
15126*** used, and then restart.
15127
15128EOF
15129 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15132 else
15133 ld_shlibs=no
15134 fi
15135 ;;
15136
Reid Spencera773bd52006-08-04 18:18:08 +000015137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15138 case `$LD -v 2>&1` in
15139 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15140 ld_shlibs=no
15141 cat <<_LT_EOF 1>&2
15142
15143*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15144*** reliably create shared libraries on SCO systems. Therefore, libtool
15145*** is disabling shared libraries support. We urge you to upgrade GNU
15146*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15147*** your PATH or compiler configuration so that the native linker is
15148*** used, and then restart.
15149
15150_LT_EOF
15151 ;;
15152 *)
15153 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15154 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15155 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15156 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15157 else
15158 ld_shlibs=no
15159 fi
15160 ;;
15161 esac
15162 ;;
15163
John Criswell47fdd832003-07-14 16:52:07 +000015164 sunos4*)
15165 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15166 wlarc=
15167 hardcode_direct=yes
15168 hardcode_shlibpath_var=no
15169 ;;
15170
15171 *)
15172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15175 else
15176 ld_shlibs=no
15177 fi
15178 ;;
15179 esac
15180
Reid Spencera773bd52006-08-04 18:18:08 +000015181 if test "$ld_shlibs" = no; then
15182 runpath_var=
15183 hardcode_libdir_flag_spec=
15184 export_dynamic_flag_spec=
15185 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015186 fi
15187 else
15188 # PORTME fill in a description of your system's linker (not GNU ld)
15189 case $host_os in
15190 aix3*)
15191 allow_undefined_flag=unsupported
15192 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015193 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 +000015194 # Note: this linker hardcodes the directories in LIBPATH if there
15195 # are no directories specified by -L.
15196 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015197 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015198 # Neither direct hardcoding nor static linking is supported with a
15199 # broken collect2.
15200 hardcode_direct=unsupported
15201 fi
15202 ;;
15203
15204 aix4* | aix5*)
15205 if test "$host_cpu" = ia64; then
15206 # On IA64, the linker does run time linking by default, so we don't
15207 # have to do anything special.
15208 aix_use_runtimelinking=no
15209 exp_sym_flag='-Bexport'
15210 no_entry_flag=""
15211 else
15212 # If we're using GNU nm, then we don't want the "-C" option.
15213 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15214 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15215 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'
15216 else
15217 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'
15218 fi
15219 aix_use_runtimelinking=no
15220
15221 # Test if we are trying to use run time linking or normal
15222 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15223 # need to do runtime linking.
15224 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15225 for ld_flag in $LDFLAGS; do
15226 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15227 aix_use_runtimelinking=yes
15228 break
15229 fi
15230 done
Reid Spencera773bd52006-08-04 18:18:08 +000015231 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015232 esac
15233
15234 exp_sym_flag='-bexport'
15235 no_entry_flag='-bnoentry'
15236 fi
15237
15238 # When large executables or shared objects are built, AIX ld can
15239 # have problems creating the table of contents. If linking a library
15240 # or program results in "error TOC overflow" add -mminimal-toc to
15241 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15242 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15243
15244 archive_cmds=''
15245 hardcode_direct=yes
15246 hardcode_libdir_separator=':'
15247 link_all_deplibs=yes
15248
15249 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015250 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015251 # We only want to do this on AIX 4.2 and lower, the check
15252 # below for broken collect2 doesn't work under 4.3+
15253 collect2name=`${CC} -print-prog-name=collect2`
15254 if test -f "$collect2name" && \
15255 strings "$collect2name" | grep resolve_lib_name >/dev/null
15256 then
15257 # We have reworked collect2
15258 hardcode_direct=yes
15259 else
15260 # We have old collect2
15261 hardcode_direct=unsupported
15262 # It fails to find uninstalled libraries when the uninstalled
15263 # path is not listed in the libpath. Setting hardcode_minus_L
15264 # to unsupported forces relinking
15265 hardcode_minus_L=yes
15266 hardcode_libdir_flag_spec='-L$libdir'
15267 hardcode_libdir_separator=
15268 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015269 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015270 esac
15271 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015272 if test "$aix_use_runtimelinking" = yes; then
15273 shared_flag="$shared_flag "'${wl}-G'
15274 fi
John Criswell47fdd832003-07-14 16:52:07 +000015275 else
15276 # not using gcc
15277 if test "$host_cpu" = ia64; then
15278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15279 # chokes on -Wl,-G. The following line is correct:
15280 shared_flag='-G'
15281 else
Reid Spencera773bd52006-08-04 18:18:08 +000015282 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015283 shared_flag='${wl}-G'
15284 else
15285 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015286 fi
John Criswell47fdd832003-07-14 16:52:07 +000015287 fi
15288 fi
15289
15290 # It seems that -bexpall does not export symbols beginning with
15291 # underscore (_), so it is better to generate a list of symbols to export.
15292 always_export_symbols=yes
15293 if test "$aix_use_runtimelinking" = yes; then
15294 # Warning - without using the other runtime loading flags (-brtl),
15295 # -berok will link without error, but may produce a broken library.
15296 allow_undefined_flag='-berok'
15297 # Determine the default libpath from the value encoded in an empty executable.
15298 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015299/* confdefs.h. */
15300_ACEOF
15301cat confdefs.h >>conftest.$ac_ext
15302cat >>conftest.$ac_ext <<_ACEOF
15303/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015304
John Criswell7a73b802003-06-30 21:59:07 +000015305int
15306main ()
15307{
John Criswell47fdd832003-07-14 16:52:07 +000015308
John Criswell7a73b802003-06-30 21:59:07 +000015309 ;
15310 return 0;
15311}
15312_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015313rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015314if { (ac_try="$ac_link"
15315case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15318esac
15319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015321 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015322 grep -v '^ *+' conftest.er1 >conftest.err
15323 rm -f conftest.er1
15324 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015326 (exit $ac_status); } &&
15327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15328 { (case "(($ac_try" in
15329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330 *) ac_try_echo=$ac_try;;
15331esac
15332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333 (eval "$ac_try") 2>&5
15334 ac_status=$?
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; } &&
15337 { ac_try='test -s conftest$ac_exeext'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15341esac
15342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015347
John Criswell47fdd832003-07-14 16:52:07 +000015348aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15349}'`
15350# Check for a 64-bit object if we didn't find anything.
15351if 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; }
15352}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015353else
15354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015355sed 's/^/| /' conftest.$ac_ext >&5
15356
Reid Spencera773bd52006-08-04 18:18:08 +000015357
John Criswell7a73b802003-06-30 21:59:07 +000015358fi
Reid Spencera773bd52006-08-04 18:18:08 +000015359
Bill Wendlingebcceee2009-04-18 11:20:33 +000015360rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015361 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015362if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015363
John Criswell47fdd832003-07-14 16:52:07 +000015364 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015365 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 +000015366 else
15367 if test "$host_cpu" = ia64; then
15368 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15369 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015370 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 +000015371 else
15372 # Determine the default libpath from the value encoded in an empty executable.
15373 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015374/* confdefs.h. */
15375_ACEOF
15376cat confdefs.h >>conftest.$ac_ext
15377cat >>conftest.$ac_ext <<_ACEOF
15378/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015379
John Criswell47fdd832003-07-14 16:52:07 +000015380int
15381main ()
15382{
John Criswell7a73b802003-06-30 21:59:07 +000015383
John Criswell47fdd832003-07-14 16:52:07 +000015384 ;
15385 return 0;
15386}
15387_ACEOF
15388rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015389if { (ac_try="$ac_link"
15390case "(($ac_try" in
15391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15392 *) ac_try_echo=$ac_try;;
15393esac
15394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15395 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015396 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015397 grep -v '^ *+' conftest.er1 >conftest.err
15398 rm -f conftest.er1
15399 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000015401 (exit $ac_status); } &&
15402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15403 { (case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15406esac
15407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_try") 2>&5
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); }; } &&
15412 { ac_try='test -s conftest$ac_exeext'
15413 { (case "(($ac_try" in
15414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415 *) ac_try_echo=$ac_try;;
15416esac
15417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418 (eval "$ac_try") 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015422
John Criswell47fdd832003-07-14 16:52:07 +000015423aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15424}'`
15425# Check for a 64-bit object if we didn't find anything.
15426if 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; }
15427}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015428else
John Criswell47fdd832003-07-14 16:52:07 +000015429 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015430sed 's/^/| /' conftest.$ac_ext >&5
15431
Reid Spencera773bd52006-08-04 18:18:08 +000015432
John Criswell47fdd832003-07-14 16:52:07 +000015433fi
Reid Spencera773bd52006-08-04 18:18:08 +000015434
Bill Wendlingebcceee2009-04-18 11:20:33 +000015435rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015436 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015437if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015438
John Criswell47fdd832003-07-14 16:52:07 +000015439 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15440 # Warning - without using the other run time loading flags,
15441 # -berok will link without error, but may produce a broken library.
15442 no_undefined_flag=' ${wl}-bernotok'
15443 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015444 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015445 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015446 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015447 # This is similar to how AIX traditionally builds its shared libraries.
15448 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 +000015449 fi
15450 fi
John Criswell7a73b802003-06-30 21:59:07 +000015451 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015452
15453 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015454 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 +000015455 hardcode_libdir_flag_spec='-L$libdir'
15456 hardcode_minus_L=yes
15457 # see comment about different semantics on the GNU ld section
15458 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015459 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015460
Reid Spencer2706f8c2004-09-19 23:53:36 +000015461 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015462 export_dynamic_flag_spec=-rdynamic
15463 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015464
John Criswell47fdd832003-07-14 16:52:07 +000015465 cygwin* | mingw* | pw32*)
15466 # When not using gcc, we currently assume that we are using
15467 # Microsoft Visual C++.
15468 # hardcode_libdir_flag_spec is actually meaningless, as there is
15469 # no search path for DLLs.
15470 hardcode_libdir_flag_spec=' '
15471 allow_undefined_flag=unsupported
15472 # Tell ltmain to make .lib files, not .a files.
15473 libext=lib
15474 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015475 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015476 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015477 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015478 # The linker will automatically build a .lib file if we build a DLL.
15479 old_archive_From_new_cmds='true'
15480 # FIXME: Should let the user specify the lib program.
15481 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15482 fix_srcfile_path='`cygpath -w "$srcfile"`'
15483 enable_shared_with_static_runtimes=yes
15484 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015485
John Criswell47fdd832003-07-14 16:52:07 +000015486 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015487 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015488 rhapsody* | darwin1.[012])
15489 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15490 ;;
15491 *) # Darwin 1.3 on
15492 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15493 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15494 else
15495 case ${MACOSX_DEPLOYMENT_TARGET} in
15496 10.[012])
15497 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15498 ;;
15499 10.*)
15500 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15501 ;;
15502 esac
15503 fi
15504 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015505 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015506 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015507 hardcode_direct=no
15508 hardcode_automatic=yes
15509 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015510 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015511 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015512 if test "$GCC" = yes ; then
15513 output_verbose_link_cmd='echo'
15514 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15515 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015516 # 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 +000015517 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}'
15518 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 +000015519 else
Reid Spencera773bd52006-08-04 18:18:08 +000015520 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015521 xlc*)
15522 output_verbose_link_cmd='echo'
15523 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15524 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015525 # 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 +000015526 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}'
15527 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 +000015528 ;;
15529 *)
15530 ld_shlibs=no
15531 ;;
15532 esac
John Criswell7a73b802003-06-30 21:59:07 +000015533 fi
John Criswell47fdd832003-07-14 16:52:07 +000015534 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015535
John Criswell47fdd832003-07-14 16:52:07 +000015536 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015538 hardcode_libdir_flag_spec='-L$libdir'
15539 hardcode_shlibpath_var=no
15540 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015541
John Criswell47fdd832003-07-14 16:52:07 +000015542 freebsd1*)
15543 ld_shlibs=no
15544 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015545
John Criswell47fdd832003-07-14 16:52:07 +000015546 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15547 # support. Future versions do this automatically, but an explicit c++rt0.o
15548 # does not break anything, and helps significantly (at the cost of a little
15549 # extra space).
15550 freebsd2.2*)
15551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15552 hardcode_libdir_flag_spec='-R$libdir'
15553 hardcode_direct=yes
15554 hardcode_shlibpath_var=no
15555 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015556
John Criswell47fdd832003-07-14 16:52:07 +000015557 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15558 freebsd2*)
15559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15560 hardcode_direct=yes
15561 hardcode_minus_L=yes
15562 hardcode_shlibpath_var=no
15563 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015564
John Criswell47fdd832003-07-14 16:52:07 +000015565 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015566 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015567 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15568 hardcode_libdir_flag_spec='-R$libdir'
15569 hardcode_direct=yes
15570 hardcode_shlibpath_var=no
15571 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015572
John Criswell47fdd832003-07-14 16:52:07 +000015573 hpux9*)
15574 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015575 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 +000015576 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015577 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 +000015578 fi
15579 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15580 hardcode_libdir_separator=:
15581 hardcode_direct=yes
15582
15583 # hardcode_minus_L: Not really in the search PATH,
15584 # but as the default location of the library.
15585 hardcode_minus_L=yes
15586 export_dynamic_flag_spec='${wl}-E'
15587 ;;
15588
Reid Spencera773bd52006-08-04 18:18:08 +000015589 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015590 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015591 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15592 else
15593 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15594 fi
15595 if test "$with_gnu_ld" = no; then
15596 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15597 hardcode_libdir_separator=:
15598
15599 hardcode_direct=yes
15600 export_dynamic_flag_spec='${wl}-E'
15601
15602 # hardcode_minus_L: Not really in the search PATH,
15603 # but as the default location of the library.
15604 hardcode_minus_L=yes
15605 fi
15606 ;;
15607
15608 hpux11*)
15609 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15610 case $host_cpu in
15611 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015612 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15613 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015614 ia64*)
15615 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15616 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015617 *)
15618 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15619 ;;
15620 esac
15621 else
Reid Spencera773bd52006-08-04 18:18:08 +000015622 case $host_cpu in
15623 hppa*64*)
15624 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625 ;;
15626 ia64*)
15627 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015628 ;;
15629 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015630 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 +000015631 ;;
15632 esac
15633 fi
15634 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015635 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15636 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015637
Reid Spencera773bd52006-08-04 18:18:08 +000015638 case $host_cpu in
15639 hppa*64*|ia64*)
15640 hardcode_libdir_flag_spec_ld='+b $libdir'
15641 hardcode_direct=no
15642 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015643 ;;
15644 *)
John Criswell47fdd832003-07-14 16:52:07 +000015645 hardcode_direct=yes
15646 export_dynamic_flag_spec='${wl}-E'
15647
15648 # hardcode_minus_L: Not really in the search PATH,
15649 # but as the default location of the library.
15650 hardcode_minus_L=yes
15651 ;;
15652 esac
15653 fi
15654 ;;
15655
15656 irix5* | irix6* | nonstopux*)
15657 if test "$GCC" = yes; then
15658 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'
15659 else
15660 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'
15661 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15662 fi
15663 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15664 hardcode_libdir_separator=:
15665 link_all_deplibs=yes
15666 ;;
15667
15668 netbsd*)
15669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15671 else
15672 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15673 fi
15674 hardcode_libdir_flag_spec='-R$libdir'
15675 hardcode_direct=yes
15676 hardcode_shlibpath_var=no
15677 ;;
15678
15679 newsos6)
15680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681 hardcode_direct=yes
15682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15683 hardcode_libdir_separator=:
15684 hardcode_shlibpath_var=no
15685 ;;
15686
15687 openbsd*)
15688 hardcode_direct=yes
15689 hardcode_shlibpath_var=no
15690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15691 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015692 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 +000015693 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15694 export_dynamic_flag_spec='${wl}-E'
15695 else
15696 case $host_os in
15697 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15699 hardcode_libdir_flag_spec='-R$libdir'
15700 ;;
15701 *)
15702 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15703 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15704 ;;
15705 esac
15706 fi
15707 ;;
15708
15709 os2*)
15710 hardcode_libdir_flag_spec='-L$libdir'
15711 hardcode_minus_L=yes
15712 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015713 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 +000015714 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15715 ;;
15716
15717 osf3*)
15718 if test "$GCC" = yes; then
15719 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15720 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'
15721 else
15722 allow_undefined_flag=' -expect_unresolved \*'
15723 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'
15724 fi
15725 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15726 hardcode_libdir_separator=:
15727 ;;
15728
15729 osf4* | osf5*) # as osf3* with the addition of -msym flag
15730 if test "$GCC" = yes; then
15731 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15732 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'
15733 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15734 else
15735 allow_undefined_flag=' -expect_unresolved \*'
15736 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 +000015737 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 +000015738 $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 +000015739
John Criswell47fdd832003-07-14 16:52:07 +000015740 # Both c and cxx compiler support -rpath directly
15741 hardcode_libdir_flag_spec='-rpath $libdir'
15742 fi
15743 hardcode_libdir_separator=:
15744 ;;
15745
John Criswell47fdd832003-07-14 16:52:07 +000015746 solaris*)
15747 no_undefined_flag=' -z text'
15748 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015749 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015750 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015751 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15752 $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 +000015753 else
Reid Spencera773bd52006-08-04 18:18:08 +000015754 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015755 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015756 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15757 $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 +000015758 fi
15759 hardcode_libdir_flag_spec='-R$libdir'
15760 hardcode_shlibpath_var=no
15761 case $host_os in
15762 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015763 *)
15764 # The compiler driver will combine linker options so we
15765 # cannot just pass the convience library names through
15766 # without $wl, iff we do not link with $LD.
15767 # Luckily, gcc supports the same syntax we need for Sun Studio.
15768 # Supported since Solaris 2.6 (maybe 2.5.1?)
15769 case $wlarc in
15770 '')
15771 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15772 *)
15773 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' ;;
15774 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015775 esac
15776 link_all_deplibs=yes
15777 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015778
John Criswell47fdd832003-07-14 16:52:07 +000015779 sunos4*)
15780 if test "x$host_vendor" = xsequent; then
15781 # Use $CC to link under sequent, because it throws in some extra .o
15782 # files that make .init and .fini sections work.
15783 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15784 else
15785 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15786 fi
15787 hardcode_libdir_flag_spec='-L$libdir'
15788 hardcode_direct=yes
15789 hardcode_minus_L=yes
15790 hardcode_shlibpath_var=no
15791 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015792
John Criswell47fdd832003-07-14 16:52:07 +000015793 sysv4)
15794 case $host_vendor in
15795 sni)
15796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15797 hardcode_direct=yes # is this really true???
15798 ;;
15799 siemens)
15800 ## LD is ld it makes a PLAMLIB
15801 ## CC just makes a GrossModule.
15802 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15803 reload_cmds='$CC -r -o $output$reload_objs'
15804 hardcode_direct=no
15805 ;;
15806 motorola)
15807 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15808 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15809 ;;
15810 esac
15811 runpath_var='LD_RUN_PATH'
15812 hardcode_shlibpath_var=no
15813 ;;
15814
15815 sysv4.3*)
15816 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15817 hardcode_shlibpath_var=no
15818 export_dynamic_flag_spec='-Bexport'
15819 ;;
15820
15821 sysv4*MP*)
15822 if test -d /usr/nec; then
15823 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15824 hardcode_shlibpath_var=no
15825 runpath_var=LD_RUN_PATH
15826 hardcode_runpath_var=yes
15827 ld_shlibs=yes
15828 fi
15829 ;;
15830
Reid Spencera773bd52006-08-04 18:18:08 +000015831 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15832 no_undefined_flag='${wl}-z,text'
15833 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015834 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015835 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015836
John Criswell47fdd832003-07-14 16:52:07 +000015837 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015838 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15839 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 +000015840 else
Reid Spencera773bd52006-08-04 18:18:08 +000015841 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15842 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 +000015843 fi
John Criswell47fdd832003-07-14 16:52:07 +000015844 ;;
15845
Reid Spencera773bd52006-08-04 18:18:08 +000015846 sysv5* | sco3.2v5* | sco5v6*)
15847 # Note: We can NOT use -z defs as we might desire, because we do not
15848 # link with -lc, and that would cause any symbols used from libc to
15849 # always be unresolved, which means just about no library would
15850 # ever link correctly. If we're not using GNU ld we use -z text
15851 # though, which does catch some bad symbols but isn't as heavy-handed
15852 # as -z defs.
15853 no_undefined_flag='${wl}-z,text'
15854 allow_undefined_flag='${wl}-z,nodefs'
15855 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015856 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015857 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15858 hardcode_libdir_separator=':'
15859 link_all_deplibs=yes
15860 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015861 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015862
15863 if test "$GCC" = yes; then
15864 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15865 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15866 else
15867 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15868 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15869 fi
John Criswell47fdd832003-07-14 16:52:07 +000015870 ;;
15871
15872 uts4*)
15873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15874 hardcode_libdir_flag_spec='-L$libdir'
15875 hardcode_shlibpath_var=no
15876 ;;
15877
15878 *)
15879 ld_shlibs=no
15880 ;;
15881 esac
15882 fi
15883
Reid Spencera773bd52006-08-04 18:18:08 +000015884{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15885echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015886test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015887
John Criswell47fdd832003-07-14 16:52:07 +000015888#
15889# Do we need to explicitly link libc?
15890#
15891case "x$archive_cmds_need_lc" in
15892x|xyes)
15893 # Assume -lc should be added
15894 archive_cmds_need_lc=yes
15895
15896 if test "$enable_shared" = yes && test "$GCC" = yes; then
15897 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015898 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015899 # FIXME: we may have to deal with multi-command sequences.
15900 ;;
15901 '$CC '*)
15902 # Test whether the compiler implicitly links with -lc since on some
15903 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15904 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015905 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15906echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015907 $rm conftest*
15908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15909
15910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15911 (eval $ac_compile) 2>&5
15912 ac_status=$?
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } 2>conftest.err; then
15915 soname=conftest
15916 lib=conftest
15917 libobjs=conftest.$ac_objext
15918 deplibs=
15919 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015920 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015921 compiler_flags=-v
15922 linker_flags=-v
15923 verstring=
15924 output_objdir=.
15925 libname=conftest
15926 lt_save_allow_undefined_flag=$allow_undefined_flag
15927 allow_undefined_flag=
15928 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15929 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }
15933 then
15934 archive_cmds_need_lc=no
15935 else
15936 archive_cmds_need_lc=yes
15937 fi
15938 allow_undefined_flag=$lt_save_allow_undefined_flag
15939 else
15940 cat conftest.err 1>&5
15941 fi
15942 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015943 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15944echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015945 ;;
15946 esac
15947 fi
15948 ;;
15949esac
15950
Reid Spencera773bd52006-08-04 18:18:08 +000015951{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15952echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015953library_names_spec=
15954libname_spec='lib$name'
15955soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015956shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015957postinstall_cmds=
15958postuninstall_cmds=
15959finish_cmds=
15960finish_eval=
15961shlibpath_var=
15962shlibpath_overrides_runpath=unknown
15963version_type=none
15964dynamic_linker="$host_os ld.so"
15965sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015966if test "$GCC" = yes; then
15967 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15968 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15969 # if the path contains ";" then we assume it to be the separator
15970 # otherwise default to the standard path separator (i.e. ":") - it is
15971 # assumed that no part of a normal pathname contains ";" but that should
15972 # okay in the real world where ";" in dirpaths is itself problematic.
15973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15974 else
15975 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15976 fi
15977else
15978 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15979fi
15980need_lib_prefix=unknown
15981hardcode_into_libs=no
15982
15983# when you set need_version to no, make sure it does not cause -set_version
15984# flags to be left without arguments
15985need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015986
15987case $host_os in
15988aix3*)
15989 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015990 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015991 shlibpath_var=LIBPATH
15992
John Criswell47fdd832003-07-14 16:52:07 +000015993 # AIX 3 has no versioning support, so we append a major version to the name.
15994 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015995 ;;
15996
15997aix4* | aix5*)
15998 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015999 need_lib_prefix=no
16000 need_version=no
16001 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016002 if test "$host_cpu" = ia64; then
16003 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016004 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016005 shlibpath_var=LD_LIBRARY_PATH
16006 else
16007 # With GCC up to 2.95.x, collect2 would create an import file
16008 # for dependence libraries. The import file would start with
16009 # the line `#! .'. This would cause the generated library to
16010 # depend on `.', always an invalid library. This was fixed in
16011 # development snapshots of GCC prior to 3.0.
16012 case $host_os in
16013 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016014 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16015 echo ' yes '
16016 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16017 :
16018 else
16019 can_build_shared=no
16020 fi
16021 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016022 esac
John Criswell47fdd832003-07-14 16:52:07 +000016023 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16024 # soname into executable. Probably we can add versioning support to
16025 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016026 if test "$aix_use_runtimelinking" = yes; then
16027 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16028 # instead of lib<name>.a to let people know that these are not
16029 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016031 else
16032 # We preserve .a as extension for shared libraries through AIX4.2
16033 # and later when we are not doing run time linking.
16034 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016035 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016036 fi
16037 shlibpath_var=LIBPATH
16038 fi
16039 ;;
16040
16041amigaos*)
16042 library_names_spec='$libname.ixlibrary $libname.a'
16043 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016044 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 +000016045 ;;
16046
16047beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016048 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016049 dynamic_linker="$host_os ld.so"
16050 shlibpath_var=LIBRARY_PATH
16051 ;;
16052
Reid Spencer2706f8c2004-09-19 23:53:36 +000016053bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016054 version_type=linux
16055 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16057 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016058 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16059 shlibpath_var=LD_LIBRARY_PATH
16060 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16061 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016062 # the default ld.so.conf also contains /usr/contrib/lib and
16063 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16064 # libtool to hard-code these into programs
16065 ;;
16066
16067cygwin* | mingw* | pw32*)
16068 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016069 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016070 need_version=no
16071 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016072
John Criswell7a73b802003-06-30 21:59:07 +000016073 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016074 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016075 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016076 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016077 postinstall_cmds='base_file=`basename \${file}`~
16078 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16079 dldir=$destdir/`dirname \$dlpath`~
16080 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016081 $install_prog $dir/$dlname \$dldir/$dlname~
16082 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16084 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016085 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016086 shlibpath_overrides_runpath=yes
16087
16088 case $host_os in
16089 cygwin*)
16090 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16091 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 +000016092 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016093 ;;
16094 mingw*)
16095 # MinGW DLLs use traditional 'lib' prefix
16096 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16097 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16098 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16099 # It is most probably a Windows format PATH printed by
16100 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16101 # path with ; separators, and with drive letters. We can handle the
16102 # drive letters (cygwin fileutils understands them), so leave them,
16103 # especially as we might pass files found there to a mingw objdump,
16104 # which wouldn't understand a cygwinified path. Ahh.
16105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16106 else
16107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16108 fi
16109 ;;
16110 pw32*)
16111 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016112 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 +000016113 ;;
16114 esac
John Criswell7a73b802003-06-30 21:59:07 +000016115 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016116
John Criswell7a73b802003-06-30 21:59:07 +000016117 *)
John Criswell47fdd832003-07-14 16:52:07 +000016118 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016119 ;;
16120 esac
16121 dynamic_linker='Win32 ld.exe'
16122 # FIXME: first we should search . and the directory the executable is in
16123 shlibpath_var=PATH
16124 ;;
16125
16126darwin* | rhapsody*)
16127 dynamic_linker="$host_os dyld"
16128 version_type=darwin
16129 need_lib_prefix=no
16130 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016131 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016132 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016133 shlibpath_overrides_runpath=yes
16134 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016135 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016136 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016137 if test "$GCC" = yes; then
16138 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"`
16139 else
16140 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016141 fi
16142 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16143 ;;
16144
16145dgux*)
16146 version_type=linux
16147 need_lib_prefix=no
16148 need_version=no
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16150 soname_spec='${libname}${release}${shared_ext}$major'
16151 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016152 ;;
16153
16154freebsd1*)
16155 dynamic_linker=no
16156 ;;
16157
Reid Spencer2706f8c2004-09-19 23:53:36 +000016158kfreebsd*-gnu)
16159 version_type=linux
16160 need_lib_prefix=no
16161 need_version=no
16162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16163 soname_spec='${libname}${release}${shared_ext}$major'
16164 shlibpath_var=LD_LIBRARY_PATH
16165 shlibpath_overrides_runpath=no
16166 hardcode_into_libs=yes
16167 dynamic_linker='GNU ld.so'
16168 ;;
16169
Reid Spencera773bd52006-08-04 18:18:08 +000016170freebsd* | dragonfly*)
16171 # DragonFly does not have aout. When/if they implement a new
16172 # versioning mechanism, adjust this.
16173 if test -x /usr/bin/objformat; then
16174 objformat=`/usr/bin/objformat`
16175 else
16176 case $host_os in
16177 freebsd[123]*) objformat=aout ;;
16178 *) objformat=elf ;;
16179 esac
16180 fi
John Criswell7a73b802003-06-30 21:59:07 +000016181 version_type=freebsd-$objformat
16182 case $version_type in
16183 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016185 need_version=no
16186 need_lib_prefix=no
16187 ;;
16188 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016190 need_version=yes
16191 ;;
16192 esac
16193 shlibpath_var=LD_LIBRARY_PATH
16194 case $host_os in
16195 freebsd2*)
16196 shlibpath_overrides_runpath=yes
16197 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016198 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016199 shlibpath_overrides_runpath=yes
16200 hardcode_into_libs=yes
16201 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016202 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16203 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016204 shlibpath_overrides_runpath=no
16205 hardcode_into_libs=yes
16206 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016207 freebsd*) # from 4.6 on
16208 shlibpath_overrides_runpath=yes
16209 hardcode_into_libs=yes
16210 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016211 esac
16212 ;;
16213
16214gnu*)
16215 version_type=linux
16216 need_lib_prefix=no
16217 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016220 shlibpath_var=LD_LIBRARY_PATH
16221 hardcode_into_libs=yes
16222 ;;
16223
16224hpux9* | hpux10* | hpux11*)
16225 # Give a soname corresponding to the major version so that dld.sl refuses to
16226 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016227 version_type=sunos
16228 need_lib_prefix=no
16229 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016230 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016231 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016232 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016233 hardcode_into_libs=yes
16234 dynamic_linker="$host_os dld.so"
16235 shlibpath_var=LD_LIBRARY_PATH
16236 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 if test "X$HPUX_IA64_MODE" = X32; then
16240 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16241 else
16242 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16243 fi
16244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16245 ;;
16246 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016247 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016248 hardcode_into_libs=yes
16249 dynamic_linker="$host_os dld.sl"
16250 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16253 soname_spec='${libname}${release}${shared_ext}$major'
16254 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16256 ;;
16257 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016258 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016259 dynamic_linker="$host_os dld.sl"
16260 shlibpath_var=SHLIB_PATH
16261 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16263 soname_spec='${libname}${release}${shared_ext}$major'
16264 ;;
16265 esac
John Criswell7a73b802003-06-30 21:59:07 +000016266 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16267 postinstall_cmds='chmod 555 $lib'
16268 ;;
16269
Reid Spencera773bd52006-08-04 18:18:08 +000016270interix3*)
16271 version_type=linux
16272 need_lib_prefix=no
16273 need_version=no
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16277 shlibpath_var=LD_LIBRARY_PATH
16278 shlibpath_overrides_runpath=no
16279 hardcode_into_libs=yes
16280 ;;
16281
John Criswell47fdd832003-07-14 16:52:07 +000016282irix5* | irix6* | nonstopux*)
16283 case $host_os in
16284 nonstopux*) version_type=nonstopux ;;
16285 *)
16286 if test "$lt_cv_prog_gnu_ld" = yes; then
16287 version_type=linux
16288 else
16289 version_type=irix
16290 fi ;;
16291 esac
John Criswell7a73b802003-06-30 21:59:07 +000016292 need_lib_prefix=no
16293 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016294 soname_spec='${libname}${release}${shared_ext}$major'
16295 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 +000016296 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016297 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016298 libsuff= shlibsuff=
16299 ;;
16300 *)
16301 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016302 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16303 libsuff= shlibsuff= libmagic=32-bit;;
16304 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16305 libsuff=32 shlibsuff=N32 libmagic=N32;;
16306 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16307 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016308 *) libsuff= shlibsuff= libmagic=never-match;;
16309 esac
16310 ;;
16311 esac
16312 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16313 shlibpath_overrides_runpath=no
16314 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16315 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016316 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016317 ;;
16318
16319# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016320linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016321 dynamic_linker=no
16322 ;;
16323
16324# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016325linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016326 version_type=linux
16327 need_lib_prefix=no
16328 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16332 shlibpath_var=LD_LIBRARY_PATH
16333 shlibpath_overrides_runpath=no
16334 # This implies no fast_install, which is unacceptable.
16335 # Some rework will be needed to allow for fast_install
16336 # before this can be enabled.
16337 hardcode_into_libs=yes
16338
Reid Spencer2706f8c2004-09-19 23:53:36 +000016339 # Append ld.so.conf contents to the search path
16340 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016341 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 +000016342 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16343 fi
16344
John Criswell7a73b802003-06-30 21:59:07 +000016345 # We used to test for /lib/ld.so.1 and disable shared libraries on
16346 # powerpc, because MkLinux only supported shared libraries with the
16347 # GNU dynamic linker. Since this was broken with cross compilers,
16348 # most powerpc-linux boxes support dynamic linking these days and
16349 # people can always --disable-shared, the test was removed, and we
16350 # assume the GNU/Linux dynamic linker is in use.
16351 dynamic_linker='GNU/Linux ld.so'
16352 ;;
16353
Reid Spencer2706f8c2004-09-19 23:53:36 +000016354knetbsd*-gnu)
16355 version_type=linux
16356 need_lib_prefix=no
16357 need_version=no
16358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16359 soname_spec='${libname}${release}${shared_ext}$major'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=no
16362 hardcode_into_libs=yes
16363 dynamic_linker='GNU ld.so'
16364 ;;
16365
John Criswell7a73b802003-06-30 21:59:07 +000016366netbsd*)
16367 version_type=sunos
16368 need_lib_prefix=no
16369 need_version=no
16370 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16373 dynamic_linker='NetBSD (a.out) ld.so'
16374 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016376 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016377 dynamic_linker='NetBSD ld.elf_so'
16378 fi
16379 shlibpath_var=LD_LIBRARY_PATH
16380 shlibpath_overrides_runpath=yes
16381 hardcode_into_libs=yes
16382 ;;
16383
16384newsos6)
16385 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387 shlibpath_var=LD_LIBRARY_PATH
16388 shlibpath_overrides_runpath=yes
16389 ;;
16390
Reid Spencer2706f8c2004-09-19 23:53:36 +000016391nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016392 version_type=linux
16393 need_lib_prefix=no
16394 need_version=no
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16396 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016397 shlibpath_var=LD_LIBRARY_PATH
16398 shlibpath_overrides_runpath=yes
16399 ;;
16400
16401openbsd*)
16402 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016403 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016404 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016405 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16406 case $host_os in
16407 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16408 *) need_version=no ;;
16409 esac
John Criswell47fdd832003-07-14 16:52:07 +000016410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16412 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016413 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 +000016414 case $host_os in
16415 openbsd2.[89] | openbsd2.[89].*)
16416 shlibpath_overrides_runpath=no
16417 ;;
16418 *)
16419 shlibpath_overrides_runpath=yes
16420 ;;
16421 esac
John Criswell7a73b802003-06-30 21:59:07 +000016422 else
16423 shlibpath_overrides_runpath=yes
16424 fi
John Criswell7a73b802003-06-30 21:59:07 +000016425 ;;
16426
16427os2*)
16428 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016429 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016430 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016431 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016432 dynamic_linker='OS/2 ld.exe'
16433 shlibpath_var=LIBPATH
16434 ;;
16435
16436osf3* | osf4* | osf5*)
16437 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016438 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016439 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016440 soname_spec='${libname}${release}${shared_ext}$major'
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016442 shlibpath_var=LD_LIBRARY_PATH
16443 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16444 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16445 ;;
16446
John Criswell7a73b802003-06-30 21:59:07 +000016447solaris*)
16448 version_type=linux
16449 need_lib_prefix=no
16450 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16452 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016453 shlibpath_var=LD_LIBRARY_PATH
16454 shlibpath_overrides_runpath=yes
16455 hardcode_into_libs=yes
16456 # ldd complains unless libraries are executable
16457 postinstall_cmds='chmod +x $lib'
16458 ;;
16459
16460sunos4*)
16461 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016463 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16464 shlibpath_var=LD_LIBRARY_PATH
16465 shlibpath_overrides_runpath=yes
16466 if test "$with_gnu_ld" = yes; then
16467 need_lib_prefix=no
16468 fi
16469 need_version=yes
16470 ;;
16471
Reid Spencera773bd52006-08-04 18:18:08 +000016472sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016473 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16475 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016476 shlibpath_var=LD_LIBRARY_PATH
16477 case $host_vendor in
16478 sni)
16479 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016480 need_lib_prefix=no
16481 export_dynamic_flag_spec='${wl}-Blargedynsym'
16482 runpath_var=LD_RUN_PATH
16483 ;;
16484 siemens)
16485 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016486 ;;
16487 motorola)
16488 need_lib_prefix=no
16489 need_version=no
16490 shlibpath_overrides_runpath=no
16491 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16492 ;;
16493 esac
16494 ;;
16495
John Criswell7a73b802003-06-30 21:59:07 +000016496sysv4*MP*)
16497 if test -d /usr/nec ;then
16498 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016499 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16500 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016501 shlibpath_var=LD_LIBRARY_PATH
16502 fi
16503 ;;
16504
Reid Spencera773bd52006-08-04 18:18:08 +000016505sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16506 version_type=freebsd-elf
16507 need_lib_prefix=no
16508 need_version=no
16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16510 soname_spec='${libname}${release}${shared_ext}$major'
16511 shlibpath_var=LD_LIBRARY_PATH
16512 hardcode_into_libs=yes
16513 if test "$with_gnu_ld" = yes; then
16514 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16515 shlibpath_overrides_runpath=no
16516 else
16517 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16518 shlibpath_overrides_runpath=yes
16519 case $host_os in
16520 sco3.2v5*)
16521 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16522 ;;
16523 esac
16524 fi
16525 sys_lib_dlsearch_path_spec='/usr/lib'
16526 ;;
16527
John Criswell47fdd832003-07-14 16:52:07 +000016528uts4*)
16529 version_type=linux
16530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 shlibpath_var=LD_LIBRARY_PATH
16533 ;;
16534
John Criswell7a73b802003-06-30 21:59:07 +000016535*)
16536 dynamic_linker=no
16537 ;;
16538esac
Reid Spencera773bd52006-08-04 18:18:08 +000016539{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16540echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016541test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016542
Reid Spencera773bd52006-08-04 18:18:08 +000016543variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16544if test "$GCC" = yes; then
16545 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16546fi
16547
16548{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16549echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016550hardcode_action=
16551if test -n "$hardcode_libdir_flag_spec" || \
16552 test -n "$runpath_var" || \
16553 test "X$hardcode_automatic" = "Xyes" ; then
16554
16555 # We can hardcode non-existant directories.
16556 if test "$hardcode_direct" != no &&
16557 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16558 # have to relink, otherwise we might link with an installed library
16559 # when we should be linking with a yet-to-be-installed one
16560 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16561 test "$hardcode_minus_L" != no; then
16562 # Linking always hardcodes the temporary library directory.
16563 hardcode_action=relink
16564 else
16565 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16566 hardcode_action=immediate
16567 fi
16568else
16569 # We cannot hardcode anything, or else we can only hardcode existing
16570 # directories.
16571 hardcode_action=unsupported
16572fi
Reid Spencera773bd52006-08-04 18:18:08 +000016573{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16574echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016575
16576if test "$hardcode_action" = relink; then
16577 # Fast installation is not supported
16578 enable_fast_install=no
16579elif test "$shlibpath_overrides_runpath" = yes ||
16580 test "$enable_shared" = no; then
16581 # Fast installation is not necessary
16582 enable_fast_install=needless
16583fi
16584
16585striplib=
16586old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016587{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16588echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016589if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16590 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16591 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016592 { echo "$as_me:$LINENO: result: yes" >&5
16593echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016594else
16595# FIXME - insert some real tests, host_os isn't really good enough
16596 case $host_os in
16597 darwin*)
16598 if test -n "$STRIP" ; then
16599 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016600 { echo "$as_me:$LINENO: result: yes" >&5
16601echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016602 else
Reid Spencera773bd52006-08-04 18:18:08 +000016603 { echo "$as_me:$LINENO: result: no" >&5
16604echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016605fi
16606 ;;
16607 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016608 { echo "$as_me:$LINENO: result: no" >&5
16609echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016610 ;;
16611 esac
16612fi
16613
John Criswell7a73b802003-06-30 21:59:07 +000016614if test "x$enable_dlopen" != xyes; then
16615 enable_dlopen=unknown
16616 enable_dlopen_self=unknown
16617 enable_dlopen_self_static=unknown
16618else
16619 lt_cv_dlopen=no
16620 lt_cv_dlopen_libs=
16621
16622 case $host_os in
16623 beos*)
16624 lt_cv_dlopen="load_add_on"
16625 lt_cv_dlopen_libs=
16626 lt_cv_dlopen_self=yes
16627 ;;
16628
John Criswell47fdd832003-07-14 16:52:07 +000016629 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016630 lt_cv_dlopen="LoadLibrary"
16631 lt_cv_dlopen_libs=
16632 ;;
16633
John Criswell47fdd832003-07-14 16:52:07 +000016634 cygwin*)
16635 lt_cv_dlopen="dlopen"
16636 lt_cv_dlopen_libs=
16637 ;;
16638
16639 darwin*)
16640 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016641 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16642echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016643if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16645else
16646 ac_check_lib_save_LIBS=$LIBS
16647LIBS="-ldl $LIBS"
16648cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016649/* confdefs.h. */
16650_ACEOF
16651cat confdefs.h >>conftest.$ac_ext
16652cat >>conftest.$ac_ext <<_ACEOF
16653/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016654
Reid Spencera773bd52006-08-04 18:18:08 +000016655/* Override any GCC internal prototype to avoid an error.
16656 Use char because int might match the return type of a GCC
16657 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016658#ifdef __cplusplus
16659extern "C"
16660#endif
John Criswell47fdd832003-07-14 16:52:07 +000016661char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016662int
16663main ()
16664{
Reid Spencera773bd52006-08-04 18:18:08 +000016665return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016666 ;
16667 return 0;
16668}
16669_ACEOF
16670rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016671if { (ac_try="$ac_link"
16672case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16675esac
16676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016678 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016679 grep -v '^ *+' conftest.er1 >conftest.err
16680 rm -f conftest.er1
16681 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016683 (exit $ac_status); } &&
16684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16685 { (case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16688esac
16689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_try") 2>&5
16691 ac_status=$?
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }; } &&
16694 { ac_try='test -s conftest$ac_exeext'
16695 { (case "(($ac_try" in
16696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697 *) ac_try_echo=$ac_try;;
16698esac
16699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700 (eval "$ac_try") 2>&5
16701 ac_status=$?
16702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016704 ac_cv_lib_dl_dlopen=yes
16705else
16706 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016707sed 's/^/| /' conftest.$ac_ext >&5
16708
Reid Spencera773bd52006-08-04 18:18:08 +000016709 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016710fi
Reid Spencera773bd52006-08-04 18:18:08 +000016711
Bill Wendlingebcceee2009-04-18 11:20:33 +000016712rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016713 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016714LIBS=$ac_check_lib_save_LIBS
16715fi
Reid Spencera773bd52006-08-04 18:18:08 +000016716{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16717echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016718if test $ac_cv_lib_dl_dlopen = yes; then
16719 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16720else
16721
16722 lt_cv_dlopen="dyld"
16723 lt_cv_dlopen_libs=
16724 lt_cv_dlopen_self=yes
16725
16726fi
16727
16728 ;;
16729
John Criswell7a73b802003-06-30 21:59:07 +000016730 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016731 { echo "$as_me:$LINENO: checking for shl_load" >&5
16732echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016733if test "${ac_cv_func_shl_load+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16735else
16736 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016737/* confdefs.h. */
16738_ACEOF
16739cat confdefs.h >>conftest.$ac_ext
16740cat >>conftest.$ac_ext <<_ACEOF
16741/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016742/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16744#define shl_load innocuous_shl_load
16745
John Criswell7a73b802003-06-30 21:59:07 +000016746/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016747 which can conflict with char shl_load (); below.
16748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16749 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016750
John Criswell0c38eaf2003-09-10 15:17:25 +000016751#ifdef __STDC__
16752# include <limits.h>
16753#else
16754# include <assert.h>
16755#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016756
16757#undef shl_load
16758
Reid Spencera773bd52006-08-04 18:18:08 +000016759/* Override any GCC internal prototype to avoid an error.
16760 Use char because int might match the return type of a GCC
16761 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016762#ifdef __cplusplus
16763extern "C"
16764#endif
John Criswell7a73b802003-06-30 21:59:07 +000016765char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016766/* The GNU C library defines this for functions which it implements
16767 to always fail with ENOSYS. Some functions are actually named
16768 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016769#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016770choke me
John Criswell7a73b802003-06-30 21:59:07 +000016771#endif
16772
John Criswell0c38eaf2003-09-10 15:17:25 +000016773int
16774main ()
16775{
Reid Spencera773bd52006-08-04 18:18:08 +000016776return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016777 ;
16778 return 0;
16779}
16780_ACEOF
16781rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016782if { (ac_try="$ac_link"
16783case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16786esac
16787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016789 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016790 grep -v '^ *+' conftest.er1 >conftest.err
16791 rm -f conftest.er1
16792 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016794 (exit $ac_status); } &&
16795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16796 { (case "(($ac_try" in
16797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16798 *) ac_try_echo=$ac_try;;
16799esac
16800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16801 (eval "$ac_try") 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; } &&
16805 { ac_try='test -s conftest$ac_exeext'
16806 { (case "(($ac_try" in
16807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16808 *) ac_try_echo=$ac_try;;
16809esac
16810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16811 (eval "$ac_try") 2>&5
16812 ac_status=$?
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016815 ac_cv_func_shl_load=yes
16816else
16817 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016818sed 's/^/| /' conftest.$ac_ext >&5
16819
Reid Spencera773bd52006-08-04 18:18:08 +000016820 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016821fi
Reid Spencera773bd52006-08-04 18:18:08 +000016822
Bill Wendlingebcceee2009-04-18 11:20:33 +000016823rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016824 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016825fi
Reid Spencera773bd52006-08-04 18:18:08 +000016826{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16827echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016828if test $ac_cv_func_shl_load = yes; then
16829 lt_cv_dlopen="shl_load"
16830else
Reid Spencera773bd52006-08-04 18:18:08 +000016831 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16832echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016833if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16835else
16836 ac_check_lib_save_LIBS=$LIBS
16837LIBS="-ldld $LIBS"
16838cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016839/* confdefs.h. */
16840_ACEOF
16841cat confdefs.h >>conftest.$ac_ext
16842cat >>conftest.$ac_ext <<_ACEOF
16843/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016844
Reid Spencera773bd52006-08-04 18:18:08 +000016845/* Override any GCC internal prototype to avoid an error.
16846 Use char because int might match the return type of a GCC
16847 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016848#ifdef __cplusplus
16849extern "C"
16850#endif
John Criswell7a73b802003-06-30 21:59:07 +000016851char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016852int
16853main ()
16854{
Reid Spencera773bd52006-08-04 18:18:08 +000016855return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016856 ;
16857 return 0;
16858}
16859_ACEOF
16860rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016861if { (ac_try="$ac_link"
16862case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16865esac
16866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016868 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016869 grep -v '^ *+' conftest.er1 >conftest.err
16870 rm -f conftest.er1
16871 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016873 (exit $ac_status); } &&
16874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16875 { (case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16878esac
16879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_try") 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest$ac_exeext'
16885 { (case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16888esac
16889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_try") 2>&5
16891 ac_status=$?
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016894 ac_cv_lib_dld_shl_load=yes
16895else
16896 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016897sed 's/^/| /' conftest.$ac_ext >&5
16898
Reid Spencera773bd52006-08-04 18:18:08 +000016899 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016900fi
Reid Spencera773bd52006-08-04 18:18:08 +000016901
Bill Wendlingebcceee2009-04-18 11:20:33 +000016902rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016903 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016904LIBS=$ac_check_lib_save_LIBS
16905fi
Reid Spencera773bd52006-08-04 18:18:08 +000016906{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16907echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016908if test $ac_cv_lib_dld_shl_load = yes; then
16909 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16910else
Reid Spencera773bd52006-08-04 18:18:08 +000016911 { echo "$as_me:$LINENO: checking for dlopen" >&5
16912echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016913if test "${ac_cv_func_dlopen+set}" = set; then
16914 echo $ECHO_N "(cached) $ECHO_C" >&6
16915else
16916 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016917/* confdefs.h. */
16918_ACEOF
16919cat confdefs.h >>conftest.$ac_ext
16920cat >>conftest.$ac_ext <<_ACEOF
16921/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016922/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16924#define dlopen innocuous_dlopen
16925
John Criswell7a73b802003-06-30 21:59:07 +000016926/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016927 which can conflict with char dlopen (); below.
16928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16929 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016930
John Criswell0c38eaf2003-09-10 15:17:25 +000016931#ifdef __STDC__
16932# include <limits.h>
16933#else
16934# include <assert.h>
16935#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016936
16937#undef dlopen
16938
Reid Spencera773bd52006-08-04 18:18:08 +000016939/* Override any GCC internal prototype to avoid an error.
16940 Use char because int might match the return type of a GCC
16941 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016942#ifdef __cplusplus
16943extern "C"
16944#endif
John Criswell7a73b802003-06-30 21:59:07 +000016945char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016946/* The GNU C library defines this for functions which it implements
16947 to always fail with ENOSYS. Some functions are actually named
16948 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016949#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016950choke me
John Criswell7a73b802003-06-30 21:59:07 +000016951#endif
16952
John Criswell0c38eaf2003-09-10 15:17:25 +000016953int
16954main ()
16955{
Reid Spencera773bd52006-08-04 18:18:08 +000016956return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016957 ;
16958 return 0;
16959}
16960_ACEOF
16961rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016962if { (ac_try="$ac_link"
16963case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16966esac
16967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016969 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016970 grep -v '^ *+' conftest.er1 >conftest.err
16971 rm -f conftest.er1
16972 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000016974 (exit $ac_status); } &&
16975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16976 { (case "(($ac_try" in
16977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978 *) ac_try_echo=$ac_try;;
16979esac
16980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981 (eval "$ac_try") 2>&5
16982 ac_status=$?
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); }; } &&
16985 { ac_try='test -s conftest$ac_exeext'
16986 { (case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16989esac
16990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_try") 2>&5
16992 ac_status=$?
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016995 ac_cv_func_dlopen=yes
16996else
16997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016998sed 's/^/| /' conftest.$ac_ext >&5
16999
Reid Spencera773bd52006-08-04 18:18:08 +000017000 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017001fi
Reid Spencera773bd52006-08-04 18:18:08 +000017002
Bill Wendlingebcceee2009-04-18 11:20:33 +000017003rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017004 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017005fi
Reid Spencera773bd52006-08-04 18:18:08 +000017006{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17007echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017008if test $ac_cv_func_dlopen = yes; then
17009 lt_cv_dlopen="dlopen"
17010else
Reid Spencera773bd52006-08-04 18:18:08 +000017011 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17012echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017013if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17014 echo $ECHO_N "(cached) $ECHO_C" >&6
17015else
17016 ac_check_lib_save_LIBS=$LIBS
17017LIBS="-ldl $LIBS"
17018cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017019/* confdefs.h. */
17020_ACEOF
17021cat confdefs.h >>conftest.$ac_ext
17022cat >>conftest.$ac_ext <<_ACEOF
17023/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017024
Reid Spencera773bd52006-08-04 18:18:08 +000017025/* Override any GCC internal prototype to avoid an error.
17026 Use char because int might match the return type of a GCC
17027 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017028#ifdef __cplusplus
17029extern "C"
17030#endif
John Criswell7a73b802003-06-30 21:59:07 +000017031char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017032int
17033main ()
17034{
Reid Spencera773bd52006-08-04 18:18:08 +000017035return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017036 ;
17037 return 0;
17038}
17039_ACEOF
17040rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017041if { (ac_try="$ac_link"
17042case "(($ac_try" in
17043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044 *) ac_try_echo=$ac_try;;
17045esac
17046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017048 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017049 grep -v '^ *+' conftest.er1 >conftest.err
17050 rm -f conftest.er1
17051 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017053 (exit $ac_status); } &&
17054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17055 { (case "(($ac_try" in
17056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17057 *) ac_try_echo=$ac_try;;
17058esac
17059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17060 (eval "$ac_try") 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest$ac_exeext'
17065 { (case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17068esac
17069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_try") 2>&5
17071 ac_status=$?
17072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017074 ac_cv_lib_dl_dlopen=yes
17075else
17076 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017077sed 's/^/| /' conftest.$ac_ext >&5
17078
Reid Spencera773bd52006-08-04 18:18:08 +000017079 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017080fi
Reid Spencera773bd52006-08-04 18:18:08 +000017081
Bill Wendlingebcceee2009-04-18 11:20:33 +000017082rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017083 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017084LIBS=$ac_check_lib_save_LIBS
17085fi
Reid Spencera773bd52006-08-04 18:18:08 +000017086{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17087echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017088if test $ac_cv_lib_dl_dlopen = yes; then
17089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17090else
Reid Spencera773bd52006-08-04 18:18:08 +000017091 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17092echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017093if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17095else
17096 ac_check_lib_save_LIBS=$LIBS
17097LIBS="-lsvld $LIBS"
17098cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017099/* confdefs.h. */
17100_ACEOF
17101cat confdefs.h >>conftest.$ac_ext
17102cat >>conftest.$ac_ext <<_ACEOF
17103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017104
Reid Spencera773bd52006-08-04 18:18:08 +000017105/* Override any GCC internal prototype to avoid an error.
17106 Use char because int might match the return type of a GCC
17107 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017108#ifdef __cplusplus
17109extern "C"
17110#endif
John Criswell7a73b802003-06-30 21:59:07 +000017111char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017112int
17113main ()
17114{
Reid Spencera773bd52006-08-04 18:18:08 +000017115return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017116 ;
17117 return 0;
17118}
17119_ACEOF
17120rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017121if { (ac_try="$ac_link"
17122case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17125esac
17126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017128 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017129 grep -v '^ *+' conftest.er1 >conftest.err
17130 rm -f conftest.er1
17131 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017133 (exit $ac_status); } &&
17134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17135 { (case "(($ac_try" in
17136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137 *) ac_try_echo=$ac_try;;
17138esac
17139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140 (eval "$ac_try") 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; } &&
17144 { ac_try='test -s conftest$ac_exeext'
17145 { (case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17148esac
17149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150 (eval "$ac_try") 2>&5
17151 ac_status=$?
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017154 ac_cv_lib_svld_dlopen=yes
17155else
17156 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017157sed 's/^/| /' conftest.$ac_ext >&5
17158
Reid Spencera773bd52006-08-04 18:18:08 +000017159 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017160fi
Reid Spencera773bd52006-08-04 18:18:08 +000017161
Bill Wendlingebcceee2009-04-18 11:20:33 +000017162rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017163 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017164LIBS=$ac_check_lib_save_LIBS
17165fi
Reid Spencera773bd52006-08-04 18:18:08 +000017166{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17167echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017168if test $ac_cv_lib_svld_dlopen = yes; then
17169 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17170else
Reid Spencera773bd52006-08-04 18:18:08 +000017171 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17172echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017173if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17174 echo $ECHO_N "(cached) $ECHO_C" >&6
17175else
17176 ac_check_lib_save_LIBS=$LIBS
17177LIBS="-ldld $LIBS"
17178cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017179/* confdefs.h. */
17180_ACEOF
17181cat confdefs.h >>conftest.$ac_ext
17182cat >>conftest.$ac_ext <<_ACEOF
17183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017184
Reid Spencera773bd52006-08-04 18:18:08 +000017185/* Override any GCC internal prototype to avoid an error.
17186 Use char because int might match the return type of a GCC
17187 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017188#ifdef __cplusplus
17189extern "C"
17190#endif
John Criswell7a73b802003-06-30 21:59:07 +000017191char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017192int
17193main ()
17194{
Reid Spencera773bd52006-08-04 18:18:08 +000017195return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017196 ;
17197 return 0;
17198}
17199_ACEOF
17200rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017201if { (ac_try="$ac_link"
17202case "(($ac_try" in
17203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17204 *) ac_try_echo=$ac_try;;
17205esac
17206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17207 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017208 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017209 grep -v '^ *+' conftest.er1 >conftest.err
17210 rm -f conftest.er1
17211 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000017213 (exit $ac_status); } &&
17214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17215 { (case "(($ac_try" in
17216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17217 *) ac_try_echo=$ac_try;;
17218esac
17219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17220 (eval "$ac_try") 2>&5
17221 ac_status=$?
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; } &&
17224 { ac_try='test -s conftest$ac_exeext'
17225 { (case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17228esac
17229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_try") 2>&5
17231 ac_status=$?
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017234 ac_cv_lib_dld_dld_link=yes
17235else
17236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017237sed 's/^/| /' conftest.$ac_ext >&5
17238
Reid Spencera773bd52006-08-04 18:18:08 +000017239 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017240fi
Reid Spencera773bd52006-08-04 18:18:08 +000017241
Bill Wendlingebcceee2009-04-18 11:20:33 +000017242rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017243 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017244LIBS=$ac_check_lib_save_LIBS
17245fi
Reid Spencera773bd52006-08-04 18:18:08 +000017246{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17247echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017248if test $ac_cv_lib_dld_dld_link = yes; then
17249 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17250fi
17251
17252
17253fi
17254
17255
17256fi
17257
17258
17259fi
17260
17261
17262fi
17263
17264
17265fi
17266
17267 ;;
17268 esac
17269
17270 if test "x$lt_cv_dlopen" != xno; then
17271 enable_dlopen=yes
17272 else
17273 enable_dlopen=no
17274 fi
17275
17276 case $lt_cv_dlopen in
17277 dlopen)
17278 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017279 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017280
17281 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017282 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017283
17284 save_LIBS="$LIBS"
17285 LIBS="$lt_cv_dlopen_libs $LIBS"
17286
Reid Spencera773bd52006-08-04 18:18:08 +000017287 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17288echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017289if test "${lt_cv_dlopen_self+set}" = set; then
17290 echo $ECHO_N "(cached) $ECHO_C" >&6
17291else
17292 if test "$cross_compiling" = yes; then :
17293 lt_cv_dlopen_self=cross
17294else
John Criswell47fdd832003-07-14 16:52:07 +000017295 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017296 lt_status=$lt_dlunknown
17297 cat > conftest.$ac_ext <<EOF
Douglas Gregor1555a232009-06-16 20:12:29 +000017298#line 17298 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017299#include "confdefs.h"
17300
17301#if HAVE_DLFCN_H
17302#include <dlfcn.h>
17303#endif
17304
17305#include <stdio.h>
17306
17307#ifdef RTLD_GLOBAL
17308# define LT_DLGLOBAL RTLD_GLOBAL
17309#else
17310# ifdef DL_GLOBAL
17311# define LT_DLGLOBAL DL_GLOBAL
17312# else
17313# define LT_DLGLOBAL 0
17314# endif
17315#endif
17316
17317/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17318 find out it does not work in some platform. */
17319#ifndef LT_DLLAZY_OR_NOW
17320# ifdef RTLD_LAZY
17321# define LT_DLLAZY_OR_NOW RTLD_LAZY
17322# else
17323# ifdef DL_LAZY
17324# define LT_DLLAZY_OR_NOW DL_LAZY
17325# else
17326# ifdef RTLD_NOW
17327# define LT_DLLAZY_OR_NOW RTLD_NOW
17328# else
17329# ifdef DL_NOW
17330# define LT_DLLAZY_OR_NOW DL_NOW
17331# else
17332# define LT_DLLAZY_OR_NOW 0
17333# endif
17334# endif
17335# endif
17336# endif
17337#endif
17338
17339#ifdef __cplusplus
17340extern "C" void exit (int);
17341#endif
17342
17343void fnord() { int i=42;}
17344int main ()
17345{
17346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17347 int status = $lt_dlunknown;
17348
17349 if (self)
17350 {
17351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17352 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17353 /* dlclose (self); */
17354 }
Reid Spencera773bd52006-08-04 18:18:08 +000017355 else
17356 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017357
17358 exit (status);
17359}
17360EOF
17361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17362 (eval $ac_link) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017366 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017367 lt_status=$?
17368 case x$lt_status in
17369 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17370 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017371 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017372 esac
17373 else :
17374 # compilation failed
17375 lt_cv_dlopen_self=no
17376 fi
17377fi
17378rm -fr conftest*
17379
17380
17381fi
Reid Spencera773bd52006-08-04 18:18:08 +000017382{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17383echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017384
17385 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017386 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17387 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17388echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017389if test "${lt_cv_dlopen_self_static+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17391else
17392 if test "$cross_compiling" = yes; then :
17393 lt_cv_dlopen_self_static=cross
17394else
John Criswell47fdd832003-07-14 16:52:07 +000017395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017396 lt_status=$lt_dlunknown
17397 cat > conftest.$ac_ext <<EOF
Douglas Gregor1555a232009-06-16 20:12:29 +000017398#line 17398 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017399#include "confdefs.h"
17400
17401#if HAVE_DLFCN_H
17402#include <dlfcn.h>
17403#endif
17404
17405#include <stdio.h>
17406
17407#ifdef RTLD_GLOBAL
17408# define LT_DLGLOBAL RTLD_GLOBAL
17409#else
17410# ifdef DL_GLOBAL
17411# define LT_DLGLOBAL DL_GLOBAL
17412# else
17413# define LT_DLGLOBAL 0
17414# endif
17415#endif
17416
17417/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17418 find out it does not work in some platform. */
17419#ifndef LT_DLLAZY_OR_NOW
17420# ifdef RTLD_LAZY
17421# define LT_DLLAZY_OR_NOW RTLD_LAZY
17422# else
17423# ifdef DL_LAZY
17424# define LT_DLLAZY_OR_NOW DL_LAZY
17425# else
17426# ifdef RTLD_NOW
17427# define LT_DLLAZY_OR_NOW RTLD_NOW
17428# else
17429# ifdef DL_NOW
17430# define LT_DLLAZY_OR_NOW DL_NOW
17431# else
17432# define LT_DLLAZY_OR_NOW 0
17433# endif
17434# endif
17435# endif
17436# endif
17437#endif
17438
17439#ifdef __cplusplus
17440extern "C" void exit (int);
17441#endif
17442
17443void fnord() { int i=42;}
17444int main ()
17445{
17446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17447 int status = $lt_dlunknown;
17448
17449 if (self)
17450 {
17451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17452 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17453 /* dlclose (self); */
17454 }
Reid Spencera773bd52006-08-04 18:18:08 +000017455 else
17456 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017457
17458 exit (status);
17459}
17460EOF
17461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17462 (eval $ac_link) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017466 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017467 lt_status=$?
17468 case x$lt_status in
17469 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17470 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017471 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017472 esac
17473 else :
17474 # compilation failed
17475 lt_cv_dlopen_self_static=no
17476 fi
17477fi
17478rm -fr conftest*
17479
17480
17481fi
Reid Spencera773bd52006-08-04 18:18:08 +000017482{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17483echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017484 fi
17485
17486 CPPFLAGS="$save_CPPFLAGS"
17487 LDFLAGS="$save_LDFLAGS"
17488 LIBS="$save_LIBS"
17489 ;;
17490 esac
17491
17492 case $lt_cv_dlopen_self in
17493 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17494 *) enable_dlopen_self=unknown ;;
17495 esac
17496
17497 case $lt_cv_dlopen_self_static in
17498 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17499 *) enable_dlopen_self_static=unknown ;;
17500 esac
17501fi
17502
17503
Reid Spencera773bd52006-08-04 18:18:08 +000017504# Report which library types will actually be built
17505{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17506echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17507{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17508echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017509
Reid Spencera773bd52006-08-04 18:18:08 +000017510{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17511echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017512test "$can_build_shared" = "no" && enable_shared=no
17513
17514# On AIX, shared libraries and static libraries use the same namespace, and
17515# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017516case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017517aix3*)
17518 test "$enable_shared" = yes && enable_static=no
17519 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017520 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017521 postinstall_cmds='$RANLIB $lib'
17522 fi
17523 ;;
17524
Reid Spencer2706f8c2004-09-19 23:53:36 +000017525aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017526 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17527 test "$enable_shared" = yes && enable_static=no
17528 fi
John Criswell7a73b802003-06-30 21:59:07 +000017529 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017530esac
Reid Spencera773bd52006-08-04 18:18:08 +000017531{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17532echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017533
Reid Spencera773bd52006-08-04 18:18:08 +000017534{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17535echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017536# Make sure either enable_shared or enable_static is yes.
17537test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017538{ echo "$as_me:$LINENO: result: $enable_static" >&5
17539echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017540
17541# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017542# libtool distribution, otherwise you forgot to ship ltmain.sh
17543# with your package, and you will get complaints that there are
17544# no rules to generate ltmain.sh.
17545if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017546 # See if we are running on zsh, and set the options which allow our commands through
17547 # without removal of \ escapes.
17548 if test -n "${ZSH_VERSION+set}" ; then
17549 setopt NO_GLOB_SUBST
17550 fi
John Criswell7a73b802003-06-30 21:59:07 +000017551 # Now quote all the things that may contain metacharacters while being
17552 # careful not to overquote the AC_SUBSTed values. We take copies of the
17553 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017554 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 +000017555 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017556 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17557 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17558 deplibs_check_method reload_flag reload_cmds need_locks \
17559 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17560 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017561 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017562 old_postinstall_cmds old_postuninstall_cmds \
17563 compiler \
17564 CC \
17565 LD \
17566 lt_prog_compiler_wl \
17567 lt_prog_compiler_pic \
17568 lt_prog_compiler_static \
17569 lt_prog_compiler_no_builtin_flag \
17570 export_dynamic_flag_spec \
17571 thread_safe_flag_spec \
17572 whole_archive_flag_spec \
17573 enable_shared_with_static_runtimes \
17574 old_archive_cmds \
17575 old_archive_from_new_cmds \
17576 predep_objects \
17577 postdep_objects \
17578 predeps \
17579 postdeps \
17580 compiler_lib_search_path \
17581 archive_cmds \
17582 archive_expsym_cmds \
17583 postinstall_cmds \
17584 postuninstall_cmds \
17585 old_archive_from_expsyms_cmds \
17586 allow_undefined_flag \
17587 no_undefined_flag \
17588 export_symbols_cmds \
17589 hardcode_libdir_flag_spec \
17590 hardcode_libdir_flag_spec_ld \
17591 hardcode_libdir_separator \
17592 hardcode_automatic \
17593 module_cmds \
17594 module_expsym_cmds \
17595 lt_cv_prog_compiler_c_o \
17596 exclude_expsyms \
17597 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017598
17599 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017600 old_archive_cmds | \
17601 old_archive_from_new_cmds | \
17602 archive_cmds | \
17603 archive_expsym_cmds | \
17604 module_cmds | \
17605 module_expsym_cmds | \
17606 old_archive_from_expsyms_cmds | \
17607 export_symbols_cmds | \
17608 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017609 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017610 old_postinstall_cmds | old_postuninstall_cmds | \
17611 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017612 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017613 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 +000017614 ;;
17615 *)
17616 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17617 ;;
17618 esac
17619 done
17620
John Criswell47fdd832003-07-14 16:52:07 +000017621 case $lt_echo in
17622 *'\$0 --fallback-echo"')
17623 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17624 ;;
17625 esac
17626
17627cfgfile="${ofile}T"
17628 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17629 $rm -f "$cfgfile"
17630 { echo "$as_me:$LINENO: creating $ofile" >&5
17631echo "$as_me: creating $ofile" >&6;}
17632
17633 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017634#! $SHELL
17635
John Criswell47fdd832003-07-14 16:52:07 +000017636# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017637# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17638# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17639#
John Criswell47fdd832003-07-14 16:52:07 +000017640# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17641# Free Software Foundation, Inc.
17642#
17643# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017644# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17645#
17646# This program is free software; you can redistribute it and/or modify
17647# it under the terms of the GNU General Public License as published by
17648# the Free Software Foundation; either version 2 of the License, or
17649# (at your option) any later version.
17650#
17651# This program is distributed in the hope that it will be useful, but
17652# WITHOUT ANY WARRANTY; without even the implied warranty of
17653# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17654# General Public License for more details.
17655#
17656# You should have received a copy of the GNU General Public License
17657# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017658# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017659#
17660# As a special exception to the GNU General Public License, if you
17661# distribute this file as part of a program that contains a
17662# configuration script generated by Autoconf, you may include it under
17663# the same distribution terms that you use for the rest of that program.
17664
John Criswell47fdd832003-07-14 16:52:07 +000017665# A sed program that does not truncate output.
17666SED=$lt_SED
17667
John Criswell7a73b802003-06-30 21:59:07 +000017668# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017669Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017670
17671# The HP-UX ksh and POSIX shell print the target directory to stdout
17672# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017673(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017674
John Criswell47fdd832003-07-14 16:52:07 +000017675# The names of the tagged configurations supported by this script.
17676available_tags=
17677
John Criswell7a73b802003-06-30 21:59:07 +000017678# ### BEGIN LIBTOOL CONFIG
17679
17680# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17681
17682# Shell to use when invoking shell scripts.
17683SHELL=$lt_SHELL
17684
17685# Whether or not to build shared libraries.
17686build_libtool_libs=$enable_shared
17687
17688# Whether or not to build static libraries.
17689build_old_libs=$enable_static
17690
17691# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017692build_libtool_need_lc=$archive_cmds_need_lc
17693
17694# Whether or not to disallow shared libs when runtime libs are static
17695allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017696
17697# Whether or not to optimize for fast installation.
17698fast_install=$enable_fast_install
17699
17700# The host system.
17701host_alias=$host_alias
17702host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017703host_os=$host_os
17704
17705# The build system.
17706build_alias=$build_alias
17707build=$build
17708build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017709
17710# An echo program that does not interpret backslashes.
17711echo=$lt_echo
17712
17713# The archiver.
17714AR=$lt_AR
17715AR_FLAGS=$lt_AR_FLAGS
17716
John Criswell47fdd832003-07-14 16:52:07 +000017717# A C compiler.
17718LTCC=$lt_LTCC
17719
Reid Spencera773bd52006-08-04 18:18:08 +000017720# LTCC compiler flags.
17721LTCFLAGS=$lt_LTCFLAGS
17722
John Criswell47fdd832003-07-14 16:52:07 +000017723# A language-specific compiler.
17724CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017725
17726# Is the compiler the GNU C compiler?
17727with_gcc=$GCC
17728
John Criswell47fdd832003-07-14 16:52:07 +000017729# An ERE matcher.
17730EGREP=$lt_EGREP
17731
John Criswell7a73b802003-06-30 21:59:07 +000017732# The linker used to build libraries.
17733LD=$lt_LD
17734
17735# Whether we need hard or soft links.
17736LN_S=$lt_LN_S
17737
17738# A BSD-compatible nm program.
17739NM=$lt_NM
17740
17741# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017742STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017743
17744# Used to examine libraries when file_magic_cmd begins "file"
17745MAGIC_CMD=$MAGIC_CMD
17746
17747# Used on cygwin: DLL creation program.
17748DLLTOOL="$DLLTOOL"
17749
17750# Used on cygwin: object dumper.
17751OBJDUMP="$OBJDUMP"
17752
17753# Used on cygwin: assembler.
17754AS="$AS"
17755
17756# The name of the directory that contains temporary libtool files.
17757objdir=$objdir
17758
17759# How to create reloadable object files.
17760reload_flag=$lt_reload_flag
17761reload_cmds=$lt_reload_cmds
17762
17763# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017764wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017765
17766# Object file suffix (normally "o").
17767objext="$ac_objext"
17768
17769# Old archive suffix (normally "a").
17770libext="$libext"
17771
John Criswell47fdd832003-07-14 16:52:07 +000017772# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017773shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017774
John Criswell7a73b802003-06-30 21:59:07 +000017775# Executable file suffix (normally "").
17776exeext="$exeext"
17777
17778# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017779pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017780pic_mode=$pic_mode
17781
John Criswell47fdd832003-07-14 16:52:07 +000017782# What is the maximum length of a command?
17783max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017784
John Criswell47fdd832003-07-14 16:52:07 +000017785# Does compiler simultaneously support -c and -o options?
17786compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017787
Reid Spencera773bd52006-08-04 18:18:08 +000017788# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017789need_locks=$lt_need_locks
17790
17791# Do we need the lib prefix for modules?
17792need_lib_prefix=$need_lib_prefix
17793
17794# Do we need a version for libraries?
17795need_version=$need_version
17796
17797# Whether dlopen is supported.
17798dlopen_support=$enable_dlopen
17799
17800# Whether dlopen of programs is supported.
17801dlopen_self=$enable_dlopen_self
17802
17803# Whether dlopen of statically linked programs is supported.
17804dlopen_self_static=$enable_dlopen_self_static
17805
17806# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017807link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017808
17809# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017810no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017811
17812# Compiler flag to allow reflexive dlopens.
17813export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17814
17815# Compiler flag to generate shared objects directly from archives.
17816whole_archive_flag_spec=$lt_whole_archive_flag_spec
17817
17818# Compiler flag to generate thread-safe objects.
17819thread_safe_flag_spec=$lt_thread_safe_flag_spec
17820
17821# Library versioning type.
17822version_type=$version_type
17823
17824# Format of library name prefix.
17825libname_spec=$lt_libname_spec
17826
17827# List of archive names. First name is the real one, the rest are links.
17828# The last name is the one that the linker finds with -lNAME.
17829library_names_spec=$lt_library_names_spec
17830
17831# The coded name of the library, if different from the real name.
17832soname_spec=$lt_soname_spec
17833
17834# Commands used to build and install an old-style archive.
17835RANLIB=$lt_RANLIB
17836old_archive_cmds=$lt_old_archive_cmds
17837old_postinstall_cmds=$lt_old_postinstall_cmds
17838old_postuninstall_cmds=$lt_old_postuninstall_cmds
17839
17840# Create an old-style archive from a shared archive.
17841old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17842
17843# Create a temporary old-style archive to link instead of a shared archive.
17844old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17845
17846# Commands used to build and install a shared archive.
17847archive_cmds=$lt_archive_cmds
17848archive_expsym_cmds=$lt_archive_expsym_cmds
17849postinstall_cmds=$lt_postinstall_cmds
17850postuninstall_cmds=$lt_postuninstall_cmds
17851
John Criswell47fdd832003-07-14 16:52:07 +000017852# Commands used to build a loadable module (assumed same as above if empty)
17853module_cmds=$lt_module_cmds
17854module_expsym_cmds=$lt_module_expsym_cmds
17855
John Criswell7a73b802003-06-30 21:59:07 +000017856# Commands to strip libraries.
17857old_striplib=$lt_old_striplib
17858striplib=$lt_striplib
17859
John Criswell47fdd832003-07-14 16:52:07 +000017860# Dependencies to place before the objects being linked to create a
17861# shared library.
17862predep_objects=$lt_predep_objects
17863
17864# Dependencies to place after the objects being linked to create a
17865# shared library.
17866postdep_objects=$lt_postdep_objects
17867
17868# Dependencies to place before the objects being linked to create a
17869# shared library.
17870predeps=$lt_predeps
17871
17872# Dependencies to place after the objects being linked to create a
17873# shared library.
17874postdeps=$lt_postdeps
17875
17876# The library search path used internally by the compiler when linking
17877# a shared library.
17878compiler_lib_search_path=$lt_compiler_lib_search_path
17879
John Criswell7a73b802003-06-30 21:59:07 +000017880# Method to check whether dependent libraries are shared objects.
17881deplibs_check_method=$lt_deplibs_check_method
17882
17883# Command to use when deplibs_check_method == file_magic.
17884file_magic_cmd=$lt_file_magic_cmd
17885
17886# Flag that allows shared libraries with undefined symbols to be built.
17887allow_undefined_flag=$lt_allow_undefined_flag
17888
17889# Flag that forces no undefined symbols.
17890no_undefined_flag=$lt_no_undefined_flag
17891
17892# Commands used to finish a libtool library installation in a directory.
17893finish_cmds=$lt_finish_cmds
17894
17895# Same as above, but a single script fragment to be evaled but not shown.
17896finish_eval=$lt_finish_eval
17897
17898# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017899global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017900
17901# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017902global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017903
17904# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017905global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017906
17907# This is the shared library runtime path variable.
17908runpath_var=$runpath_var
17909
17910# This is the shared library path variable.
17911shlibpath_var=$shlibpath_var
17912
17913# Is shlibpath searched before the hard-coded library search path?
17914shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17915
17916# How to hardcode a shared library path into an executable.
17917hardcode_action=$hardcode_action
17918
17919# Whether we should hardcode library paths into libraries.
17920hardcode_into_libs=$hardcode_into_libs
17921
17922# Flag to hardcode \$libdir into a binary during linking.
17923# This must work even if \$libdir does not exist.
17924hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17925
John Criswell47fdd832003-07-14 16:52:07 +000017926# If ld is used when linking, flag to hardcode \$libdir into
17927# a binary during linking. This must work even if \$libdir does
17928# not exist.
17929hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17930
John Criswell7a73b802003-06-30 21:59:07 +000017931# Whether we need a single -rpath flag with a separated argument.
17932hardcode_libdir_separator=$lt_hardcode_libdir_separator
17933
John Criswell47fdd832003-07-14 16:52:07 +000017934# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017935# resulting binary.
17936hardcode_direct=$hardcode_direct
17937
17938# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17939# resulting binary.
17940hardcode_minus_L=$hardcode_minus_L
17941
17942# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17943# the resulting binary.
17944hardcode_shlibpath_var=$hardcode_shlibpath_var
17945
John Criswell47fdd832003-07-14 16:52:07 +000017946# Set to yes if building a shared library automatically hardcodes DIR into the library
17947# and all subsequent libraries and executables linked against it.
17948hardcode_automatic=$hardcode_automatic
17949
John Criswell7a73b802003-06-30 21:59:07 +000017950# Variables whose values should be saved in libtool wrapper scripts and
17951# restored at relink time.
17952variables_saved_for_relink="$variables_saved_for_relink"
17953
17954# Whether libtool must link a program against all its dependency libraries.
17955link_all_deplibs=$link_all_deplibs
17956
17957# Compile-time system search path for libraries
17958sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17959
17960# Run-time system search path for libraries
17961sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17962
17963# Fix the shell variable \$srcfile for the compiler.
17964fix_srcfile_path="$fix_srcfile_path"
17965
17966# Set to yes if exported symbols are required.
17967always_export_symbols=$always_export_symbols
17968
17969# The commands to list exported symbols.
17970export_symbols_cmds=$lt_export_symbols_cmds
17971
17972# The commands to extract the exported symbol list from a shared archive.
17973extract_expsyms_cmds=$lt_extract_expsyms_cmds
17974
17975# Symbols that should not be listed in the preloaded symbols.
17976exclude_expsyms=$lt_exclude_expsyms
17977
17978# Symbols that must always be exported.
17979include_expsyms=$lt_include_expsyms
17980
17981# ### END LIBTOOL CONFIG
17982
17983__EOF__
17984
John Criswell47fdd832003-07-14 16:52:07 +000017985
John Criswell7a73b802003-06-30 21:59:07 +000017986 case $host_os in
17987 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017988 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017989
17990# AIX sometimes has problems with the GCC collect2 program. For some
17991# reason, if we set the COLLECT_NAMES environment variable, the problems
17992# vanish in a puff of smoke.
17993if test "X${COLLECT_NAMES+set}" != Xset; then
17994 COLLECT_NAMES=
17995 export COLLECT_NAMES
17996fi
17997EOF
17998 ;;
17999 esac
18000
John Criswell7a73b802003-06-30 21:59:07 +000018001 # We use sed instead of cat because bash on DJGPP gets confused if
18002 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18003 # text mode, it properly converts lines to CR/LF. This bash problem
18004 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018005 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018006
John Criswell47fdd832003-07-14 16:52:07 +000018007 mv -f "$cfgfile" "$ofile" || \
18008 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018009 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018010
18011else
18012 # If there is no Makefile yet, we rely on a make rule to execute
18013 # `config.status --recheck' to rerun these tests and create the
18014 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018015 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18016 if test -f "$ltmain_in"; then
18017 test -f Makefile && make "$ltmain"
18018 fi
John Criswell7a73b802003-06-30 21:59:07 +000018019fi
John Criswell7a73b802003-06-30 21:59:07 +000018020
18021
John Criswell47fdd832003-07-14 16:52:07 +000018022ac_ext=c
18023ac_cpp='$CPP $CPPFLAGS'
18024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18026ac_compiler_gnu=$ac_cv_c_compiler_gnu
18027
18028CC="$lt_save_CC"
18029
18030
Reid Spencera773bd52006-08-04 18:18:08 +000018031# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018032if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018033 withval=$with_tags; tagnames="$withval"
18034fi
18035
John Criswell47fdd832003-07-14 16:52:07 +000018036
18037if test -f "$ltmain" && test -n "$tagnames"; then
18038 if test ! -f "${ofile}"; then
18039 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18040echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18041 fi
18042
18043 if test -z "$LTCC"; then
18044 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18045 if test -z "$LTCC"; then
18046 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18047echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18048 else
18049 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18050echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18051 fi
18052 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018053 if test -z "$LTCFLAGS"; then
18054 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18055 fi
John Criswell47fdd832003-07-14 16:52:07 +000018056
18057 # Extract list of available tagged configurations in $ofile.
18058 # Note that this assumes the entire list is on one line.
18059 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18060
18061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18062 for tagname in $tagnames; do
18063 IFS="$lt_save_ifs"
18064 # Check whether tagname contains only valid characters
18065 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18066 "") ;;
18067 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18068echo "$as_me: error: invalid tag name: $tagname" >&2;}
18069 { (exit 1); exit 1; }; }
18070 ;;
18071 esac
18072
18073 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18074 then
18075 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18076echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18077 { (exit 1); exit 1; }; }
18078 fi
18079
18080 # Update the list of available tags.
18081 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018082 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018083
18084 case $tagname in
18085 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018086 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18087 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18088 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018089 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018090ac_cpp='$CXXCPP $CPPFLAGS'
18091ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18092ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18093ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18094
18095
18096
18097
18098archive_cmds_need_lc_CXX=no
18099allow_undefined_flag_CXX=
18100always_export_symbols_CXX=no
18101archive_expsym_cmds_CXX=
18102export_dynamic_flag_spec_CXX=
18103hardcode_direct_CXX=no
18104hardcode_libdir_flag_spec_CXX=
18105hardcode_libdir_flag_spec_ld_CXX=
18106hardcode_libdir_separator_CXX=
18107hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018108hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018109hardcode_automatic_CXX=no
18110module_cmds_CXX=
18111module_expsym_cmds_CXX=
18112link_all_deplibs_CXX=unknown
18113old_archive_cmds_CXX=$old_archive_cmds
18114no_undefined_flag_CXX=
18115whole_archive_flag_spec_CXX=
18116enable_shared_with_static_runtimes_CXX=no
18117
18118# Dependencies to place before and after the object being linked:
18119predep_objects_CXX=
18120postdep_objects_CXX=
18121predeps_CXX=
18122postdeps_CXX=
18123compiler_lib_search_path_CXX=
18124
18125# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018126ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018127
18128# Object file extension for compiled C++ test sources.
18129objext=o
18130objext_CXX=$objext
18131
18132# Code to be used in simple compile tests
18133lt_simple_compile_test_code="int some_variable = 0;\n"
18134
18135# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018136lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018137
18138# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18139
18140# If no C compiler was specified, use CC.
18141LTCC=${LTCC-"$CC"}
18142
Reid Spencera773bd52006-08-04 18:18:08 +000018143# If no C compiler flags were specified, use CFLAGS.
18144LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18145
John Criswell47fdd832003-07-14 16:52:07 +000018146# Allow CC to be a program name with arguments.
18147compiler=$CC
18148
18149
Reid Spencera773bd52006-08-04 18:18:08 +000018150# save warnings/boilerplate of simple test code
18151ac_outfile=conftest.$ac_objext
18152printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18153eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18154_lt_compiler_boilerplate=`cat conftest.err`
18155$rm conftest*
18156
18157ac_outfile=conftest.$ac_objext
18158printf "$lt_simple_link_test_code" >conftest.$ac_ext
18159eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18160_lt_linker_boilerplate=`cat conftest.err`
18161$rm conftest*
18162
18163
John Criswell47fdd832003-07-14 16:52:07 +000018164# Allow CC to be a program name with arguments.
18165lt_save_CC=$CC
18166lt_save_LD=$LD
18167lt_save_GCC=$GCC
18168GCC=$GXX
18169lt_save_with_gnu_ld=$with_gnu_ld
18170lt_save_path_LD=$lt_cv_path_LD
18171if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18172 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18173else
Reid Spencera773bd52006-08-04 18:18:08 +000018174 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018175fi
18176if test -n "${lt_cv_path_LDCXX+set}"; then
18177 lt_cv_path_LD=$lt_cv_path_LDCXX
18178else
Reid Spencera773bd52006-08-04 18:18:08 +000018179 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018180fi
18181test -z "${LDCXX+set}" || LD=$LDCXX
18182CC=${CXX-"c++"}
18183compiler=$CC
18184compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018185for cc_temp in $compiler""; do
18186 case $cc_temp in
18187 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18188 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18189 \-*) ;;
18190 *) break;;
18191 esac
18192done
18193cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18194
John Criswell47fdd832003-07-14 16:52:07 +000018195
18196# We don't want -fno-exception wen compiling C++ code, so set the
18197# no_builtin_flag separately
18198if test "$GXX" = yes; then
18199 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18200else
18201 lt_prog_compiler_no_builtin_flag_CXX=
18202fi
18203
18204if test "$GXX" = yes; then
18205 # Set up default GNU C++ configuration
18206
18207
Reid Spencera773bd52006-08-04 18:18:08 +000018208# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018209if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018210 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018211else
18212 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018213fi
18214
John Criswell47fdd832003-07-14 16:52:07 +000018215ac_prog=ld
18216if test "$GCC" = yes; then
18217 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018218 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18219echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018220 case $host in
18221 *-*-mingw*)
18222 # gcc leaves a trailing carriage return which upsets mingw
18223 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18224 *)
18225 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18226 esac
18227 case $ac_prog in
18228 # Accept absolute paths.
18229 [\\/]* | ?:[\\/]*)
18230 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018231 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018232 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18233 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18234 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18235 done
18236 test -z "$LD" && LD="$ac_prog"
18237 ;;
18238 "")
18239 # If it fails, then pretend we aren't using GCC.
18240 ac_prog=ld
18241 ;;
18242 *)
18243 # If it is relative, then search for the first ld in PATH.
18244 with_gnu_ld=unknown
18245 ;;
18246 esac
18247elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018248 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18249echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018250else
Reid Spencera773bd52006-08-04 18:18:08 +000018251 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18252echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018253fi
18254if test "${lt_cv_path_LD+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18256else
18257 if test -z "$LD"; then
18258 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18259 for ac_dir in $PATH; do
18260 IFS="$lt_save_ifs"
18261 test -z "$ac_dir" && ac_dir=.
18262 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18263 lt_cv_path_LD="$ac_dir/$ac_prog"
18264 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018265 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018266 # Break only if it was the GNU/non-GNU ld that we prefer.
18267 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18268 *GNU* | *'with BFD'*)
18269 test "$with_gnu_ld" != no && break
18270 ;;
18271 *)
18272 test "$with_gnu_ld" != yes && break
18273 ;;
18274 esac
18275 fi
18276 done
18277 IFS="$lt_save_ifs"
18278else
18279 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18280fi
18281fi
18282
18283LD="$lt_cv_path_LD"
18284if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018285 { echo "$as_me:$LINENO: result: $LD" >&5
18286echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018287else
Reid Spencera773bd52006-08-04 18:18:08 +000018288 { echo "$as_me:$LINENO: result: no" >&5
18289echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018290fi
18291test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18292echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18293 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018294{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18295echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018296if test "${lt_cv_prog_gnu_ld+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18298else
Reid Spencera773bd52006-08-04 18:18:08 +000018299 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018300case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018301*GNU* | *'with BFD'*)
18302 lt_cv_prog_gnu_ld=yes
18303 ;;
18304*)
18305 lt_cv_prog_gnu_ld=no
18306 ;;
18307esac
18308fi
Reid Spencera773bd52006-08-04 18:18:08 +000018309{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18310echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018311with_gnu_ld=$lt_cv_prog_gnu_ld
18312
18313
18314
18315 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18316 # archiving commands below assume that GNU ld is being used.
18317 if test "$with_gnu_ld" = yes; then
18318 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18319 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'
18320
18321 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18322 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18323
18324 # If archive_cmds runs LD, not CC, wlarc should be empty
18325 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18326 # investigate it a little bit more. (MM)
18327 wlarc='${wl}'
18328
18329 # ancient GNU ld didn't support --whole-archive et. al.
18330 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18331 grep 'no-whole-archive' > /dev/null; then
18332 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18333 else
18334 whole_archive_flag_spec_CXX=
18335 fi
18336 else
18337 with_gnu_ld=no
18338 wlarc=
18339
18340 # A generic and very simple default shared library creation
18341 # command for GNU C++ for the case where it uses the native
18342 # linker, instead of GNU ld. If possible, this setting should
18343 # overridden to take advantage of the native linker features on
18344 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018345 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018346 fi
18347
18348 # Commands to make compiler produce verbose output that lists
18349 # what "hidden" libraries, object files and flags are used when
18350 # linking a shared library.
18351 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18352
18353else
18354 GXX=no
18355 with_gnu_ld=no
18356 wlarc=
18357fi
18358
18359# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018360{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18361echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018362ld_shlibs_CXX=yes
18363case $host_os in
18364 aix3*)
18365 # FIXME: insert proper C++ library support
18366 ld_shlibs_CXX=no
18367 ;;
18368 aix4* | aix5*)
18369 if test "$host_cpu" = ia64; then
18370 # On IA64, the linker does run time linking by default, so we don't
18371 # have to do anything special.
18372 aix_use_runtimelinking=no
18373 exp_sym_flag='-Bexport'
18374 no_entry_flag=""
18375 else
18376 aix_use_runtimelinking=no
18377
18378 # Test if we are trying to use run time linking or normal
18379 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18380 # need to do runtime linking.
18381 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18382 for ld_flag in $LDFLAGS; do
18383 case $ld_flag in
18384 *-brtl*)
18385 aix_use_runtimelinking=yes
18386 break
18387 ;;
18388 esac
18389 done
Reid Spencera773bd52006-08-04 18:18:08 +000018390 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018391 esac
18392
18393 exp_sym_flag='-bexport'
18394 no_entry_flag='-bnoentry'
18395 fi
18396
18397 # When large executables or shared objects are built, AIX ld can
18398 # have problems creating the table of contents. If linking a library
18399 # or program results in "error TOC overflow" add -mminimal-toc to
18400 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18401 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18402
18403 archive_cmds_CXX=''
18404 hardcode_direct_CXX=yes
18405 hardcode_libdir_separator_CXX=':'
18406 link_all_deplibs_CXX=yes
18407
18408 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018409 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018410 # We only want to do this on AIX 4.2 and lower, the check
18411 # below for broken collect2 doesn't work under 4.3+
18412 collect2name=`${CC} -print-prog-name=collect2`
18413 if test -f "$collect2name" && \
18414 strings "$collect2name" | grep resolve_lib_name >/dev/null
18415 then
18416 # We have reworked collect2
18417 hardcode_direct_CXX=yes
18418 else
18419 # We have old collect2
18420 hardcode_direct_CXX=unsupported
18421 # It fails to find uninstalled libraries when the uninstalled
18422 # path is not listed in the libpath. Setting hardcode_minus_L
18423 # to unsupported forces relinking
18424 hardcode_minus_L_CXX=yes
18425 hardcode_libdir_flag_spec_CXX='-L$libdir'
18426 hardcode_libdir_separator_CXX=
18427 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018428 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018429 esac
18430 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018431 if test "$aix_use_runtimelinking" = yes; then
18432 shared_flag="$shared_flag "'${wl}-G'
18433 fi
John Criswell47fdd832003-07-14 16:52:07 +000018434 else
18435 # not using gcc
18436 if test "$host_cpu" = ia64; then
18437 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18438 # chokes on -Wl,-G. The following line is correct:
18439 shared_flag='-G'
18440 else
18441 if test "$aix_use_runtimelinking" = yes; then
18442 shared_flag='${wl}-G'
18443 else
18444 shared_flag='${wl}-bM:SRE'
18445 fi
18446 fi
18447 fi
18448
18449 # It seems that -bexpall does not export symbols beginning with
18450 # underscore (_), so it is better to generate a list of symbols to export.
18451 always_export_symbols_CXX=yes
18452 if test "$aix_use_runtimelinking" = yes; then
18453 # Warning - without using the other runtime loading flags (-brtl),
18454 # -berok will link without error, but may produce a broken library.
18455 allow_undefined_flag_CXX='-berok'
18456 # Determine the default libpath from the value encoded in an empty executable.
18457 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018458/* confdefs.h. */
18459_ACEOF
18460cat confdefs.h >>conftest.$ac_ext
18461cat >>conftest.$ac_ext <<_ACEOF
18462/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018463
John Criswell47fdd832003-07-14 16:52:07 +000018464int
18465main ()
18466{
18467
18468 ;
18469 return 0;
18470}
18471_ACEOF
18472rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018473if { (ac_try="$ac_link"
18474case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18477esac
18478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018480 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018481 grep -v '^ *+' conftest.er1 >conftest.err
18482 rm -f conftest.er1
18483 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018485 (exit $ac_status); } &&
18486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18487 { (case "(($ac_try" in
18488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489 *) ac_try_echo=$ac_try;;
18490esac
18491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492 (eval "$ac_try") 2>&5
18493 ac_status=$?
18494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495 (exit $ac_status); }; } &&
18496 { ac_try='test -s conftest$ac_exeext'
18497 { (case "(($ac_try" in
18498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18499 *) ac_try_echo=$ac_try;;
18500esac
18501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18502 (eval "$ac_try") 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018506
18507aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18508}'`
18509# Check for a 64-bit object if we didn't find anything.
18510if 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; }
18511}'`; fi
18512else
18513 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018514sed 's/^/| /' conftest.$ac_ext >&5
18515
Reid Spencera773bd52006-08-04 18:18:08 +000018516
John Criswell47fdd832003-07-14 16:52:07 +000018517fi
Reid Spencera773bd52006-08-04 18:18:08 +000018518
Bill Wendlingebcceee2009-04-18 11:20:33 +000018519rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018520 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018521if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18522
18523 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18524
Reid Spencera773bd52006-08-04 18:18:08 +000018525 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 +000018526 else
18527 if test "$host_cpu" = ia64; then
18528 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18529 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018530 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 +000018531 else
18532 # Determine the default libpath from the value encoded in an empty executable.
18533 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018534/* confdefs.h. */
18535_ACEOF
18536cat confdefs.h >>conftest.$ac_ext
18537cat >>conftest.$ac_ext <<_ACEOF
18538/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018539
John Criswell47fdd832003-07-14 16:52:07 +000018540int
18541main ()
18542{
18543
18544 ;
18545 return 0;
18546}
18547_ACEOF
18548rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018549if { (ac_try="$ac_link"
18550case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18553esac
18554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018556 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018557 grep -v '^ *+' conftest.er1 >conftest.err
18558 rm -f conftest.er1
18559 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000018561 (exit $ac_status); } &&
18562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18563 { (case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18566esac
18567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568 (eval "$ac_try") 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest$ac_exeext'
18573 { (case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18576esac
18577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_try") 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018582
18583aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18584}'`
18585# Check for a 64-bit object if we didn't find anything.
18586if 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; }
18587}'`; fi
18588else
18589 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018590sed 's/^/| /' conftest.$ac_ext >&5
18591
Reid Spencera773bd52006-08-04 18:18:08 +000018592
John Criswell47fdd832003-07-14 16:52:07 +000018593fi
Reid Spencera773bd52006-08-04 18:18:08 +000018594
Bill Wendlingebcceee2009-04-18 11:20:33 +000018595rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018596 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018597if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18598
18599 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18600 # Warning - without using the other run time loading flags,
18601 # -berok will link without error, but may produce a broken library.
18602 no_undefined_flag_CXX=' ${wl}-bernotok'
18603 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018604 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018605 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018606 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018607 # This is similar to how AIX traditionally builds its shared libraries.
18608 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 +000018609 fi
18610 fi
18611 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018612
18613 beos*)
18614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18615 allow_undefined_flag_CXX=unsupported
18616 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18617 # support --undefined. This deserves some investigation. FIXME
18618 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18619 else
18620 ld_shlibs_CXX=no
18621 fi
18622 ;;
18623
John Criswell47fdd832003-07-14 16:52:07 +000018624 chorus*)
18625 case $cc_basename in
18626 *)
18627 # FIXME: insert proper C++ library support
18628 ld_shlibs_CXX=no
18629 ;;
18630 esac
18631 ;;
18632
18633 cygwin* | mingw* | pw32*)
18634 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18635 # as there is no search path for DLLs.
18636 hardcode_libdir_flag_spec_CXX='-L$libdir'
18637 allow_undefined_flag_CXX=unsupported
18638 always_export_symbols_CXX=no
18639 enable_shared_with_static_runtimes_CXX=yes
18640
18641 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018642 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 +000018643 # If the export-symbols file already is a .def file (1st line
18644 # is EXPORTS), use it as is; otherwise, prepend...
18645 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18646 cp $export_symbols $output_objdir/$soname.def;
18647 else
18648 echo EXPORTS > $output_objdir/$soname.def;
18649 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018650 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018651 $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 +000018652 else
18653 ld_shlibs_CXX=no
18654 fi
18655 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018656 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018657 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018658 rhapsody* | darwin1.[012])
18659 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18660 ;;
18661 *) # Darwin 1.3 on
18662 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18663 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18664 else
18665 case ${MACOSX_DEPLOYMENT_TARGET} in
18666 10.[012])
18667 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18668 ;;
18669 10.*)
18670 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18671 ;;
18672 esac
18673 fi
18674 ;;
18675 esac
18676 archive_cmds_need_lc_CXX=no
18677 hardcode_direct_CXX=no
18678 hardcode_automatic_CXX=yes
18679 hardcode_shlibpath_var_CXX=unsupported
18680 whole_archive_flag_spec_CXX=''
18681 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018682
Reid Spencer2706f8c2004-09-19 23:53:36 +000018683 if test "$GXX" = yes ; then
18684 lt_int_apple_cc_single_mod=no
18685 output_verbose_link_cmd='echo'
18686 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18687 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018688 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018689 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018690 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 +000018691 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018692 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 +000018693 fi
18694 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018695 # 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 +000018696 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018697 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 +000018698 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018699 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 +000018700 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018701 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 +000018702 else
Reid Spencera773bd52006-08-04 18:18:08 +000018703 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018704 xlc*)
18705 output_verbose_link_cmd='echo'
18706 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'
18707 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018708 # 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 +000018709 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}'
18710 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 +000018711 ;;
18712 *)
18713 ld_shlibs_CXX=no
18714 ;;
18715 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018716 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018717 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018718
18719 dgux*)
18720 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018721 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018722 # FIXME: insert proper C++ library support
18723 ld_shlibs_CXX=no
18724 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018725 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018726 # Green Hills C++ Compiler
18727 # FIXME: insert proper C++ library support
18728 ld_shlibs_CXX=no
18729 ;;
18730 *)
18731 # FIXME: insert proper C++ library support
18732 ld_shlibs_CXX=no
18733 ;;
18734 esac
18735 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018736 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018737 # C++ shared libraries reported to be fairly broken before switch to ELF
18738 ld_shlibs_CXX=no
18739 ;;
18740 freebsd-elf*)
18741 archive_cmds_need_lc_CXX=no
18742 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018743 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018744 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18745 # conventions
18746 ld_shlibs_CXX=yes
18747 ;;
18748 gnu*)
18749 ;;
18750 hpux9*)
18751 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18752 hardcode_libdir_separator_CXX=:
18753 export_dynamic_flag_spec_CXX='${wl}-E'
18754 hardcode_direct_CXX=yes
18755 hardcode_minus_L_CXX=yes # Not in the search PATH,
18756 # but as the default
18757 # location of the library.
18758
18759 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018760 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018761 # FIXME: insert proper C++ library support
18762 ld_shlibs_CXX=no
18763 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018764 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018765 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 +000018766 # Commands to make compiler produce verbose output that lists
18767 # what "hidden" libraries, object files and flags are used when
18768 # linking a shared library.
18769 #
18770 # There doesn't appear to be a way to prevent this compiler from
18771 # explicitly linking system object files so we need to strip them
18772 # from the output so that they don't get included in the library
18773 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018774 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 +000018775 ;;
18776 *)
18777 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018778 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 +000018779 else
18780 # FIXME: insert proper C++ library support
18781 ld_shlibs_CXX=no
18782 fi
18783 ;;
18784 esac
18785 ;;
18786 hpux10*|hpux11*)
18787 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018788 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18789 hardcode_libdir_separator_CXX=:
18790
18791 case $host_cpu in
18792 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018793 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018794 ;;
18795 *)
John Criswell47fdd832003-07-14 16:52:07 +000018796 export_dynamic_flag_spec_CXX='${wl}-E'
18797 ;;
18798 esac
18799 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018800 case $host_cpu in
18801 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018802 hardcode_direct_CXX=no
18803 hardcode_shlibpath_var_CXX=no
18804 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018805 *)
18806 hardcode_direct_CXX=yes
18807 hardcode_minus_L_CXX=yes # Not in the search PATH,
18808 # but as the default
18809 # location of the library.
18810 ;;
18811 esac
18812
18813 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018814 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018815 # FIXME: insert proper C++ library support
18816 ld_shlibs_CXX=no
18817 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018818 aCC*)
18819 case $host_cpu in
18820 hppa*64*)
18821 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18822 ;;
18823 ia64*)
18824 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 +000018825 ;;
18826 *)
18827 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18828 ;;
18829 esac
18830 # Commands to make compiler produce verbose output that lists
18831 # what "hidden" libraries, object files and flags are used when
18832 # linking a shared library.
18833 #
18834 # There doesn't appear to be a way to prevent this compiler from
18835 # explicitly linking system object files so we need to strip them
18836 # from the output so that they don't get included in the library
18837 # dependencies.
18838 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'
18839 ;;
18840 *)
18841 if test "$GXX" = yes; then
18842 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018843 case $host_cpu in
18844 hppa*64*)
18845 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18846 ;;
18847 ia64*)
18848 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 +000018849 ;;
18850 *)
18851 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'
18852 ;;
18853 esac
18854 fi
18855 else
18856 # FIXME: insert proper C++ library support
18857 ld_shlibs_CXX=no
18858 fi
18859 ;;
18860 esac
18861 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018862 interix3*)
18863 hardcode_direct_CXX=no
18864 hardcode_shlibpath_var_CXX=no
18865 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18866 export_dynamic_flag_spec_CXX='${wl}-E'
18867 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18868 # Instead, shared libraries are loaded at an image base (0x10000000 by
18869 # default) and relocated if they conflict, which is a slow very memory
18870 # consuming and fragmenting process. To avoid this, we pick a random,
18871 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18872 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18873 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'
18874 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'
18875 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018876 irix5* | irix6*)
18877 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018878 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018879 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018880 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 +000018881
18882 # Archives containing C++ object files must be created using
18883 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18884 # necessary to make sure instantiated templates are included
18885 # in the archive.
18886 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18887 ;;
18888 *)
18889 if test "$GXX" = yes; then
18890 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018891 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 +000018892 else
18893 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'
18894 fi
18895 fi
18896 link_all_deplibs_CXX=yes
18897 ;;
18898 esac
18899 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18900 hardcode_libdir_separator_CXX=:
18901 ;;
18902 linux*)
18903 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018904 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018905 # Kuck and Associates, Inc. (KAI) C++ Compiler
18906
18907 # KCC will only create a shared library if the output file
18908 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18909 # to its proper name (with version) after linking.
18910 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'
18911 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'
18912 # Commands to make compiler produce verbose output that lists
18913 # what "hidden" libraries, object files and flags are used when
18914 # linking a shared library.
18915 #
18916 # There doesn't appear to be a way to prevent this compiler from
18917 # explicitly linking system object files so we need to strip them
18918 # from the output so that they don't get included in the library
18919 # dependencies.
18920 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'
18921
18922 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18923 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18924
18925 # Archives containing C++ object files must be created using
18926 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18927 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18928 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018929 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018930 # Intel C++
18931 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018932 # version 8.0 and above of icpc choke on multiply defined symbols
18933 # if we add $predep_objects and $postdep_objects, however 7.1 and
18934 # earlier do not add the objects themselves.
18935 case `$CC -V 2>&1` in
18936 *"Version 7."*)
18937 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18938 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'
18939 ;;
18940 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018941 tmp_idyn=
18942 case $host_cpu in
18943 ia64*) tmp_idyn=' -i_dynamic';;
18944 esac
18945 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18946 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 +000018947 ;;
18948 esac
John Criswell47fdd832003-07-14 16:52:07 +000018949 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018950 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18951 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18952 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18953 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018954 pgCC*)
18955 # Portland Group C++ compiler
18956 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18957 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'
18958
18959 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18960 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18961 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'
18962 ;;
18963 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018964 # Compaq C++
18965 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18966 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'
18967
18968 runpath_var=LD_RUN_PATH
18969 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18970 hardcode_libdir_separator_CXX=:
18971
18972 # Commands to make compiler produce verbose output that lists
18973 # what "hidden" libraries, object files and flags are used when
18974 # linking a shared library.
18975 #
18976 # There doesn't appear to be a way to prevent this compiler from
18977 # explicitly linking system object files so we need to strip them
18978 # from the output so that they don't get included in the library
18979 # dependencies.
18980 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'
18981 ;;
18982 esac
18983 ;;
18984 lynxos*)
18985 # FIXME: insert proper C++ library support
18986 ld_shlibs_CXX=no
18987 ;;
18988 m88k*)
18989 # FIXME: insert proper C++ library support
18990 ld_shlibs_CXX=no
18991 ;;
18992 mvs*)
18993 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018994 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018995 # FIXME: insert proper C++ library support
18996 ld_shlibs_CXX=no
18997 ;;
18998 *)
18999 # FIXME: insert proper C++ library support
19000 ld_shlibs_CXX=no
19001 ;;
19002 esac
19003 ;;
19004 netbsd*)
19005 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19006 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19007 wlarc=
19008 hardcode_libdir_flag_spec_CXX='-R$libdir'
19009 hardcode_direct_CXX=yes
19010 hardcode_shlibpath_var_CXX=no
19011 fi
19012 # Workaround some broken pre-1.5 toolchains
19013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19014 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019015 openbsd2*)
19016 # C++ shared libraries are fairly broken
19017 ld_shlibs_CXX=no
19018 ;;
19019 openbsd*)
19020 hardcode_direct_CXX=yes
19021 hardcode_shlibpath_var_CXX=no
19022 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19023 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19024 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19025 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19026 export_dynamic_flag_spec_CXX='${wl}-E'
19027 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19028 fi
19029 output_verbose_link_cmd='echo'
19030 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019031 osf3*)
19032 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019033 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019034 # Kuck and Associates, Inc. (KAI) C++ Compiler
19035
19036 # KCC will only create a shared library if the output file
19037 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19038 # to its proper name (with version) after linking.
19039 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'
19040
19041 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19042 hardcode_libdir_separator_CXX=:
19043
19044 # Archives containing C++ object files must be created using
19045 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19046 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19047
19048 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019049 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019050 # Rational C++ 2.4.1
19051 # FIXME: insert proper C++ library support
19052 ld_shlibs_CXX=no
19053 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019054 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019055 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019056 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 +000019057
19058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19059 hardcode_libdir_separator_CXX=:
19060
19061 # Commands to make compiler produce verbose output that lists
19062 # what "hidden" libraries, object files and flags are used when
19063 # linking a shared library.
19064 #
19065 # There doesn't appear to be a way to prevent this compiler from
19066 # explicitly linking system object files so we need to strip them
19067 # from the output so that they don't get included in the library
19068 # dependencies.
19069 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'
19070 ;;
19071 *)
19072 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19073 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019074 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 +000019075
19076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19077 hardcode_libdir_separator_CXX=:
19078
19079 # Commands to make compiler produce verbose output that lists
19080 # what "hidden" libraries, object files and flags are used when
19081 # linking a shared library.
19082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19083
19084 else
19085 # FIXME: insert proper C++ library support
19086 ld_shlibs_CXX=no
19087 fi
19088 ;;
19089 esac
19090 ;;
19091 osf4* | osf5*)
19092 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019093 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019094 # Kuck and Associates, Inc. (KAI) C++ Compiler
19095
19096 # KCC will only create a shared library if the output file
19097 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19098 # to its proper name (with version) after linking.
19099 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'
19100
19101 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19102 hardcode_libdir_separator_CXX=:
19103
19104 # Archives containing C++ object files must be created using
19105 # the KAI C++ compiler.
19106 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19107 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019108 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019109 # Rational C++ 2.4.1
19110 # FIXME: insert proper C++ library support
19111 ld_shlibs_CXX=no
19112 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019113 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019114 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019115 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 +000019116 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19117 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019118 $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 +000019119 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019120
19121 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19122 hardcode_libdir_separator_CXX=:
19123
19124 # Commands to make compiler produce verbose output that lists
19125 # what "hidden" libraries, object files and flags are used when
19126 # linking a shared library.
19127 #
19128 # There doesn't appear to be a way to prevent this compiler from
19129 # explicitly linking system object files so we need to strip them
19130 # from the output so that they don't get included in the library
19131 # dependencies.
19132 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'
19133 ;;
19134 *)
19135 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19136 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019137 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 +000019138
19139 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19140 hardcode_libdir_separator_CXX=:
19141
19142 # Commands to make compiler produce verbose output that lists
19143 # what "hidden" libraries, object files and flags are used when
19144 # linking a shared library.
19145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19146
19147 else
19148 # FIXME: insert proper C++ library support
19149 ld_shlibs_CXX=no
19150 fi
19151 ;;
19152 esac
19153 ;;
19154 psos*)
19155 # FIXME: insert proper C++ library support
19156 ld_shlibs_CXX=no
19157 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019158 sunos4*)
19159 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019160 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019161 # Sun C++ 4.x
19162 # FIXME: insert proper C++ library support
19163 ld_shlibs_CXX=no
19164 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019165 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019166 # Lucid
19167 # FIXME: insert proper C++ library support
19168 ld_shlibs_CXX=no
19169 ;;
19170 *)
19171 # FIXME: insert proper C++ library support
19172 ld_shlibs_CXX=no
19173 ;;
19174 esac
19175 ;;
19176 solaris*)
19177 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019178 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019179 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019180 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019181 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019182 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 +000019183 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 +000019184 $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 +000019185
19186 hardcode_libdir_flag_spec_CXX='-R$libdir'
19187 hardcode_shlibpath_var_CXX=no
19188 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019189 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019190 *)
19191 # The C++ compiler is used as linker so we must use $wl
19192 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019193 # linker. We must also pass each convience library through
19194 # to the system linker between allextract/defaultextract.
19195 # The C++ compiler will combine linker options so we
19196 # cannot just pass the convience library names through
19197 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019198 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019199 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 +000019200 ;;
19201 esac
19202 link_all_deplibs_CXX=yes
19203
Reid Spencera773bd52006-08-04 18:18:08 +000019204 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019205
19206 # Archives containing C++ object files must be created using
19207 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19208 # necessary to make sure instantiated templates are included
19209 # in the archive.
19210 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19211 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019212 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019213 # Green Hills C++ Compiler
19214 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19215
19216 # The C++ compiler must be used to create the archive.
19217 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19218 ;;
19219 *)
19220 # GNU C++ compiler with Solaris linker
19221 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19222 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19223 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019224 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 +000019225 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19226 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19227
John Criswell47fdd832003-07-14 16:52:07 +000019228 # Commands to make compiler produce verbose output that lists
19229 # what "hidden" libraries, object files and flags are used when
19230 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019231 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019232 else
19233 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19234 # platform.
19235 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 +000019236 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19237 $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 +000019238
19239 # Commands to make compiler produce verbose output that lists
19240 # what "hidden" libraries, object files and flags are used when
19241 # linking a shared library.
19242 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19243 fi
19244
19245 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19246 fi
19247 ;;
19248 esac
19249 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019250 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19251 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019252 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019253 hardcode_shlibpath_var_CXX=no
19254 runpath_var='LD_RUN_PATH'
19255
19256 case $cc_basename in
19257 CC*)
19258 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19259 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19260 ;;
19261 *)
19262 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19263 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19264 ;;
19265 esac
19266 ;;
19267 sysv5* | sco3.2v5* | sco5v6*)
19268 # Note: We can NOT use -z defs as we might desire, because we do not
19269 # link with -lc, and that would cause any symbols used from libc to
19270 # always be unresolved, which means just about no library would
19271 # ever link correctly. If we're not using GNU ld we use -z text
19272 # though, which does catch some bad symbols but isn't as heavy-handed
19273 # as -z defs.
19274 # For security reasons, it is highly recommended that you always
19275 # use absolute paths for naming shared libraries, and exclude the
19276 # DT_RUNPATH tag from executables and libraries. But doing so
19277 # requires that you compile everything twice, which is a pain.
19278 # So that behaviour is only enabled if SCOABSPATH is set to a
19279 # non-empty value in the environment. Most likely only useful for
19280 # creating official distributions of packages.
19281 # This is a hack until libtool officially supports absolute path
19282 # names for shared libraries.
19283 no_undefined_flag_CXX='${wl}-z,text'
19284 allow_undefined_flag_CXX='${wl}-z,nodefs'
19285 archive_cmds_need_lc_CXX=no
19286 hardcode_shlibpath_var_CXX=no
19287 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19288 hardcode_libdir_separator_CXX=':'
19289 link_all_deplibs_CXX=yes
19290 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19291 runpath_var='LD_RUN_PATH'
19292
19293 case $cc_basename in
19294 CC*)
19295 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19296 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19297 ;;
19298 *)
19299 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19300 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19301 ;;
19302 esac
John Criswell47fdd832003-07-14 16:52:07 +000019303 ;;
19304 tandem*)
19305 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019306 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019307 # NonStop-UX NCC 3.20
19308 # FIXME: insert proper C++ library support
19309 ld_shlibs_CXX=no
19310 ;;
19311 *)
19312 # FIXME: insert proper C++ library support
19313 ld_shlibs_CXX=no
19314 ;;
19315 esac
19316 ;;
19317 vxworks*)
19318 # FIXME: insert proper C++ library support
19319 ld_shlibs_CXX=no
19320 ;;
19321 *)
19322 # FIXME: insert proper C++ library support
19323 ld_shlibs_CXX=no
19324 ;;
19325esac
Reid Spencera773bd52006-08-04 18:18:08 +000019326{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19327echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019328test "$ld_shlibs_CXX" = no && can_build_shared=no
19329
19330GCC_CXX="$GXX"
19331LD_CXX="$LD"
19332
John Criswell47fdd832003-07-14 16:52:07 +000019333
19334cat > conftest.$ac_ext <<EOF
19335class Foo
19336{
19337public:
19338 Foo (void) { a = 0; }
19339private:
19340 int a;
19341};
19342EOF
19343
19344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19345 (eval $ac_compile) 2>&5
19346 ac_status=$?
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; then
19349 # Parse the compiler output and extract the necessary
19350 # objects, libraries and library flags.
19351
19352 # Sentinel used to keep track of whether or not we are before
19353 # the conftest object file.
19354 pre_test_object_deps_done=no
19355
19356 # The `*' in the case matches for architectures that use `case' in
19357 # $output_verbose_cmd can trigger glob expansion during the loop
19358 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019359 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019360
19361 for p in `eval $output_verbose_link_cmd`; do
19362 case $p in
19363
19364 -L* | -R* | -l*)
19365 # Some compilers place space between "-{L,R}" and the path.
19366 # Remove the space.
19367 if test $p = "-L" \
19368 || test $p = "-R"; then
19369 prev=$p
19370 continue
19371 else
19372 prev=
19373 fi
19374
19375 if test "$pre_test_object_deps_done" = no; then
19376 case $p in
19377 -L* | -R*)
19378 # Internal compiler library paths should come after those
19379 # provided the user. The postdeps already come after the
19380 # user supplied libs so there is no need to process them.
19381 if test -z "$compiler_lib_search_path_CXX"; then
19382 compiler_lib_search_path_CXX="${prev}${p}"
19383 else
19384 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19385 fi
19386 ;;
19387 # The "-l" case would never come before the object being
19388 # linked, so don't bother handling this case.
19389 esac
19390 else
19391 if test -z "$postdeps_CXX"; then
19392 postdeps_CXX="${prev}${p}"
19393 else
19394 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19395 fi
19396 fi
19397 ;;
19398
19399 *.$objext)
19400 # This assumes that the test object file only shows up
19401 # once in the compiler output.
19402 if test "$p" = "conftest.$objext"; then
19403 pre_test_object_deps_done=yes
19404 continue
19405 fi
19406
19407 if test "$pre_test_object_deps_done" = no; then
19408 if test -z "$predep_objects_CXX"; then
19409 predep_objects_CXX="$p"
19410 else
19411 predep_objects_CXX="$predep_objects_CXX $p"
19412 fi
19413 else
19414 if test -z "$postdep_objects_CXX"; then
19415 postdep_objects_CXX="$p"
19416 else
19417 postdep_objects_CXX="$postdep_objects_CXX $p"
19418 fi
19419 fi
19420 ;;
19421
19422 *) ;; # Ignore the rest.
19423
19424 esac
19425 done
19426
19427 # Clean up.
19428 rm -f a.out a.exe
19429else
19430 echo "libtool.m4: error: problem compiling CXX test program"
19431fi
19432
19433$rm -f confest.$objext
19434
Reid Spencera773bd52006-08-04 18:18:08 +000019435# PORTME: override above test on systems where it is broken
19436case $host_os in
19437interix3*)
19438 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19439 # hack all around it, let's just trust "g++" to DTRT.
19440 predep_objects_CXX=
19441 postdep_objects_CXX=
19442 postdeps_CXX=
19443 ;;
19444
19445solaris*)
19446 case $cc_basename in
19447 CC*)
19448 # Adding this requires a known-good setup of shared libraries for
19449 # Sun compiler versions before 5.6, else PIC objects from an old
19450 # archive will be linked into the output, leading to subtle bugs.
19451 postdeps_CXX='-lCstd -lCrun'
19452 ;;
19453 esac
19454 ;;
19455esac
19456
19457
John Criswell47fdd832003-07-14 16:52:07 +000019458case " $postdeps_CXX " in
19459*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19460esac
19461
19462lt_prog_compiler_wl_CXX=
19463lt_prog_compiler_pic_CXX=
19464lt_prog_compiler_static_CXX=
19465
Reid Spencera773bd52006-08-04 18:18:08 +000019466{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19467echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019468
19469 # C++ specific cases for pic, static, wl, etc.
19470 if test "$GXX" = yes; then
19471 lt_prog_compiler_wl_CXX='-Wl,'
19472 lt_prog_compiler_static_CXX='-static'
19473
19474 case $host_os in
19475 aix*)
19476 # All AIX code is PIC.
19477 if test "$host_cpu" = ia64; then
19478 # AIX 5 now supports IA64 processor
19479 lt_prog_compiler_static_CXX='-Bstatic'
19480 fi
19481 ;;
19482 amigaos*)
19483 # FIXME: we need at least 68020 code to build shared libraries, but
19484 # adding the `-m68020' flag to GCC prevents building anything better,
19485 # like `-m68040'.
19486 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19487 ;;
19488 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19489 # PIC is the default for these OSes.
19490 ;;
19491 mingw* | os2* | pw32*)
19492 # This hack is so that the source file can tell whether it is being
19493 # built for inclusion in a dll (and should export symbols for example).
19494 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19495 ;;
19496 darwin* | rhapsody*)
19497 # PIC is the default on this platform
19498 # Common symbols not allowed in MH_DYLIB files
19499 lt_prog_compiler_pic_CXX='-fno-common'
19500 ;;
19501 *djgpp*)
19502 # DJGPP does not support shared libraries at all
19503 lt_prog_compiler_pic_CXX=
19504 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019505 interix3*)
19506 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19507 # Instead, we relocate shared libraries at runtime.
19508 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019509 sysv4*MP*)
19510 if test -d /usr/nec; then
19511 lt_prog_compiler_pic_CXX=-Kconform_pic
19512 fi
19513 ;;
19514 hpux*)
19515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19516 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019517 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019518 hppa*64*|ia64*)
19519 ;;
19520 *)
19521 lt_prog_compiler_pic_CXX='-fPIC'
19522 ;;
19523 esac
19524 ;;
19525 *)
19526 lt_prog_compiler_pic_CXX='-fPIC'
19527 ;;
19528 esac
19529 else
19530 case $host_os in
19531 aix4* | aix5*)
19532 # All AIX code is PIC.
19533 if test "$host_cpu" = ia64; then
19534 # AIX 5 now supports IA64 processor
19535 lt_prog_compiler_static_CXX='-Bstatic'
19536 else
19537 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19538 fi
19539 ;;
19540 chorus*)
19541 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019542 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019543 # Green Hills C++ Compiler
19544 # _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"
19545 ;;
19546 esac
19547 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019548 darwin*)
19549 # PIC is the default on this platform
19550 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019551 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019552 xlc*)
19553 lt_prog_compiler_pic_CXX='-qnocommon'
19554 lt_prog_compiler_wl_CXX='-Wl,'
19555 ;;
19556 esac
19557 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019558 dgux*)
19559 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019560 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019561 lt_prog_compiler_pic_CXX='-KPIC'
19562 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019563 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019564 # Green Hills C++ Compiler
19565 lt_prog_compiler_pic_CXX='-pic'
19566 ;;
19567 *)
19568 ;;
19569 esac
19570 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019571 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019572 # FreeBSD uses GNU C++
19573 ;;
19574 hpux9* | hpux10* | hpux11*)
19575 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019576 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019577 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019578 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019579 if test "$host_cpu" != ia64; then
19580 lt_prog_compiler_pic_CXX='+Z'
19581 fi
19582 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019583 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019584 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019585 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19586 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019587 hppa*64*|ia64*)
19588 # +Z the default
19589 ;;
19590 *)
19591 lt_prog_compiler_pic_CXX='+Z'
19592 ;;
19593 esac
19594 ;;
19595 *)
19596 ;;
19597 esac
19598 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019599 interix*)
19600 # This is c89, which is MS Visual C++ (no shared libs)
19601 # Anyone wants to do a port?
19602 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019603 irix5* | irix6* | nonstopux*)
19604 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019605 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019606 lt_prog_compiler_wl_CXX='-Wl,'
19607 lt_prog_compiler_static_CXX='-non_shared'
19608 # CC pic flag -KPIC is the default.
19609 ;;
19610 *)
19611 ;;
19612 esac
19613 ;;
19614 linux*)
19615 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019616 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019617 # KAI C++ Compiler
19618 lt_prog_compiler_wl_CXX='--backend -Wl,'
19619 lt_prog_compiler_pic_CXX='-fPIC'
19620 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019621 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019622 # Intel C++
19623 lt_prog_compiler_wl_CXX='-Wl,'
19624 lt_prog_compiler_pic_CXX='-KPIC'
19625 lt_prog_compiler_static_CXX='-static'
19626 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019627 pgCC*)
19628 # Portland Group C++ compiler.
19629 lt_prog_compiler_wl_CXX='-Wl,'
19630 lt_prog_compiler_pic_CXX='-fpic'
19631 lt_prog_compiler_static_CXX='-Bstatic'
19632 ;;
19633 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019634 # Compaq C++
19635 # Make sure the PIC flag is empty. It appears that all Alpha
19636 # Linux and Compaq Tru64 Unix objects are PIC.
19637 lt_prog_compiler_pic_CXX=
19638 lt_prog_compiler_static_CXX='-non_shared'
19639 ;;
19640 *)
19641 ;;
19642 esac
19643 ;;
19644 lynxos*)
19645 ;;
19646 m88k*)
19647 ;;
19648 mvs*)
19649 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019650 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019651 lt_prog_compiler_pic_CXX='-W c,exportall'
19652 ;;
19653 *)
19654 ;;
19655 esac
19656 ;;
19657 netbsd*)
19658 ;;
19659 osf3* | osf4* | osf5*)
19660 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019661 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019662 lt_prog_compiler_wl_CXX='--backend -Wl,'
19663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019664 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019665 # Rational C++ 2.4.1
19666 lt_prog_compiler_pic_CXX='-pic'
19667 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019668 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019669 # Digital/Compaq C++
19670 lt_prog_compiler_wl_CXX='-Wl,'
19671 # Make sure the PIC flag is empty. It appears that all Alpha
19672 # Linux and Compaq Tru64 Unix objects are PIC.
19673 lt_prog_compiler_pic_CXX=
19674 lt_prog_compiler_static_CXX='-non_shared'
19675 ;;
19676 *)
19677 ;;
19678 esac
19679 ;;
19680 psos*)
19681 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019682 solaris*)
19683 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019684 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019685 # Sun C++ 4.2, 5.x and Centerline C++
19686 lt_prog_compiler_pic_CXX='-KPIC'
19687 lt_prog_compiler_static_CXX='-Bstatic'
19688 lt_prog_compiler_wl_CXX='-Qoption ld '
19689 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019690 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019691 # Green Hills C++ Compiler
19692 lt_prog_compiler_pic_CXX='-PIC'
19693 ;;
19694 *)
19695 ;;
19696 esac
19697 ;;
19698 sunos4*)
19699 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019700 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019701 # Sun C++ 4.x
19702 lt_prog_compiler_pic_CXX='-pic'
19703 lt_prog_compiler_static_CXX='-Bstatic'
19704 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019705 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019706 # Lucid
19707 lt_prog_compiler_pic_CXX='-pic'
19708 ;;
19709 *)
19710 ;;
19711 esac
19712 ;;
19713 tandem*)
19714 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019715 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019716 # NonStop-UX NCC 3.20
19717 lt_prog_compiler_pic_CXX='-KPIC'
19718 ;;
19719 *)
19720 ;;
19721 esac
19722 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019723 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19724 case $cc_basename in
19725 CC*)
19726 lt_prog_compiler_wl_CXX='-Wl,'
19727 lt_prog_compiler_pic_CXX='-KPIC'
19728 lt_prog_compiler_static_CXX='-Bstatic'
19729 ;;
19730 esac
John Criswell47fdd832003-07-14 16:52:07 +000019731 ;;
19732 vxworks*)
19733 ;;
19734 *)
19735 lt_prog_compiler_can_build_shared_CXX=no
19736 ;;
19737 esac
19738 fi
19739
Reid Spencera773bd52006-08-04 18:18:08 +000019740{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19741echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019742
19743#
19744# Check to make sure the PIC flag actually works.
19745#
19746if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019747
Reid Spencera773bd52006-08-04 18:18:08 +000019748{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19749echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019750if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19752else
19753 lt_prog_compiler_pic_works_CXX=no
19754 ac_outfile=conftest.$ac_objext
19755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19756 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19757 # Insert the option either (1) after the last *FLAGS variable, or
19758 # (2) before a word containing "conftest.", or (3) at the end.
19759 # Note that $ac_compile itself does not contain backslashes and begins
19760 # with a dollar sign (not a hyphen), so the echo should work correctly.
19761 # The option is referenced via a variable to avoid confusing sed.
19762 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19765 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor1555a232009-06-16 20:12:29 +000019766 (eval echo "\"\$as_me:19766: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019767 (eval "$lt_compile" 2>conftest.err)
19768 ac_status=$?
19769 cat conftest.err >&5
Douglas Gregor1555a232009-06-16 20:12:29 +000019770 echo "$as_me:19770: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019771 if (exit $ac_status) && test -s "$ac_outfile"; then
19772 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019773 # So say no if there are warnings other than the usual output.
19774 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19775 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19776 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019777 lt_prog_compiler_pic_works_CXX=yes
19778 fi
19779 fi
19780 $rm conftest*
19781
19782fi
Reid Spencera773bd52006-08-04 18:18:08 +000019783{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19784echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019785
19786if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19787 case $lt_prog_compiler_pic_CXX in
19788 "" | " "*) ;;
19789 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19790 esac
19791else
19792 lt_prog_compiler_pic_CXX=
19793 lt_prog_compiler_can_build_shared_CXX=no
19794fi
19795
19796fi
Reid Spencera773bd52006-08-04 18:18:08 +000019797case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019798 # For platforms which do not support PIC, -DPIC is meaningless:
19799 *djgpp*)
19800 lt_prog_compiler_pic_CXX=
19801 ;;
19802 *)
19803 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19804 ;;
19805esac
19806
Reid Spencera773bd52006-08-04 18:18:08 +000019807#
19808# Check to make sure the static flag actually works.
19809#
19810wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19811{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19812echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19813if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19814 echo $ECHO_N "(cached) $ECHO_C" >&6
19815else
19816 lt_prog_compiler_static_works_CXX=no
19817 save_LDFLAGS="$LDFLAGS"
19818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19819 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19821 # The linker can only warn and ignore the option if not recognized
19822 # So say no if there are warnings
19823 if test -s conftest.err; then
19824 # Append any errors to the config.log.
19825 cat conftest.err 1>&5
19826 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19828 if diff conftest.exp conftest.er2 >/dev/null; then
19829 lt_prog_compiler_static_works_CXX=yes
19830 fi
19831 else
19832 lt_prog_compiler_static_works_CXX=yes
19833 fi
19834 fi
19835 $rm conftest*
19836 LDFLAGS="$save_LDFLAGS"
19837
19838fi
19839{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19840echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19841
19842if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19843 :
19844else
19845 lt_prog_compiler_static_CXX=
19846fi
19847
19848
19849{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19850echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019851if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19853else
19854 lt_cv_prog_compiler_c_o_CXX=no
19855 $rm -r conftest 2>/dev/null
19856 mkdir conftest
19857 cd conftest
19858 mkdir out
19859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19860
John Criswell47fdd832003-07-14 16:52:07 +000019861 lt_compiler_flag="-o out/conftest2.$ac_objext"
19862 # Insert the option either (1) after the last *FLAGS variable, or
19863 # (2) before a word containing "conftest.", or (3) at the end.
19864 # Note that $ac_compile itself does not contain backslashes and begins
19865 # with a dollar sign (not a hyphen), so the echo should work correctly.
19866 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19869 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor1555a232009-06-16 20:12:29 +000019870 (eval echo "\"\$as_me:19870: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019871 (eval "$lt_compile" 2>out/conftest.err)
19872 ac_status=$?
19873 cat out/conftest.err >&5
Douglas Gregor1555a232009-06-16 20:12:29 +000019874 echo "$as_me:19874: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019875 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19876 then
19877 # The compiler can only warn and ignore the option if not recognized
19878 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019879 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19880 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19881 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019882 lt_cv_prog_compiler_c_o_CXX=yes
19883 fi
19884 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019885 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019886 $rm conftest*
19887 # SGI C++ compiler will create directory out/ii_files/ for
19888 # template instantiation
19889 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19890 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019891 cd ..
19892 rmdir conftest
19893 $rm conftest*
19894
19895fi
Reid Spencera773bd52006-08-04 18:18:08 +000019896{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19897echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019898
19899
19900hard_links="nottested"
19901if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19902 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019903 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19904echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019905 hard_links=yes
19906 $rm conftest*
19907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19908 touch conftest.a
19909 ln conftest.a conftest.b 2>&5 || hard_links=no
19910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019911 { echo "$as_me:$LINENO: result: $hard_links" >&5
19912echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019913 if test "$hard_links" = no; then
19914 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19915echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19916 need_locks=warn
19917 fi
19918else
19919 need_locks=no
19920fi
19921
Reid Spencera773bd52006-08-04 18:18:08 +000019922{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19923echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019924
19925 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19926 case $host_os in
19927 aix4* | aix5*)
19928 # If we're using GNU nm, then we don't want the "-C" option.
19929 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19930 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19931 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'
19932 else
19933 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'
19934 fi
19935 ;;
19936 pw32*)
19937 export_symbols_cmds_CXX="$ltdll_cmds"
19938 ;;
19939 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019940 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 +000019941 ;;
19942 *)
19943 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19944 ;;
19945 esac
19946
Reid Spencera773bd52006-08-04 18:18:08 +000019947{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19948echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019949test "$ld_shlibs_CXX" = no && can_build_shared=no
19950
John Criswell47fdd832003-07-14 16:52:07 +000019951#
19952# Do we need to explicitly link libc?
19953#
19954case "x$archive_cmds_need_lc_CXX" in
19955x|xyes)
19956 # Assume -lc should be added
19957 archive_cmds_need_lc_CXX=yes
19958
19959 if test "$enable_shared" = yes && test "$GCC" = yes; then
19960 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019961 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019962 # FIXME: we may have to deal with multi-command sequences.
19963 ;;
19964 '$CC '*)
19965 # Test whether the compiler implicitly links with -lc since on some
19966 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19967 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019968 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19969echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019970 $rm conftest*
19971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19972
19973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19974 (eval $ac_compile) 2>&5
19975 ac_status=$?
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } 2>conftest.err; then
19978 soname=conftest
19979 lib=conftest
19980 libobjs=conftest.$ac_objext
19981 deplibs=
19982 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019983 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019984 compiler_flags=-v
19985 linker_flags=-v
19986 verstring=
19987 output_objdir=.
19988 libname=conftest
19989 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19990 allow_undefined_flag_CXX=
19991 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19992 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19993 ac_status=$?
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); }
19996 then
19997 archive_cmds_need_lc_CXX=no
19998 else
19999 archive_cmds_need_lc_CXX=yes
20000 fi
20001 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20002 else
20003 cat conftest.err 1>&5
20004 fi
20005 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020006 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20007echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020008 ;;
20009 esac
20010 fi
20011 ;;
20012esac
20013
Reid Spencera773bd52006-08-04 18:18:08 +000020014{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20015echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020016library_names_spec=
20017libname_spec='lib$name'
20018soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020019shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020020postinstall_cmds=
20021postuninstall_cmds=
20022finish_cmds=
20023finish_eval=
20024shlibpath_var=
20025shlibpath_overrides_runpath=unknown
20026version_type=none
20027dynamic_linker="$host_os ld.so"
20028sys_lib_dlsearch_path_spec="/lib /usr/lib"
20029if test "$GCC" = yes; then
20030 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20031 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20032 # if the path contains ";" then we assume it to be the separator
20033 # otherwise default to the standard path separator (i.e. ":") - it is
20034 # assumed that no part of a normal pathname contains ";" but that should
20035 # okay in the real world where ";" in dirpaths is itself problematic.
20036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20037 else
20038 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20039 fi
20040else
20041 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20042fi
20043need_lib_prefix=unknown
20044hardcode_into_libs=no
20045
20046# when you set need_version to no, make sure it does not cause -set_version
20047# flags to be left without arguments
20048need_version=unknown
20049
20050case $host_os in
20051aix3*)
20052 version_type=linux
20053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20054 shlibpath_var=LIBPATH
20055
20056 # AIX 3 has no versioning support, so we append a major version to the name.
20057 soname_spec='${libname}${release}${shared_ext}$major'
20058 ;;
20059
20060aix4* | aix5*)
20061 version_type=linux
20062 need_lib_prefix=no
20063 need_version=no
20064 hardcode_into_libs=yes
20065 if test "$host_cpu" = ia64; then
20066 # AIX 5 supports IA64
20067 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20068 shlibpath_var=LD_LIBRARY_PATH
20069 else
20070 # With GCC up to 2.95.x, collect2 would create an import file
20071 # for dependence libraries. The import file would start with
20072 # the line `#! .'. This would cause the generated library to
20073 # depend on `.', always an invalid library. This was fixed in
20074 # development snapshots of GCC prior to 3.0.
20075 case $host_os in
20076 aix4 | aix4.[01] | aix4.[01].*)
20077 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20078 echo ' yes '
20079 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20080 :
20081 else
20082 can_build_shared=no
20083 fi
20084 ;;
20085 esac
20086 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20087 # soname into executable. Probably we can add versioning support to
20088 # collect2, so additional links can be useful in future.
20089 if test "$aix_use_runtimelinking" = yes; then
20090 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20091 # instead of lib<name>.a to let people know that these are not
20092 # typical AIX shared libraries.
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20094 else
20095 # We preserve .a as extension for shared libraries through AIX4.2
20096 # and later when we are not doing run time linking.
20097 library_names_spec='${libname}${release}.a $libname.a'
20098 soname_spec='${libname}${release}${shared_ext}$major'
20099 fi
20100 shlibpath_var=LIBPATH
20101 fi
20102 ;;
20103
20104amigaos*)
20105 library_names_spec='$libname.ixlibrary $libname.a'
20106 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020107 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 +000020108 ;;
20109
20110beos*)
20111 library_names_spec='${libname}${shared_ext}'
20112 dynamic_linker="$host_os ld.so"
20113 shlibpath_var=LIBRARY_PATH
20114 ;;
20115
Reid Spencer2706f8c2004-09-19 23:53:36 +000020116bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020117 version_type=linux
20118 need_version=no
20119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20120 soname_spec='${libname}${release}${shared_ext}$major'
20121 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20122 shlibpath_var=LD_LIBRARY_PATH
20123 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20124 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20125 # the default ld.so.conf also contains /usr/contrib/lib and
20126 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20127 # libtool to hard-code these into programs
20128 ;;
20129
20130cygwin* | mingw* | pw32*)
20131 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020132 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020133 need_version=no
20134 need_lib_prefix=no
20135
20136 case $GCC,$host_os in
20137 yes,cygwin* | yes,mingw* | yes,pw32*)
20138 library_names_spec='$libname.dll.a'
20139 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020140 postinstall_cmds='base_file=`basename \${file}`~
20141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20142 dldir=$destdir/`dirname \$dlpath`~
20143 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020144 $install_prog $dir/$dlname \$dldir/$dlname~
20145 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20147 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020148 $rm \$dlpath'
20149 shlibpath_overrides_runpath=yes
20150
20151 case $host_os in
20152 cygwin*)
20153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20154 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 +000020155 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020156 ;;
20157 mingw*)
20158 # MinGW DLLs use traditional 'lib' prefix
20159 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20160 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20161 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20162 # It is most probably a Windows format PATH printed by
20163 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20164 # path with ; separators, and with drive letters. We can handle the
20165 # drive letters (cygwin fileutils understands them), so leave them,
20166 # especially as we might pass files found there to a mingw objdump,
20167 # which wouldn't understand a cygwinified path. Ahh.
20168 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20169 else
20170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20171 fi
20172 ;;
20173 pw32*)
20174 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020175 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 +000020176 ;;
20177 esac
20178 ;;
20179
20180 *)
20181 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20182 ;;
20183 esac
20184 dynamic_linker='Win32 ld.exe'
20185 # FIXME: first we should search . and the directory the executable is in
20186 shlibpath_var=PATH
20187 ;;
20188
20189darwin* | rhapsody*)
20190 dynamic_linker="$host_os dyld"
20191 version_type=darwin
20192 need_lib_prefix=no
20193 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020194 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020195 soname_spec='${libname}${release}${major}$shared_ext'
20196 shlibpath_overrides_runpath=yes
20197 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020198 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020199 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020200 if test "$GCC" = yes; then
20201 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"`
20202 else
20203 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020204 fi
20205 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20206 ;;
20207
20208dgux*)
20209 version_type=linux
20210 need_lib_prefix=no
20211 need_version=no
20212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20213 soname_spec='${libname}${release}${shared_ext}$major'
20214 shlibpath_var=LD_LIBRARY_PATH
20215 ;;
20216
20217freebsd1*)
20218 dynamic_linker=no
20219 ;;
20220
Reid Spencer2706f8c2004-09-19 23:53:36 +000020221kfreebsd*-gnu)
20222 version_type=linux
20223 need_lib_prefix=no
20224 need_version=no
20225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20226 soname_spec='${libname}${release}${shared_ext}$major'
20227 shlibpath_var=LD_LIBRARY_PATH
20228 shlibpath_overrides_runpath=no
20229 hardcode_into_libs=yes
20230 dynamic_linker='GNU ld.so'
20231 ;;
20232
Reid Spencera773bd52006-08-04 18:18:08 +000020233freebsd* | dragonfly*)
20234 # DragonFly does not have aout. When/if they implement a new
20235 # versioning mechanism, adjust this.
20236 if test -x /usr/bin/objformat; then
20237 objformat=`/usr/bin/objformat`
20238 else
20239 case $host_os in
20240 freebsd[123]*) objformat=aout ;;
20241 *) objformat=elf ;;
20242 esac
20243 fi
John Criswell47fdd832003-07-14 16:52:07 +000020244 version_type=freebsd-$objformat
20245 case $version_type in
20246 freebsd-elf*)
20247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20248 need_version=no
20249 need_lib_prefix=no
20250 ;;
20251 freebsd-*)
20252 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20253 need_version=yes
20254 ;;
20255 esac
20256 shlibpath_var=LD_LIBRARY_PATH
20257 case $host_os in
20258 freebsd2*)
20259 shlibpath_overrides_runpath=yes
20260 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020261 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020262 shlibpath_overrides_runpath=yes
20263 hardcode_into_libs=yes
20264 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020265 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20266 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020267 shlibpath_overrides_runpath=no
20268 hardcode_into_libs=yes
20269 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020270 freebsd*) # from 4.6 on
20271 shlibpath_overrides_runpath=yes
20272 hardcode_into_libs=yes
20273 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020274 esac
20275 ;;
20276
20277gnu*)
20278 version_type=linux
20279 need_lib_prefix=no
20280 need_version=no
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20282 soname_spec='${libname}${release}${shared_ext}$major'
20283 shlibpath_var=LD_LIBRARY_PATH
20284 hardcode_into_libs=yes
20285 ;;
20286
20287hpux9* | hpux10* | hpux11*)
20288 # Give a soname corresponding to the major version so that dld.sl refuses to
20289 # link against other versions.
20290 version_type=sunos
20291 need_lib_prefix=no
20292 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020293 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020294 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020295 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020296 hardcode_into_libs=yes
20297 dynamic_linker="$host_os dld.so"
20298 shlibpath_var=LD_LIBRARY_PATH
20299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301 soname_spec='${libname}${release}${shared_ext}$major'
20302 if test "X$HPUX_IA64_MODE" = X32; then
20303 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20304 else
20305 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20306 fi
20307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20308 ;;
20309 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020310 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020311 hardcode_into_libs=yes
20312 dynamic_linker="$host_os dld.sl"
20313 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20316 soname_spec='${libname}${release}${shared_ext}$major'
20317 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20319 ;;
20320 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020321 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020322 dynamic_linker="$host_os dld.sl"
20323 shlibpath_var=SHLIB_PATH
20324 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20326 soname_spec='${libname}${release}${shared_ext}$major'
20327 ;;
20328 esac
20329 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20330 postinstall_cmds='chmod 555 $lib'
20331 ;;
20332
Reid Spencera773bd52006-08-04 18:18:08 +000020333interix3*)
20334 version_type=linux
20335 need_lib_prefix=no
20336 need_version=no
20337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20338 soname_spec='${libname}${release}${shared_ext}$major'
20339 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20340 shlibpath_var=LD_LIBRARY_PATH
20341 shlibpath_overrides_runpath=no
20342 hardcode_into_libs=yes
20343 ;;
20344
John Criswell47fdd832003-07-14 16:52:07 +000020345irix5* | irix6* | nonstopux*)
20346 case $host_os in
20347 nonstopux*) version_type=nonstopux ;;
20348 *)
20349 if test "$lt_cv_prog_gnu_ld" = yes; then
20350 version_type=linux
20351 else
20352 version_type=irix
20353 fi ;;
20354 esac
20355 need_lib_prefix=no
20356 need_version=no
20357 soname_spec='${libname}${release}${shared_ext}$major'
20358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20359 case $host_os in
20360 irix5* | nonstopux*)
20361 libsuff= shlibsuff=
20362 ;;
20363 *)
20364 case $LD in # libtool.m4 will add one of these switches to LD
20365 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20366 libsuff= shlibsuff= libmagic=32-bit;;
20367 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20368 libsuff=32 shlibsuff=N32 libmagic=N32;;
20369 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20370 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20371 *) libsuff= shlibsuff= libmagic=never-match;;
20372 esac
20373 ;;
20374 esac
20375 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20376 shlibpath_overrides_runpath=no
20377 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20378 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20379 hardcode_into_libs=yes
20380 ;;
20381
20382# No shared lib support for Linux oldld, aout, or coff.
20383linux*oldld* | linux*aout* | linux*coff*)
20384 dynamic_linker=no
20385 ;;
20386
20387# This must be Linux ELF.
20388linux*)
20389 version_type=linux
20390 need_lib_prefix=no
20391 need_version=no
20392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393 soname_spec='${libname}${release}${shared_ext}$major'
20394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20395 shlibpath_var=LD_LIBRARY_PATH
20396 shlibpath_overrides_runpath=no
20397 # This implies no fast_install, which is unacceptable.
20398 # Some rework will be needed to allow for fast_install
20399 # before this can be enabled.
20400 hardcode_into_libs=yes
20401
Reid Spencer2706f8c2004-09-19 23:53:36 +000020402 # Append ld.so.conf contents to the search path
20403 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020404 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 +000020405 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20406 fi
20407
John Criswell47fdd832003-07-14 16:52:07 +000020408 # We used to test for /lib/ld.so.1 and disable shared libraries on
20409 # powerpc, because MkLinux only supported shared libraries with the
20410 # GNU dynamic linker. Since this was broken with cross compilers,
20411 # most powerpc-linux boxes support dynamic linking these days and
20412 # people can always --disable-shared, the test was removed, and we
20413 # assume the GNU/Linux dynamic linker is in use.
20414 dynamic_linker='GNU/Linux ld.so'
20415 ;;
20416
Reid Spencer2706f8c2004-09-19 23:53:36 +000020417knetbsd*-gnu)
20418 version_type=linux
20419 need_lib_prefix=no
20420 need_version=no
20421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20422 soname_spec='${libname}${release}${shared_ext}$major'
20423 shlibpath_var=LD_LIBRARY_PATH
20424 shlibpath_overrides_runpath=no
20425 hardcode_into_libs=yes
20426 dynamic_linker='GNU ld.so'
20427 ;;
20428
John Criswell47fdd832003-07-14 16:52:07 +000020429netbsd*)
20430 version_type=sunos
20431 need_lib_prefix=no
20432 need_version=no
20433 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20436 dynamic_linker='NetBSD (a.out) ld.so'
20437 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020439 soname_spec='${libname}${release}${shared_ext}$major'
20440 dynamic_linker='NetBSD ld.elf_so'
20441 fi
20442 shlibpath_var=LD_LIBRARY_PATH
20443 shlibpath_overrides_runpath=yes
20444 hardcode_into_libs=yes
20445 ;;
20446
20447newsos6)
20448 version_type=linux
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 shlibpath_overrides_runpath=yes
20452 ;;
20453
Reid Spencer2706f8c2004-09-19 23:53:36 +000020454nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020455 version_type=linux
20456 need_lib_prefix=no
20457 need_version=no
20458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20459 soname_spec='${libname}${release}${shared_ext}$major'
20460 shlibpath_var=LD_LIBRARY_PATH
20461 shlibpath_overrides_runpath=yes
20462 ;;
20463
20464openbsd*)
20465 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020466 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020467 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020468 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20469 case $host_os in
20470 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20471 *) need_version=no ;;
20472 esac
John Criswell47fdd832003-07-14 16:52:07 +000020473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20475 shlibpath_var=LD_LIBRARY_PATH
20476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20477 case $host_os in
20478 openbsd2.[89] | openbsd2.[89].*)
20479 shlibpath_overrides_runpath=no
20480 ;;
20481 *)
20482 shlibpath_overrides_runpath=yes
20483 ;;
20484 esac
20485 else
20486 shlibpath_overrides_runpath=yes
20487 fi
20488 ;;
20489
20490os2*)
20491 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020492 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020493 need_lib_prefix=no
20494 library_names_spec='$libname${shared_ext} $libname.a'
20495 dynamic_linker='OS/2 ld.exe'
20496 shlibpath_var=LIBPATH
20497 ;;
20498
20499osf3* | osf4* | osf5*)
20500 version_type=osf
20501 need_lib_prefix=no
20502 need_version=no
20503 soname_spec='${libname}${release}${shared_ext}$major'
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20505 shlibpath_var=LD_LIBRARY_PATH
20506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20508 ;;
20509
John Criswell47fdd832003-07-14 16:52:07 +000020510solaris*)
20511 version_type=linux
20512 need_lib_prefix=no
20513 need_version=no
20514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20515 soname_spec='${libname}${release}${shared_ext}$major'
20516 shlibpath_var=LD_LIBRARY_PATH
20517 shlibpath_overrides_runpath=yes
20518 hardcode_into_libs=yes
20519 # ldd complains unless libraries are executable
20520 postinstall_cmds='chmod +x $lib'
20521 ;;
20522
20523sunos4*)
20524 version_type=sunos
20525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20526 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20527 shlibpath_var=LD_LIBRARY_PATH
20528 shlibpath_overrides_runpath=yes
20529 if test "$with_gnu_ld" = yes; then
20530 need_lib_prefix=no
20531 fi
20532 need_version=yes
20533 ;;
20534
Reid Spencera773bd52006-08-04 18:18:08 +000020535sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020536 version_type=linux
20537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20538 soname_spec='${libname}${release}${shared_ext}$major'
20539 shlibpath_var=LD_LIBRARY_PATH
20540 case $host_vendor in
20541 sni)
20542 shlibpath_overrides_runpath=no
20543 need_lib_prefix=no
20544 export_dynamic_flag_spec='${wl}-Blargedynsym'
20545 runpath_var=LD_RUN_PATH
20546 ;;
20547 siemens)
20548 need_lib_prefix=no
20549 ;;
20550 motorola)
20551 need_lib_prefix=no
20552 need_version=no
20553 shlibpath_overrides_runpath=no
20554 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20555 ;;
20556 esac
20557 ;;
20558
20559sysv4*MP*)
20560 if test -d /usr/nec ;then
20561 version_type=linux
20562 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20563 soname_spec='$libname${shared_ext}.$major'
20564 shlibpath_var=LD_LIBRARY_PATH
20565 fi
20566 ;;
20567
Reid Spencera773bd52006-08-04 18:18:08 +000020568sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20569 version_type=freebsd-elf
20570 need_lib_prefix=no
20571 need_version=no
20572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20573 soname_spec='${libname}${release}${shared_ext}$major'
20574 shlibpath_var=LD_LIBRARY_PATH
20575 hardcode_into_libs=yes
20576 if test "$with_gnu_ld" = yes; then
20577 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20578 shlibpath_overrides_runpath=no
20579 else
20580 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20581 shlibpath_overrides_runpath=yes
20582 case $host_os in
20583 sco3.2v5*)
20584 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20585 ;;
20586 esac
20587 fi
20588 sys_lib_dlsearch_path_spec='/usr/lib'
20589 ;;
20590
John Criswell47fdd832003-07-14 16:52:07 +000020591uts4*)
20592 version_type=linux
20593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20594 soname_spec='${libname}${release}${shared_ext}$major'
20595 shlibpath_var=LD_LIBRARY_PATH
20596 ;;
20597
20598*)
20599 dynamic_linker=no
20600 ;;
20601esac
Reid Spencera773bd52006-08-04 18:18:08 +000020602{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20603echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020604test "$dynamic_linker" = no && can_build_shared=no
20605
Reid Spencera773bd52006-08-04 18:18:08 +000020606variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20607if test "$GCC" = yes; then
20608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20609fi
20610
20611{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20612echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020613hardcode_action_CXX=
20614if test -n "$hardcode_libdir_flag_spec_CXX" || \
20615 test -n "$runpath_var_CXX" || \
20616 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20617
20618 # We can hardcode non-existant directories.
20619 if test "$hardcode_direct_CXX" != no &&
20620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20621 # have to relink, otherwise we might link with an installed library
20622 # when we should be linking with a yet-to-be-installed one
20623 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20624 test "$hardcode_minus_L_CXX" != no; then
20625 # Linking always hardcodes the temporary library directory.
20626 hardcode_action_CXX=relink
20627 else
20628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20629 hardcode_action_CXX=immediate
20630 fi
20631else
20632 # We cannot hardcode anything, or else we can only hardcode existing
20633 # directories.
20634 hardcode_action_CXX=unsupported
20635fi
Reid Spencera773bd52006-08-04 18:18:08 +000020636{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20637echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020638
20639if test "$hardcode_action_CXX" = relink; then
20640 # Fast installation is not supported
20641 enable_fast_install=no
20642elif test "$shlibpath_overrides_runpath" = yes ||
20643 test "$enable_shared" = no; then
20644 # Fast installation is not necessary
20645 enable_fast_install=needless
20646fi
20647
John Criswell47fdd832003-07-14 16:52:07 +000020648
20649# The else clause should only fire when bootstrapping the
20650# libtool distribution, otherwise you forgot to ship ltmain.sh
20651# with your package, and you will get complaints that there are
20652# no rules to generate ltmain.sh.
20653if test -f "$ltmain"; then
20654 # See if we are running on zsh, and set the options which allow our commands through
20655 # without removal of \ escapes.
20656 if test -n "${ZSH_VERSION+set}" ; then
20657 setopt NO_GLOB_SUBST
20658 fi
20659 # Now quote all the things that may contain metacharacters while being
20660 # careful not to overquote the AC_SUBSTed values. We take copies of the
20661 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020662 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 +000020663 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020664 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20665 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20666 deplibs_check_method reload_flag reload_cmds need_locks \
20667 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20668 lt_cv_sys_global_symbol_to_c_name_address \
20669 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20670 old_postinstall_cmds old_postuninstall_cmds \
20671 compiler_CXX \
20672 CC_CXX \
20673 LD_CXX \
20674 lt_prog_compiler_wl_CXX \
20675 lt_prog_compiler_pic_CXX \
20676 lt_prog_compiler_static_CXX \
20677 lt_prog_compiler_no_builtin_flag_CXX \
20678 export_dynamic_flag_spec_CXX \
20679 thread_safe_flag_spec_CXX \
20680 whole_archive_flag_spec_CXX \
20681 enable_shared_with_static_runtimes_CXX \
20682 old_archive_cmds_CXX \
20683 old_archive_from_new_cmds_CXX \
20684 predep_objects_CXX \
20685 postdep_objects_CXX \
20686 predeps_CXX \
20687 postdeps_CXX \
20688 compiler_lib_search_path_CXX \
20689 archive_cmds_CXX \
20690 archive_expsym_cmds_CXX \
20691 postinstall_cmds_CXX \
20692 postuninstall_cmds_CXX \
20693 old_archive_from_expsyms_cmds_CXX \
20694 allow_undefined_flag_CXX \
20695 no_undefined_flag_CXX \
20696 export_symbols_cmds_CXX \
20697 hardcode_libdir_flag_spec_CXX \
20698 hardcode_libdir_flag_spec_ld_CXX \
20699 hardcode_libdir_separator_CXX \
20700 hardcode_automatic_CXX \
20701 module_cmds_CXX \
20702 module_expsym_cmds_CXX \
20703 lt_cv_prog_compiler_c_o_CXX \
20704 exclude_expsyms_CXX \
20705 include_expsyms_CXX; do
20706
20707 case $var in
20708 old_archive_cmds_CXX | \
20709 old_archive_from_new_cmds_CXX | \
20710 archive_cmds_CXX | \
20711 archive_expsym_cmds_CXX | \
20712 module_cmds_CXX | \
20713 module_expsym_cmds_CXX | \
20714 old_archive_from_expsyms_cmds_CXX | \
20715 export_symbols_cmds_CXX | \
20716 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20717 postinstall_cmds | postuninstall_cmds | \
20718 old_postinstall_cmds | old_postuninstall_cmds | \
20719 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20720 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020721 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 +000020722 ;;
20723 *)
20724 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20725 ;;
20726 esac
20727 done
20728
20729 case $lt_echo in
20730 *'\$0 --fallback-echo"')
20731 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20732 ;;
20733 esac
20734
20735cfgfile="$ofile"
20736
20737 cat <<__EOF__ >> "$cfgfile"
20738# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20739
20740# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20741
20742# Shell to use when invoking shell scripts.
20743SHELL=$lt_SHELL
20744
20745# Whether or not to build shared libraries.
20746build_libtool_libs=$enable_shared
20747
20748# Whether or not to build static libraries.
20749build_old_libs=$enable_static
20750
20751# Whether or not to add -lc for building shared libraries.
20752build_libtool_need_lc=$archive_cmds_need_lc_CXX
20753
20754# Whether or not to disallow shared libs when runtime libs are static
20755allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20756
20757# Whether or not to optimize for fast installation.
20758fast_install=$enable_fast_install
20759
20760# The host system.
20761host_alias=$host_alias
20762host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020763host_os=$host_os
20764
20765# The build system.
20766build_alias=$build_alias
20767build=$build
20768build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020769
20770# An echo program that does not interpret backslashes.
20771echo=$lt_echo
20772
20773# The archiver.
20774AR=$lt_AR
20775AR_FLAGS=$lt_AR_FLAGS
20776
20777# A C compiler.
20778LTCC=$lt_LTCC
20779
Reid Spencera773bd52006-08-04 18:18:08 +000020780# LTCC compiler flags.
20781LTCFLAGS=$lt_LTCFLAGS
20782
John Criswell47fdd832003-07-14 16:52:07 +000020783# A language-specific compiler.
20784CC=$lt_compiler_CXX
20785
20786# Is the compiler the GNU C compiler?
20787with_gcc=$GCC_CXX
20788
20789# An ERE matcher.
20790EGREP=$lt_EGREP
20791
20792# The linker used to build libraries.
20793LD=$lt_LD_CXX
20794
20795# Whether we need hard or soft links.
20796LN_S=$lt_LN_S
20797
20798# A BSD-compatible nm program.
20799NM=$lt_NM
20800
20801# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020802STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020803
20804# Used to examine libraries when file_magic_cmd begins "file"
20805MAGIC_CMD=$MAGIC_CMD
20806
20807# Used on cygwin: DLL creation program.
20808DLLTOOL="$DLLTOOL"
20809
20810# Used on cygwin: object dumper.
20811OBJDUMP="$OBJDUMP"
20812
20813# Used on cygwin: assembler.
20814AS="$AS"
20815
20816# The name of the directory that contains temporary libtool files.
20817objdir=$objdir
20818
20819# How to create reloadable object files.
20820reload_flag=$lt_reload_flag
20821reload_cmds=$lt_reload_cmds
20822
20823# How to pass a linker flag through the compiler.
20824wl=$lt_lt_prog_compiler_wl_CXX
20825
20826# Object file suffix (normally "o").
20827objext="$ac_objext"
20828
20829# Old archive suffix (normally "a").
20830libext="$libext"
20831
20832# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020833shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020834
20835# Executable file suffix (normally "").
20836exeext="$exeext"
20837
20838# Additional compiler flags for building library objects.
20839pic_flag=$lt_lt_prog_compiler_pic_CXX
20840pic_mode=$pic_mode
20841
20842# What is the maximum length of a command?
20843max_cmd_len=$lt_cv_sys_max_cmd_len
20844
20845# Does compiler simultaneously support -c and -o options?
20846compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20847
Reid Spencera773bd52006-08-04 18:18:08 +000020848# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020849need_locks=$lt_need_locks
20850
20851# Do we need the lib prefix for modules?
20852need_lib_prefix=$need_lib_prefix
20853
20854# Do we need a version for libraries?
20855need_version=$need_version
20856
20857# Whether dlopen is supported.
20858dlopen_support=$enable_dlopen
20859
20860# Whether dlopen of programs is supported.
20861dlopen_self=$enable_dlopen_self
20862
20863# Whether dlopen of statically linked programs is supported.
20864dlopen_self_static=$enable_dlopen_self_static
20865
20866# Compiler flag to prevent dynamic linking.
20867link_static_flag=$lt_lt_prog_compiler_static_CXX
20868
20869# Compiler flag to turn off builtin functions.
20870no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20871
20872# Compiler flag to allow reflexive dlopens.
20873export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20874
20875# Compiler flag to generate shared objects directly from archives.
20876whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20877
20878# Compiler flag to generate thread-safe objects.
20879thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20880
20881# Library versioning type.
20882version_type=$version_type
20883
20884# Format of library name prefix.
20885libname_spec=$lt_libname_spec
20886
20887# List of archive names. First name is the real one, the rest are links.
20888# The last name is the one that the linker finds with -lNAME.
20889library_names_spec=$lt_library_names_spec
20890
20891# The coded name of the library, if different from the real name.
20892soname_spec=$lt_soname_spec
20893
20894# Commands used to build and install an old-style archive.
20895RANLIB=$lt_RANLIB
20896old_archive_cmds=$lt_old_archive_cmds_CXX
20897old_postinstall_cmds=$lt_old_postinstall_cmds
20898old_postuninstall_cmds=$lt_old_postuninstall_cmds
20899
20900# Create an old-style archive from a shared archive.
20901old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20902
20903# Create a temporary old-style archive to link instead of a shared archive.
20904old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20905
20906# Commands used to build and install a shared archive.
20907archive_cmds=$lt_archive_cmds_CXX
20908archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20909postinstall_cmds=$lt_postinstall_cmds
20910postuninstall_cmds=$lt_postuninstall_cmds
20911
20912# Commands used to build a loadable module (assumed same as above if empty)
20913module_cmds=$lt_module_cmds_CXX
20914module_expsym_cmds=$lt_module_expsym_cmds_CXX
20915
20916# Commands to strip libraries.
20917old_striplib=$lt_old_striplib
20918striplib=$lt_striplib
20919
20920# Dependencies to place before the objects being linked to create a
20921# shared library.
20922predep_objects=$lt_predep_objects_CXX
20923
20924# Dependencies to place after the objects being linked to create a
20925# shared library.
20926postdep_objects=$lt_postdep_objects_CXX
20927
20928# Dependencies to place before the objects being linked to create a
20929# shared library.
20930predeps=$lt_predeps_CXX
20931
20932# Dependencies to place after the objects being linked to create a
20933# shared library.
20934postdeps=$lt_postdeps_CXX
20935
20936# The library search path used internally by the compiler when linking
20937# a shared library.
20938compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20939
20940# Method to check whether dependent libraries are shared objects.
20941deplibs_check_method=$lt_deplibs_check_method
20942
20943# Command to use when deplibs_check_method == file_magic.
20944file_magic_cmd=$lt_file_magic_cmd
20945
20946# Flag that allows shared libraries with undefined symbols to be built.
20947allow_undefined_flag=$lt_allow_undefined_flag_CXX
20948
20949# Flag that forces no undefined symbols.
20950no_undefined_flag=$lt_no_undefined_flag_CXX
20951
20952# Commands used to finish a libtool library installation in a directory.
20953finish_cmds=$lt_finish_cmds
20954
20955# Same as above, but a single script fragment to be evaled but not shown.
20956finish_eval=$lt_finish_eval
20957
20958# Take the output of nm and produce a listing of raw symbols and C names.
20959global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20960
20961# Transform the output of nm in a proper C declaration
20962global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20963
20964# Transform the output of nm in a C name address pair
20965global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20966
20967# This is the shared library runtime path variable.
20968runpath_var=$runpath_var
20969
20970# This is the shared library path variable.
20971shlibpath_var=$shlibpath_var
20972
20973# Is shlibpath searched before the hard-coded library search path?
20974shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20975
20976# How to hardcode a shared library path into an executable.
20977hardcode_action=$hardcode_action_CXX
20978
20979# Whether we should hardcode library paths into libraries.
20980hardcode_into_libs=$hardcode_into_libs
20981
20982# Flag to hardcode \$libdir into a binary during linking.
20983# This must work even if \$libdir does not exist.
20984hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20985
20986# If ld is used when linking, flag to hardcode \$libdir into
20987# a binary during linking. This must work even if \$libdir does
20988# not exist.
20989hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20990
20991# Whether we need a single -rpath flag with a separated argument.
20992hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20993
20994# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20995# resulting binary.
20996hardcode_direct=$hardcode_direct_CXX
20997
20998# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20999# resulting binary.
21000hardcode_minus_L=$hardcode_minus_L_CXX
21001
21002# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21003# the resulting binary.
21004hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21005
21006# Set to yes if building a shared library automatically hardcodes DIR into the library
21007# and all subsequent libraries and executables linked against it.
21008hardcode_automatic=$hardcode_automatic_CXX
21009
21010# Variables whose values should be saved in libtool wrapper scripts and
21011# restored at relink time.
21012variables_saved_for_relink="$variables_saved_for_relink"
21013
21014# Whether libtool must link a program against all its dependency libraries.
21015link_all_deplibs=$link_all_deplibs_CXX
21016
21017# Compile-time system search path for libraries
21018sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21019
21020# Run-time system search path for libraries
21021sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21022
21023# Fix the shell variable \$srcfile for the compiler.
21024fix_srcfile_path="$fix_srcfile_path_CXX"
21025
21026# Set to yes if exported symbols are required.
21027always_export_symbols=$always_export_symbols_CXX
21028
21029# The commands to list exported symbols.
21030export_symbols_cmds=$lt_export_symbols_cmds_CXX
21031
21032# The commands to extract the exported symbol list from a shared archive.
21033extract_expsyms_cmds=$lt_extract_expsyms_cmds
21034
21035# Symbols that should not be listed in the preloaded symbols.
21036exclude_expsyms=$lt_exclude_expsyms_CXX
21037
21038# Symbols that must always be exported.
21039include_expsyms=$lt_include_expsyms_CXX
21040
21041# ### END LIBTOOL TAG CONFIG: $tagname
21042
21043__EOF__
21044
21045
21046else
21047 # If there is no Makefile yet, we rely on a make rule to execute
21048 # `config.status --recheck' to rerun these tests and create the
21049 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021050 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21051 if test -f "$ltmain_in"; then
21052 test -f Makefile && make "$ltmain"
21053 fi
John Criswell47fdd832003-07-14 16:52:07 +000021054fi
21055
21056
21057ac_ext=c
21058ac_cpp='$CPP $CPPFLAGS'
21059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21061ac_compiler_gnu=$ac_cv_c_compiler_gnu
21062
21063CC=$lt_save_CC
21064LDCXX=$LD
21065LD=$lt_save_LD
21066GCC=$lt_save_GCC
21067with_gnu_ldcxx=$with_gnu_ld
21068with_gnu_ld=$lt_save_with_gnu_ld
21069lt_cv_path_LDCXX=$lt_cv_path_LD
21070lt_cv_path_LD=$lt_save_path_LD
21071lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21072lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21073
21074 else
21075 tagname=""
21076 fi
21077 ;;
21078
21079 F77)
21080 if test -n "$F77" && test "X$F77" != "Xno"; then
21081
21082ac_ext=f
21083ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21084ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21085ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21086
21087
21088archive_cmds_need_lc_F77=no
21089allow_undefined_flag_F77=
21090always_export_symbols_F77=no
21091archive_expsym_cmds_F77=
21092export_dynamic_flag_spec_F77=
21093hardcode_direct_F77=no
21094hardcode_libdir_flag_spec_F77=
21095hardcode_libdir_flag_spec_ld_F77=
21096hardcode_libdir_separator_F77=
21097hardcode_minus_L_F77=no
21098hardcode_automatic_F77=no
21099module_cmds_F77=
21100module_expsym_cmds_F77=
21101link_all_deplibs_F77=unknown
21102old_archive_cmds_F77=$old_archive_cmds
21103no_undefined_flag_F77=
21104whole_archive_flag_spec_F77=
21105enable_shared_with_static_runtimes_F77=no
21106
21107# Source file extension for f77 test sources.
21108ac_ext=f
21109
21110# Object file extension for compiled f77 test sources.
21111objext=o
21112objext_F77=$objext
21113
21114# Code to be used in simple compile tests
21115lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21116
21117# Code to be used in simple link tests
21118lt_simple_link_test_code=" program t\n end\n"
21119
21120# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21121
21122# If no C compiler was specified, use CC.
21123LTCC=${LTCC-"$CC"}
21124
Reid Spencera773bd52006-08-04 18:18:08 +000021125# If no C compiler flags were specified, use CFLAGS.
21126LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21127
John Criswell47fdd832003-07-14 16:52:07 +000021128# Allow CC to be a program name with arguments.
21129compiler=$CC
21130
21131
Reid Spencera773bd52006-08-04 18:18:08 +000021132# save warnings/boilerplate of simple test code
21133ac_outfile=conftest.$ac_objext
21134printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21135eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21136_lt_compiler_boilerplate=`cat conftest.err`
21137$rm conftest*
21138
21139ac_outfile=conftest.$ac_objext
21140printf "$lt_simple_link_test_code" >conftest.$ac_ext
21141eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21142_lt_linker_boilerplate=`cat conftest.err`
21143$rm conftest*
21144
21145
John Criswell47fdd832003-07-14 16:52:07 +000021146# Allow CC to be a program name with arguments.
21147lt_save_CC="$CC"
21148CC=${F77-"f77"}
21149compiler=$CC
21150compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021151for cc_temp in $compiler""; do
21152 case $cc_temp in
21153 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21154 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21155 \-*) ;;
21156 *) break;;
21157 esac
21158done
21159cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021160
John Criswell47fdd832003-07-14 16:52:07 +000021161
Reid Spencera773bd52006-08-04 18:18:08 +000021162{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21163echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21164{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21165echo "${ECHO_T}$can_build_shared" >&6; }
21166
21167{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21168echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021169test "$can_build_shared" = "no" && enable_shared=no
21170
21171# On AIX, shared libraries and static libraries use the same namespace, and
21172# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021173case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021174aix3*)
21175 test "$enable_shared" = yes && enable_static=no
21176 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021177 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021178 postinstall_cmds='$RANLIB $lib'
21179 fi
21180 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021181aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021182 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21183 test "$enable_shared" = yes && enable_static=no
21184 fi
John Criswell47fdd832003-07-14 16:52:07 +000021185 ;;
21186esac
Reid Spencera773bd52006-08-04 18:18:08 +000021187{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21188echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021189
Reid Spencera773bd52006-08-04 18:18:08 +000021190{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21191echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021192# Make sure either enable_shared or enable_static is yes.
21193test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021194{ echo "$as_me:$LINENO: result: $enable_static" >&5
21195echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021196
21197GCC_F77="$G77"
21198LD_F77="$LD"
21199
21200lt_prog_compiler_wl_F77=
21201lt_prog_compiler_pic_F77=
21202lt_prog_compiler_static_F77=
21203
Reid Spencera773bd52006-08-04 18:18:08 +000021204{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21205echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021206
21207 if test "$GCC" = yes; then
21208 lt_prog_compiler_wl_F77='-Wl,'
21209 lt_prog_compiler_static_F77='-static'
21210
21211 case $host_os in
21212 aix*)
21213 # All AIX code is PIC.
21214 if test "$host_cpu" = ia64; then
21215 # AIX 5 now supports IA64 processor
21216 lt_prog_compiler_static_F77='-Bstatic'
21217 fi
21218 ;;
21219
21220 amigaos*)
21221 # FIXME: we need at least 68020 code to build shared libraries, but
21222 # adding the `-m68020' flag to GCC prevents building anything better,
21223 # like `-m68040'.
21224 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21225 ;;
21226
21227 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21228 # PIC is the default for these OSes.
21229 ;;
21230
21231 mingw* | pw32* | os2*)
21232 # This hack is so that the source file can tell whether it is being
21233 # built for inclusion in a dll (and should export symbols for example).
21234 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21235 ;;
21236
21237 darwin* | rhapsody*)
21238 # PIC is the default on this platform
21239 # Common symbols not allowed in MH_DYLIB files
21240 lt_prog_compiler_pic_F77='-fno-common'
21241 ;;
21242
Reid Spencera773bd52006-08-04 18:18:08 +000021243 interix3*)
21244 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21245 # Instead, we relocate shared libraries at runtime.
21246 ;;
21247
John Criswell47fdd832003-07-14 16:52:07 +000021248 msdosdjgpp*)
21249 # Just because we use GCC doesn't mean we suddenly get shared libraries
21250 # on systems that don't support them.
21251 lt_prog_compiler_can_build_shared_F77=no
21252 enable_shared=no
21253 ;;
21254
21255 sysv4*MP*)
21256 if test -d /usr/nec; then
21257 lt_prog_compiler_pic_F77=-Kconform_pic
21258 fi
21259 ;;
21260
21261 hpux*)
21262 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21263 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021264 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021265 hppa*64*|ia64*)
21266 # +Z the default
21267 ;;
21268 *)
21269 lt_prog_compiler_pic_F77='-fPIC'
21270 ;;
21271 esac
21272 ;;
21273
21274 *)
21275 lt_prog_compiler_pic_F77='-fPIC'
21276 ;;
21277 esac
21278 else
21279 # PORTME Check for flag to pass linker flags through the system compiler.
21280 case $host_os in
21281 aix*)
21282 lt_prog_compiler_wl_F77='-Wl,'
21283 if test "$host_cpu" = ia64; then
21284 # AIX 5 now supports IA64 processor
21285 lt_prog_compiler_static_F77='-Bstatic'
21286 else
21287 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21288 fi
21289 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021290 darwin*)
21291 # PIC is the default on this platform
21292 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021293 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021294 xlc*)
21295 lt_prog_compiler_pic_F77='-qnocommon'
21296 lt_prog_compiler_wl_F77='-Wl,'
21297 ;;
21298 esac
21299 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021300
21301 mingw* | pw32* | os2*)
21302 # This hack is so that the source file can tell whether it is being
21303 # built for inclusion in a dll (and should export symbols for example).
21304 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21305 ;;
21306
21307 hpux9* | hpux10* | hpux11*)
21308 lt_prog_compiler_wl_F77='-Wl,'
21309 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21310 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021311 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021312 hppa*64*|ia64*)
21313 # +Z the default
21314 ;;
21315 *)
21316 lt_prog_compiler_pic_F77='+Z'
21317 ;;
21318 esac
21319 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21320 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21321 ;;
21322
21323 irix5* | irix6* | nonstopux*)
21324 lt_prog_compiler_wl_F77='-Wl,'
21325 # PIC (with -KPIC) is the default.
21326 lt_prog_compiler_static_F77='-non_shared'
21327 ;;
21328
21329 newsos6)
21330 lt_prog_compiler_pic_F77='-KPIC'
21331 lt_prog_compiler_static_F77='-Bstatic'
21332 ;;
21333
21334 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021335 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021336 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021337 lt_prog_compiler_wl_F77='-Wl,'
21338 lt_prog_compiler_pic_F77='-KPIC'
21339 lt_prog_compiler_static_F77='-static'
21340 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021341 pgcc* | pgf77* | pgf90* | pgf95*)
21342 # Portland Group compilers (*not* the Pentium gcc compiler,
21343 # which looks to be a dead project)
21344 lt_prog_compiler_wl_F77='-Wl,'
21345 lt_prog_compiler_pic_F77='-fpic'
21346 lt_prog_compiler_static_F77='-Bstatic'
21347 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021348 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021349 lt_prog_compiler_wl_F77='-Wl,'
21350 # All Alpha code is PIC.
21351 lt_prog_compiler_static_F77='-non_shared'
21352 ;;
21353 esac
21354 ;;
21355
21356 osf3* | osf4* | osf5*)
21357 lt_prog_compiler_wl_F77='-Wl,'
21358 # All OSF/1 code is PIC.
21359 lt_prog_compiler_static_F77='-non_shared'
21360 ;;
21361
John Criswell47fdd832003-07-14 16:52:07 +000021362 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021363 lt_prog_compiler_pic_F77='-KPIC'
21364 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021365 case $cc_basename in
21366 f77* | f90* | f95*)
21367 lt_prog_compiler_wl_F77='-Qoption ld ';;
21368 *)
21369 lt_prog_compiler_wl_F77='-Wl,';;
21370 esac
John Criswell47fdd832003-07-14 16:52:07 +000021371 ;;
21372
21373 sunos4*)
21374 lt_prog_compiler_wl_F77='-Qoption ld '
21375 lt_prog_compiler_pic_F77='-PIC'
21376 lt_prog_compiler_static_F77='-Bstatic'
21377 ;;
21378
Reid Spencera773bd52006-08-04 18:18:08 +000021379 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021380 lt_prog_compiler_wl_F77='-Wl,'
21381 lt_prog_compiler_pic_F77='-KPIC'
21382 lt_prog_compiler_static_F77='-Bstatic'
21383 ;;
21384
21385 sysv4*MP*)
21386 if test -d /usr/nec ;then
21387 lt_prog_compiler_pic_F77='-Kconform_pic'
21388 lt_prog_compiler_static_F77='-Bstatic'
21389 fi
21390 ;;
21391
Reid Spencera773bd52006-08-04 18:18:08 +000021392 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21393 lt_prog_compiler_wl_F77='-Wl,'
21394 lt_prog_compiler_pic_F77='-KPIC'
21395 lt_prog_compiler_static_F77='-Bstatic'
21396 ;;
21397
21398 unicos*)
21399 lt_prog_compiler_wl_F77='-Wl,'
21400 lt_prog_compiler_can_build_shared_F77=no
21401 ;;
21402
John Criswell47fdd832003-07-14 16:52:07 +000021403 uts4*)
21404 lt_prog_compiler_pic_F77='-pic'
21405 lt_prog_compiler_static_F77='-Bstatic'
21406 ;;
21407
21408 *)
21409 lt_prog_compiler_can_build_shared_F77=no
21410 ;;
21411 esac
21412 fi
21413
Reid Spencera773bd52006-08-04 18:18:08 +000021414{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21415echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021416
21417#
21418# Check to make sure the PIC flag actually works.
21419#
21420if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021421
Reid Spencera773bd52006-08-04 18:18:08 +000021422{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21423echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021424if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21426else
21427 lt_prog_compiler_pic_works_F77=no
21428 ac_outfile=conftest.$ac_objext
21429 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21430 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21431 # Insert the option either (1) after the last *FLAGS variable, or
21432 # (2) before a word containing "conftest.", or (3) at the end.
21433 # Note that $ac_compile itself does not contain backslashes and begins
21434 # with a dollar sign (not a hyphen), so the echo should work correctly.
21435 # The option is referenced via a variable to avoid confusing sed.
21436 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21439 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor1555a232009-06-16 20:12:29 +000021440 (eval echo "\"\$as_me:21440: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021441 (eval "$lt_compile" 2>conftest.err)
21442 ac_status=$?
21443 cat conftest.err >&5
Douglas Gregor1555a232009-06-16 20:12:29 +000021444 echo "$as_me:21444: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021445 if (exit $ac_status) && test -s "$ac_outfile"; then
21446 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021447 # So say no if there are warnings other than the usual output.
21448 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021451 lt_prog_compiler_pic_works_F77=yes
21452 fi
21453 fi
21454 $rm conftest*
21455
21456fi
Reid Spencera773bd52006-08-04 18:18:08 +000021457{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21458echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021459
21460if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21461 case $lt_prog_compiler_pic_F77 in
21462 "" | " "*) ;;
21463 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21464 esac
21465else
21466 lt_prog_compiler_pic_F77=
21467 lt_prog_compiler_can_build_shared_F77=no
21468fi
21469
21470fi
Reid Spencera773bd52006-08-04 18:18:08 +000021471case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021472 # For platforms which do not support PIC, -DPIC is meaningless:
21473 *djgpp*)
21474 lt_prog_compiler_pic_F77=
21475 ;;
21476 *)
21477 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21478 ;;
21479esac
21480
Reid Spencera773bd52006-08-04 18:18:08 +000021481#
21482# Check to make sure the static flag actually works.
21483#
21484wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21485{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21486echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21487if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21488 echo $ECHO_N "(cached) $ECHO_C" >&6
21489else
21490 lt_prog_compiler_static_works_F77=no
21491 save_LDFLAGS="$LDFLAGS"
21492 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21493 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21494 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21495 # The linker can only warn and ignore the option if not recognized
21496 # So say no if there are warnings
21497 if test -s conftest.err; then
21498 # Append any errors to the config.log.
21499 cat conftest.err 1>&5
21500 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21502 if diff conftest.exp conftest.er2 >/dev/null; then
21503 lt_prog_compiler_static_works_F77=yes
21504 fi
21505 else
21506 lt_prog_compiler_static_works_F77=yes
21507 fi
21508 fi
21509 $rm conftest*
21510 LDFLAGS="$save_LDFLAGS"
21511
21512fi
21513{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21514echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21515
21516if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21517 :
21518else
21519 lt_prog_compiler_static_F77=
21520fi
21521
21522
21523{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21524echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021525if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21526 echo $ECHO_N "(cached) $ECHO_C" >&6
21527else
21528 lt_cv_prog_compiler_c_o_F77=no
21529 $rm -r conftest 2>/dev/null
21530 mkdir conftest
21531 cd conftest
21532 mkdir out
21533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21534
John Criswell47fdd832003-07-14 16:52:07 +000021535 lt_compiler_flag="-o out/conftest2.$ac_objext"
21536 # Insert the option either (1) after the last *FLAGS variable, or
21537 # (2) before a word containing "conftest.", or (3) at the end.
21538 # Note that $ac_compile itself does not contain backslashes and begins
21539 # with a dollar sign (not a hyphen), so the echo should work correctly.
21540 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021541 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21543 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor1555a232009-06-16 20:12:29 +000021544 (eval echo "\"\$as_me:21544: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021545 (eval "$lt_compile" 2>out/conftest.err)
21546 ac_status=$?
21547 cat out/conftest.err >&5
Douglas Gregor1555a232009-06-16 20:12:29 +000021548 echo "$as_me:21548: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021549 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21550 then
21551 # The compiler can only warn and ignore the option if not recognized
21552 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021553 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21554 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21555 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021556 lt_cv_prog_compiler_c_o_F77=yes
21557 fi
21558 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021559 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021560 $rm conftest*
21561 # SGI C++ compiler will create directory out/ii_files/ for
21562 # template instantiation
21563 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21564 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021565 cd ..
21566 rmdir conftest
21567 $rm conftest*
21568
21569fi
Reid Spencera773bd52006-08-04 18:18:08 +000021570{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21571echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021572
21573
21574hard_links="nottested"
21575if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21576 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021577 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21578echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021579 hard_links=yes
21580 $rm conftest*
21581 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21582 touch conftest.a
21583 ln conftest.a conftest.b 2>&5 || hard_links=no
21584 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021585 { echo "$as_me:$LINENO: result: $hard_links" >&5
21586echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021587 if test "$hard_links" = no; then
21588 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21589echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21590 need_locks=warn
21591 fi
21592else
21593 need_locks=no
21594fi
21595
Reid Spencera773bd52006-08-04 18:18:08 +000021596{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21597echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021598
21599 runpath_var=
21600 allow_undefined_flag_F77=
21601 enable_shared_with_static_runtimes_F77=no
21602 archive_cmds_F77=
21603 archive_expsym_cmds_F77=
21604 old_archive_From_new_cmds_F77=
21605 old_archive_from_expsyms_cmds_F77=
21606 export_dynamic_flag_spec_F77=
21607 whole_archive_flag_spec_F77=
21608 thread_safe_flag_spec_F77=
21609 hardcode_libdir_flag_spec_F77=
21610 hardcode_libdir_flag_spec_ld_F77=
21611 hardcode_libdir_separator_F77=
21612 hardcode_direct_F77=no
21613 hardcode_minus_L_F77=no
21614 hardcode_shlibpath_var_F77=unsupported
21615 link_all_deplibs_F77=unknown
21616 hardcode_automatic_F77=no
21617 module_cmds_F77=
21618 module_expsym_cmds_F77=
21619 always_export_symbols_F77=no
21620 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21621 # include_expsyms should be a list of space-separated symbols to be *always*
21622 # included in the symbol list
21623 include_expsyms_F77=
21624 # exclude_expsyms can be an extended regexp of symbols to exclude
21625 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21626 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21627 # as well as any symbol that contains `d'.
21628 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21629 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21630 # platforms (ab)use it in PIC code, but their linkers get confused if
21631 # the symbol is explicitly referenced. Since portable code cannot
21632 # rely on this symbol name, it's probably fine to never include it in
21633 # preloaded symbol tables.
21634 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021635 # Just being paranoid about ensuring that cc_basename is set.
21636 for cc_temp in $compiler""; do
21637 case $cc_temp in
21638 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21639 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21640 \-*) ;;
21641 *) break;;
21642 esac
21643done
21644cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021645
21646 case $host_os in
21647 cygwin* | mingw* | pw32*)
21648 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21649 # When not using gcc, we currently assume that we are using
21650 # Microsoft Visual C++.
21651 if test "$GCC" != yes; then
21652 with_gnu_ld=no
21653 fi
21654 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021655 interix*)
21656 # we just hope/assume this is gcc and not c89 (= MSVC++)
21657 with_gnu_ld=yes
21658 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021659 openbsd*)
21660 with_gnu_ld=no
21661 ;;
21662 esac
21663
21664 ld_shlibs_F77=yes
21665 if test "$with_gnu_ld" = yes; then
21666 # If archive_cmds runs LD, not CC, wlarc should be empty
21667 wlarc='${wl}'
21668
Reid Spencera773bd52006-08-04 18:18:08 +000021669 # Set some defaults for GNU ld with shared library support. These
21670 # are reset later if shared libraries are not supported. Putting them
21671 # here allows them to be overridden if necessary.
21672 runpath_var=LD_RUN_PATH
21673 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21674 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21675 # ancient GNU ld didn't support --whole-archive et. al.
21676 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21677 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21678 else
21679 whole_archive_flag_spec_F77=
21680 fi
21681 supports_anon_versioning=no
21682 case `$LD -v 2>/dev/null` in
21683 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21684 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21685 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21686 *\ 2.11.*) ;; # other 2.11 versions
21687 *) supports_anon_versioning=yes ;;
21688 esac
21689
John Criswell47fdd832003-07-14 16:52:07 +000021690 # See if GNU ld supports shared libraries.
21691 case $host_os in
21692 aix3* | aix4* | aix5*)
21693 # On AIX/PPC, the GNU linker is very broken
21694 if test "$host_cpu" != ia64; then
21695 ld_shlibs_F77=no
21696 cat <<EOF 1>&2
21697
21698*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21699*** to be unable to reliably create shared libraries on AIX.
21700*** Therefore, libtool is disabling shared libraries support. If you
21701*** really care for shared libraries, you may want to modify your PATH
21702*** so that a non-GNU linker is found, and then restart.
21703
21704EOF
21705 fi
21706 ;;
21707
21708 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021709 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 +000021710 hardcode_libdir_flag_spec_F77='-L$libdir'
21711 hardcode_minus_L_F77=yes
21712
21713 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21714 # that the semantics of dynamic libraries on AmigaOS, at least up
21715 # to version 4, is to share data among multiple programs linked
21716 # with the same dynamic library. Since this doesn't match the
21717 # behavior of shared libraries on other platforms, we can't use
21718 # them.
21719 ld_shlibs_F77=no
21720 ;;
21721
21722 beos*)
21723 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21724 allow_undefined_flag_F77=unsupported
21725 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21726 # support --undefined. This deserves some investigation. FIXME
21727 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21728 else
21729 ld_shlibs_F77=no
21730 fi
21731 ;;
21732
21733 cygwin* | mingw* | pw32*)
21734 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21735 # as there is no search path for DLLs.
21736 hardcode_libdir_flag_spec_F77='-L$libdir'
21737 allow_undefined_flag_F77=unsupported
21738 always_export_symbols_F77=no
21739 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021740 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 +000021741
21742 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021743 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 +000021744 # If the export-symbols file already is a .def file (1st line
21745 # is EXPORTS), use it as is; otherwise, prepend...
21746 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21747 cp $export_symbols $output_objdir/$soname.def;
21748 else
21749 echo EXPORTS > $output_objdir/$soname.def;
21750 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021751 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021752 $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 +000021753 else
Reid Spencera773bd52006-08-04 18:18:08 +000021754 ld_shlibs_F77=no
21755 fi
21756 ;;
21757
21758 interix3*)
21759 hardcode_direct_F77=no
21760 hardcode_shlibpath_var_F77=no
21761 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21762 export_dynamic_flag_spec_F77='${wl}-E'
21763 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21764 # Instead, shared libraries are loaded at an image base (0x10000000 by
21765 # default) and relocated if they conflict, which is a slow very memory
21766 # consuming and fragmenting process. To avoid this, we pick a random,
21767 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21768 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21769 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'
21770 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'
21771 ;;
21772
21773 linux*)
21774 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21775 tmp_addflag=
21776 case $cc_basename,$host_cpu in
21777 pgcc*) # Portland Group C compiler
21778 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'
21779 tmp_addflag=' $pic_flag'
21780 ;;
21781 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21782 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'
21783 tmp_addflag=' $pic_flag -Mnomain' ;;
21784 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21785 tmp_addflag=' -i_dynamic' ;;
21786 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21787 tmp_addflag=' -i_dynamic -nofor_main' ;;
21788 ifc* | ifort*) # Intel Fortran compiler
21789 tmp_addflag=' -nofor_main' ;;
21790 esac
21791 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21792
21793 if test $supports_anon_versioning = yes; then
21794 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21796 $echo "local: *; };" >> $output_objdir/$libname.ver~
21797 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21798 fi
21799 else
21800 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021801 fi
21802 ;;
21803
21804 netbsd*)
21805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21806 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21807 wlarc=
21808 else
21809 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21810 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21811 fi
21812 ;;
21813
Reid Spencera773bd52006-08-04 18:18:08 +000021814 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021815 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21816 ld_shlibs_F77=no
21817 cat <<EOF 1>&2
21818
21819*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21820*** create shared libraries on Solaris systems. Therefore, libtool
21821*** is disabling shared libraries support. We urge you to upgrade GNU
21822*** binutils to release 2.9.1 or newer. Another option is to modify
21823*** your PATH or compiler configuration so that the native linker is
21824*** used, and then restart.
21825
21826EOF
21827 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21828 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21829 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21830 else
21831 ld_shlibs_F77=no
21832 fi
21833 ;;
21834
Reid Spencera773bd52006-08-04 18:18:08 +000021835 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21836 case `$LD -v 2>&1` in
21837 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21838 ld_shlibs_F77=no
21839 cat <<_LT_EOF 1>&2
21840
21841*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21842*** reliably create shared libraries on SCO systems. Therefore, libtool
21843*** is disabling shared libraries support. We urge you to upgrade GNU
21844*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21845*** your PATH or compiler configuration so that the native linker is
21846*** used, and then restart.
21847
21848_LT_EOF
21849 ;;
21850 *)
21851 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21852 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21853 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21854 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21855 else
21856 ld_shlibs_F77=no
21857 fi
21858 ;;
21859 esac
21860 ;;
21861
John Criswell47fdd832003-07-14 16:52:07 +000021862 sunos4*)
21863 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21864 wlarc=
21865 hardcode_direct_F77=yes
21866 hardcode_shlibpath_var_F77=no
21867 ;;
21868
21869 *)
21870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21871 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21872 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21873 else
21874 ld_shlibs_F77=no
21875 fi
21876 ;;
21877 esac
21878
Reid Spencera773bd52006-08-04 18:18:08 +000021879 if test "$ld_shlibs_F77" = no; then
21880 runpath_var=
21881 hardcode_libdir_flag_spec_F77=
21882 export_dynamic_flag_spec_F77=
21883 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021884 fi
21885 else
21886 # PORTME fill in a description of your system's linker (not GNU ld)
21887 case $host_os in
21888 aix3*)
21889 allow_undefined_flag_F77=unsupported
21890 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021891 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 +000021892 # Note: this linker hardcodes the directories in LIBPATH if there
21893 # are no directories specified by -L.
21894 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021895 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021896 # Neither direct hardcoding nor static linking is supported with a
21897 # broken collect2.
21898 hardcode_direct_F77=unsupported
21899 fi
21900 ;;
21901
21902 aix4* | aix5*)
21903 if test "$host_cpu" = ia64; then
21904 # On IA64, the linker does run time linking by default, so we don't
21905 # have to do anything special.
21906 aix_use_runtimelinking=no
21907 exp_sym_flag='-Bexport'
21908 no_entry_flag=""
21909 else
21910 # If we're using GNU nm, then we don't want the "-C" option.
21911 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21912 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21913 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'
21914 else
21915 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'
21916 fi
21917 aix_use_runtimelinking=no
21918
21919 # Test if we are trying to use run time linking or normal
21920 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21921 # need to do runtime linking.
21922 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21923 for ld_flag in $LDFLAGS; do
21924 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21925 aix_use_runtimelinking=yes
21926 break
21927 fi
21928 done
Reid Spencera773bd52006-08-04 18:18:08 +000021929 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021930 esac
21931
21932 exp_sym_flag='-bexport'
21933 no_entry_flag='-bnoentry'
21934 fi
21935
21936 # When large executables or shared objects are built, AIX ld can
21937 # have problems creating the table of contents. If linking a library
21938 # or program results in "error TOC overflow" add -mminimal-toc to
21939 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21940 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21941
21942 archive_cmds_F77=''
21943 hardcode_direct_F77=yes
21944 hardcode_libdir_separator_F77=':'
21945 link_all_deplibs_F77=yes
21946
21947 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021948 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021949 # We only want to do this on AIX 4.2 and lower, the check
21950 # below for broken collect2 doesn't work under 4.3+
21951 collect2name=`${CC} -print-prog-name=collect2`
21952 if test -f "$collect2name" && \
21953 strings "$collect2name" | grep resolve_lib_name >/dev/null
21954 then
21955 # We have reworked collect2
21956 hardcode_direct_F77=yes
21957 else
21958 # We have old collect2
21959 hardcode_direct_F77=unsupported
21960 # It fails to find uninstalled libraries when the uninstalled
21961 # path is not listed in the libpath. Setting hardcode_minus_L
21962 # to unsupported forces relinking
21963 hardcode_minus_L_F77=yes
21964 hardcode_libdir_flag_spec_F77='-L$libdir'
21965 hardcode_libdir_separator_F77=
21966 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021967 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021968 esac
21969 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021970 if test "$aix_use_runtimelinking" = yes; then
21971 shared_flag="$shared_flag "'${wl}-G'
21972 fi
John Criswell47fdd832003-07-14 16:52:07 +000021973 else
21974 # not using gcc
21975 if test "$host_cpu" = ia64; then
21976 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21977 # chokes on -Wl,-G. The following line is correct:
21978 shared_flag='-G'
21979 else
Reid Spencera773bd52006-08-04 18:18:08 +000021980 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021981 shared_flag='${wl}-G'
21982 else
21983 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021984 fi
John Criswell47fdd832003-07-14 16:52:07 +000021985 fi
21986 fi
21987
21988 # It seems that -bexpall does not export symbols beginning with
21989 # underscore (_), so it is better to generate a list of symbols to export.
21990 always_export_symbols_F77=yes
21991 if test "$aix_use_runtimelinking" = yes; then
21992 # Warning - without using the other runtime loading flags (-brtl),
21993 # -berok will link without error, but may produce a broken library.
21994 allow_undefined_flag_F77='-berok'
21995 # Determine the default libpath from the value encoded in an empty executable.
21996 cat >conftest.$ac_ext <<_ACEOF
21997 program main
21998
21999 end
22000_ACEOF
22001rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022002if { (ac_try="$ac_link"
22003case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22006esac
22007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022010 grep -v '^ *+' conftest.er1 >conftest.err
22011 rm -f conftest.er1
22012 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022014 (exit $ac_status); } &&
22015 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22016 { (case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22019esac
22020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_try") 2>&5
22022 ac_status=$?
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; } &&
22025 { ac_try='test -s conftest$ac_exeext'
22026 { (case "(($ac_try" in
22027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028 *) ac_try_echo=$ac_try;;
22029esac
22030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031 (eval "$ac_try") 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022035
22036aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22037}'`
22038# Check for a 64-bit object if we didn't find anything.
22039if 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; }
22040}'`; fi
22041else
22042 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022043sed 's/^/| /' conftest.$ac_ext >&5
22044
Reid Spencera773bd52006-08-04 18:18:08 +000022045
John Criswell47fdd832003-07-14 16:52:07 +000022046fi
Reid Spencera773bd52006-08-04 18:18:08 +000022047
Bill Wendlingebcceee2009-04-18 11:20:33 +000022048rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022049 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022050if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22051
22052 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022053 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 +000022054 else
22055 if test "$host_cpu" = ia64; then
22056 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22057 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022058 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 +000022059 else
22060 # Determine the default libpath from the value encoded in an empty executable.
22061 cat >conftest.$ac_ext <<_ACEOF
22062 program main
22063
22064 end
22065_ACEOF
22066rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022067if { (ac_try="$ac_link"
22068case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22071esac
22072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022074 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022075 grep -v '^ *+' conftest.er1 >conftest.err
22076 rm -f conftest.er1
22077 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000022079 (exit $ac_status); } &&
22080 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22081 { (case "(($ac_try" in
22082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083 *) ac_try_echo=$ac_try;;
22084esac
22085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086 (eval "$ac_try") 2>&5
22087 ac_status=$?
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); }; } &&
22090 { ac_try='test -s conftest$ac_exeext'
22091 { (case "(($ac_try" in
22092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22094esac
22095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22096 (eval "$ac_try") 2>&5
22097 ac_status=$?
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022100
22101aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22102}'`
22103# Check for a 64-bit object if we didn't find anything.
22104if 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; }
22105}'`; fi
22106else
22107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022108sed 's/^/| /' conftest.$ac_ext >&5
22109
Reid Spencera773bd52006-08-04 18:18:08 +000022110
John Criswell47fdd832003-07-14 16:52:07 +000022111fi
Reid Spencera773bd52006-08-04 18:18:08 +000022112
Bill Wendlingebcceee2009-04-18 11:20:33 +000022113rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022114 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022115if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22116
22117 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22118 # Warning - without using the other run time loading flags,
22119 # -berok will link without error, but may produce a broken library.
22120 no_undefined_flag_F77=' ${wl}-bernotok'
22121 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022122 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022123 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022124 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022125 # This is similar to how AIX traditionally builds its shared libraries.
22126 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 +000022127 fi
22128 fi
22129 ;;
22130
22131 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022132 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 +000022133 hardcode_libdir_flag_spec_F77='-L$libdir'
22134 hardcode_minus_L_F77=yes
22135 # see comment about different semantics on the GNU ld section
22136 ld_shlibs_F77=no
22137 ;;
22138
Reid Spencer2706f8c2004-09-19 23:53:36 +000022139 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022140 export_dynamic_flag_spec_F77=-rdynamic
22141 ;;
22142
22143 cygwin* | mingw* | pw32*)
22144 # When not using gcc, we currently assume that we are using
22145 # Microsoft Visual C++.
22146 # hardcode_libdir_flag_spec is actually meaningless, as there is
22147 # no search path for DLLs.
22148 hardcode_libdir_flag_spec_F77=' '
22149 allow_undefined_flag_F77=unsupported
22150 # Tell ltmain to make .lib files, not .a files.
22151 libext=lib
22152 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022153 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022154 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022155 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 +000022156 # The linker will automatically build a .lib file if we build a DLL.
22157 old_archive_From_new_cmds_F77='true'
22158 # FIXME: Should let the user specify the lib program.
22159 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022160 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022161 enable_shared_with_static_runtimes_F77=yes
22162 ;;
22163
22164 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022165 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022166 rhapsody* | darwin1.[012])
22167 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22168 ;;
22169 *) # Darwin 1.3 on
22170 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22171 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22172 else
22173 case ${MACOSX_DEPLOYMENT_TARGET} in
22174 10.[012])
22175 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22176 ;;
22177 10.*)
22178 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22179 ;;
22180 esac
22181 fi
22182 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022183 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022184 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022185 hardcode_direct_F77=no
22186 hardcode_automatic_F77=yes
22187 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022188 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022189 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022190 if test "$GCC" = yes ; then
22191 output_verbose_link_cmd='echo'
22192 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22193 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022194 # 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 +000022195 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}'
22196 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 +000022197 else
Reid Spencera773bd52006-08-04 18:18:08 +000022198 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022199 xlc*)
22200 output_verbose_link_cmd='echo'
22201 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22202 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022203 # 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 +000022204 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}'
22205 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 +000022206 ;;
22207 *)
22208 ld_shlibs_F77=no
22209 ;;
22210 esac
John Criswell47fdd832003-07-14 16:52:07 +000022211 fi
22212 ;;
22213
22214 dgux*)
22215 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22216 hardcode_libdir_flag_spec_F77='-L$libdir'
22217 hardcode_shlibpath_var_F77=no
22218 ;;
22219
22220 freebsd1*)
22221 ld_shlibs_F77=no
22222 ;;
22223
22224 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22225 # support. Future versions do this automatically, but an explicit c++rt0.o
22226 # does not break anything, and helps significantly (at the cost of a little
22227 # extra space).
22228 freebsd2.2*)
22229 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22230 hardcode_libdir_flag_spec_F77='-R$libdir'
22231 hardcode_direct_F77=yes
22232 hardcode_shlibpath_var_F77=no
22233 ;;
22234
22235 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22236 freebsd2*)
22237 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22238 hardcode_direct_F77=yes
22239 hardcode_minus_L_F77=yes
22240 hardcode_shlibpath_var_F77=no
22241 ;;
22242
22243 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022244 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022245 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22246 hardcode_libdir_flag_spec_F77='-R$libdir'
22247 hardcode_direct_F77=yes
22248 hardcode_shlibpath_var_F77=no
22249 ;;
22250
22251 hpux9*)
22252 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022253 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 +000022254 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022255 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 +000022256 fi
22257 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22258 hardcode_libdir_separator_F77=:
22259 hardcode_direct_F77=yes
22260
22261 # hardcode_minus_L: Not really in the search PATH,
22262 # but as the default location of the library.
22263 hardcode_minus_L_F77=yes
22264 export_dynamic_flag_spec_F77='${wl}-E'
22265 ;;
22266
Reid Spencera773bd52006-08-04 18:18:08 +000022267 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022268 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022269 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22270 else
22271 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22272 fi
22273 if test "$with_gnu_ld" = no; then
22274 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22275 hardcode_libdir_separator_F77=:
22276
22277 hardcode_direct_F77=yes
22278 export_dynamic_flag_spec_F77='${wl}-E'
22279
22280 # hardcode_minus_L: Not really in the search PATH,
22281 # but as the default location of the library.
22282 hardcode_minus_L_F77=yes
22283 fi
22284 ;;
22285
22286 hpux11*)
22287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22288 case $host_cpu in
22289 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022290 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22291 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022292 ia64*)
22293 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22294 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022295 *)
22296 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22297 ;;
22298 esac
22299 else
Reid Spencera773bd52006-08-04 18:18:08 +000022300 case $host_cpu in
22301 hppa*64*)
22302 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22303 ;;
22304 ia64*)
22305 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022306 ;;
22307 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022308 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 +000022309 ;;
22310 esac
22311 fi
22312 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022313 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22314 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022315
Reid Spencera773bd52006-08-04 18:18:08 +000022316 case $host_cpu in
22317 hppa*64*|ia64*)
22318 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22319 hardcode_direct_F77=no
22320 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022321 ;;
22322 *)
John Criswell47fdd832003-07-14 16:52:07 +000022323 hardcode_direct_F77=yes
22324 export_dynamic_flag_spec_F77='${wl}-E'
22325
22326 # hardcode_minus_L: Not really in the search PATH,
22327 # but as the default location of the library.
22328 hardcode_minus_L_F77=yes
22329 ;;
22330 esac
22331 fi
22332 ;;
22333
22334 irix5* | irix6* | nonstopux*)
22335 if test "$GCC" = yes; then
22336 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'
22337 else
22338 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'
22339 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22340 fi
22341 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22342 hardcode_libdir_separator_F77=:
22343 link_all_deplibs_F77=yes
22344 ;;
22345
22346 netbsd*)
22347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22348 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22349 else
22350 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22351 fi
22352 hardcode_libdir_flag_spec_F77='-R$libdir'
22353 hardcode_direct_F77=yes
22354 hardcode_shlibpath_var_F77=no
22355 ;;
22356
22357 newsos6)
22358 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22359 hardcode_direct_F77=yes
22360 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22361 hardcode_libdir_separator_F77=:
22362 hardcode_shlibpath_var_F77=no
22363 ;;
22364
22365 openbsd*)
22366 hardcode_direct_F77=yes
22367 hardcode_shlibpath_var_F77=no
22368 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22369 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022370 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 +000022371 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22372 export_dynamic_flag_spec_F77='${wl}-E'
22373 else
22374 case $host_os in
22375 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22376 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22377 hardcode_libdir_flag_spec_F77='-R$libdir'
22378 ;;
22379 *)
22380 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22381 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22382 ;;
22383 esac
22384 fi
22385 ;;
22386
22387 os2*)
22388 hardcode_libdir_flag_spec_F77='-L$libdir'
22389 hardcode_minus_L_F77=yes
22390 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022391 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 +000022392 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22393 ;;
22394
22395 osf3*)
22396 if test "$GCC" = yes; then
22397 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22398 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'
22399 else
22400 allow_undefined_flag_F77=' -expect_unresolved \*'
22401 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'
22402 fi
22403 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22404 hardcode_libdir_separator_F77=:
22405 ;;
22406
22407 osf4* | osf5*) # as osf3* with the addition of -msym flag
22408 if test "$GCC" = yes; then
22409 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22410 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'
22411 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22412 else
22413 allow_undefined_flag_F77=' -expect_unresolved \*'
22414 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 +000022415 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 +000022416 $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 +000022417
John Criswell47fdd832003-07-14 16:52:07 +000022418 # Both c and cxx compiler support -rpath directly
22419 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22420 fi
22421 hardcode_libdir_separator_F77=:
22422 ;;
22423
John Criswell47fdd832003-07-14 16:52:07 +000022424 solaris*)
22425 no_undefined_flag_F77=' -z text'
22426 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022427 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022428 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022429 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22430 $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 +000022431 else
Reid Spencera773bd52006-08-04 18:18:08 +000022432 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022433 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022434 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22435 $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 +000022436 fi
22437 hardcode_libdir_flag_spec_F77='-R$libdir'
22438 hardcode_shlibpath_var_F77=no
22439 case $host_os in
22440 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022441 *)
22442 # The compiler driver will combine linker options so we
22443 # cannot just pass the convience library names through
22444 # without $wl, iff we do not link with $LD.
22445 # Luckily, gcc supports the same syntax we need for Sun Studio.
22446 # Supported since Solaris 2.6 (maybe 2.5.1?)
22447 case $wlarc in
22448 '')
22449 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22450 *)
22451 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' ;;
22452 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022453 esac
22454 link_all_deplibs_F77=yes
22455 ;;
22456
22457 sunos4*)
22458 if test "x$host_vendor" = xsequent; then
22459 # Use $CC to link under sequent, because it throws in some extra .o
22460 # files that make .init and .fini sections work.
22461 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22462 else
22463 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22464 fi
22465 hardcode_libdir_flag_spec_F77='-L$libdir'
22466 hardcode_direct_F77=yes
22467 hardcode_minus_L_F77=yes
22468 hardcode_shlibpath_var_F77=no
22469 ;;
22470
22471 sysv4)
22472 case $host_vendor in
22473 sni)
22474 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22475 hardcode_direct_F77=yes # is this really true???
22476 ;;
22477 siemens)
22478 ## LD is ld it makes a PLAMLIB
22479 ## CC just makes a GrossModule.
22480 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22481 reload_cmds_F77='$CC -r -o $output$reload_objs'
22482 hardcode_direct_F77=no
22483 ;;
22484 motorola)
22485 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22486 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22487 ;;
22488 esac
22489 runpath_var='LD_RUN_PATH'
22490 hardcode_shlibpath_var_F77=no
22491 ;;
22492
22493 sysv4.3*)
22494 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22495 hardcode_shlibpath_var_F77=no
22496 export_dynamic_flag_spec_F77='-Bexport'
22497 ;;
22498
22499 sysv4*MP*)
22500 if test -d /usr/nec; then
22501 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22502 hardcode_shlibpath_var_F77=no
22503 runpath_var=LD_RUN_PATH
22504 hardcode_runpath_var=yes
22505 ld_shlibs_F77=yes
22506 fi
22507 ;;
22508
Reid Spencera773bd52006-08-04 18:18:08 +000022509 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22510 no_undefined_flag_F77='${wl}-z,text'
22511 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022512 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022513 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022514
John Criswell47fdd832003-07-14 16:52:07 +000022515 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022516 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22517 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 +000022518 else
Reid Spencera773bd52006-08-04 18:18:08 +000022519 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22520 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 +000022521 fi
John Criswell47fdd832003-07-14 16:52:07 +000022522 ;;
22523
Reid Spencera773bd52006-08-04 18:18:08 +000022524 sysv5* | sco3.2v5* | sco5v6*)
22525 # Note: We can NOT use -z defs as we might desire, because we do not
22526 # link with -lc, and that would cause any symbols used from libc to
22527 # always be unresolved, which means just about no library would
22528 # ever link correctly. If we're not using GNU ld we use -z text
22529 # though, which does catch some bad symbols but isn't as heavy-handed
22530 # as -z defs.
22531 no_undefined_flag_F77='${wl}-z,text'
22532 allow_undefined_flag_F77='${wl}-z,nodefs'
22533 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022534 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022535 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22536 hardcode_libdir_separator_F77=':'
22537 link_all_deplibs_F77=yes
22538 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022539 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022540
22541 if test "$GCC" = yes; then
22542 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22543 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22544 else
22545 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22546 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22547 fi
John Criswell47fdd832003-07-14 16:52:07 +000022548 ;;
22549
22550 uts4*)
22551 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22552 hardcode_libdir_flag_spec_F77='-L$libdir'
22553 hardcode_shlibpath_var_F77=no
22554 ;;
22555
22556 *)
22557 ld_shlibs_F77=no
22558 ;;
22559 esac
22560 fi
22561
Reid Spencera773bd52006-08-04 18:18:08 +000022562{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22563echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022564test "$ld_shlibs_F77" = no && can_build_shared=no
22565
John Criswell47fdd832003-07-14 16:52:07 +000022566#
22567# Do we need to explicitly link libc?
22568#
22569case "x$archive_cmds_need_lc_F77" in
22570x|xyes)
22571 # Assume -lc should be added
22572 archive_cmds_need_lc_F77=yes
22573
22574 if test "$enable_shared" = yes && test "$GCC" = yes; then
22575 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022576 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022577 # FIXME: we may have to deal with multi-command sequences.
22578 ;;
22579 '$CC '*)
22580 # Test whether the compiler implicitly links with -lc since on some
22581 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22582 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022583 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22584echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022585 $rm conftest*
22586 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22587
22588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22589 (eval $ac_compile) 2>&5
22590 ac_status=$?
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); } 2>conftest.err; then
22593 soname=conftest
22594 lib=conftest
22595 libobjs=conftest.$ac_objext
22596 deplibs=
22597 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022598 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022599 compiler_flags=-v
22600 linker_flags=-v
22601 verstring=
22602 output_objdir=.
22603 libname=conftest
22604 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22605 allow_undefined_flag_F77=
22606 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22607 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22608 ac_status=$?
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }
22611 then
22612 archive_cmds_need_lc_F77=no
22613 else
22614 archive_cmds_need_lc_F77=yes
22615 fi
22616 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22617 else
22618 cat conftest.err 1>&5
22619 fi
22620 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022621 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22622echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022623 ;;
22624 esac
22625 fi
22626 ;;
22627esac
22628
Reid Spencera773bd52006-08-04 18:18:08 +000022629{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22630echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022631library_names_spec=
22632libname_spec='lib$name'
22633soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022634shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022635postinstall_cmds=
22636postuninstall_cmds=
22637finish_cmds=
22638finish_eval=
22639shlibpath_var=
22640shlibpath_overrides_runpath=unknown
22641version_type=none
22642dynamic_linker="$host_os ld.so"
22643sys_lib_dlsearch_path_spec="/lib /usr/lib"
22644if test "$GCC" = yes; then
22645 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22646 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22647 # if the path contains ";" then we assume it to be the separator
22648 # otherwise default to the standard path separator (i.e. ":") - it is
22649 # assumed that no part of a normal pathname contains ";" but that should
22650 # okay in the real world where ";" in dirpaths is itself problematic.
22651 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22652 else
22653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22654 fi
22655else
22656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22657fi
22658need_lib_prefix=unknown
22659hardcode_into_libs=no
22660
22661# when you set need_version to no, make sure it does not cause -set_version
22662# flags to be left without arguments
22663need_version=unknown
22664
22665case $host_os in
22666aix3*)
22667 version_type=linux
22668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22669 shlibpath_var=LIBPATH
22670
22671 # AIX 3 has no versioning support, so we append a major version to the name.
22672 soname_spec='${libname}${release}${shared_ext}$major'
22673 ;;
22674
22675aix4* | aix5*)
22676 version_type=linux
22677 need_lib_prefix=no
22678 need_version=no
22679 hardcode_into_libs=yes
22680 if test "$host_cpu" = ia64; then
22681 # AIX 5 supports IA64
22682 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22683 shlibpath_var=LD_LIBRARY_PATH
22684 else
22685 # With GCC up to 2.95.x, collect2 would create an import file
22686 # for dependence libraries. The import file would start with
22687 # the line `#! .'. This would cause the generated library to
22688 # depend on `.', always an invalid library. This was fixed in
22689 # development snapshots of GCC prior to 3.0.
22690 case $host_os in
22691 aix4 | aix4.[01] | aix4.[01].*)
22692 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22693 echo ' yes '
22694 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22695 :
22696 else
22697 can_build_shared=no
22698 fi
22699 ;;
22700 esac
22701 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22702 # soname into executable. Probably we can add versioning support to
22703 # collect2, so additional links can be useful in future.
22704 if test "$aix_use_runtimelinking" = yes; then
22705 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22706 # instead of lib<name>.a to let people know that these are not
22707 # typical AIX shared libraries.
22708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22709 else
22710 # We preserve .a as extension for shared libraries through AIX4.2
22711 # and later when we are not doing run time linking.
22712 library_names_spec='${libname}${release}.a $libname.a'
22713 soname_spec='${libname}${release}${shared_ext}$major'
22714 fi
22715 shlibpath_var=LIBPATH
22716 fi
22717 ;;
22718
22719amigaos*)
22720 library_names_spec='$libname.ixlibrary $libname.a'
22721 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022722 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 +000022723 ;;
22724
22725beos*)
22726 library_names_spec='${libname}${shared_ext}'
22727 dynamic_linker="$host_os ld.so"
22728 shlibpath_var=LIBRARY_PATH
22729 ;;
22730
Reid Spencer2706f8c2004-09-19 23:53:36 +000022731bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022732 version_type=linux
22733 need_version=no
22734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22735 soname_spec='${libname}${release}${shared_ext}$major'
22736 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22737 shlibpath_var=LD_LIBRARY_PATH
22738 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22739 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22740 # the default ld.so.conf also contains /usr/contrib/lib and
22741 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22742 # libtool to hard-code these into programs
22743 ;;
22744
22745cygwin* | mingw* | pw32*)
22746 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022747 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022748 need_version=no
22749 need_lib_prefix=no
22750
22751 case $GCC,$host_os in
22752 yes,cygwin* | yes,mingw* | yes,pw32*)
22753 library_names_spec='$libname.dll.a'
22754 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022755 postinstall_cmds='base_file=`basename \${file}`~
22756 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22757 dldir=$destdir/`dirname \$dlpath`~
22758 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022759 $install_prog $dir/$dlname \$dldir/$dlname~
22760 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22762 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022763 $rm \$dlpath'
22764 shlibpath_overrides_runpath=yes
22765
22766 case $host_os in
22767 cygwin*)
22768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22769 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 +000022770 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022771 ;;
22772 mingw*)
22773 # MinGW DLLs use traditional 'lib' prefix
22774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22776 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22777 # It is most probably a Windows format PATH printed by
22778 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22779 # path with ; separators, and with drive letters. We can handle the
22780 # drive letters (cygwin fileutils understands them), so leave them,
22781 # especially as we might pass files found there to a mingw objdump,
22782 # which wouldn't understand a cygwinified path. Ahh.
22783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22784 else
22785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22786 fi
22787 ;;
22788 pw32*)
22789 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022790 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 +000022791 ;;
22792 esac
22793 ;;
22794
22795 *)
22796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22797 ;;
22798 esac
22799 dynamic_linker='Win32 ld.exe'
22800 # FIXME: first we should search . and the directory the executable is in
22801 shlibpath_var=PATH
22802 ;;
22803
22804darwin* | rhapsody*)
22805 dynamic_linker="$host_os dyld"
22806 version_type=darwin
22807 need_lib_prefix=no
22808 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022809 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022810 soname_spec='${libname}${release}${major}$shared_ext'
22811 shlibpath_overrides_runpath=yes
22812 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022813 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022814 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022815 if test "$GCC" = yes; then
22816 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"`
22817 else
22818 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022819 fi
22820 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22821 ;;
22822
22823dgux*)
22824 version_type=linux
22825 need_lib_prefix=no
22826 need_version=no
22827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22828 soname_spec='${libname}${release}${shared_ext}$major'
22829 shlibpath_var=LD_LIBRARY_PATH
22830 ;;
22831
22832freebsd1*)
22833 dynamic_linker=no
22834 ;;
22835
Reid Spencer2706f8c2004-09-19 23:53:36 +000022836kfreebsd*-gnu)
22837 version_type=linux
22838 need_lib_prefix=no
22839 need_version=no
22840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22841 soname_spec='${libname}${release}${shared_ext}$major'
22842 shlibpath_var=LD_LIBRARY_PATH
22843 shlibpath_overrides_runpath=no
22844 hardcode_into_libs=yes
22845 dynamic_linker='GNU ld.so'
22846 ;;
22847
Reid Spencera773bd52006-08-04 18:18:08 +000022848freebsd* | dragonfly*)
22849 # DragonFly does not have aout. When/if they implement a new
22850 # versioning mechanism, adjust this.
22851 if test -x /usr/bin/objformat; then
22852 objformat=`/usr/bin/objformat`
22853 else
22854 case $host_os in
22855 freebsd[123]*) objformat=aout ;;
22856 *) objformat=elf ;;
22857 esac
22858 fi
John Criswell47fdd832003-07-14 16:52:07 +000022859 version_type=freebsd-$objformat
22860 case $version_type in
22861 freebsd-elf*)
22862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22863 need_version=no
22864 need_lib_prefix=no
22865 ;;
22866 freebsd-*)
22867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22868 need_version=yes
22869 ;;
22870 esac
22871 shlibpath_var=LD_LIBRARY_PATH
22872 case $host_os in
22873 freebsd2*)
22874 shlibpath_overrides_runpath=yes
22875 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022876 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022877 shlibpath_overrides_runpath=yes
22878 hardcode_into_libs=yes
22879 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022880 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22881 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022882 shlibpath_overrides_runpath=no
22883 hardcode_into_libs=yes
22884 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022885 freebsd*) # from 4.6 on
22886 shlibpath_overrides_runpath=yes
22887 hardcode_into_libs=yes
22888 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022889 esac
22890 ;;
22891
22892gnu*)
22893 version_type=linux
22894 need_lib_prefix=no
22895 need_version=no
22896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22897 soname_spec='${libname}${release}${shared_ext}$major'
22898 shlibpath_var=LD_LIBRARY_PATH
22899 hardcode_into_libs=yes
22900 ;;
22901
22902hpux9* | hpux10* | hpux11*)
22903 # Give a soname corresponding to the major version so that dld.sl refuses to
22904 # link against other versions.
22905 version_type=sunos
22906 need_lib_prefix=no
22907 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022908 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022909 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022910 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022911 hardcode_into_libs=yes
22912 dynamic_linker="$host_os dld.so"
22913 shlibpath_var=LD_LIBRARY_PATH
22914 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916 soname_spec='${libname}${release}${shared_ext}$major'
22917 if test "X$HPUX_IA64_MODE" = X32; then
22918 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22919 else
22920 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22921 fi
22922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22923 ;;
22924 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022925 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022926 hardcode_into_libs=yes
22927 dynamic_linker="$host_os dld.sl"
22928 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22929 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22931 soname_spec='${libname}${release}${shared_ext}$major'
22932 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22934 ;;
22935 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022936 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022937 dynamic_linker="$host_os dld.sl"
22938 shlibpath_var=SHLIB_PATH
22939 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22941 soname_spec='${libname}${release}${shared_ext}$major'
22942 ;;
22943 esac
22944 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22945 postinstall_cmds='chmod 555 $lib'
22946 ;;
22947
Reid Spencera773bd52006-08-04 18:18:08 +000022948interix3*)
22949 version_type=linux
22950 need_lib_prefix=no
22951 need_version=no
22952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22953 soname_spec='${libname}${release}${shared_ext}$major'
22954 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22955 shlibpath_var=LD_LIBRARY_PATH
22956 shlibpath_overrides_runpath=no
22957 hardcode_into_libs=yes
22958 ;;
22959
John Criswell47fdd832003-07-14 16:52:07 +000022960irix5* | irix6* | nonstopux*)
22961 case $host_os in
22962 nonstopux*) version_type=nonstopux ;;
22963 *)
22964 if test "$lt_cv_prog_gnu_ld" = yes; then
22965 version_type=linux
22966 else
22967 version_type=irix
22968 fi ;;
22969 esac
22970 need_lib_prefix=no
22971 need_version=no
22972 soname_spec='${libname}${release}${shared_ext}$major'
22973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22974 case $host_os in
22975 irix5* | nonstopux*)
22976 libsuff= shlibsuff=
22977 ;;
22978 *)
22979 case $LD in # libtool.m4 will add one of these switches to LD
22980 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22981 libsuff= shlibsuff= libmagic=32-bit;;
22982 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22983 libsuff=32 shlibsuff=N32 libmagic=N32;;
22984 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22985 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22986 *) libsuff= shlibsuff= libmagic=never-match;;
22987 esac
22988 ;;
22989 esac
22990 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22991 shlibpath_overrides_runpath=no
22992 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22993 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22994 hardcode_into_libs=yes
22995 ;;
22996
22997# No shared lib support for Linux oldld, aout, or coff.
22998linux*oldld* | linux*aout* | linux*coff*)
22999 dynamic_linker=no
23000 ;;
23001
23002# This must be Linux ELF.
23003linux*)
23004 version_type=linux
23005 need_lib_prefix=no
23006 need_version=no
23007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23008 soname_spec='${libname}${release}${shared_ext}$major'
23009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23010 shlibpath_var=LD_LIBRARY_PATH
23011 shlibpath_overrides_runpath=no
23012 # This implies no fast_install, which is unacceptable.
23013 # Some rework will be needed to allow for fast_install
23014 # before this can be enabled.
23015 hardcode_into_libs=yes
23016
Reid Spencer2706f8c2004-09-19 23:53:36 +000023017 # Append ld.so.conf contents to the search path
23018 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023019 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 +000023020 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23021 fi
23022
John Criswell47fdd832003-07-14 16:52:07 +000023023 # We used to test for /lib/ld.so.1 and disable shared libraries on
23024 # powerpc, because MkLinux only supported shared libraries with the
23025 # GNU dynamic linker. Since this was broken with cross compilers,
23026 # most powerpc-linux boxes support dynamic linking these days and
23027 # people can always --disable-shared, the test was removed, and we
23028 # assume the GNU/Linux dynamic linker is in use.
23029 dynamic_linker='GNU/Linux ld.so'
23030 ;;
23031
Reid Spencer2706f8c2004-09-19 23:53:36 +000023032knetbsd*-gnu)
23033 version_type=linux
23034 need_lib_prefix=no
23035 need_version=no
23036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23037 soname_spec='${libname}${release}${shared_ext}$major'
23038 shlibpath_var=LD_LIBRARY_PATH
23039 shlibpath_overrides_runpath=no
23040 hardcode_into_libs=yes
23041 dynamic_linker='GNU ld.so'
23042 ;;
23043
John Criswell47fdd832003-07-14 16:52:07 +000023044netbsd*)
23045 version_type=sunos
23046 need_lib_prefix=no
23047 need_version=no
23048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23050 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23051 dynamic_linker='NetBSD (a.out) ld.so'
23052 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023054 soname_spec='${libname}${release}${shared_ext}$major'
23055 dynamic_linker='NetBSD ld.elf_so'
23056 fi
23057 shlibpath_var=LD_LIBRARY_PATH
23058 shlibpath_overrides_runpath=yes
23059 hardcode_into_libs=yes
23060 ;;
23061
23062newsos6)
23063 version_type=linux
23064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23065 shlibpath_var=LD_LIBRARY_PATH
23066 shlibpath_overrides_runpath=yes
23067 ;;
23068
Reid Spencer2706f8c2004-09-19 23:53:36 +000023069nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023070 version_type=linux
23071 need_lib_prefix=no
23072 need_version=no
23073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23074 soname_spec='${libname}${release}${shared_ext}$major'
23075 shlibpath_var=LD_LIBRARY_PATH
23076 shlibpath_overrides_runpath=yes
23077 ;;
23078
23079openbsd*)
23080 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023081 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023082 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023083 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23084 case $host_os in
23085 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23086 *) need_version=no ;;
23087 esac
John Criswell47fdd832003-07-14 16:52:07 +000023088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23089 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23090 shlibpath_var=LD_LIBRARY_PATH
23091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23092 case $host_os in
23093 openbsd2.[89] | openbsd2.[89].*)
23094 shlibpath_overrides_runpath=no
23095 ;;
23096 *)
23097 shlibpath_overrides_runpath=yes
23098 ;;
23099 esac
23100 else
23101 shlibpath_overrides_runpath=yes
23102 fi
23103 ;;
23104
23105os2*)
23106 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023107 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023108 need_lib_prefix=no
23109 library_names_spec='$libname${shared_ext} $libname.a'
23110 dynamic_linker='OS/2 ld.exe'
23111 shlibpath_var=LIBPATH
23112 ;;
23113
23114osf3* | osf4* | osf5*)
23115 version_type=osf
23116 need_lib_prefix=no
23117 need_version=no
23118 soname_spec='${libname}${release}${shared_ext}$major'
23119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23120 shlibpath_var=LD_LIBRARY_PATH
23121 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23122 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23123 ;;
23124
John Criswell47fdd832003-07-14 16:52:07 +000023125solaris*)
23126 version_type=linux
23127 need_lib_prefix=no
23128 need_version=no
23129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23130 soname_spec='${libname}${release}${shared_ext}$major'
23131 shlibpath_var=LD_LIBRARY_PATH
23132 shlibpath_overrides_runpath=yes
23133 hardcode_into_libs=yes
23134 # ldd complains unless libraries are executable
23135 postinstall_cmds='chmod +x $lib'
23136 ;;
23137
23138sunos4*)
23139 version_type=sunos
23140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23141 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23142 shlibpath_var=LD_LIBRARY_PATH
23143 shlibpath_overrides_runpath=yes
23144 if test "$with_gnu_ld" = yes; then
23145 need_lib_prefix=no
23146 fi
23147 need_version=yes
23148 ;;
23149
Reid Spencera773bd52006-08-04 18:18:08 +000023150sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023151 version_type=linux
23152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23153 soname_spec='${libname}${release}${shared_ext}$major'
23154 shlibpath_var=LD_LIBRARY_PATH
23155 case $host_vendor in
23156 sni)
23157 shlibpath_overrides_runpath=no
23158 need_lib_prefix=no
23159 export_dynamic_flag_spec='${wl}-Blargedynsym'
23160 runpath_var=LD_RUN_PATH
23161 ;;
23162 siemens)
23163 need_lib_prefix=no
23164 ;;
23165 motorola)
23166 need_lib_prefix=no
23167 need_version=no
23168 shlibpath_overrides_runpath=no
23169 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23170 ;;
23171 esac
23172 ;;
23173
23174sysv4*MP*)
23175 if test -d /usr/nec ;then
23176 version_type=linux
23177 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23178 soname_spec='$libname${shared_ext}.$major'
23179 shlibpath_var=LD_LIBRARY_PATH
23180 fi
23181 ;;
23182
Reid Spencera773bd52006-08-04 18:18:08 +000023183sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23184 version_type=freebsd-elf
23185 need_lib_prefix=no
23186 need_version=no
23187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23188 soname_spec='${libname}${release}${shared_ext}$major'
23189 shlibpath_var=LD_LIBRARY_PATH
23190 hardcode_into_libs=yes
23191 if test "$with_gnu_ld" = yes; then
23192 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23193 shlibpath_overrides_runpath=no
23194 else
23195 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23196 shlibpath_overrides_runpath=yes
23197 case $host_os in
23198 sco3.2v5*)
23199 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23200 ;;
23201 esac
23202 fi
23203 sys_lib_dlsearch_path_spec='/usr/lib'
23204 ;;
23205
John Criswell47fdd832003-07-14 16:52:07 +000023206uts4*)
23207 version_type=linux
23208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23209 soname_spec='${libname}${release}${shared_ext}$major'
23210 shlibpath_var=LD_LIBRARY_PATH
23211 ;;
23212
23213*)
23214 dynamic_linker=no
23215 ;;
23216esac
Reid Spencera773bd52006-08-04 18:18:08 +000023217{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23218echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023219test "$dynamic_linker" = no && can_build_shared=no
23220
Reid Spencera773bd52006-08-04 18:18:08 +000023221variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23222if test "$GCC" = yes; then
23223 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23224fi
23225
23226{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23227echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023228hardcode_action_F77=
23229if test -n "$hardcode_libdir_flag_spec_F77" || \
23230 test -n "$runpath_var_F77" || \
23231 test "X$hardcode_automatic_F77" = "Xyes" ; then
23232
23233 # We can hardcode non-existant directories.
23234 if test "$hardcode_direct_F77" != no &&
23235 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23236 # have to relink, otherwise we might link with an installed library
23237 # when we should be linking with a yet-to-be-installed one
23238 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23239 test "$hardcode_minus_L_F77" != no; then
23240 # Linking always hardcodes the temporary library directory.
23241 hardcode_action_F77=relink
23242 else
23243 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23244 hardcode_action_F77=immediate
23245 fi
23246else
23247 # We cannot hardcode anything, or else we can only hardcode existing
23248 # directories.
23249 hardcode_action_F77=unsupported
23250fi
Reid Spencera773bd52006-08-04 18:18:08 +000023251{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23252echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023253
23254if test "$hardcode_action_F77" = relink; then
23255 # Fast installation is not supported
23256 enable_fast_install=no
23257elif test "$shlibpath_overrides_runpath" = yes ||
23258 test "$enable_shared" = no; then
23259 # Fast installation is not necessary
23260 enable_fast_install=needless
23261fi
23262
John Criswell47fdd832003-07-14 16:52:07 +000023263
23264# The else clause should only fire when bootstrapping the
23265# libtool distribution, otherwise you forgot to ship ltmain.sh
23266# with your package, and you will get complaints that there are
23267# no rules to generate ltmain.sh.
23268if test -f "$ltmain"; then
23269 # See if we are running on zsh, and set the options which allow our commands through
23270 # without removal of \ escapes.
23271 if test -n "${ZSH_VERSION+set}" ; then
23272 setopt NO_GLOB_SUBST
23273 fi
23274 # Now quote all the things that may contain metacharacters while being
23275 # careful not to overquote the AC_SUBSTed values. We take copies of the
23276 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023277 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 +000023278 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023279 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23280 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23281 deplibs_check_method reload_flag reload_cmds need_locks \
23282 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23283 lt_cv_sys_global_symbol_to_c_name_address \
23284 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23285 old_postinstall_cmds old_postuninstall_cmds \
23286 compiler_F77 \
23287 CC_F77 \
23288 LD_F77 \
23289 lt_prog_compiler_wl_F77 \
23290 lt_prog_compiler_pic_F77 \
23291 lt_prog_compiler_static_F77 \
23292 lt_prog_compiler_no_builtin_flag_F77 \
23293 export_dynamic_flag_spec_F77 \
23294 thread_safe_flag_spec_F77 \
23295 whole_archive_flag_spec_F77 \
23296 enable_shared_with_static_runtimes_F77 \
23297 old_archive_cmds_F77 \
23298 old_archive_from_new_cmds_F77 \
23299 predep_objects_F77 \
23300 postdep_objects_F77 \
23301 predeps_F77 \
23302 postdeps_F77 \
23303 compiler_lib_search_path_F77 \
23304 archive_cmds_F77 \
23305 archive_expsym_cmds_F77 \
23306 postinstall_cmds_F77 \
23307 postuninstall_cmds_F77 \
23308 old_archive_from_expsyms_cmds_F77 \
23309 allow_undefined_flag_F77 \
23310 no_undefined_flag_F77 \
23311 export_symbols_cmds_F77 \
23312 hardcode_libdir_flag_spec_F77 \
23313 hardcode_libdir_flag_spec_ld_F77 \
23314 hardcode_libdir_separator_F77 \
23315 hardcode_automatic_F77 \
23316 module_cmds_F77 \
23317 module_expsym_cmds_F77 \
23318 lt_cv_prog_compiler_c_o_F77 \
23319 exclude_expsyms_F77 \
23320 include_expsyms_F77; do
23321
23322 case $var in
23323 old_archive_cmds_F77 | \
23324 old_archive_from_new_cmds_F77 | \
23325 archive_cmds_F77 | \
23326 archive_expsym_cmds_F77 | \
23327 module_cmds_F77 | \
23328 module_expsym_cmds_F77 | \
23329 old_archive_from_expsyms_cmds_F77 | \
23330 export_symbols_cmds_F77 | \
23331 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23332 postinstall_cmds | postuninstall_cmds | \
23333 old_postinstall_cmds | old_postuninstall_cmds | \
23334 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23335 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023336 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 +000023337 ;;
23338 *)
23339 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23340 ;;
23341 esac
23342 done
23343
23344 case $lt_echo in
23345 *'\$0 --fallback-echo"')
23346 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23347 ;;
23348 esac
23349
23350cfgfile="$ofile"
23351
23352 cat <<__EOF__ >> "$cfgfile"
23353# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23354
23355# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23356
23357# Shell to use when invoking shell scripts.
23358SHELL=$lt_SHELL
23359
23360# Whether or not to build shared libraries.
23361build_libtool_libs=$enable_shared
23362
23363# Whether or not to build static libraries.
23364build_old_libs=$enable_static
23365
23366# Whether or not to add -lc for building shared libraries.
23367build_libtool_need_lc=$archive_cmds_need_lc_F77
23368
23369# Whether or not to disallow shared libs when runtime libs are static
23370allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23371
23372# Whether or not to optimize for fast installation.
23373fast_install=$enable_fast_install
23374
23375# The host system.
23376host_alias=$host_alias
23377host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023378host_os=$host_os
23379
23380# The build system.
23381build_alias=$build_alias
23382build=$build
23383build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023384
23385# An echo program that does not interpret backslashes.
23386echo=$lt_echo
23387
23388# The archiver.
23389AR=$lt_AR
23390AR_FLAGS=$lt_AR_FLAGS
23391
23392# A C compiler.
23393LTCC=$lt_LTCC
23394
Reid Spencera773bd52006-08-04 18:18:08 +000023395# LTCC compiler flags.
23396LTCFLAGS=$lt_LTCFLAGS
23397
John Criswell47fdd832003-07-14 16:52:07 +000023398# A language-specific compiler.
23399CC=$lt_compiler_F77
23400
23401# Is the compiler the GNU C compiler?
23402with_gcc=$GCC_F77
23403
23404# An ERE matcher.
23405EGREP=$lt_EGREP
23406
23407# The linker used to build libraries.
23408LD=$lt_LD_F77
23409
23410# Whether we need hard or soft links.
23411LN_S=$lt_LN_S
23412
23413# A BSD-compatible nm program.
23414NM=$lt_NM
23415
23416# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023417STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023418
23419# Used to examine libraries when file_magic_cmd begins "file"
23420MAGIC_CMD=$MAGIC_CMD
23421
23422# Used on cygwin: DLL creation program.
23423DLLTOOL="$DLLTOOL"
23424
23425# Used on cygwin: object dumper.
23426OBJDUMP="$OBJDUMP"
23427
23428# Used on cygwin: assembler.
23429AS="$AS"
23430
23431# The name of the directory that contains temporary libtool files.
23432objdir=$objdir
23433
23434# How to create reloadable object files.
23435reload_flag=$lt_reload_flag
23436reload_cmds=$lt_reload_cmds
23437
23438# How to pass a linker flag through the compiler.
23439wl=$lt_lt_prog_compiler_wl_F77
23440
23441# Object file suffix (normally "o").
23442objext="$ac_objext"
23443
23444# Old archive suffix (normally "a").
23445libext="$libext"
23446
23447# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023448shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023449
23450# Executable file suffix (normally "").
23451exeext="$exeext"
23452
23453# Additional compiler flags for building library objects.
23454pic_flag=$lt_lt_prog_compiler_pic_F77
23455pic_mode=$pic_mode
23456
23457# What is the maximum length of a command?
23458max_cmd_len=$lt_cv_sys_max_cmd_len
23459
23460# Does compiler simultaneously support -c and -o options?
23461compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23462
Reid Spencera773bd52006-08-04 18:18:08 +000023463# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023464need_locks=$lt_need_locks
23465
23466# Do we need the lib prefix for modules?
23467need_lib_prefix=$need_lib_prefix
23468
23469# Do we need a version for libraries?
23470need_version=$need_version
23471
23472# Whether dlopen is supported.
23473dlopen_support=$enable_dlopen
23474
23475# Whether dlopen of programs is supported.
23476dlopen_self=$enable_dlopen_self
23477
23478# Whether dlopen of statically linked programs is supported.
23479dlopen_self_static=$enable_dlopen_self_static
23480
23481# Compiler flag to prevent dynamic linking.
23482link_static_flag=$lt_lt_prog_compiler_static_F77
23483
23484# Compiler flag to turn off builtin functions.
23485no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23486
23487# Compiler flag to allow reflexive dlopens.
23488export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23489
23490# Compiler flag to generate shared objects directly from archives.
23491whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23492
23493# Compiler flag to generate thread-safe objects.
23494thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23495
23496# Library versioning type.
23497version_type=$version_type
23498
23499# Format of library name prefix.
23500libname_spec=$lt_libname_spec
23501
23502# List of archive names. First name is the real one, the rest are links.
23503# The last name is the one that the linker finds with -lNAME.
23504library_names_spec=$lt_library_names_spec
23505
23506# The coded name of the library, if different from the real name.
23507soname_spec=$lt_soname_spec
23508
23509# Commands used to build and install an old-style archive.
23510RANLIB=$lt_RANLIB
23511old_archive_cmds=$lt_old_archive_cmds_F77
23512old_postinstall_cmds=$lt_old_postinstall_cmds
23513old_postuninstall_cmds=$lt_old_postuninstall_cmds
23514
23515# Create an old-style archive from a shared archive.
23516old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23517
23518# Create a temporary old-style archive to link instead of a shared archive.
23519old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23520
23521# Commands used to build and install a shared archive.
23522archive_cmds=$lt_archive_cmds_F77
23523archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23524postinstall_cmds=$lt_postinstall_cmds
23525postuninstall_cmds=$lt_postuninstall_cmds
23526
23527# Commands used to build a loadable module (assumed same as above if empty)
23528module_cmds=$lt_module_cmds_F77
23529module_expsym_cmds=$lt_module_expsym_cmds_F77
23530
23531# Commands to strip libraries.
23532old_striplib=$lt_old_striplib
23533striplib=$lt_striplib
23534
23535# Dependencies to place before the objects being linked to create a
23536# shared library.
23537predep_objects=$lt_predep_objects_F77
23538
23539# Dependencies to place after the objects being linked to create a
23540# shared library.
23541postdep_objects=$lt_postdep_objects_F77
23542
23543# Dependencies to place before the objects being linked to create a
23544# shared library.
23545predeps=$lt_predeps_F77
23546
23547# Dependencies to place after the objects being linked to create a
23548# shared library.
23549postdeps=$lt_postdeps_F77
23550
23551# The library search path used internally by the compiler when linking
23552# a shared library.
23553compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23554
23555# Method to check whether dependent libraries are shared objects.
23556deplibs_check_method=$lt_deplibs_check_method
23557
23558# Command to use when deplibs_check_method == file_magic.
23559file_magic_cmd=$lt_file_magic_cmd
23560
23561# Flag that allows shared libraries with undefined symbols to be built.
23562allow_undefined_flag=$lt_allow_undefined_flag_F77
23563
23564# Flag that forces no undefined symbols.
23565no_undefined_flag=$lt_no_undefined_flag_F77
23566
23567# Commands used to finish a libtool library installation in a directory.
23568finish_cmds=$lt_finish_cmds
23569
23570# Same as above, but a single script fragment to be evaled but not shown.
23571finish_eval=$lt_finish_eval
23572
23573# Take the output of nm and produce a listing of raw symbols and C names.
23574global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23575
23576# Transform the output of nm in a proper C declaration
23577global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23578
23579# Transform the output of nm in a C name address pair
23580global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23581
23582# This is the shared library runtime path variable.
23583runpath_var=$runpath_var
23584
23585# This is the shared library path variable.
23586shlibpath_var=$shlibpath_var
23587
23588# Is shlibpath searched before the hard-coded library search path?
23589shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23590
23591# How to hardcode a shared library path into an executable.
23592hardcode_action=$hardcode_action_F77
23593
23594# Whether we should hardcode library paths into libraries.
23595hardcode_into_libs=$hardcode_into_libs
23596
23597# Flag to hardcode \$libdir into a binary during linking.
23598# This must work even if \$libdir does not exist.
23599hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23600
23601# If ld is used when linking, flag to hardcode \$libdir into
23602# a binary during linking. This must work even if \$libdir does
23603# not exist.
23604hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23605
23606# Whether we need a single -rpath flag with a separated argument.
23607hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23608
23609# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23610# resulting binary.
23611hardcode_direct=$hardcode_direct_F77
23612
23613# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23614# resulting binary.
23615hardcode_minus_L=$hardcode_minus_L_F77
23616
23617# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23618# the resulting binary.
23619hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23620
23621# Set to yes if building a shared library automatically hardcodes DIR into the library
23622# and all subsequent libraries and executables linked against it.
23623hardcode_automatic=$hardcode_automatic_F77
23624
23625# Variables whose values should be saved in libtool wrapper scripts and
23626# restored at relink time.
23627variables_saved_for_relink="$variables_saved_for_relink"
23628
23629# Whether libtool must link a program against all its dependency libraries.
23630link_all_deplibs=$link_all_deplibs_F77
23631
23632# Compile-time system search path for libraries
23633sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23634
23635# Run-time system search path for libraries
23636sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23637
23638# Fix the shell variable \$srcfile for the compiler.
23639fix_srcfile_path="$fix_srcfile_path_F77"
23640
23641# Set to yes if exported symbols are required.
23642always_export_symbols=$always_export_symbols_F77
23643
23644# The commands to list exported symbols.
23645export_symbols_cmds=$lt_export_symbols_cmds_F77
23646
23647# The commands to extract the exported symbol list from a shared archive.
23648extract_expsyms_cmds=$lt_extract_expsyms_cmds
23649
23650# Symbols that should not be listed in the preloaded symbols.
23651exclude_expsyms=$lt_exclude_expsyms_F77
23652
23653# Symbols that must always be exported.
23654include_expsyms=$lt_include_expsyms_F77
23655
23656# ### END LIBTOOL TAG CONFIG: $tagname
23657
23658__EOF__
23659
23660
23661else
23662 # If there is no Makefile yet, we rely on a make rule to execute
23663 # `config.status --recheck' to rerun these tests and create the
23664 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023665 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23666 if test -f "$ltmain_in"; then
23667 test -f Makefile && make "$ltmain"
23668 fi
John Criswell47fdd832003-07-14 16:52:07 +000023669fi
23670
23671
23672ac_ext=c
23673ac_cpp='$CPP $CPPFLAGS'
23674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23676ac_compiler_gnu=$ac_cv_c_compiler_gnu
23677
23678CC="$lt_save_CC"
23679
23680 else
23681 tagname=""
23682 fi
23683 ;;
23684
23685 GCJ)
23686 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023687 ac_ext=c
23688ac_cpp='$CPP $CPPFLAGS'
23689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23691ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023692
23693
23694# Source file extension for Java test sources.
23695ac_ext=java
23696
23697# Object file extension for compiled Java test sources.
23698objext=o
23699objext_GCJ=$objext
23700
23701# Code to be used in simple compile tests
23702lt_simple_compile_test_code="class foo {}\n"
23703
23704# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023705lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023706
23707# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23708
23709# If no C compiler was specified, use CC.
23710LTCC=${LTCC-"$CC"}
23711
Reid Spencera773bd52006-08-04 18:18:08 +000023712# If no C compiler flags were specified, use CFLAGS.
23713LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23714
John Criswell47fdd832003-07-14 16:52:07 +000023715# Allow CC to be a program name with arguments.
23716compiler=$CC
23717
23718
Reid Spencera773bd52006-08-04 18:18:08 +000023719# save warnings/boilerplate of simple test code
23720ac_outfile=conftest.$ac_objext
23721printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23722eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23723_lt_compiler_boilerplate=`cat conftest.err`
23724$rm conftest*
23725
23726ac_outfile=conftest.$ac_objext
23727printf "$lt_simple_link_test_code" >conftest.$ac_ext
23728eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23729_lt_linker_boilerplate=`cat conftest.err`
23730$rm conftest*
23731
23732
John Criswell47fdd832003-07-14 16:52:07 +000023733# Allow CC to be a program name with arguments.
23734lt_save_CC="$CC"
23735CC=${GCJ-"gcj"}
23736compiler=$CC
23737compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023738for cc_temp in $compiler""; do
23739 case $cc_temp in
23740 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23741 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23742 \-*) ;;
23743 *) break;;
23744 esac
23745done
23746cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23747
John Criswell47fdd832003-07-14 16:52:07 +000023748
23749# GCJ did not exist at the time GCC didn't implicitly link libc in.
23750archive_cmds_need_lc_GCJ=no
23751
Reid Spencera773bd52006-08-04 18:18:08 +000023752old_archive_cmds_GCJ=$old_archive_cmds
23753
John Criswell47fdd832003-07-14 16:52:07 +000023754
23755lt_prog_compiler_no_builtin_flag_GCJ=
23756
23757if test "$GCC" = yes; then
23758 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23759
Reid Spencer2706f8c2004-09-19 23:53:36 +000023760
Reid Spencera773bd52006-08-04 18:18:08 +000023761{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23762echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023763if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23764 echo $ECHO_N "(cached) $ECHO_C" >&6
23765else
23766 lt_cv_prog_compiler_rtti_exceptions=no
23767 ac_outfile=conftest.$ac_objext
23768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23769 lt_compiler_flag="-fno-rtti -fno-exceptions"
23770 # Insert the option either (1) after the last *FLAGS variable, or
23771 # (2) before a word containing "conftest.", or (3) at the end.
23772 # Note that $ac_compile itself does not contain backslashes and begins
23773 # with a dollar sign (not a hyphen), so the echo should work correctly.
23774 # The option is referenced via a variable to avoid confusing sed.
23775 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23778 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor1555a232009-06-16 20:12:29 +000023779 (eval echo "\"\$as_me:23779: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023780 (eval "$lt_compile" 2>conftest.err)
23781 ac_status=$?
23782 cat conftest.err >&5
Douglas Gregor1555a232009-06-16 20:12:29 +000023783 echo "$as_me:23783: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023784 if (exit $ac_status) && test -s "$ac_outfile"; then
23785 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023786 # So say no if there are warnings other than the usual output.
23787 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023790 lt_cv_prog_compiler_rtti_exceptions=yes
23791 fi
23792 fi
23793 $rm conftest*
23794
23795fi
Reid Spencera773bd52006-08-04 18:18:08 +000023796{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23797echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023798
23799if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23800 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23801else
23802 :
23803fi
23804
23805fi
23806
23807lt_prog_compiler_wl_GCJ=
23808lt_prog_compiler_pic_GCJ=
23809lt_prog_compiler_static_GCJ=
23810
Reid Spencera773bd52006-08-04 18:18:08 +000023811{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23812echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023813
23814 if test "$GCC" = yes; then
23815 lt_prog_compiler_wl_GCJ='-Wl,'
23816 lt_prog_compiler_static_GCJ='-static'
23817
23818 case $host_os in
23819 aix*)
23820 # All AIX code is PIC.
23821 if test "$host_cpu" = ia64; then
23822 # AIX 5 now supports IA64 processor
23823 lt_prog_compiler_static_GCJ='-Bstatic'
23824 fi
23825 ;;
23826
23827 amigaos*)
23828 # FIXME: we need at least 68020 code to build shared libraries, but
23829 # adding the `-m68020' flag to GCC prevents building anything better,
23830 # like `-m68040'.
23831 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23832 ;;
23833
23834 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23835 # PIC is the default for these OSes.
23836 ;;
23837
23838 mingw* | pw32* | os2*)
23839 # This hack is so that the source file can tell whether it is being
23840 # built for inclusion in a dll (and should export symbols for example).
23841 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23842 ;;
23843
23844 darwin* | rhapsody*)
23845 # PIC is the default on this platform
23846 # Common symbols not allowed in MH_DYLIB files
23847 lt_prog_compiler_pic_GCJ='-fno-common'
23848 ;;
23849
Reid Spencera773bd52006-08-04 18:18:08 +000023850 interix3*)
23851 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23852 # Instead, we relocate shared libraries at runtime.
23853 ;;
23854
John Criswell47fdd832003-07-14 16:52:07 +000023855 msdosdjgpp*)
23856 # Just because we use GCC doesn't mean we suddenly get shared libraries
23857 # on systems that don't support them.
23858 lt_prog_compiler_can_build_shared_GCJ=no
23859 enable_shared=no
23860 ;;
23861
23862 sysv4*MP*)
23863 if test -d /usr/nec; then
23864 lt_prog_compiler_pic_GCJ=-Kconform_pic
23865 fi
23866 ;;
23867
23868 hpux*)
23869 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23870 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023871 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023872 hppa*64*|ia64*)
23873 # +Z the default
23874 ;;
23875 *)
23876 lt_prog_compiler_pic_GCJ='-fPIC'
23877 ;;
23878 esac
23879 ;;
23880
23881 *)
23882 lt_prog_compiler_pic_GCJ='-fPIC'
23883 ;;
23884 esac
23885 else
23886 # PORTME Check for flag to pass linker flags through the system compiler.
23887 case $host_os in
23888 aix*)
23889 lt_prog_compiler_wl_GCJ='-Wl,'
23890 if test "$host_cpu" = ia64; then
23891 # AIX 5 now supports IA64 processor
23892 lt_prog_compiler_static_GCJ='-Bstatic'
23893 else
23894 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23895 fi
23896 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023897 darwin*)
23898 # PIC is the default on this platform
23899 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023900 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023901 xlc*)
23902 lt_prog_compiler_pic_GCJ='-qnocommon'
23903 lt_prog_compiler_wl_GCJ='-Wl,'
23904 ;;
23905 esac
23906 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023907
23908 mingw* | pw32* | os2*)
23909 # This hack is so that the source file can tell whether it is being
23910 # built for inclusion in a dll (and should export symbols for example).
23911 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23912 ;;
23913
23914 hpux9* | hpux10* | hpux11*)
23915 lt_prog_compiler_wl_GCJ='-Wl,'
23916 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23917 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023918 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023919 hppa*64*|ia64*)
23920 # +Z the default
23921 ;;
23922 *)
23923 lt_prog_compiler_pic_GCJ='+Z'
23924 ;;
23925 esac
23926 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23927 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23928 ;;
23929
23930 irix5* | irix6* | nonstopux*)
23931 lt_prog_compiler_wl_GCJ='-Wl,'
23932 # PIC (with -KPIC) is the default.
23933 lt_prog_compiler_static_GCJ='-non_shared'
23934 ;;
23935
23936 newsos6)
23937 lt_prog_compiler_pic_GCJ='-KPIC'
23938 lt_prog_compiler_static_GCJ='-Bstatic'
23939 ;;
23940
23941 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023942 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023943 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023944 lt_prog_compiler_wl_GCJ='-Wl,'
23945 lt_prog_compiler_pic_GCJ='-KPIC'
23946 lt_prog_compiler_static_GCJ='-static'
23947 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023948 pgcc* | pgf77* | pgf90* | pgf95*)
23949 # Portland Group compilers (*not* the Pentium gcc compiler,
23950 # which looks to be a dead project)
23951 lt_prog_compiler_wl_GCJ='-Wl,'
23952 lt_prog_compiler_pic_GCJ='-fpic'
23953 lt_prog_compiler_static_GCJ='-Bstatic'
23954 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023955 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023956 lt_prog_compiler_wl_GCJ='-Wl,'
23957 # All Alpha code is PIC.
23958 lt_prog_compiler_static_GCJ='-non_shared'
23959 ;;
23960 esac
23961 ;;
23962
23963 osf3* | osf4* | osf5*)
23964 lt_prog_compiler_wl_GCJ='-Wl,'
23965 # All OSF/1 code is PIC.
23966 lt_prog_compiler_static_GCJ='-non_shared'
23967 ;;
23968
John Criswell47fdd832003-07-14 16:52:07 +000023969 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023970 lt_prog_compiler_pic_GCJ='-KPIC'
23971 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023972 case $cc_basename in
23973 f77* | f90* | f95*)
23974 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23975 *)
23976 lt_prog_compiler_wl_GCJ='-Wl,';;
23977 esac
John Criswell47fdd832003-07-14 16:52:07 +000023978 ;;
23979
23980 sunos4*)
23981 lt_prog_compiler_wl_GCJ='-Qoption ld '
23982 lt_prog_compiler_pic_GCJ='-PIC'
23983 lt_prog_compiler_static_GCJ='-Bstatic'
23984 ;;
23985
Reid Spencera773bd52006-08-04 18:18:08 +000023986 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023987 lt_prog_compiler_wl_GCJ='-Wl,'
23988 lt_prog_compiler_pic_GCJ='-KPIC'
23989 lt_prog_compiler_static_GCJ='-Bstatic'
23990 ;;
23991
23992 sysv4*MP*)
23993 if test -d /usr/nec ;then
23994 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23995 lt_prog_compiler_static_GCJ='-Bstatic'
23996 fi
23997 ;;
23998
Reid Spencera773bd52006-08-04 18:18:08 +000023999 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24000 lt_prog_compiler_wl_GCJ='-Wl,'
24001 lt_prog_compiler_pic_GCJ='-KPIC'
24002 lt_prog_compiler_static_GCJ='-Bstatic'
24003 ;;
24004
24005 unicos*)
24006 lt_prog_compiler_wl_GCJ='-Wl,'
24007 lt_prog_compiler_can_build_shared_GCJ=no
24008 ;;
24009
John Criswell47fdd832003-07-14 16:52:07 +000024010 uts4*)
24011 lt_prog_compiler_pic_GCJ='-pic'
24012 lt_prog_compiler_static_GCJ='-Bstatic'
24013 ;;
24014
24015 *)
24016 lt_prog_compiler_can_build_shared_GCJ=no
24017 ;;
24018 esac
24019 fi
24020
Reid Spencera773bd52006-08-04 18:18:08 +000024021{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24022echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024023
24024#
24025# Check to make sure the PIC flag actually works.
24026#
24027if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024028
Reid Spencera773bd52006-08-04 18:18:08 +000024029{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24030echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024031if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24032 echo $ECHO_N "(cached) $ECHO_C" >&6
24033else
24034 lt_prog_compiler_pic_works_GCJ=no
24035 ac_outfile=conftest.$ac_objext
24036 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24037 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24038 # Insert the option either (1) after the last *FLAGS variable, or
24039 # (2) before a word containing "conftest.", or (3) at the end.
24040 # Note that $ac_compile itself does not contain backslashes and begins
24041 # with a dollar sign (not a hyphen), so the echo should work correctly.
24042 # The option is referenced via a variable to avoid confusing sed.
24043 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24046 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor1555a232009-06-16 20:12:29 +000024047 (eval echo "\"\$as_me:24047: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024048 (eval "$lt_compile" 2>conftest.err)
24049 ac_status=$?
24050 cat conftest.err >&5
Douglas Gregor1555a232009-06-16 20:12:29 +000024051 echo "$as_me:24051: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024052 if (exit $ac_status) && test -s "$ac_outfile"; then
24053 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024054 # So say no if there are warnings other than the usual output.
24055 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24056 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24057 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024058 lt_prog_compiler_pic_works_GCJ=yes
24059 fi
24060 fi
24061 $rm conftest*
24062
24063fi
Reid Spencera773bd52006-08-04 18:18:08 +000024064{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24065echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024066
24067if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24068 case $lt_prog_compiler_pic_GCJ in
24069 "" | " "*) ;;
24070 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24071 esac
24072else
24073 lt_prog_compiler_pic_GCJ=
24074 lt_prog_compiler_can_build_shared_GCJ=no
24075fi
24076
24077fi
Reid Spencera773bd52006-08-04 18:18:08 +000024078case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024079 # For platforms which do not support PIC, -DPIC is meaningless:
24080 *djgpp*)
24081 lt_prog_compiler_pic_GCJ=
24082 ;;
24083 *)
24084 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24085 ;;
24086esac
24087
Reid Spencera773bd52006-08-04 18:18:08 +000024088#
24089# Check to make sure the static flag actually works.
24090#
24091wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24092{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24093echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24094if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24095 echo $ECHO_N "(cached) $ECHO_C" >&6
24096else
24097 lt_prog_compiler_static_works_GCJ=no
24098 save_LDFLAGS="$LDFLAGS"
24099 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24100 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24101 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24102 # The linker can only warn and ignore the option if not recognized
24103 # So say no if there are warnings
24104 if test -s conftest.err; then
24105 # Append any errors to the config.log.
24106 cat conftest.err 1>&5
24107 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24108 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24109 if diff conftest.exp conftest.er2 >/dev/null; then
24110 lt_prog_compiler_static_works_GCJ=yes
24111 fi
24112 else
24113 lt_prog_compiler_static_works_GCJ=yes
24114 fi
24115 fi
24116 $rm conftest*
24117 LDFLAGS="$save_LDFLAGS"
24118
24119fi
24120{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24121echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24122
24123if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24124 :
24125else
24126 lt_prog_compiler_static_GCJ=
24127fi
24128
24129
24130{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24131echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024132if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24133 echo $ECHO_N "(cached) $ECHO_C" >&6
24134else
24135 lt_cv_prog_compiler_c_o_GCJ=no
24136 $rm -r conftest 2>/dev/null
24137 mkdir conftest
24138 cd conftest
24139 mkdir out
24140 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24141
John Criswell47fdd832003-07-14 16:52:07 +000024142 lt_compiler_flag="-o out/conftest2.$ac_objext"
24143 # Insert the option either (1) after the last *FLAGS variable, or
24144 # (2) before a word containing "conftest.", or (3) at the end.
24145 # Note that $ac_compile itself does not contain backslashes and begins
24146 # with a dollar sign (not a hyphen), so the echo should work correctly.
24147 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24150 -e 's:$: $lt_compiler_flag:'`
Douglas Gregor1555a232009-06-16 20:12:29 +000024151 (eval echo "\"\$as_me:24151: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024152 (eval "$lt_compile" 2>out/conftest.err)
24153 ac_status=$?
24154 cat out/conftest.err >&5
Douglas Gregor1555a232009-06-16 20:12:29 +000024155 echo "$as_me:24155: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024156 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24157 then
24158 # The compiler can only warn and ignore the option if not recognized
24159 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024160 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24161 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24162 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024163 lt_cv_prog_compiler_c_o_GCJ=yes
24164 fi
24165 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024166 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024167 $rm conftest*
24168 # SGI C++ compiler will create directory out/ii_files/ for
24169 # template instantiation
24170 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24171 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024172 cd ..
24173 rmdir conftest
24174 $rm conftest*
24175
24176fi
Reid Spencera773bd52006-08-04 18:18:08 +000024177{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24178echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024179
24180
24181hard_links="nottested"
24182if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24183 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024184 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24185echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024186 hard_links=yes
24187 $rm conftest*
24188 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24189 touch conftest.a
24190 ln conftest.a conftest.b 2>&5 || hard_links=no
24191 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024192 { echo "$as_me:$LINENO: result: $hard_links" >&5
24193echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024194 if test "$hard_links" = no; then
24195 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24196echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24197 need_locks=warn
24198 fi
24199else
24200 need_locks=no
24201fi
24202
Reid Spencera773bd52006-08-04 18:18:08 +000024203{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24204echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024205
24206 runpath_var=
24207 allow_undefined_flag_GCJ=
24208 enable_shared_with_static_runtimes_GCJ=no
24209 archive_cmds_GCJ=
24210 archive_expsym_cmds_GCJ=
24211 old_archive_From_new_cmds_GCJ=
24212 old_archive_from_expsyms_cmds_GCJ=
24213 export_dynamic_flag_spec_GCJ=
24214 whole_archive_flag_spec_GCJ=
24215 thread_safe_flag_spec_GCJ=
24216 hardcode_libdir_flag_spec_GCJ=
24217 hardcode_libdir_flag_spec_ld_GCJ=
24218 hardcode_libdir_separator_GCJ=
24219 hardcode_direct_GCJ=no
24220 hardcode_minus_L_GCJ=no
24221 hardcode_shlibpath_var_GCJ=unsupported
24222 link_all_deplibs_GCJ=unknown
24223 hardcode_automatic_GCJ=no
24224 module_cmds_GCJ=
24225 module_expsym_cmds_GCJ=
24226 always_export_symbols_GCJ=no
24227 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24228 # include_expsyms should be a list of space-separated symbols to be *always*
24229 # included in the symbol list
24230 include_expsyms_GCJ=
24231 # exclude_expsyms can be an extended regexp of symbols to exclude
24232 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24233 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24234 # as well as any symbol that contains `d'.
24235 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24237 # platforms (ab)use it in PIC code, but their linkers get confused if
24238 # the symbol is explicitly referenced. Since portable code cannot
24239 # rely on this symbol name, it's probably fine to never include it in
24240 # preloaded symbol tables.
24241 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024242 # Just being paranoid about ensuring that cc_basename is set.
24243 for cc_temp in $compiler""; do
24244 case $cc_temp in
24245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24247 \-*) ;;
24248 *) break;;
24249 esac
24250done
24251cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024252
24253 case $host_os in
24254 cygwin* | mingw* | pw32*)
24255 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24256 # When not using gcc, we currently assume that we are using
24257 # Microsoft Visual C++.
24258 if test "$GCC" != yes; then
24259 with_gnu_ld=no
24260 fi
24261 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024262 interix*)
24263 # we just hope/assume this is gcc and not c89 (= MSVC++)
24264 with_gnu_ld=yes
24265 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024266 openbsd*)
24267 with_gnu_ld=no
24268 ;;
24269 esac
24270
24271 ld_shlibs_GCJ=yes
24272 if test "$with_gnu_ld" = yes; then
24273 # If archive_cmds runs LD, not CC, wlarc should be empty
24274 wlarc='${wl}'
24275
Reid Spencera773bd52006-08-04 18:18:08 +000024276 # Set some defaults for GNU ld with shared library support. These
24277 # are reset later if shared libraries are not supported. Putting them
24278 # here allows them to be overridden if necessary.
24279 runpath_var=LD_RUN_PATH
24280 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24281 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24282 # ancient GNU ld didn't support --whole-archive et. al.
24283 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24284 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24285 else
24286 whole_archive_flag_spec_GCJ=
24287 fi
24288 supports_anon_versioning=no
24289 case `$LD -v 2>/dev/null` in
24290 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24291 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24292 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24293 *\ 2.11.*) ;; # other 2.11 versions
24294 *) supports_anon_versioning=yes ;;
24295 esac
24296
John Criswell47fdd832003-07-14 16:52:07 +000024297 # See if GNU ld supports shared libraries.
24298 case $host_os in
24299 aix3* | aix4* | aix5*)
24300 # On AIX/PPC, the GNU linker is very broken
24301 if test "$host_cpu" != ia64; then
24302 ld_shlibs_GCJ=no
24303 cat <<EOF 1>&2
24304
24305*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24306*** to be unable to reliably create shared libraries on AIX.
24307*** Therefore, libtool is disabling shared libraries support. If you
24308*** really care for shared libraries, you may want to modify your PATH
24309*** so that a non-GNU linker is found, and then restart.
24310
24311EOF
24312 fi
24313 ;;
24314
24315 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024316 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 +000024317 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24318 hardcode_minus_L_GCJ=yes
24319
24320 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24321 # that the semantics of dynamic libraries on AmigaOS, at least up
24322 # to version 4, is to share data among multiple programs linked
24323 # with the same dynamic library. Since this doesn't match the
24324 # behavior of shared libraries on other platforms, we can't use
24325 # them.
24326 ld_shlibs_GCJ=no
24327 ;;
24328
24329 beos*)
24330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24331 allow_undefined_flag_GCJ=unsupported
24332 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24333 # support --undefined. This deserves some investigation. FIXME
24334 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24335 else
24336 ld_shlibs_GCJ=no
24337 fi
24338 ;;
24339
24340 cygwin* | mingw* | pw32*)
24341 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24342 # as there is no search path for DLLs.
24343 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24344 allow_undefined_flag_GCJ=unsupported
24345 always_export_symbols_GCJ=no
24346 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024347 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 +000024348
24349 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024350 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 +000024351 # If the export-symbols file already is a .def file (1st line
24352 # is EXPORTS), use it as is; otherwise, prepend...
24353 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24354 cp $export_symbols $output_objdir/$soname.def;
24355 else
24356 echo EXPORTS > $output_objdir/$soname.def;
24357 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024358 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024359 $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 +000024360 else
Reid Spencera773bd52006-08-04 18:18:08 +000024361 ld_shlibs_GCJ=no
24362 fi
24363 ;;
24364
24365 interix3*)
24366 hardcode_direct_GCJ=no
24367 hardcode_shlibpath_var_GCJ=no
24368 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24369 export_dynamic_flag_spec_GCJ='${wl}-E'
24370 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24371 # Instead, shared libraries are loaded at an image base (0x10000000 by
24372 # default) and relocated if they conflict, which is a slow very memory
24373 # consuming and fragmenting process. To avoid this, we pick a random,
24374 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24375 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24376 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'
24377 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'
24378 ;;
24379
24380 linux*)
24381 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24382 tmp_addflag=
24383 case $cc_basename,$host_cpu in
24384 pgcc*) # Portland Group C compiler
24385 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'
24386 tmp_addflag=' $pic_flag'
24387 ;;
24388 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24389 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'
24390 tmp_addflag=' $pic_flag -Mnomain' ;;
24391 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24392 tmp_addflag=' -i_dynamic' ;;
24393 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24394 tmp_addflag=' -i_dynamic -nofor_main' ;;
24395 ifc* | ifort*) # Intel Fortran compiler
24396 tmp_addflag=' -nofor_main' ;;
24397 esac
24398 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24399
24400 if test $supports_anon_versioning = yes; then
24401 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24403 $echo "local: *; };" >> $output_objdir/$libname.ver~
24404 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24405 fi
24406 else
24407 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024408 fi
24409 ;;
24410
24411 netbsd*)
24412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24413 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24414 wlarc=
24415 else
24416 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24417 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24418 fi
24419 ;;
24420
Reid Spencera773bd52006-08-04 18:18:08 +000024421 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024422 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24423 ld_shlibs_GCJ=no
24424 cat <<EOF 1>&2
24425
24426*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24427*** create shared libraries on Solaris systems. Therefore, libtool
24428*** is disabling shared libraries support. We urge you to upgrade GNU
24429*** binutils to release 2.9.1 or newer. Another option is to modify
24430*** your PATH or compiler configuration so that the native linker is
24431*** used, and then restart.
24432
24433EOF
24434 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24435 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24436 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24437 else
24438 ld_shlibs_GCJ=no
24439 fi
24440 ;;
24441
Reid Spencera773bd52006-08-04 18:18:08 +000024442 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24443 case `$LD -v 2>&1` in
24444 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24445 ld_shlibs_GCJ=no
24446 cat <<_LT_EOF 1>&2
24447
24448*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24449*** reliably create shared libraries on SCO systems. Therefore, libtool
24450*** is disabling shared libraries support. We urge you to upgrade GNU
24451*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24452*** your PATH or compiler configuration so that the native linker is
24453*** used, and then restart.
24454
24455_LT_EOF
24456 ;;
24457 *)
24458 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24459 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24460 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24461 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24462 else
24463 ld_shlibs_GCJ=no
24464 fi
24465 ;;
24466 esac
24467 ;;
24468
John Criswell47fdd832003-07-14 16:52:07 +000024469 sunos4*)
24470 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24471 wlarc=
24472 hardcode_direct_GCJ=yes
24473 hardcode_shlibpath_var_GCJ=no
24474 ;;
24475
24476 *)
24477 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24478 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24479 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24480 else
24481 ld_shlibs_GCJ=no
24482 fi
24483 ;;
24484 esac
24485
Reid Spencera773bd52006-08-04 18:18:08 +000024486 if test "$ld_shlibs_GCJ" = no; then
24487 runpath_var=
24488 hardcode_libdir_flag_spec_GCJ=
24489 export_dynamic_flag_spec_GCJ=
24490 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024491 fi
24492 else
24493 # PORTME fill in a description of your system's linker (not GNU ld)
24494 case $host_os in
24495 aix3*)
24496 allow_undefined_flag_GCJ=unsupported
24497 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024498 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 +000024499 # Note: this linker hardcodes the directories in LIBPATH if there
24500 # are no directories specified by -L.
24501 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024502 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024503 # Neither direct hardcoding nor static linking is supported with a
24504 # broken collect2.
24505 hardcode_direct_GCJ=unsupported
24506 fi
24507 ;;
24508
24509 aix4* | aix5*)
24510 if test "$host_cpu" = ia64; then
24511 # On IA64, the linker does run time linking by default, so we don't
24512 # have to do anything special.
24513 aix_use_runtimelinking=no
24514 exp_sym_flag='-Bexport'
24515 no_entry_flag=""
24516 else
24517 # If we're using GNU nm, then we don't want the "-C" option.
24518 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24519 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24520 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'
24521 else
24522 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'
24523 fi
24524 aix_use_runtimelinking=no
24525
24526 # Test if we are trying to use run time linking or normal
24527 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24528 # need to do runtime linking.
24529 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24530 for ld_flag in $LDFLAGS; do
24531 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24532 aix_use_runtimelinking=yes
24533 break
24534 fi
24535 done
Reid Spencera773bd52006-08-04 18:18:08 +000024536 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024537 esac
24538
24539 exp_sym_flag='-bexport'
24540 no_entry_flag='-bnoentry'
24541 fi
24542
24543 # When large executables or shared objects are built, AIX ld can
24544 # have problems creating the table of contents. If linking a library
24545 # or program results in "error TOC overflow" add -mminimal-toc to
24546 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24547 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24548
24549 archive_cmds_GCJ=''
24550 hardcode_direct_GCJ=yes
24551 hardcode_libdir_separator_GCJ=':'
24552 link_all_deplibs_GCJ=yes
24553
24554 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024555 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024556 # We only want to do this on AIX 4.2 and lower, the check
24557 # below for broken collect2 doesn't work under 4.3+
24558 collect2name=`${CC} -print-prog-name=collect2`
24559 if test -f "$collect2name" && \
24560 strings "$collect2name" | grep resolve_lib_name >/dev/null
24561 then
24562 # We have reworked collect2
24563 hardcode_direct_GCJ=yes
24564 else
24565 # We have old collect2
24566 hardcode_direct_GCJ=unsupported
24567 # It fails to find uninstalled libraries when the uninstalled
24568 # path is not listed in the libpath. Setting hardcode_minus_L
24569 # to unsupported forces relinking
24570 hardcode_minus_L_GCJ=yes
24571 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24572 hardcode_libdir_separator_GCJ=
24573 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024574 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024575 esac
24576 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024577 if test "$aix_use_runtimelinking" = yes; then
24578 shared_flag="$shared_flag "'${wl}-G'
24579 fi
John Criswell47fdd832003-07-14 16:52:07 +000024580 else
24581 # not using gcc
24582 if test "$host_cpu" = ia64; then
24583 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24584 # chokes on -Wl,-G. The following line is correct:
24585 shared_flag='-G'
24586 else
Reid Spencera773bd52006-08-04 18:18:08 +000024587 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024588 shared_flag='${wl}-G'
24589 else
24590 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024591 fi
John Criswell47fdd832003-07-14 16:52:07 +000024592 fi
24593 fi
24594
24595 # It seems that -bexpall does not export symbols beginning with
24596 # underscore (_), so it is better to generate a list of symbols to export.
24597 always_export_symbols_GCJ=yes
24598 if test "$aix_use_runtimelinking" = yes; then
24599 # Warning - without using the other runtime loading flags (-brtl),
24600 # -berok will link without error, but may produce a broken library.
24601 allow_undefined_flag_GCJ='-berok'
24602 # Determine the default libpath from the value encoded in an empty executable.
24603 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024604/* confdefs.h. */
24605_ACEOF
24606cat confdefs.h >>conftest.$ac_ext
24607cat >>conftest.$ac_ext <<_ACEOF
24608/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024609
John Criswell47fdd832003-07-14 16:52:07 +000024610int
24611main ()
24612{
24613
24614 ;
24615 return 0;
24616}
24617_ACEOF
24618rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024619if { (ac_try="$ac_link"
24620case "(($ac_try" in
24621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24622 *) ac_try_echo=$ac_try;;
24623esac
24624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24625 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024626 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024627 grep -v '^ *+' conftest.er1 >conftest.err
24628 rm -f conftest.er1
24629 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024631 (exit $ac_status); } &&
24632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24633 { (case "(($ac_try" in
24634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24635 *) ac_try_echo=$ac_try;;
24636esac
24637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24638 (eval "$ac_try") 2>&5
24639 ac_status=$?
24640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641 (exit $ac_status); }; } &&
24642 { ac_try='test -s conftest$ac_exeext'
24643 { (case "(($ac_try" in
24644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645 *) ac_try_echo=$ac_try;;
24646esac
24647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648 (eval "$ac_try") 2>&5
24649 ac_status=$?
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024652
24653aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24654}'`
24655# Check for a 64-bit object if we didn't find anything.
24656if 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; }
24657}'`; fi
24658else
24659 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024660sed 's/^/| /' conftest.$ac_ext >&5
24661
Reid Spencera773bd52006-08-04 18:18:08 +000024662
John Criswell47fdd832003-07-14 16:52:07 +000024663fi
Reid Spencera773bd52006-08-04 18:18:08 +000024664
Bill Wendlingebcceee2009-04-18 11:20:33 +000024665rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024666 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024667if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24668
24669 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024670 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 +000024671 else
24672 if test "$host_cpu" = ia64; then
24673 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24674 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024675 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 +000024676 else
24677 # Determine the default libpath from the value encoded in an empty executable.
24678 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024679/* confdefs.h. */
24680_ACEOF
24681cat confdefs.h >>conftest.$ac_ext
24682cat >>conftest.$ac_ext <<_ACEOF
24683/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024684
John Criswell47fdd832003-07-14 16:52:07 +000024685int
24686main ()
24687{
24688
24689 ;
24690 return 0;
24691}
24692_ACEOF
24693rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024694if { (ac_try="$ac_link"
24695case "(($ac_try" in
24696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697 *) ac_try_echo=$ac_try;;
24698esac
24699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24700 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024701 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024702 grep -v '^ *+' conftest.er1 >conftest.err
24703 rm -f conftest.er1
24704 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000024706 (exit $ac_status); } &&
24707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24708 { (case "(($ac_try" in
24709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24710 *) ac_try_echo=$ac_try;;
24711esac
24712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24713 (eval "$ac_try") 2>&5
24714 ac_status=$?
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); }; } &&
24717 { ac_try='test -s conftest$ac_exeext'
24718 { (case "(($ac_try" in
24719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24720 *) ac_try_echo=$ac_try;;
24721esac
24722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24723 (eval "$ac_try") 2>&5
24724 ac_status=$?
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024727
24728aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24729}'`
24730# Check for a 64-bit object if we didn't find anything.
24731if 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; }
24732}'`; fi
24733else
24734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024735sed 's/^/| /' conftest.$ac_ext >&5
24736
Reid Spencera773bd52006-08-04 18:18:08 +000024737
John Criswell47fdd832003-07-14 16:52:07 +000024738fi
Reid Spencera773bd52006-08-04 18:18:08 +000024739
Bill Wendlingebcceee2009-04-18 11:20:33 +000024740rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024741 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024742if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24743
24744 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24745 # Warning - without using the other run time loading flags,
24746 # -berok will link without error, but may produce a broken library.
24747 no_undefined_flag_GCJ=' ${wl}-bernotok'
24748 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024749 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024750 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024751 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024752 # This is similar to how AIX traditionally builds its shared libraries.
24753 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 +000024754 fi
24755 fi
24756 ;;
24757
24758 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024759 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 +000024760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24761 hardcode_minus_L_GCJ=yes
24762 # see comment about different semantics on the GNU ld section
24763 ld_shlibs_GCJ=no
24764 ;;
24765
Reid Spencer2706f8c2004-09-19 23:53:36 +000024766 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024767 export_dynamic_flag_spec_GCJ=-rdynamic
24768 ;;
24769
24770 cygwin* | mingw* | pw32*)
24771 # When not using gcc, we currently assume that we are using
24772 # Microsoft Visual C++.
24773 # hardcode_libdir_flag_spec is actually meaningless, as there is
24774 # no search path for DLLs.
24775 hardcode_libdir_flag_spec_GCJ=' '
24776 allow_undefined_flag_GCJ=unsupported
24777 # Tell ltmain to make .lib files, not .a files.
24778 libext=lib
24779 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024780 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024781 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024782 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 +000024783 # The linker will automatically build a .lib file if we build a DLL.
24784 old_archive_From_new_cmds_GCJ='true'
24785 # FIXME: Should let the user specify the lib program.
24786 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024787 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024788 enable_shared_with_static_runtimes_GCJ=yes
24789 ;;
24790
24791 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024792 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024793 rhapsody* | darwin1.[012])
24794 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24795 ;;
24796 *) # Darwin 1.3 on
24797 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24798 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24799 else
24800 case ${MACOSX_DEPLOYMENT_TARGET} in
24801 10.[012])
24802 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24803 ;;
24804 10.*)
24805 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24806 ;;
24807 esac
24808 fi
24809 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024810 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024811 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024812 hardcode_direct_GCJ=no
24813 hardcode_automatic_GCJ=yes
24814 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024815 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024816 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024817 if test "$GCC" = yes ; then
24818 output_verbose_link_cmd='echo'
24819 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24820 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024821 # 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 +000024822 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}'
24823 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 +000024824 else
Reid Spencera773bd52006-08-04 18:18:08 +000024825 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024826 xlc*)
24827 output_verbose_link_cmd='echo'
24828 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24829 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024830 # 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 +000024831 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}'
24832 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 +000024833 ;;
24834 *)
24835 ld_shlibs_GCJ=no
24836 ;;
24837 esac
John Criswell47fdd832003-07-14 16:52:07 +000024838 fi
24839 ;;
24840
24841 dgux*)
24842 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24843 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24844 hardcode_shlibpath_var_GCJ=no
24845 ;;
24846
24847 freebsd1*)
24848 ld_shlibs_GCJ=no
24849 ;;
24850
24851 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24852 # support. Future versions do this automatically, but an explicit c++rt0.o
24853 # does not break anything, and helps significantly (at the cost of a little
24854 # extra space).
24855 freebsd2.2*)
24856 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24857 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24858 hardcode_direct_GCJ=yes
24859 hardcode_shlibpath_var_GCJ=no
24860 ;;
24861
24862 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24863 freebsd2*)
24864 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24865 hardcode_direct_GCJ=yes
24866 hardcode_minus_L_GCJ=yes
24867 hardcode_shlibpath_var_GCJ=no
24868 ;;
24869
24870 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024871 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024872 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24873 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24874 hardcode_direct_GCJ=yes
24875 hardcode_shlibpath_var_GCJ=no
24876 ;;
24877
24878 hpux9*)
24879 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024880 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 +000024881 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024882 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 +000024883 fi
24884 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24885 hardcode_libdir_separator_GCJ=:
24886 hardcode_direct_GCJ=yes
24887
24888 # hardcode_minus_L: Not really in the search PATH,
24889 # but as the default location of the library.
24890 hardcode_minus_L_GCJ=yes
24891 export_dynamic_flag_spec_GCJ='${wl}-E'
24892 ;;
24893
Reid Spencera773bd52006-08-04 18:18:08 +000024894 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024895 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024896 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24897 else
24898 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24899 fi
24900 if test "$with_gnu_ld" = no; then
24901 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24902 hardcode_libdir_separator_GCJ=:
24903
24904 hardcode_direct_GCJ=yes
24905 export_dynamic_flag_spec_GCJ='${wl}-E'
24906
24907 # hardcode_minus_L: Not really in the search PATH,
24908 # but as the default location of the library.
24909 hardcode_minus_L_GCJ=yes
24910 fi
24911 ;;
24912
24913 hpux11*)
24914 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24915 case $host_cpu in
24916 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024917 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24918 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024919 ia64*)
24920 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24921 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024922 *)
24923 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24924 ;;
24925 esac
24926 else
Reid Spencera773bd52006-08-04 18:18:08 +000024927 case $host_cpu in
24928 hppa*64*)
24929 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24930 ;;
24931 ia64*)
24932 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024933 ;;
24934 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024935 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 +000024936 ;;
24937 esac
24938 fi
24939 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024940 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24941 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024942
Reid Spencera773bd52006-08-04 18:18:08 +000024943 case $host_cpu in
24944 hppa*64*|ia64*)
24945 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24946 hardcode_direct_GCJ=no
24947 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024948 ;;
24949 *)
John Criswell47fdd832003-07-14 16:52:07 +000024950 hardcode_direct_GCJ=yes
24951 export_dynamic_flag_spec_GCJ='${wl}-E'
24952
24953 # hardcode_minus_L: Not really in the search PATH,
24954 # but as the default location of the library.
24955 hardcode_minus_L_GCJ=yes
24956 ;;
24957 esac
24958 fi
24959 ;;
24960
24961 irix5* | irix6* | nonstopux*)
24962 if test "$GCC" = yes; then
24963 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'
24964 else
24965 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'
24966 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24967 fi
24968 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24969 hardcode_libdir_separator_GCJ=:
24970 link_all_deplibs_GCJ=yes
24971 ;;
24972
24973 netbsd*)
24974 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24975 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24976 else
24977 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24978 fi
24979 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24980 hardcode_direct_GCJ=yes
24981 hardcode_shlibpath_var_GCJ=no
24982 ;;
24983
24984 newsos6)
24985 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24986 hardcode_direct_GCJ=yes
24987 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24988 hardcode_libdir_separator_GCJ=:
24989 hardcode_shlibpath_var_GCJ=no
24990 ;;
24991
24992 openbsd*)
24993 hardcode_direct_GCJ=yes
24994 hardcode_shlibpath_var_GCJ=no
24995 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24996 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024997 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 +000024998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24999 export_dynamic_flag_spec_GCJ='${wl}-E'
25000 else
25001 case $host_os in
25002 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25003 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25004 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25005 ;;
25006 *)
25007 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25009 ;;
25010 esac
25011 fi
25012 ;;
25013
25014 os2*)
25015 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25016 hardcode_minus_L_GCJ=yes
25017 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025018 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 +000025019 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25020 ;;
25021
25022 osf3*)
25023 if test "$GCC" = yes; then
25024 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25025 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'
25026 else
25027 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25028 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'
25029 fi
25030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25031 hardcode_libdir_separator_GCJ=:
25032 ;;
25033
25034 osf4* | osf5*) # as osf3* with the addition of -msym flag
25035 if test "$GCC" = yes; then
25036 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25037 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'
25038 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25039 else
25040 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25041 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 +000025042 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 +000025043 $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 +000025044
John Criswell47fdd832003-07-14 16:52:07 +000025045 # Both c and cxx compiler support -rpath directly
25046 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25047 fi
25048 hardcode_libdir_separator_GCJ=:
25049 ;;
25050
John Criswell47fdd832003-07-14 16:52:07 +000025051 solaris*)
25052 no_undefined_flag_GCJ=' -z text'
25053 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025054 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025055 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025056 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25057 $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 +000025058 else
Reid Spencera773bd52006-08-04 18:18:08 +000025059 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025060 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025061 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25062 $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 +000025063 fi
25064 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25065 hardcode_shlibpath_var_GCJ=no
25066 case $host_os in
25067 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025068 *)
25069 # The compiler driver will combine linker options so we
25070 # cannot just pass the convience library names through
25071 # without $wl, iff we do not link with $LD.
25072 # Luckily, gcc supports the same syntax we need for Sun Studio.
25073 # Supported since Solaris 2.6 (maybe 2.5.1?)
25074 case $wlarc in
25075 '')
25076 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25077 *)
25078 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' ;;
25079 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025080 esac
25081 link_all_deplibs_GCJ=yes
25082 ;;
25083
25084 sunos4*)
25085 if test "x$host_vendor" = xsequent; then
25086 # Use $CC to link under sequent, because it throws in some extra .o
25087 # files that make .init and .fini sections work.
25088 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25089 else
25090 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25091 fi
25092 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25093 hardcode_direct_GCJ=yes
25094 hardcode_minus_L_GCJ=yes
25095 hardcode_shlibpath_var_GCJ=no
25096 ;;
25097
25098 sysv4)
25099 case $host_vendor in
25100 sni)
25101 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25102 hardcode_direct_GCJ=yes # is this really true???
25103 ;;
25104 siemens)
25105 ## LD is ld it makes a PLAMLIB
25106 ## CC just makes a GrossModule.
25107 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25108 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25109 hardcode_direct_GCJ=no
25110 ;;
25111 motorola)
25112 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25113 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25114 ;;
25115 esac
25116 runpath_var='LD_RUN_PATH'
25117 hardcode_shlibpath_var_GCJ=no
25118 ;;
25119
25120 sysv4.3*)
25121 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25122 hardcode_shlibpath_var_GCJ=no
25123 export_dynamic_flag_spec_GCJ='-Bexport'
25124 ;;
25125
25126 sysv4*MP*)
25127 if test -d /usr/nec; then
25128 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25129 hardcode_shlibpath_var_GCJ=no
25130 runpath_var=LD_RUN_PATH
25131 hardcode_runpath_var=yes
25132 ld_shlibs_GCJ=yes
25133 fi
25134 ;;
25135
Reid Spencera773bd52006-08-04 18:18:08 +000025136 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25137 no_undefined_flag_GCJ='${wl}-z,text'
25138 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025139 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025140 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025141
John Criswell47fdd832003-07-14 16:52:07 +000025142 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025143 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25144 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 +000025145 else
Reid Spencera773bd52006-08-04 18:18:08 +000025146 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25147 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 +000025148 fi
John Criswell47fdd832003-07-14 16:52:07 +000025149 ;;
25150
Reid Spencera773bd52006-08-04 18:18:08 +000025151 sysv5* | sco3.2v5* | sco5v6*)
25152 # Note: We can NOT use -z defs as we might desire, because we do not
25153 # link with -lc, and that would cause any symbols used from libc to
25154 # always be unresolved, which means just about no library would
25155 # ever link correctly. If we're not using GNU ld we use -z text
25156 # though, which does catch some bad symbols but isn't as heavy-handed
25157 # as -z defs.
25158 no_undefined_flag_GCJ='${wl}-z,text'
25159 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25160 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025161 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025162 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25163 hardcode_libdir_separator_GCJ=':'
25164 link_all_deplibs_GCJ=yes
25165 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025166 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025167
25168 if test "$GCC" = yes; then
25169 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25170 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25171 else
25172 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25173 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25174 fi
John Criswell47fdd832003-07-14 16:52:07 +000025175 ;;
25176
25177 uts4*)
25178 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25179 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25180 hardcode_shlibpath_var_GCJ=no
25181 ;;
25182
25183 *)
25184 ld_shlibs_GCJ=no
25185 ;;
25186 esac
25187 fi
25188
Reid Spencera773bd52006-08-04 18:18:08 +000025189{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25190echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025191test "$ld_shlibs_GCJ" = no && can_build_shared=no
25192
John Criswell47fdd832003-07-14 16:52:07 +000025193#
25194# Do we need to explicitly link libc?
25195#
25196case "x$archive_cmds_need_lc_GCJ" in
25197x|xyes)
25198 # Assume -lc should be added
25199 archive_cmds_need_lc_GCJ=yes
25200
25201 if test "$enable_shared" = yes && test "$GCC" = yes; then
25202 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025203 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025204 # FIXME: we may have to deal with multi-command sequences.
25205 ;;
25206 '$CC '*)
25207 # Test whether the compiler implicitly links with -lc since on some
25208 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25209 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025210 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25211echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025212 $rm conftest*
25213 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25214
25215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25216 (eval $ac_compile) 2>&5
25217 ac_status=$?
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); } 2>conftest.err; then
25220 soname=conftest
25221 lib=conftest
25222 libobjs=conftest.$ac_objext
25223 deplibs=
25224 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025225 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025226 compiler_flags=-v
25227 linker_flags=-v
25228 verstring=
25229 output_objdir=.
25230 libname=conftest
25231 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25232 allow_undefined_flag_GCJ=
25233 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25234 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25235 ac_status=$?
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }
25238 then
25239 archive_cmds_need_lc_GCJ=no
25240 else
25241 archive_cmds_need_lc_GCJ=yes
25242 fi
25243 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25244 else
25245 cat conftest.err 1>&5
25246 fi
25247 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025248 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25249echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025250 ;;
25251 esac
25252 fi
25253 ;;
25254esac
25255
Reid Spencera773bd52006-08-04 18:18:08 +000025256{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25257echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025258library_names_spec=
25259libname_spec='lib$name'
25260soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025261shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025262postinstall_cmds=
25263postuninstall_cmds=
25264finish_cmds=
25265finish_eval=
25266shlibpath_var=
25267shlibpath_overrides_runpath=unknown
25268version_type=none
25269dynamic_linker="$host_os ld.so"
25270sys_lib_dlsearch_path_spec="/lib /usr/lib"
25271if test "$GCC" = yes; then
25272 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25273 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25274 # if the path contains ";" then we assume it to be the separator
25275 # otherwise default to the standard path separator (i.e. ":") - it is
25276 # assumed that no part of a normal pathname contains ";" but that should
25277 # okay in the real world where ";" in dirpaths is itself problematic.
25278 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25279 else
25280 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25281 fi
25282else
25283 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25284fi
25285need_lib_prefix=unknown
25286hardcode_into_libs=no
25287
25288# when you set need_version to no, make sure it does not cause -set_version
25289# flags to be left without arguments
25290need_version=unknown
25291
25292case $host_os in
25293aix3*)
25294 version_type=linux
25295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25296 shlibpath_var=LIBPATH
25297
25298 # AIX 3 has no versioning support, so we append a major version to the name.
25299 soname_spec='${libname}${release}${shared_ext}$major'
25300 ;;
25301
25302aix4* | aix5*)
25303 version_type=linux
25304 need_lib_prefix=no
25305 need_version=no
25306 hardcode_into_libs=yes
25307 if test "$host_cpu" = ia64; then
25308 # AIX 5 supports IA64
25309 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25310 shlibpath_var=LD_LIBRARY_PATH
25311 else
25312 # With GCC up to 2.95.x, collect2 would create an import file
25313 # for dependence libraries. The import file would start with
25314 # the line `#! .'. This would cause the generated library to
25315 # depend on `.', always an invalid library. This was fixed in
25316 # development snapshots of GCC prior to 3.0.
25317 case $host_os in
25318 aix4 | aix4.[01] | aix4.[01].*)
25319 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25320 echo ' yes '
25321 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25322 :
25323 else
25324 can_build_shared=no
25325 fi
25326 ;;
25327 esac
25328 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25329 # soname into executable. Probably we can add versioning support to
25330 # collect2, so additional links can be useful in future.
25331 if test "$aix_use_runtimelinking" = yes; then
25332 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25333 # instead of lib<name>.a to let people know that these are not
25334 # typical AIX shared libraries.
25335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25336 else
25337 # We preserve .a as extension for shared libraries through AIX4.2
25338 # and later when we are not doing run time linking.
25339 library_names_spec='${libname}${release}.a $libname.a'
25340 soname_spec='${libname}${release}${shared_ext}$major'
25341 fi
25342 shlibpath_var=LIBPATH
25343 fi
25344 ;;
25345
25346amigaos*)
25347 library_names_spec='$libname.ixlibrary $libname.a'
25348 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025349 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 +000025350 ;;
25351
25352beos*)
25353 library_names_spec='${libname}${shared_ext}'
25354 dynamic_linker="$host_os ld.so"
25355 shlibpath_var=LIBRARY_PATH
25356 ;;
25357
Reid Spencer2706f8c2004-09-19 23:53:36 +000025358bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025359 version_type=linux
25360 need_version=no
25361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25362 soname_spec='${libname}${release}${shared_ext}$major'
25363 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25364 shlibpath_var=LD_LIBRARY_PATH
25365 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25366 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25367 # the default ld.so.conf also contains /usr/contrib/lib and
25368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25369 # libtool to hard-code these into programs
25370 ;;
25371
25372cygwin* | mingw* | pw32*)
25373 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025374 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025375 need_version=no
25376 need_lib_prefix=no
25377
25378 case $GCC,$host_os in
25379 yes,cygwin* | yes,mingw* | yes,pw32*)
25380 library_names_spec='$libname.dll.a'
25381 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025382 postinstall_cmds='base_file=`basename \${file}`~
25383 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25384 dldir=$destdir/`dirname \$dlpath`~
25385 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025386 $install_prog $dir/$dlname \$dldir/$dlname~
25387 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25389 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025390 $rm \$dlpath'
25391 shlibpath_overrides_runpath=yes
25392
25393 case $host_os in
25394 cygwin*)
25395 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25396 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 +000025397 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025398 ;;
25399 mingw*)
25400 # MinGW DLLs use traditional 'lib' prefix
25401 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25402 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25403 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25404 # It is most probably a Windows format PATH printed by
25405 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25406 # path with ; separators, and with drive letters. We can handle the
25407 # drive letters (cygwin fileutils understands them), so leave them,
25408 # especially as we might pass files found there to a mingw objdump,
25409 # which wouldn't understand a cygwinified path. Ahh.
25410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25411 else
25412 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25413 fi
25414 ;;
25415 pw32*)
25416 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025417 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 +000025418 ;;
25419 esac
25420 ;;
25421
25422 *)
25423 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25424 ;;
25425 esac
25426 dynamic_linker='Win32 ld.exe'
25427 # FIXME: first we should search . and the directory the executable is in
25428 shlibpath_var=PATH
25429 ;;
25430
25431darwin* | rhapsody*)
25432 dynamic_linker="$host_os dyld"
25433 version_type=darwin
25434 need_lib_prefix=no
25435 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025436 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025437 soname_spec='${libname}${release}${major}$shared_ext'
25438 shlibpath_overrides_runpath=yes
25439 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025440 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025441 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025442 if test "$GCC" = yes; then
25443 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"`
25444 else
25445 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025446 fi
25447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25448 ;;
25449
25450dgux*)
25451 version_type=linux
25452 need_lib_prefix=no
25453 need_version=no
25454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25455 soname_spec='${libname}${release}${shared_ext}$major'
25456 shlibpath_var=LD_LIBRARY_PATH
25457 ;;
25458
25459freebsd1*)
25460 dynamic_linker=no
25461 ;;
25462
Reid Spencer2706f8c2004-09-19 23:53:36 +000025463kfreebsd*-gnu)
25464 version_type=linux
25465 need_lib_prefix=no
25466 need_version=no
25467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25468 soname_spec='${libname}${release}${shared_ext}$major'
25469 shlibpath_var=LD_LIBRARY_PATH
25470 shlibpath_overrides_runpath=no
25471 hardcode_into_libs=yes
25472 dynamic_linker='GNU ld.so'
25473 ;;
25474
Reid Spencera773bd52006-08-04 18:18:08 +000025475freebsd* | dragonfly*)
25476 # DragonFly does not have aout. When/if they implement a new
25477 # versioning mechanism, adjust this.
25478 if test -x /usr/bin/objformat; then
25479 objformat=`/usr/bin/objformat`
25480 else
25481 case $host_os in
25482 freebsd[123]*) objformat=aout ;;
25483 *) objformat=elf ;;
25484 esac
25485 fi
John Criswell47fdd832003-07-14 16:52:07 +000025486 version_type=freebsd-$objformat
25487 case $version_type in
25488 freebsd-elf*)
25489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25490 need_version=no
25491 need_lib_prefix=no
25492 ;;
25493 freebsd-*)
25494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25495 need_version=yes
25496 ;;
25497 esac
25498 shlibpath_var=LD_LIBRARY_PATH
25499 case $host_os in
25500 freebsd2*)
25501 shlibpath_overrides_runpath=yes
25502 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025503 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025504 shlibpath_overrides_runpath=yes
25505 hardcode_into_libs=yes
25506 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025507 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25508 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025509 shlibpath_overrides_runpath=no
25510 hardcode_into_libs=yes
25511 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025512 freebsd*) # from 4.6 on
25513 shlibpath_overrides_runpath=yes
25514 hardcode_into_libs=yes
25515 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025516 esac
25517 ;;
25518
25519gnu*)
25520 version_type=linux
25521 need_lib_prefix=no
25522 need_version=no
25523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25524 soname_spec='${libname}${release}${shared_ext}$major'
25525 shlibpath_var=LD_LIBRARY_PATH
25526 hardcode_into_libs=yes
25527 ;;
25528
25529hpux9* | hpux10* | hpux11*)
25530 # Give a soname corresponding to the major version so that dld.sl refuses to
25531 # link against other versions.
25532 version_type=sunos
25533 need_lib_prefix=no
25534 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025535 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025536 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025537 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025538 hardcode_into_libs=yes
25539 dynamic_linker="$host_os dld.so"
25540 shlibpath_var=LD_LIBRARY_PATH
25541 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25543 soname_spec='${libname}${release}${shared_ext}$major'
25544 if test "X$HPUX_IA64_MODE" = X32; then
25545 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25546 else
25547 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25548 fi
25549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25550 ;;
25551 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025552 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025553 hardcode_into_libs=yes
25554 dynamic_linker="$host_os dld.sl"
25555 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25556 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25558 soname_spec='${libname}${release}${shared_ext}$major'
25559 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25560 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25561 ;;
25562 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025563 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025564 dynamic_linker="$host_os dld.sl"
25565 shlibpath_var=SHLIB_PATH
25566 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25568 soname_spec='${libname}${release}${shared_ext}$major'
25569 ;;
25570 esac
25571 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25572 postinstall_cmds='chmod 555 $lib'
25573 ;;
25574
Reid Spencera773bd52006-08-04 18:18:08 +000025575interix3*)
25576 version_type=linux
25577 need_lib_prefix=no
25578 need_version=no
25579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25580 soname_spec='${libname}${release}${shared_ext}$major'
25581 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25582 shlibpath_var=LD_LIBRARY_PATH
25583 shlibpath_overrides_runpath=no
25584 hardcode_into_libs=yes
25585 ;;
25586
John Criswell47fdd832003-07-14 16:52:07 +000025587irix5* | irix6* | nonstopux*)
25588 case $host_os in
25589 nonstopux*) version_type=nonstopux ;;
25590 *)
25591 if test "$lt_cv_prog_gnu_ld" = yes; then
25592 version_type=linux
25593 else
25594 version_type=irix
25595 fi ;;
25596 esac
25597 need_lib_prefix=no
25598 need_version=no
25599 soname_spec='${libname}${release}${shared_ext}$major'
25600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25601 case $host_os in
25602 irix5* | nonstopux*)
25603 libsuff= shlibsuff=
25604 ;;
25605 *)
25606 case $LD in # libtool.m4 will add one of these switches to LD
25607 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25608 libsuff= shlibsuff= libmagic=32-bit;;
25609 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25610 libsuff=32 shlibsuff=N32 libmagic=N32;;
25611 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25612 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25613 *) libsuff= shlibsuff= libmagic=never-match;;
25614 esac
25615 ;;
25616 esac
25617 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25618 shlibpath_overrides_runpath=no
25619 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25620 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25621 hardcode_into_libs=yes
25622 ;;
25623
25624# No shared lib support for Linux oldld, aout, or coff.
25625linux*oldld* | linux*aout* | linux*coff*)
25626 dynamic_linker=no
25627 ;;
25628
25629# This must be Linux ELF.
25630linux*)
25631 version_type=linux
25632 need_lib_prefix=no
25633 need_version=no
25634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25635 soname_spec='${libname}${release}${shared_ext}$major'
25636 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25637 shlibpath_var=LD_LIBRARY_PATH
25638 shlibpath_overrides_runpath=no
25639 # This implies no fast_install, which is unacceptable.
25640 # Some rework will be needed to allow for fast_install
25641 # before this can be enabled.
25642 hardcode_into_libs=yes
25643
Reid Spencer2706f8c2004-09-19 23:53:36 +000025644 # Append ld.so.conf contents to the search path
25645 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025646 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 +000025647 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25648 fi
25649
John Criswell47fdd832003-07-14 16:52:07 +000025650 # We used to test for /lib/ld.so.1 and disable shared libraries on
25651 # powerpc, because MkLinux only supported shared libraries with the
25652 # GNU dynamic linker. Since this was broken with cross compilers,
25653 # most powerpc-linux boxes support dynamic linking these days and
25654 # people can always --disable-shared, the test was removed, and we
25655 # assume the GNU/Linux dynamic linker is in use.
25656 dynamic_linker='GNU/Linux ld.so'
25657 ;;
25658
Reid Spencer2706f8c2004-09-19 23:53:36 +000025659knetbsd*-gnu)
25660 version_type=linux
25661 need_lib_prefix=no
25662 need_version=no
25663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25664 soname_spec='${libname}${release}${shared_ext}$major'
25665 shlibpath_var=LD_LIBRARY_PATH
25666 shlibpath_overrides_runpath=no
25667 hardcode_into_libs=yes
25668 dynamic_linker='GNU ld.so'
25669 ;;
25670
John Criswell47fdd832003-07-14 16:52:07 +000025671netbsd*)
25672 version_type=sunos
25673 need_lib_prefix=no
25674 need_version=no
25675 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25677 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25678 dynamic_linker='NetBSD (a.out) ld.so'
25679 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025681 soname_spec='${libname}${release}${shared_ext}$major'
25682 dynamic_linker='NetBSD ld.elf_so'
25683 fi
25684 shlibpath_var=LD_LIBRARY_PATH
25685 shlibpath_overrides_runpath=yes
25686 hardcode_into_libs=yes
25687 ;;
25688
25689newsos6)
25690 version_type=linux
25691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25692 shlibpath_var=LD_LIBRARY_PATH
25693 shlibpath_overrides_runpath=yes
25694 ;;
25695
Reid Spencer2706f8c2004-09-19 23:53:36 +000025696nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025697 version_type=linux
25698 need_lib_prefix=no
25699 need_version=no
25700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25701 soname_spec='${libname}${release}${shared_ext}$major'
25702 shlibpath_var=LD_LIBRARY_PATH
25703 shlibpath_overrides_runpath=yes
25704 ;;
25705
25706openbsd*)
25707 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025708 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025709 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025710 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25711 case $host_os in
25712 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25713 *) need_version=no ;;
25714 esac
John Criswell47fdd832003-07-14 16:52:07 +000025715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25717 shlibpath_var=LD_LIBRARY_PATH
25718 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25719 case $host_os in
25720 openbsd2.[89] | openbsd2.[89].*)
25721 shlibpath_overrides_runpath=no
25722 ;;
25723 *)
25724 shlibpath_overrides_runpath=yes
25725 ;;
25726 esac
25727 else
25728 shlibpath_overrides_runpath=yes
25729 fi
25730 ;;
25731
25732os2*)
25733 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025734 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025735 need_lib_prefix=no
25736 library_names_spec='$libname${shared_ext} $libname.a'
25737 dynamic_linker='OS/2 ld.exe'
25738 shlibpath_var=LIBPATH
25739 ;;
25740
25741osf3* | osf4* | osf5*)
25742 version_type=osf
25743 need_lib_prefix=no
25744 need_version=no
25745 soname_spec='${libname}${release}${shared_ext}$major'
25746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25747 shlibpath_var=LD_LIBRARY_PATH
25748 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25749 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25750 ;;
25751
John Criswell47fdd832003-07-14 16:52:07 +000025752solaris*)
25753 version_type=linux
25754 need_lib_prefix=no
25755 need_version=no
25756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25757 soname_spec='${libname}${release}${shared_ext}$major'
25758 shlibpath_var=LD_LIBRARY_PATH
25759 shlibpath_overrides_runpath=yes
25760 hardcode_into_libs=yes
25761 # ldd complains unless libraries are executable
25762 postinstall_cmds='chmod +x $lib'
25763 ;;
25764
25765sunos4*)
25766 version_type=sunos
25767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25768 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25769 shlibpath_var=LD_LIBRARY_PATH
25770 shlibpath_overrides_runpath=yes
25771 if test "$with_gnu_ld" = yes; then
25772 need_lib_prefix=no
25773 fi
25774 need_version=yes
25775 ;;
25776
Reid Spencera773bd52006-08-04 18:18:08 +000025777sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025778 version_type=linux
25779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25780 soname_spec='${libname}${release}${shared_ext}$major'
25781 shlibpath_var=LD_LIBRARY_PATH
25782 case $host_vendor in
25783 sni)
25784 shlibpath_overrides_runpath=no
25785 need_lib_prefix=no
25786 export_dynamic_flag_spec='${wl}-Blargedynsym'
25787 runpath_var=LD_RUN_PATH
25788 ;;
25789 siemens)
25790 need_lib_prefix=no
25791 ;;
25792 motorola)
25793 need_lib_prefix=no
25794 need_version=no
25795 shlibpath_overrides_runpath=no
25796 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25797 ;;
25798 esac
25799 ;;
25800
25801sysv4*MP*)
25802 if test -d /usr/nec ;then
25803 version_type=linux
25804 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25805 soname_spec='$libname${shared_ext}.$major'
25806 shlibpath_var=LD_LIBRARY_PATH
25807 fi
25808 ;;
25809
Reid Spencera773bd52006-08-04 18:18:08 +000025810sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25811 version_type=freebsd-elf
25812 need_lib_prefix=no
25813 need_version=no
25814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25815 soname_spec='${libname}${release}${shared_ext}$major'
25816 shlibpath_var=LD_LIBRARY_PATH
25817 hardcode_into_libs=yes
25818 if test "$with_gnu_ld" = yes; then
25819 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25820 shlibpath_overrides_runpath=no
25821 else
25822 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25823 shlibpath_overrides_runpath=yes
25824 case $host_os in
25825 sco3.2v5*)
25826 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25827 ;;
25828 esac
25829 fi
25830 sys_lib_dlsearch_path_spec='/usr/lib'
25831 ;;
25832
John Criswell47fdd832003-07-14 16:52:07 +000025833uts4*)
25834 version_type=linux
25835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25836 soname_spec='${libname}${release}${shared_ext}$major'
25837 shlibpath_var=LD_LIBRARY_PATH
25838 ;;
25839
25840*)
25841 dynamic_linker=no
25842 ;;
25843esac
Reid Spencera773bd52006-08-04 18:18:08 +000025844{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25845echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025846test "$dynamic_linker" = no && can_build_shared=no
25847
Reid Spencera773bd52006-08-04 18:18:08 +000025848variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25849if test "$GCC" = yes; then
25850 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25851fi
25852
25853{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25854echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025855hardcode_action_GCJ=
25856if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25857 test -n "$runpath_var_GCJ" || \
25858 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25859
25860 # We can hardcode non-existant directories.
25861 if test "$hardcode_direct_GCJ" != no &&
25862 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25863 # have to relink, otherwise we might link with an installed library
25864 # when we should be linking with a yet-to-be-installed one
25865 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25866 test "$hardcode_minus_L_GCJ" != no; then
25867 # Linking always hardcodes the temporary library directory.
25868 hardcode_action_GCJ=relink
25869 else
25870 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25871 hardcode_action_GCJ=immediate
25872 fi
25873else
25874 # We cannot hardcode anything, or else we can only hardcode existing
25875 # directories.
25876 hardcode_action_GCJ=unsupported
25877fi
Reid Spencera773bd52006-08-04 18:18:08 +000025878{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25879echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025880
25881if test "$hardcode_action_GCJ" = relink; then
25882 # Fast installation is not supported
25883 enable_fast_install=no
25884elif test "$shlibpath_overrides_runpath" = yes ||
25885 test "$enable_shared" = no; then
25886 # Fast installation is not necessary
25887 enable_fast_install=needless
25888fi
25889
John Criswell47fdd832003-07-14 16:52:07 +000025890
25891# The else clause should only fire when bootstrapping the
25892# libtool distribution, otherwise you forgot to ship ltmain.sh
25893# with your package, and you will get complaints that there are
25894# no rules to generate ltmain.sh.
25895if test -f "$ltmain"; then
25896 # See if we are running on zsh, and set the options which allow our commands through
25897 # without removal of \ escapes.
25898 if test -n "${ZSH_VERSION+set}" ; then
25899 setopt NO_GLOB_SUBST
25900 fi
25901 # Now quote all the things that may contain metacharacters while being
25902 # careful not to overquote the AC_SUBSTed values. We take copies of the
25903 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025904 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 +000025905 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025906 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25907 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25908 deplibs_check_method reload_flag reload_cmds need_locks \
25909 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25910 lt_cv_sys_global_symbol_to_c_name_address \
25911 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25912 old_postinstall_cmds old_postuninstall_cmds \
25913 compiler_GCJ \
25914 CC_GCJ \
25915 LD_GCJ \
25916 lt_prog_compiler_wl_GCJ \
25917 lt_prog_compiler_pic_GCJ \
25918 lt_prog_compiler_static_GCJ \
25919 lt_prog_compiler_no_builtin_flag_GCJ \
25920 export_dynamic_flag_spec_GCJ \
25921 thread_safe_flag_spec_GCJ \
25922 whole_archive_flag_spec_GCJ \
25923 enable_shared_with_static_runtimes_GCJ \
25924 old_archive_cmds_GCJ \
25925 old_archive_from_new_cmds_GCJ \
25926 predep_objects_GCJ \
25927 postdep_objects_GCJ \
25928 predeps_GCJ \
25929 postdeps_GCJ \
25930 compiler_lib_search_path_GCJ \
25931 archive_cmds_GCJ \
25932 archive_expsym_cmds_GCJ \
25933 postinstall_cmds_GCJ \
25934 postuninstall_cmds_GCJ \
25935 old_archive_from_expsyms_cmds_GCJ \
25936 allow_undefined_flag_GCJ \
25937 no_undefined_flag_GCJ \
25938 export_symbols_cmds_GCJ \
25939 hardcode_libdir_flag_spec_GCJ \
25940 hardcode_libdir_flag_spec_ld_GCJ \
25941 hardcode_libdir_separator_GCJ \
25942 hardcode_automatic_GCJ \
25943 module_cmds_GCJ \
25944 module_expsym_cmds_GCJ \
25945 lt_cv_prog_compiler_c_o_GCJ \
25946 exclude_expsyms_GCJ \
25947 include_expsyms_GCJ; do
25948
25949 case $var in
25950 old_archive_cmds_GCJ | \
25951 old_archive_from_new_cmds_GCJ | \
25952 archive_cmds_GCJ | \
25953 archive_expsym_cmds_GCJ | \
25954 module_cmds_GCJ | \
25955 module_expsym_cmds_GCJ | \
25956 old_archive_from_expsyms_cmds_GCJ | \
25957 export_symbols_cmds_GCJ | \
25958 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25959 postinstall_cmds | postuninstall_cmds | \
25960 old_postinstall_cmds | old_postuninstall_cmds | \
25961 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25962 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025963 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 +000025964 ;;
25965 *)
25966 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25967 ;;
25968 esac
25969 done
25970
25971 case $lt_echo in
25972 *'\$0 --fallback-echo"')
25973 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25974 ;;
25975 esac
25976
25977cfgfile="$ofile"
25978
25979 cat <<__EOF__ >> "$cfgfile"
25980# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25981
25982# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25983
25984# Shell to use when invoking shell scripts.
25985SHELL=$lt_SHELL
25986
25987# Whether or not to build shared libraries.
25988build_libtool_libs=$enable_shared
25989
25990# Whether or not to build static libraries.
25991build_old_libs=$enable_static
25992
25993# Whether or not to add -lc for building shared libraries.
25994build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25995
25996# Whether or not to disallow shared libs when runtime libs are static
25997allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25998
25999# Whether or not to optimize for fast installation.
26000fast_install=$enable_fast_install
26001
26002# The host system.
26003host_alias=$host_alias
26004host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026005host_os=$host_os
26006
26007# The build system.
26008build_alias=$build_alias
26009build=$build
26010build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026011
26012# An echo program that does not interpret backslashes.
26013echo=$lt_echo
26014
26015# The archiver.
26016AR=$lt_AR
26017AR_FLAGS=$lt_AR_FLAGS
26018
26019# A C compiler.
26020LTCC=$lt_LTCC
26021
Reid Spencera773bd52006-08-04 18:18:08 +000026022# LTCC compiler flags.
26023LTCFLAGS=$lt_LTCFLAGS
26024
John Criswell47fdd832003-07-14 16:52:07 +000026025# A language-specific compiler.
26026CC=$lt_compiler_GCJ
26027
26028# Is the compiler the GNU C compiler?
26029with_gcc=$GCC_GCJ
26030
26031# An ERE matcher.
26032EGREP=$lt_EGREP
26033
26034# The linker used to build libraries.
26035LD=$lt_LD_GCJ
26036
26037# Whether we need hard or soft links.
26038LN_S=$lt_LN_S
26039
26040# A BSD-compatible nm program.
26041NM=$lt_NM
26042
26043# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026044STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026045
26046# Used to examine libraries when file_magic_cmd begins "file"
26047MAGIC_CMD=$MAGIC_CMD
26048
26049# Used on cygwin: DLL creation program.
26050DLLTOOL="$DLLTOOL"
26051
26052# Used on cygwin: object dumper.
26053OBJDUMP="$OBJDUMP"
26054
26055# Used on cygwin: assembler.
26056AS="$AS"
26057
26058# The name of the directory that contains temporary libtool files.
26059objdir=$objdir
26060
26061# How to create reloadable object files.
26062reload_flag=$lt_reload_flag
26063reload_cmds=$lt_reload_cmds
26064
26065# How to pass a linker flag through the compiler.
26066wl=$lt_lt_prog_compiler_wl_GCJ
26067
26068# Object file suffix (normally "o").
26069objext="$ac_objext"
26070
26071# Old archive suffix (normally "a").
26072libext="$libext"
26073
26074# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026075shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026076
26077# Executable file suffix (normally "").
26078exeext="$exeext"
26079
26080# Additional compiler flags for building library objects.
26081pic_flag=$lt_lt_prog_compiler_pic_GCJ
26082pic_mode=$pic_mode
26083
26084# What is the maximum length of a command?
26085max_cmd_len=$lt_cv_sys_max_cmd_len
26086
26087# Does compiler simultaneously support -c and -o options?
26088compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26089
Reid Spencera773bd52006-08-04 18:18:08 +000026090# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026091need_locks=$lt_need_locks
26092
26093# Do we need the lib prefix for modules?
26094need_lib_prefix=$need_lib_prefix
26095
26096# Do we need a version for libraries?
26097need_version=$need_version
26098
26099# Whether dlopen is supported.
26100dlopen_support=$enable_dlopen
26101
26102# Whether dlopen of programs is supported.
26103dlopen_self=$enable_dlopen_self
26104
26105# Whether dlopen of statically linked programs is supported.
26106dlopen_self_static=$enable_dlopen_self_static
26107
26108# Compiler flag to prevent dynamic linking.
26109link_static_flag=$lt_lt_prog_compiler_static_GCJ
26110
26111# Compiler flag to turn off builtin functions.
26112no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26113
26114# Compiler flag to allow reflexive dlopens.
26115export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26116
26117# Compiler flag to generate shared objects directly from archives.
26118whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26119
26120# Compiler flag to generate thread-safe objects.
26121thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26122
26123# Library versioning type.
26124version_type=$version_type
26125
26126# Format of library name prefix.
26127libname_spec=$lt_libname_spec
26128
26129# List of archive names. First name is the real one, the rest are links.
26130# The last name is the one that the linker finds with -lNAME.
26131library_names_spec=$lt_library_names_spec
26132
26133# The coded name of the library, if different from the real name.
26134soname_spec=$lt_soname_spec
26135
26136# Commands used to build and install an old-style archive.
26137RANLIB=$lt_RANLIB
26138old_archive_cmds=$lt_old_archive_cmds_GCJ
26139old_postinstall_cmds=$lt_old_postinstall_cmds
26140old_postuninstall_cmds=$lt_old_postuninstall_cmds
26141
26142# Create an old-style archive from a shared archive.
26143old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26144
26145# Create a temporary old-style archive to link instead of a shared archive.
26146old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26147
26148# Commands used to build and install a shared archive.
26149archive_cmds=$lt_archive_cmds_GCJ
26150archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26151postinstall_cmds=$lt_postinstall_cmds
26152postuninstall_cmds=$lt_postuninstall_cmds
26153
26154# Commands used to build a loadable module (assumed same as above if empty)
26155module_cmds=$lt_module_cmds_GCJ
26156module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26157
26158# Commands to strip libraries.
26159old_striplib=$lt_old_striplib
26160striplib=$lt_striplib
26161
26162# Dependencies to place before the objects being linked to create a
26163# shared library.
26164predep_objects=$lt_predep_objects_GCJ
26165
26166# Dependencies to place after the objects being linked to create a
26167# shared library.
26168postdep_objects=$lt_postdep_objects_GCJ
26169
26170# Dependencies to place before the objects being linked to create a
26171# shared library.
26172predeps=$lt_predeps_GCJ
26173
26174# Dependencies to place after the objects being linked to create a
26175# shared library.
26176postdeps=$lt_postdeps_GCJ
26177
26178# The library search path used internally by the compiler when linking
26179# a shared library.
26180compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26181
26182# Method to check whether dependent libraries are shared objects.
26183deplibs_check_method=$lt_deplibs_check_method
26184
26185# Command to use when deplibs_check_method == file_magic.
26186file_magic_cmd=$lt_file_magic_cmd
26187
26188# Flag that allows shared libraries with undefined symbols to be built.
26189allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26190
26191# Flag that forces no undefined symbols.
26192no_undefined_flag=$lt_no_undefined_flag_GCJ
26193
26194# Commands used to finish a libtool library installation in a directory.
26195finish_cmds=$lt_finish_cmds
26196
26197# Same as above, but a single script fragment to be evaled but not shown.
26198finish_eval=$lt_finish_eval
26199
26200# Take the output of nm and produce a listing of raw symbols and C names.
26201global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26202
26203# Transform the output of nm in a proper C declaration
26204global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26205
26206# Transform the output of nm in a C name address pair
26207global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26208
26209# This is the shared library runtime path variable.
26210runpath_var=$runpath_var
26211
26212# This is the shared library path variable.
26213shlibpath_var=$shlibpath_var
26214
26215# Is shlibpath searched before the hard-coded library search path?
26216shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26217
26218# How to hardcode a shared library path into an executable.
26219hardcode_action=$hardcode_action_GCJ
26220
26221# Whether we should hardcode library paths into libraries.
26222hardcode_into_libs=$hardcode_into_libs
26223
26224# Flag to hardcode \$libdir into a binary during linking.
26225# This must work even if \$libdir does not exist.
26226hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26227
26228# If ld is used when linking, flag to hardcode \$libdir into
26229# a binary during linking. This must work even if \$libdir does
26230# not exist.
26231hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26232
26233# Whether we need a single -rpath flag with a separated argument.
26234hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26235
26236# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26237# resulting binary.
26238hardcode_direct=$hardcode_direct_GCJ
26239
26240# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26241# resulting binary.
26242hardcode_minus_L=$hardcode_minus_L_GCJ
26243
26244# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26245# the resulting binary.
26246hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26247
26248# Set to yes if building a shared library automatically hardcodes DIR into the library
26249# and all subsequent libraries and executables linked against it.
26250hardcode_automatic=$hardcode_automatic_GCJ
26251
26252# Variables whose values should be saved in libtool wrapper scripts and
26253# restored at relink time.
26254variables_saved_for_relink="$variables_saved_for_relink"
26255
26256# Whether libtool must link a program against all its dependency libraries.
26257link_all_deplibs=$link_all_deplibs_GCJ
26258
26259# Compile-time system search path for libraries
26260sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26261
26262# Run-time system search path for libraries
26263sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26264
26265# Fix the shell variable \$srcfile for the compiler.
26266fix_srcfile_path="$fix_srcfile_path_GCJ"
26267
26268# Set to yes if exported symbols are required.
26269always_export_symbols=$always_export_symbols_GCJ
26270
26271# The commands to list exported symbols.
26272export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26273
26274# The commands to extract the exported symbol list from a shared archive.
26275extract_expsyms_cmds=$lt_extract_expsyms_cmds
26276
26277# Symbols that should not be listed in the preloaded symbols.
26278exclude_expsyms=$lt_exclude_expsyms_GCJ
26279
26280# Symbols that must always be exported.
26281include_expsyms=$lt_include_expsyms_GCJ
26282
26283# ### END LIBTOOL TAG CONFIG: $tagname
26284
26285__EOF__
26286
26287
26288else
26289 # If there is no Makefile yet, we rely on a make rule to execute
26290 # `config.status --recheck' to rerun these tests and create the
26291 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026292 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26293 if test -f "$ltmain_in"; then
26294 test -f Makefile && make "$ltmain"
26295 fi
John Criswell47fdd832003-07-14 16:52:07 +000026296fi
26297
26298
26299ac_ext=c
26300ac_cpp='$CPP $CPPFLAGS'
26301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26303ac_compiler_gnu=$ac_cv_c_compiler_gnu
26304
26305CC="$lt_save_CC"
26306
26307 else
26308 tagname=""
26309 fi
26310 ;;
26311
26312 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026313 ac_ext=c
26314ac_cpp='$CPP $CPPFLAGS'
26315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26317ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026318
26319
26320# Source file extension for RC test sources.
26321ac_ext=rc
26322
26323# Object file extension for compiled RC test sources.
26324objext=o
26325objext_RC=$objext
26326
26327# Code to be used in simple compile tests
26328lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26329
26330# Code to be used in simple link tests
26331lt_simple_link_test_code="$lt_simple_compile_test_code"
26332
26333# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26334
26335# If no C compiler was specified, use CC.
26336LTCC=${LTCC-"$CC"}
26337
Reid Spencera773bd52006-08-04 18:18:08 +000026338# If no C compiler flags were specified, use CFLAGS.
26339LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26340
John Criswell47fdd832003-07-14 16:52:07 +000026341# Allow CC to be a program name with arguments.
26342compiler=$CC
26343
26344
Reid Spencera773bd52006-08-04 18:18:08 +000026345# save warnings/boilerplate of simple test code
26346ac_outfile=conftest.$ac_objext
26347printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26348eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26349_lt_compiler_boilerplate=`cat conftest.err`
26350$rm conftest*
26351
26352ac_outfile=conftest.$ac_objext
26353printf "$lt_simple_link_test_code" >conftest.$ac_ext
26354eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26355_lt_linker_boilerplate=`cat conftest.err`
26356$rm conftest*
26357
26358
John Criswell47fdd832003-07-14 16:52:07 +000026359# Allow CC to be a program name with arguments.
26360lt_save_CC="$CC"
26361CC=${RC-"windres"}
26362compiler=$CC
26363compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026364for cc_temp in $compiler""; do
26365 case $cc_temp in
26366 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26367 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26368 \-*) ;;
26369 *) break;;
26370 esac
26371done
26372cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26373
John Criswell47fdd832003-07-14 16:52:07 +000026374lt_cv_prog_compiler_c_o_RC=yes
26375
26376# The else clause should only fire when bootstrapping the
26377# libtool distribution, otherwise you forgot to ship ltmain.sh
26378# with your package, and you will get complaints that there are
26379# no rules to generate ltmain.sh.
26380if test -f "$ltmain"; then
26381 # See if we are running on zsh, and set the options which allow our commands through
26382 # without removal of \ escapes.
26383 if test -n "${ZSH_VERSION+set}" ; then
26384 setopt NO_GLOB_SUBST
26385 fi
26386 # Now quote all the things that may contain metacharacters while being
26387 # careful not to overquote the AC_SUBSTed values. We take copies of the
26388 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026389 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 +000026390 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026391 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26392 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26393 deplibs_check_method reload_flag reload_cmds need_locks \
26394 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26395 lt_cv_sys_global_symbol_to_c_name_address \
26396 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26397 old_postinstall_cmds old_postuninstall_cmds \
26398 compiler_RC \
26399 CC_RC \
26400 LD_RC \
26401 lt_prog_compiler_wl_RC \
26402 lt_prog_compiler_pic_RC \
26403 lt_prog_compiler_static_RC \
26404 lt_prog_compiler_no_builtin_flag_RC \
26405 export_dynamic_flag_spec_RC \
26406 thread_safe_flag_spec_RC \
26407 whole_archive_flag_spec_RC \
26408 enable_shared_with_static_runtimes_RC \
26409 old_archive_cmds_RC \
26410 old_archive_from_new_cmds_RC \
26411 predep_objects_RC \
26412 postdep_objects_RC \
26413 predeps_RC \
26414 postdeps_RC \
26415 compiler_lib_search_path_RC \
26416 archive_cmds_RC \
26417 archive_expsym_cmds_RC \
26418 postinstall_cmds_RC \
26419 postuninstall_cmds_RC \
26420 old_archive_from_expsyms_cmds_RC \
26421 allow_undefined_flag_RC \
26422 no_undefined_flag_RC \
26423 export_symbols_cmds_RC \
26424 hardcode_libdir_flag_spec_RC \
26425 hardcode_libdir_flag_spec_ld_RC \
26426 hardcode_libdir_separator_RC \
26427 hardcode_automatic_RC \
26428 module_cmds_RC \
26429 module_expsym_cmds_RC \
26430 lt_cv_prog_compiler_c_o_RC \
26431 exclude_expsyms_RC \
26432 include_expsyms_RC; do
26433
26434 case $var in
26435 old_archive_cmds_RC | \
26436 old_archive_from_new_cmds_RC | \
26437 archive_cmds_RC | \
26438 archive_expsym_cmds_RC | \
26439 module_cmds_RC | \
26440 module_expsym_cmds_RC | \
26441 old_archive_from_expsyms_cmds_RC | \
26442 export_symbols_cmds_RC | \
26443 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26444 postinstall_cmds | postuninstall_cmds | \
26445 old_postinstall_cmds | old_postuninstall_cmds | \
26446 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26447 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026448 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 +000026449 ;;
26450 *)
26451 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26452 ;;
26453 esac
26454 done
26455
26456 case $lt_echo in
26457 *'\$0 --fallback-echo"')
26458 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26459 ;;
26460 esac
26461
26462cfgfile="$ofile"
26463
26464 cat <<__EOF__ >> "$cfgfile"
26465# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26466
26467# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26468
26469# Shell to use when invoking shell scripts.
26470SHELL=$lt_SHELL
26471
26472# Whether or not to build shared libraries.
26473build_libtool_libs=$enable_shared
26474
26475# Whether or not to build static libraries.
26476build_old_libs=$enable_static
26477
26478# Whether or not to add -lc for building shared libraries.
26479build_libtool_need_lc=$archive_cmds_need_lc_RC
26480
26481# Whether or not to disallow shared libs when runtime libs are static
26482allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26483
26484# Whether or not to optimize for fast installation.
26485fast_install=$enable_fast_install
26486
26487# The host system.
26488host_alias=$host_alias
26489host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026490host_os=$host_os
26491
26492# The build system.
26493build_alias=$build_alias
26494build=$build
26495build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026496
26497# An echo program that does not interpret backslashes.
26498echo=$lt_echo
26499
26500# The archiver.
26501AR=$lt_AR
26502AR_FLAGS=$lt_AR_FLAGS
26503
26504# A C compiler.
26505LTCC=$lt_LTCC
26506
Reid Spencera773bd52006-08-04 18:18:08 +000026507# LTCC compiler flags.
26508LTCFLAGS=$lt_LTCFLAGS
26509
John Criswell47fdd832003-07-14 16:52:07 +000026510# A language-specific compiler.
26511CC=$lt_compiler_RC
26512
26513# Is the compiler the GNU C compiler?
26514with_gcc=$GCC_RC
26515
26516# An ERE matcher.
26517EGREP=$lt_EGREP
26518
26519# The linker used to build libraries.
26520LD=$lt_LD_RC
26521
26522# Whether we need hard or soft links.
26523LN_S=$lt_LN_S
26524
26525# A BSD-compatible nm program.
26526NM=$lt_NM
26527
26528# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026529STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026530
26531# Used to examine libraries when file_magic_cmd begins "file"
26532MAGIC_CMD=$MAGIC_CMD
26533
26534# Used on cygwin: DLL creation program.
26535DLLTOOL="$DLLTOOL"
26536
26537# Used on cygwin: object dumper.
26538OBJDUMP="$OBJDUMP"
26539
26540# Used on cygwin: assembler.
26541AS="$AS"
26542
26543# The name of the directory that contains temporary libtool files.
26544objdir=$objdir
26545
26546# How to create reloadable object files.
26547reload_flag=$lt_reload_flag
26548reload_cmds=$lt_reload_cmds
26549
26550# How to pass a linker flag through the compiler.
26551wl=$lt_lt_prog_compiler_wl_RC
26552
26553# Object file suffix (normally "o").
26554objext="$ac_objext"
26555
26556# Old archive suffix (normally "a").
26557libext="$libext"
26558
26559# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026560shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026561
26562# Executable file suffix (normally "").
26563exeext="$exeext"
26564
26565# Additional compiler flags for building library objects.
26566pic_flag=$lt_lt_prog_compiler_pic_RC
26567pic_mode=$pic_mode
26568
26569# What is the maximum length of a command?
26570max_cmd_len=$lt_cv_sys_max_cmd_len
26571
26572# Does compiler simultaneously support -c and -o options?
26573compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26574
Reid Spencera773bd52006-08-04 18:18:08 +000026575# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026576need_locks=$lt_need_locks
26577
26578# Do we need the lib prefix for modules?
26579need_lib_prefix=$need_lib_prefix
26580
26581# Do we need a version for libraries?
26582need_version=$need_version
26583
26584# Whether dlopen is supported.
26585dlopen_support=$enable_dlopen
26586
26587# Whether dlopen of programs is supported.
26588dlopen_self=$enable_dlopen_self
26589
26590# Whether dlopen of statically linked programs is supported.
26591dlopen_self_static=$enable_dlopen_self_static
26592
26593# Compiler flag to prevent dynamic linking.
26594link_static_flag=$lt_lt_prog_compiler_static_RC
26595
26596# Compiler flag to turn off builtin functions.
26597no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26598
26599# Compiler flag to allow reflexive dlopens.
26600export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26601
26602# Compiler flag to generate shared objects directly from archives.
26603whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26604
26605# Compiler flag to generate thread-safe objects.
26606thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26607
26608# Library versioning type.
26609version_type=$version_type
26610
26611# Format of library name prefix.
26612libname_spec=$lt_libname_spec
26613
26614# List of archive names. First name is the real one, the rest are links.
26615# The last name is the one that the linker finds with -lNAME.
26616library_names_spec=$lt_library_names_spec
26617
26618# The coded name of the library, if different from the real name.
26619soname_spec=$lt_soname_spec
26620
26621# Commands used to build and install an old-style archive.
26622RANLIB=$lt_RANLIB
26623old_archive_cmds=$lt_old_archive_cmds_RC
26624old_postinstall_cmds=$lt_old_postinstall_cmds
26625old_postuninstall_cmds=$lt_old_postuninstall_cmds
26626
26627# Create an old-style archive from a shared archive.
26628old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26629
26630# Create a temporary old-style archive to link instead of a shared archive.
26631old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26632
26633# Commands used to build and install a shared archive.
26634archive_cmds=$lt_archive_cmds_RC
26635archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26636postinstall_cmds=$lt_postinstall_cmds
26637postuninstall_cmds=$lt_postuninstall_cmds
26638
26639# Commands used to build a loadable module (assumed same as above if empty)
26640module_cmds=$lt_module_cmds_RC
26641module_expsym_cmds=$lt_module_expsym_cmds_RC
26642
26643# Commands to strip libraries.
26644old_striplib=$lt_old_striplib
26645striplib=$lt_striplib
26646
26647# Dependencies to place before the objects being linked to create a
26648# shared library.
26649predep_objects=$lt_predep_objects_RC
26650
26651# Dependencies to place after the objects being linked to create a
26652# shared library.
26653postdep_objects=$lt_postdep_objects_RC
26654
26655# Dependencies to place before the objects being linked to create a
26656# shared library.
26657predeps=$lt_predeps_RC
26658
26659# Dependencies to place after the objects being linked to create a
26660# shared library.
26661postdeps=$lt_postdeps_RC
26662
26663# The library search path used internally by the compiler when linking
26664# a shared library.
26665compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26666
26667# Method to check whether dependent libraries are shared objects.
26668deplibs_check_method=$lt_deplibs_check_method
26669
26670# Command to use when deplibs_check_method == file_magic.
26671file_magic_cmd=$lt_file_magic_cmd
26672
26673# Flag that allows shared libraries with undefined symbols to be built.
26674allow_undefined_flag=$lt_allow_undefined_flag_RC
26675
26676# Flag that forces no undefined symbols.
26677no_undefined_flag=$lt_no_undefined_flag_RC
26678
26679# Commands used to finish a libtool library installation in a directory.
26680finish_cmds=$lt_finish_cmds
26681
26682# Same as above, but a single script fragment to be evaled but not shown.
26683finish_eval=$lt_finish_eval
26684
26685# Take the output of nm and produce a listing of raw symbols and C names.
26686global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26687
26688# Transform the output of nm in a proper C declaration
26689global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26690
26691# Transform the output of nm in a C name address pair
26692global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26693
26694# This is the shared library runtime path variable.
26695runpath_var=$runpath_var
26696
26697# This is the shared library path variable.
26698shlibpath_var=$shlibpath_var
26699
26700# Is shlibpath searched before the hard-coded library search path?
26701shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26702
26703# How to hardcode a shared library path into an executable.
26704hardcode_action=$hardcode_action_RC
26705
26706# Whether we should hardcode library paths into libraries.
26707hardcode_into_libs=$hardcode_into_libs
26708
26709# Flag to hardcode \$libdir into a binary during linking.
26710# This must work even if \$libdir does not exist.
26711hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26712
26713# If ld is used when linking, flag to hardcode \$libdir into
26714# a binary during linking. This must work even if \$libdir does
26715# not exist.
26716hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26717
26718# Whether we need a single -rpath flag with a separated argument.
26719hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26720
26721# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26722# resulting binary.
26723hardcode_direct=$hardcode_direct_RC
26724
26725# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26726# resulting binary.
26727hardcode_minus_L=$hardcode_minus_L_RC
26728
26729# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26730# the resulting binary.
26731hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26732
26733# Set to yes if building a shared library automatically hardcodes DIR into the library
26734# and all subsequent libraries and executables linked against it.
26735hardcode_automatic=$hardcode_automatic_RC
26736
26737# Variables whose values should be saved in libtool wrapper scripts and
26738# restored at relink time.
26739variables_saved_for_relink="$variables_saved_for_relink"
26740
26741# Whether libtool must link a program against all its dependency libraries.
26742link_all_deplibs=$link_all_deplibs_RC
26743
26744# Compile-time system search path for libraries
26745sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26746
26747# Run-time system search path for libraries
26748sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26749
26750# Fix the shell variable \$srcfile for the compiler.
26751fix_srcfile_path="$fix_srcfile_path_RC"
26752
26753# Set to yes if exported symbols are required.
26754always_export_symbols=$always_export_symbols_RC
26755
26756# The commands to list exported symbols.
26757export_symbols_cmds=$lt_export_symbols_cmds_RC
26758
26759# The commands to extract the exported symbol list from a shared archive.
26760extract_expsyms_cmds=$lt_extract_expsyms_cmds
26761
26762# Symbols that should not be listed in the preloaded symbols.
26763exclude_expsyms=$lt_exclude_expsyms_RC
26764
26765# Symbols that must always be exported.
26766include_expsyms=$lt_include_expsyms_RC
26767
26768# ### END LIBTOOL TAG CONFIG: $tagname
26769
26770__EOF__
26771
26772
26773else
26774 # If there is no Makefile yet, we rely on a make rule to execute
26775 # `config.status --recheck' to rerun these tests and create the
26776 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026777 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26778 if test -f "$ltmain_in"; then
26779 test -f Makefile && make "$ltmain"
26780 fi
John Criswell47fdd832003-07-14 16:52:07 +000026781fi
26782
26783
26784ac_ext=c
26785ac_cpp='$CPP $CPPFLAGS'
26786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26788ac_compiler_gnu=$ac_cv_c_compiler_gnu
26789
26790CC="$lt_save_CC"
26791
26792 ;;
26793
26794 *)
26795 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26796echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26797 { (exit 1); exit 1; }; }
26798 ;;
26799 esac
26800
26801 # Append the new tag name to the list of available tags.
26802 if test -n "$tagname" ; then
26803 available_tags="$available_tags $tagname"
26804 fi
26805 fi
26806 done
26807 IFS="$lt_save_ifs"
26808
26809 # Now substitute the updated list of available tags.
26810 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26811 mv "${ofile}T" "$ofile"
26812 chmod +x "$ofile"
26813 else
26814 rm -f "${ofile}T"
26815 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26816echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26817 { (exit 1); exit 1; }; }
26818 fi
26819fi
John Criswell7a73b802003-06-30 21:59:07 +000026820
26821
26822
26823# This can be used to rebuild libtool when needed
26824LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26825
26826# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026827LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026828
26829# Prevent multiple expansion
26830
26831
26832
John Criswell47fdd832003-07-14 16:52:07 +000026833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026850
Reid Spencer582a23c2004-12-29 07:07:57 +000026851if test "$lt_cv_dlopen_self" = "yes" ; then
26852
26853cat >>confdefs.h <<\_ACEOF
26854#define CAN_DLOPEN_SELF 1
26855_ACEOF
26856
26857fi
26858
Douglas Gregor01746742009-05-11 18:05:52 +000026859
Reid Spencer7931a782004-12-27 06:15:02 +000026860if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026861 LLVMGCC="llvm-gcc${EXEEXT}"
26862 LLVMGXX="llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026863 LLVMGCCCOMMAND="$LLVMGCC"
26864 LLVMGXXCOMMAND="$LLVMGXX"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026865 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26866
26867 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26868
Reid Spencerc84492c2005-06-02 22:34:49 +000026869 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26870set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026873if test "${ac_cv_path_LLVMGCC+set}" = set; then
26874 echo $ECHO_N "(cached) $ECHO_C" >&6
26875else
26876 case $LLVMGCC in
26877 [\\/]* | ?:[\\/]*)
26878 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26879 ;;
26880 *)
26881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26882for as_dir in $PATH
26883do
26884 IFS=$as_save_IFS
26885 test -z "$as_dir" && as_dir=.
26886 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026887 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 +000026888 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26890 break 2
26891 fi
26892done
26893done
Reid Spencera773bd52006-08-04 18:18:08 +000026894IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026895
Reid Spencer59473af2004-12-25 07:31:29 +000026896 ;;
26897esac
26898fi
26899LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026900if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026901 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26902echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026903else
Reid Spencera773bd52006-08-04 18:18:08 +000026904 { echo "$as_me:$LINENO: result: no" >&5
26905echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026906fi
26907
Reid Spencera773bd52006-08-04 18:18:08 +000026908
Reid Spencerc84492c2005-06-02 22:34:49 +000026909 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26910set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026913if test "${ac_cv_path_LLVMGXX+set}" = set; then
26914 echo $ECHO_N "(cached) $ECHO_C" >&6
26915else
26916 case $LLVMGXX in
26917 [\\/]* | ?:[\\/]*)
26918 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26919 ;;
26920 *)
26921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26922for as_dir in $PATH
26923do
26924 IFS=$as_save_IFS
26925 test -z "$as_dir" && as_dir=.
26926 for ac_exec_ext in '' $ac_executable_extensions; do
Bill Wendlingebcceee2009-04-18 11:20:33 +000026927 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 +000026928 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26930 break 2
26931 fi
26932done
26933done
Reid Spencera773bd52006-08-04 18:18:08 +000026934IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026935
Reid Spencer59473af2004-12-25 07:31:29 +000026936 ;;
26937esac
26938fi
26939LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026940if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026941 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26942echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026943else
Reid Spencera773bd52006-08-04 18:18:08 +000026944 { echo "$as_me:$LINENO: result: no" >&5
26945echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026946fi
26947
Reid Spencera773bd52006-08-04 18:18:08 +000026948
Reid Spencer59473af2004-12-25 07:31:29 +000026949else
Devang Patel5d28b882007-12-04 22:54:47 +000026950 if test -z "$LLVMGCC"; then
26951 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026952 LLVMGCCCOMMAND="$LLVMGCC"
Devang Patel5d28b882007-12-04 22:54:47 +000026953 fi
26954 if test -z "$LLVMGXX"; then
26955 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026956 LLVMGXXCOMMAND="$LLVMGXX"
Devang Patel5d28b882007-12-04 22:54:47 +000026957 fi
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026958
Reid Spencer59473af2004-12-25 07:31:29 +000026959 LLVMGCC=$LLVMGCC
26960
26961 LLVMGXX=$LLVMGXX
26962
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026963 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
26964
26965 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
26966
Reid Spencer59473af2004-12-25 07:31:29 +000026967fi
26968
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000026969
Reid Spencera773bd52006-08-04 18:18:08 +000026970{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26971echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026972
Reid Spencer86901802004-12-08 23:07:27 +000026973ICC=no
26974IXX=no
26975case $CC in
26976 icc*|icpc*)
26977 ICC=yes
26978 IXX=yes
26979 ;;
26980 *)
26981 ;;
26982esac
26983
Duraid Madina937c60a2006-02-15 07:57:42 +000026984if test "$GCC" != "yes" && test "$ICC" != "yes"
26985then
26986 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26987echo "$as_me: error: gcc|icc required but not found" >&2;}
26988 { (exit 1); exit 1; }; }
26989fi
26990
26991if test "$GXX" != "yes" && test "$IXX" != "yes"
26992then
26993 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26994echo "$as_me: error: g++|icc required but not found" >&2;}
26995 { (exit 1); exit 1; }; }
26996fi
26997
Reid Spencer86901802004-12-08 23:07:27 +000026998if test "$GCC" = "yes"
26999then
Chris Lattner399c7c72008-02-05 19:43:53 +000027000 cat >conftest.$ac_ext <<_ACEOF
27001#if !defined(__GNUC__) || __GNUC__ < 3
27002#error Unsupported GCC version
27003#endif
27004
27005_ACEOF
27006rm -f conftest.$ac_objext
27007if { (ac_try="$ac_compile"
27008case "(($ac_try" in
27009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010 *) ac_try_echo=$ac_try;;
27011esac
27012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27013 (eval "$ac_compile") 2>conftest.er1
27014 ac_status=$?
27015 grep -v '^ *+' conftest.er1 >conftest.err
27016 rm -f conftest.er1
27017 cat conftest.err >&5
27018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027019 (exit $ac_status); } &&
27020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27021 { (case "(($ac_try" in
27022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27023 *) ac_try_echo=$ac_try;;
27024esac
27025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27026 (eval "$ac_try") 2>&5
27027 ac_status=$?
27028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029 (exit $ac_status); }; } &&
27030 { ac_try='test -s conftest.$ac_objext'
27031 { (case "(($ac_try" in
27032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033 *) ac_try_echo=$ac_try;;
27034esac
27035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036 (eval "$ac_try") 2>&5
27037 ac_status=$?
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027040 :
27041else
27042 echo "$as_me: failed program was:" >&5
27043sed 's/^/| /' conftest.$ac_ext >&5
27044
27045 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027046echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27047 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027048fi
27049
27050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027051fi
27052
27053if test -z "$llvm_cv_gnu_make_command"
27054then
27055 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27056echo "$as_me: error: GNU Make required but not found" >&2;}
27057 { (exit 1); exit 1; }; }
27058fi
27059
Reid Spencera773bd52006-08-04 18:18:08 +000027060{ echo "$as_me:$LINENO: result: ok" >&5
27061echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027062
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027063
John Criswell7a73b802003-06-30 21:59:07 +000027064
Reid Spencera773bd52006-08-04 18:18:08 +000027065{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27066echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027067if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27068 echo $ECHO_N "(cached) $ECHO_C" >&6
27069else
27070 ac_check_lib_save_LIBS=$LIBS
27071LIBS="-lelf $LIBS"
27072cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027073/* confdefs.h. */
27074_ACEOF
27075cat confdefs.h >>conftest.$ac_ext
27076cat >>conftest.$ac_ext <<_ACEOF
27077/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027078
Reid Spencera773bd52006-08-04 18:18:08 +000027079/* Override any GCC internal prototype to avoid an error.
27080 Use char because int might match the return type of a GCC
27081 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027082#ifdef __cplusplus
27083extern "C"
27084#endif
John Criswell7a73b802003-06-30 21:59:07 +000027085char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027086int
27087main ()
27088{
Reid Spencera773bd52006-08-04 18:18:08 +000027089return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027090 ;
27091 return 0;
27092}
27093_ACEOF
27094rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027095if { (ac_try="$ac_link"
27096case "(($ac_try" in
27097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27098 *) ac_try_echo=$ac_try;;
27099esac
27100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27101 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027102 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027103 grep -v '^ *+' conftest.er1 >conftest.err
27104 rm -f conftest.er1
27105 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027107 (exit $ac_status); } &&
27108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27109 { (case "(($ac_try" in
27110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27111 *) ac_try_echo=$ac_try;;
27112esac
27113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27114 (eval "$ac_try") 2>&5
27115 ac_status=$?
27116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117 (exit $ac_status); }; } &&
27118 { ac_try='test -s conftest$ac_exeext'
27119 { (case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27122esac
27123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_try") 2>&5
27125 ac_status=$?
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027128 ac_cv_lib_elf_elf_begin=yes
27129else
27130 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027131sed 's/^/| /' conftest.$ac_ext >&5
27132
Reid Spencera773bd52006-08-04 18:18:08 +000027133 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027134fi
Reid Spencera773bd52006-08-04 18:18:08 +000027135
Bill Wendlingebcceee2009-04-18 11:20:33 +000027136rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027137 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027138LIBS=$ac_check_lib_save_LIBS
27139fi
Reid Spencera773bd52006-08-04 18:18:08 +000027140{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27141echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027142if test $ac_cv_lib_elf_elf_begin = yes; then
27143 cat >>confdefs.h <<_ACEOF
27144#define HAVE_LIBELF 1
27145_ACEOF
27146
27147 LIBS="-lelf $LIBS"
27148
27149fi
27150
27151
Reid Spencera773bd52006-08-04 18:18:08 +000027152{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27153echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027154if test "${ac_cv_lib_m_sin+set}" = set; then
27155 echo $ECHO_N "(cached) $ECHO_C" >&6
27156else
27157 ac_check_lib_save_LIBS=$LIBS
27158LIBS="-lm $LIBS"
27159cat >conftest.$ac_ext <<_ACEOF
27160/* confdefs.h. */
27161_ACEOF
27162cat confdefs.h >>conftest.$ac_ext
27163cat >>conftest.$ac_ext <<_ACEOF
27164/* end confdefs.h. */
27165
Reid Spencera773bd52006-08-04 18:18:08 +000027166/* Override any GCC internal prototype to avoid an error.
27167 Use char because int might match the return type of a GCC
27168 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027169#ifdef __cplusplus
27170extern "C"
27171#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027172char sin ();
27173int
27174main ()
27175{
Reid Spencera773bd52006-08-04 18:18:08 +000027176return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027177 ;
27178 return 0;
27179}
27180_ACEOF
27181rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027182if { (ac_try="$ac_link"
27183case "(($ac_try" in
27184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27185 *) ac_try_echo=$ac_try;;
27186esac
27187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27188 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027189 ac_status=$?
27190 grep -v '^ *+' conftest.er1 >conftest.err
27191 rm -f conftest.er1
27192 cat conftest.err >&5
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027194 (exit $ac_status); } &&
27195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27196 { (case "(($ac_try" in
27197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198 *) ac_try_echo=$ac_try;;
27199esac
27200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201 (eval "$ac_try") 2>&5
27202 ac_status=$?
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; } &&
27205 { ac_try='test -s conftest$ac_exeext'
27206 { (case "(($ac_try" in
27207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27208 *) ac_try_echo=$ac_try;;
27209esac
27210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27211 (eval "$ac_try") 2>&5
27212 ac_status=$?
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027215 ac_cv_lib_m_sin=yes
27216else
27217 echo "$as_me: failed program was:" >&5
27218sed 's/^/| /' conftest.$ac_ext >&5
27219
Reid Spencera773bd52006-08-04 18:18:08 +000027220 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027221fi
Reid Spencera773bd52006-08-04 18:18:08 +000027222
Bill Wendlingebcceee2009-04-18 11:20:33 +000027223rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027224 conftest$ac_exeext conftest.$ac_ext
27225LIBS=$ac_check_lib_save_LIBS
27226fi
Reid Spencera773bd52006-08-04 18:18:08 +000027227{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27228echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027229if test $ac_cv_lib_m_sin = yes; then
27230 cat >>confdefs.h <<_ACEOF
27231#define HAVE_LIBM 1
27232_ACEOF
27233
27234 LIBS="-lm $LIBS"
27235
27236fi
27237
Jeff Cohen28783c32007-01-12 18:22:38 +000027238if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027239
Reid Spencera773bd52006-08-04 18:18:08 +000027240{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27241echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027242if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027243 echo $ECHO_N "(cached) $ECHO_C" >&6
27244else
27245 ac_check_lib_save_LIBS=$LIBS
27246LIBS="-limagehlp $LIBS"
27247cat >conftest.$ac_ext <<_ACEOF
27248/* confdefs.h. */
27249_ACEOF
27250cat confdefs.h >>conftest.$ac_ext
27251cat >>conftest.$ac_ext <<_ACEOF
27252/* end confdefs.h. */
27253
Reid Spencer48fdf912006-06-01 19:03:21 +000027254
Reid Spencer484fc8e2006-06-01 16:55:59 +000027255int
27256main ()
27257{
Reid Spencera773bd52006-08-04 18:18:08 +000027258return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027259 ;
27260 return 0;
27261}
27262_ACEOF
27263rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027264if { (ac_try="$ac_link"
27265case "(($ac_try" in
27266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27267 *) ac_try_echo=$ac_try;;
27268esac
27269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27270 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027271 ac_status=$?
27272 grep -v '^ *+' conftest.er1 >conftest.err
27273 rm -f conftest.er1
27274 cat conftest.err >&5
27275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027276 (exit $ac_status); } &&
27277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27278 { (case "(($ac_try" in
27279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27280 *) ac_try_echo=$ac_try;;
27281esac
27282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27283 (eval "$ac_try") 2>&5
27284 ac_status=$?
27285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27286 (exit $ac_status); }; } &&
27287 { ac_try='test -s conftest$ac_exeext'
27288 { (case "(($ac_try" in
27289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27290 *) ac_try_echo=$ac_try;;
27291esac
27292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27293 (eval "$ac_try") 2>&5
27294 ac_status=$?
27295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27296 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027297 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027298else
27299 echo "$as_me: failed program was:" >&5
27300sed 's/^/| /' conftest.$ac_ext >&5
27301
Reid Spencera773bd52006-08-04 18:18:08 +000027302 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027303fi
Reid Spencera773bd52006-08-04 18:18:08 +000027304
Bill Wendlingebcceee2009-04-18 11:20:33 +000027305rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027306 conftest$ac_exeext conftest.$ac_ext
27307LIBS=$ac_check_lib_save_LIBS
27308fi
Reid Spencera773bd52006-08-04 18:18:08 +000027309{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27310echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027311if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027312 cat >>confdefs.h <<_ACEOF
27313#define HAVE_LIBIMAGEHLP 1
27314_ACEOF
27315
27316 LIBS="-limagehlp $LIBS"
27317
27318fi
27319
27320
Reid Spencera773bd52006-08-04 18:18:08 +000027321{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27322echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027323if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027324 echo $ECHO_N "(cached) $ECHO_C" >&6
27325else
27326 ac_check_lib_save_LIBS=$LIBS
27327LIBS="-lpsapi $LIBS"
27328cat >conftest.$ac_ext <<_ACEOF
27329/* confdefs.h. */
27330_ACEOF
27331cat confdefs.h >>conftest.$ac_ext
27332cat >>conftest.$ac_ext <<_ACEOF
27333/* end confdefs.h. */
27334
Reid Spencer48fdf912006-06-01 19:03:21 +000027335
Reid Spencer484fc8e2006-06-01 16:55:59 +000027336int
27337main ()
27338{
Reid Spencera773bd52006-08-04 18:18:08 +000027339return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027340 ;
27341 return 0;
27342}
27343_ACEOF
27344rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027345if { (ac_try="$ac_link"
27346case "(($ac_try" in
27347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27348 *) ac_try_echo=$ac_try;;
27349esac
27350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27351 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027352 ac_status=$?
27353 grep -v '^ *+' conftest.er1 >conftest.err
27354 rm -f conftest.er1
27355 cat conftest.err >&5
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027357 (exit $ac_status); } &&
27358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27359 { (case "(($ac_try" in
27360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27361 *) ac_try_echo=$ac_try;;
27362esac
27363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27364 (eval "$ac_try") 2>&5
27365 ac_status=$?
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); }; } &&
27368 { ac_try='test -s conftest$ac_exeext'
27369 { (case "(($ac_try" in
27370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27371 *) ac_try_echo=$ac_try;;
27372esac
27373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27374 (eval "$ac_try") 2>&5
27375 ac_status=$?
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027378 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027379else
27380 echo "$as_me: failed program was:" >&5
27381sed 's/^/| /' conftest.$ac_ext >&5
27382
Reid Spencera773bd52006-08-04 18:18:08 +000027383 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027384fi
Reid Spencera773bd52006-08-04 18:18:08 +000027385
Bill Wendlingebcceee2009-04-18 11:20:33 +000027386rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027387 conftest$ac_exeext conftest.$ac_ext
27388LIBS=$ac_check_lib_save_LIBS
27389fi
Reid Spencera773bd52006-08-04 18:18:08 +000027390{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27391echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027392if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027393 cat >>confdefs.h <<_ACEOF
27394#define HAVE_LIBPSAPI 1
27395_ACEOF
27396
27397 LIBS="-lpsapi $LIBS"
27398
27399fi
27400
27401fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027402
Reid Spencera773bd52006-08-04 18:18:08 +000027403{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27404echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027405if test "${ac_cv_search_dlopen+set}" = set; then
27406 echo $ECHO_N "(cached) $ECHO_C" >&6
27407else
27408 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027409cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027410/* confdefs.h. */
27411_ACEOF
27412cat confdefs.h >>conftest.$ac_ext
27413cat >>conftest.$ac_ext <<_ACEOF
27414/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027415
Reid Spencera773bd52006-08-04 18:18:08 +000027416/* Override any GCC internal prototype to avoid an error.
27417 Use char because int might match the return type of a GCC
27418 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027419#ifdef __cplusplus
27420extern "C"
27421#endif
John Criswell7a73b802003-06-30 21:59:07 +000027422char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027423int
27424main ()
27425{
Reid Spencera773bd52006-08-04 18:18:08 +000027426return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027427 ;
27428 return 0;
27429}
27430_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027431for ac_lib in '' dl; do
27432 if test -z "$ac_lib"; then
27433 ac_res="none required"
27434 else
27435 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027436 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027437 fi
27438 rm -f conftest.$ac_objext conftest$ac_exeext
27439if { (ac_try="$ac_link"
27440case "(($ac_try" in
27441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442 *) ac_try_echo=$ac_try;;
27443esac
27444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027446 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027447 grep -v '^ *+' conftest.er1 >conftest.err
27448 rm -f conftest.er1
27449 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027451 (exit $ac_status); } &&
27452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27453 { (case "(($ac_try" in
27454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27455 *) ac_try_echo=$ac_try;;
27456esac
27457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27458 (eval "$ac_try") 2>&5
27459 ac_status=$?
27460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); }; } &&
27462 { ac_try='test -s conftest$ac_exeext'
27463 { (case "(($ac_try" in
27464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27465 *) ac_try_echo=$ac_try;;
27466esac
27467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27468 (eval "$ac_try") 2>&5
27469 ac_status=$?
27470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27471 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027472 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027473else
27474 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027475sed 's/^/| /' conftest.$ac_ext >&5
27476
Reid Spencera773bd52006-08-04 18:18:08 +000027477
John Criswell7a73b802003-06-30 21:59:07 +000027478fi
Reid Spencera773bd52006-08-04 18:18:08 +000027479
Bill Wendlingebcceee2009-04-18 11:20:33 +000027480rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027481 conftest$ac_exeext
27482 if test "${ac_cv_search_dlopen+set}" = set; then
27483 break
John Criswell7a73b802003-06-30 21:59:07 +000027484fi
Reid Spencera773bd52006-08-04 18:18:08 +000027485done
27486if test "${ac_cv_search_dlopen+set}" = set; then
27487 :
27488else
27489 ac_cv_search_dlopen=no
27490fi
27491rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027492LIBS=$ac_func_search_save_LIBS
27493fi
Reid Spencera773bd52006-08-04 18:18:08 +000027494{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27495echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27496ac_res=$ac_cv_search_dlopen
27497if test "$ac_res" != no; then
27498 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027499
27500cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027501#define HAVE_DLOPEN 1
27502_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027503
27504else
Brian Gaekec45be042003-10-07 06:01:34 +000027505 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27506echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027507fi
27508
27509
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027510if test "$llvm_cv_enable_libffi" = "yes" ; then
27511 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
Nick Lewycky267fddb2009-04-13 04:26:27 +000027512echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
27513if test "${ac_cv_search_ffi_call+set}" = set; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027514 echo $ECHO_N "(cached) $ECHO_C" >&6
27515else
Nick Lewycky267fddb2009-04-13 04:26:27 +000027516 ac_func_search_save_LIBS=$LIBS
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027517cat >conftest.$ac_ext <<_ACEOF
27518/* confdefs.h. */
27519_ACEOF
27520cat confdefs.h >>conftest.$ac_ext
27521cat >>conftest.$ac_ext <<_ACEOF
27522/* end confdefs.h. */
27523
27524/* Override any GCC internal prototype to avoid an error.
27525 Use char because int might match the return type of a GCC
27526 builtin and then its argument prototype would still apply. */
27527#ifdef __cplusplus
27528extern "C"
27529#endif
27530char ffi_call ();
27531int
27532main ()
27533{
27534return ffi_call ();
27535 ;
27536 return 0;
27537}
27538_ACEOF
Nick Lewycky267fddb2009-04-13 04:26:27 +000027539for ac_lib in '' ffi; do
27540 if test -z "$ac_lib"; then
27541 ac_res="none required"
27542 else
27543 ac_res=-l$ac_lib
27544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27545 fi
27546 rm -f conftest.$ac_objext conftest$ac_exeext
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027547if { (ac_try="$ac_link"
27548case "(($ac_try" in
27549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27550 *) ac_try_echo=$ac_try;;
27551esac
27552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27553 (eval "$ac_link") 2>conftest.er1
27554 ac_status=$?
27555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
27558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027559 (exit $ac_status); } &&
27560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27561 { (case "(($ac_try" in
27562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27563 *) ac_try_echo=$ac_try;;
27564esac
27565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27566 (eval "$ac_try") 2>&5
27567 ac_status=$?
27568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27569 (exit $ac_status); }; } &&
27570 { ac_try='test -s conftest$ac_exeext'
27571 { (case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27574esac
27575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_try") 2>&5
27577 ac_status=$?
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); }; }; then
Nick Lewycky267fddb2009-04-13 04:26:27 +000027580 ac_cv_search_ffi_call=$ac_res
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027581else
27582 echo "$as_me: failed program was:" >&5
27583sed 's/^/| /' conftest.$ac_ext >&5
27584
Nick Lewycky267fddb2009-04-13 04:26:27 +000027585
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027586fi
27587
Bill Wendlingebcceee2009-04-18 11:20:33 +000027588rm -f core conftest.err conftest.$ac_objext \
Nick Lewycky267fddb2009-04-13 04:26:27 +000027589 conftest$ac_exeext
27590 if test "${ac_cv_search_ffi_call+set}" = set; then
27591 break
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027592fi
Nick Lewycky267fddb2009-04-13 04:26:27 +000027593done
27594if test "${ac_cv_search_ffi_call+set}" = set; then
27595 :
27596else
27597 ac_cv_search_ffi_call=no
27598fi
27599rm conftest.$ac_ext
27600LIBS=$ac_func_search_save_LIBS
27601fi
27602{ echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
27603echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
27604ac_res=$ac_cv_search_ffi_call
27605if test "$ac_res" != no; then
27606 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27607
27608cat >>confdefs.h <<\_ACEOF
27609#define HAVE_FFI_CALL 1
27610_ACEOF
27611
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027612else
27613 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27614echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27615fi
27616
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000027617fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027618
Reid Spencera773bd52006-08-04 18:18:08 +000027619{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27620echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027621if test "${ac_cv_search_mallinfo+set}" = set; then
27622 echo $ECHO_N "(cached) $ECHO_C" >&6
27623else
27624 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027625cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027626/* confdefs.h. */
27627_ACEOF
27628cat confdefs.h >>conftest.$ac_ext
27629cat >>conftest.$ac_ext <<_ACEOF
27630/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027631
Reid Spencera773bd52006-08-04 18:18:08 +000027632/* Override any GCC internal prototype to avoid an error.
27633 Use char because int might match the return type of a GCC
27634 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027635#ifdef __cplusplus
27636extern "C"
27637#endif
John Criswell7a73b802003-06-30 21:59:07 +000027638char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027639int
27640main ()
27641{
Reid Spencera773bd52006-08-04 18:18:08 +000027642return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027643 ;
27644 return 0;
27645}
27646_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027647for ac_lib in '' malloc; do
27648 if test -z "$ac_lib"; then
27649 ac_res="none required"
27650 else
27651 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027653 fi
27654 rm -f conftest.$ac_objext conftest$ac_exeext
27655if { (ac_try="$ac_link"
27656case "(($ac_try" in
27657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27658 *) ac_try_echo=$ac_try;;
27659esac
27660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27661 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027662 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027663 grep -v '^ *+' conftest.er1 >conftest.err
27664 rm -f conftest.er1
27665 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027667 (exit $ac_status); } &&
27668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27669 { (case "(($ac_try" in
27670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671 *) ac_try_echo=$ac_try;;
27672esac
27673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674 (eval "$ac_try") 2>&5
27675 ac_status=$?
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); }; } &&
27678 { ac_try='test -s conftest$ac_exeext'
27679 { (case "(($ac_try" in
27680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681 *) ac_try_echo=$ac_try;;
27682esac
27683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684 (eval "$ac_try") 2>&5
27685 ac_status=$?
27686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27687 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027688 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027689else
27690 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027691sed 's/^/| /' conftest.$ac_ext >&5
27692
Reid Spencera773bd52006-08-04 18:18:08 +000027693
John Criswell7a73b802003-06-30 21:59:07 +000027694fi
Reid Spencera773bd52006-08-04 18:18:08 +000027695
Bill Wendlingebcceee2009-04-18 11:20:33 +000027696rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027697 conftest$ac_exeext
27698 if test "${ac_cv_search_mallinfo+set}" = set; then
27699 break
John Criswell7a73b802003-06-30 21:59:07 +000027700fi
Reid Spencera773bd52006-08-04 18:18:08 +000027701done
27702if test "${ac_cv_search_mallinfo+set}" = set; then
27703 :
27704else
27705 ac_cv_search_mallinfo=no
27706fi
27707rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027708LIBS=$ac_func_search_save_LIBS
27709fi
Reid Spencera773bd52006-08-04 18:18:08 +000027710{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27711echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27712ac_res=$ac_cv_search_mallinfo
27713if test "$ac_res" != no; then
27714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027715
27716cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027717#define HAVE_MALLINFO 1
27718_ACEOF
27719
27720fi
27721
27722
Reid Spencer0a262ba2005-08-24 10:07:20 +000027723if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027724
Reid Spencera773bd52006-08-04 18:18:08 +000027725{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27726echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027727if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27728 echo $ECHO_N "(cached) $ECHO_C" >&6
27729else
27730 ac_check_lib_save_LIBS=$LIBS
27731LIBS="-lpthread $LIBS"
27732cat >conftest.$ac_ext <<_ACEOF
27733/* confdefs.h. */
27734_ACEOF
27735cat confdefs.h >>conftest.$ac_ext
27736cat >>conftest.$ac_ext <<_ACEOF
27737/* end confdefs.h. */
27738
Reid Spencera773bd52006-08-04 18:18:08 +000027739/* Override any GCC internal prototype to avoid an error.
27740 Use char because int might match the return type of a GCC
27741 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027742#ifdef __cplusplus
27743extern "C"
27744#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027745char pthread_mutex_init ();
27746int
27747main ()
27748{
Reid Spencera773bd52006-08-04 18:18:08 +000027749return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027750 ;
27751 return 0;
27752}
27753_ACEOF
27754rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027755if { (ac_try="$ac_link"
27756case "(($ac_try" in
27757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758 *) ac_try_echo=$ac_try;;
27759esac
27760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027762 ac_status=$?
27763 grep -v '^ *+' conftest.er1 >conftest.err
27764 rm -f conftest.er1
27765 cat conftest.err >&5
27766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027767 (exit $ac_status); } &&
27768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27769 { (case "(($ac_try" in
27770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27771 *) ac_try_echo=$ac_try;;
27772esac
27773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27774 (eval "$ac_try") 2>&5
27775 ac_status=$?
27776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777 (exit $ac_status); }; } &&
27778 { ac_try='test -s conftest$ac_exeext'
27779 { (case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27782esac
27783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784 (eval "$ac_try") 2>&5
27785 ac_status=$?
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027788 ac_cv_lib_pthread_pthread_mutex_init=yes
27789else
27790 echo "$as_me: failed program was:" >&5
27791sed 's/^/| /' conftest.$ac_ext >&5
27792
Reid Spencera773bd52006-08-04 18:18:08 +000027793 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027794fi
Reid Spencera773bd52006-08-04 18:18:08 +000027795
Bill Wendlingebcceee2009-04-18 11:20:33 +000027796rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027797 conftest$ac_exeext conftest.$ac_ext
27798LIBS=$ac_check_lib_save_LIBS
27799fi
Reid Spencera773bd52006-08-04 18:18:08 +000027800{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27801echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027802if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27803 cat >>confdefs.h <<_ACEOF
27804#define HAVE_LIBPTHREAD 1
27805_ACEOF
27806
27807 LIBS="-lpthread $LIBS"
27808
27809fi
27810
Reid Spencera773bd52006-08-04 18:18:08 +000027811 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27812echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027813if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27814 echo $ECHO_N "(cached) $ECHO_C" >&6
27815else
27816 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027817cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027818/* confdefs.h. */
27819_ACEOF
27820cat confdefs.h >>conftest.$ac_ext
27821cat >>conftest.$ac_ext <<_ACEOF
27822/* end confdefs.h. */
27823
Reid Spencera773bd52006-08-04 18:18:08 +000027824/* Override any GCC internal prototype to avoid an error.
27825 Use char because int might match the return type of a GCC
27826 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027827#ifdef __cplusplus
27828extern "C"
27829#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027830char pthread_mutex_lock ();
27831int
27832main ()
27833{
Reid Spencera773bd52006-08-04 18:18:08 +000027834return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027835 ;
27836 return 0;
27837}
27838_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027839for ac_lib in '' pthread; do
27840 if test -z "$ac_lib"; then
27841 ac_res="none required"
27842 else
27843 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027845 fi
27846 rm -f conftest.$ac_objext conftest$ac_exeext
27847if { (ac_try="$ac_link"
27848case "(($ac_try" in
27849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27850 *) ac_try_echo=$ac_try;;
27851esac
27852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27853 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027854 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027855 grep -v '^ *+' conftest.er1 >conftest.err
27856 rm -f conftest.er1
27857 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000027859 (exit $ac_status); } &&
27860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27861 { (case "(($ac_try" in
27862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27863 *) ac_try_echo=$ac_try;;
27864esac
27865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27866 (eval "$ac_try") 2>&5
27867 ac_status=$?
27868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27869 (exit $ac_status); }; } &&
27870 { ac_try='test -s conftest$ac_exeext'
27871 { (case "(($ac_try" in
27872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27873 *) ac_try_echo=$ac_try;;
27874esac
27875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27876 (eval "$ac_try") 2>&5
27877 ac_status=$?
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027880 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027881else
27882 echo "$as_me: failed program was:" >&5
27883sed 's/^/| /' conftest.$ac_ext >&5
27884
Reid Spencera773bd52006-08-04 18:18:08 +000027885
Brian Gaeke5f268f72003-12-05 19:29:01 +000027886fi
Reid Spencera773bd52006-08-04 18:18:08 +000027887
Bill Wendlingebcceee2009-04-18 11:20:33 +000027888rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027889 conftest$ac_exeext
27890 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27891 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027892fi
Reid Spencera773bd52006-08-04 18:18:08 +000027893done
27894if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27895 :
27896else
27897 ac_cv_search_pthread_mutex_lock=no
27898fi
27899rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027900LIBS=$ac_func_search_save_LIBS
27901fi
Reid Spencera773bd52006-08-04 18:18:08 +000027902{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27903echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27904ac_res=$ac_cv_search_pthread_mutex_lock
27905if test "$ac_res" != no; then
27906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027907
John Criswell40468462004-09-24 21:19:06 +000027908cat >>confdefs.h <<\_ACEOF
27909#define HAVE_PTHREAD_MUTEX_LOCK 1
27910_ACEOF
27911
27912fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027913
Owen Andersonde8aed22009-06-16 18:20:20 +000027914 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
27915echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
27916if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27917 echo $ECHO_N "(cached) $ECHO_C" >&6
27918else
27919 ac_func_search_save_LIBS=$LIBS
27920cat >conftest.$ac_ext <<_ACEOF
27921/* confdefs.h. */
27922_ACEOF
27923cat confdefs.h >>conftest.$ac_ext
27924cat >>conftest.$ac_ext <<_ACEOF
27925/* end confdefs.h. */
27926
27927/* Override any GCC internal prototype to avoid an error.
27928 Use char because int might match the return type of a GCC
27929 builtin and then its argument prototype would still apply. */
27930#ifdef __cplusplus
27931extern "C"
27932#endif
27933char pthread_rwlock_init ();
27934int
27935main ()
27936{
27937return pthread_rwlock_init ();
27938 ;
27939 return 0;
27940}
27941_ACEOF
27942for ac_lib in '' pthread; do
27943 if test -z "$ac_lib"; then
27944 ac_res="none required"
27945 else
27946 ac_res=-l$ac_lib
27947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27948 fi
27949 rm -f conftest.$ac_objext conftest$ac_exeext
27950if { (ac_try="$ac_link"
27951case "(($ac_try" in
27952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27953 *) ac_try_echo=$ac_try;;
27954esac
27955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27956 (eval "$ac_link") 2>conftest.er1
27957 ac_status=$?
27958 grep -v '^ *+' conftest.er1 >conftest.err
27959 rm -f conftest.er1
27960 cat conftest.err >&5
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); } &&
27963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27964 { (case "(($ac_try" in
27965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27966 *) ac_try_echo=$ac_try;;
27967esac
27968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27969 (eval "$ac_try") 2>&5
27970 ac_status=$?
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; } &&
27973 { ac_try='test -s conftest$ac_exeext'
27974 { (case "(($ac_try" in
27975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976 *) ac_try_echo=$ac_try;;
27977esac
27978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979 (eval "$ac_try") 2>&5
27980 ac_status=$?
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); }; }; then
27983 ac_cv_search_pthread_rwlock_init=$ac_res
27984else
27985 echo "$as_me: failed program was:" >&5
27986sed 's/^/| /' conftest.$ac_ext >&5
27987
27988
27989fi
27990
27991rm -f core conftest.err conftest.$ac_objext \
27992 conftest$ac_exeext
27993 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27994 break
27995fi
27996done
27997if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
27998 :
27999else
28000 ac_cv_search_pthread_rwlock_init=no
28001fi
28002rm conftest.$ac_ext
28003LIBS=$ac_func_search_save_LIBS
28004fi
28005{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
28006echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
28007ac_res=$ac_cv_search_pthread_rwlock_init
28008if test "$ac_res" != no; then
28009 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28010
28011cat >>confdefs.h <<\_ACEOF
28012#define HAVE_PTHREAD_RWLOCK_INIT 1
28013_ACEOF
28014
28015fi
28016
Reid Spencer0a262ba2005-08-24 10:07:20 +000028017fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028018
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028019
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028020# Check whether --with-udis86 was given.
28021if test "${with_udis86+set}" = set; then
28022 withval=$with_udis86;
28023 USE_UDIS86=1
28024
28025 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028026 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028027 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28028 esac
28029
28030{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28031echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28032if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28033 echo $ECHO_N "(cached) $ECHO_C" >&6
28034else
28035 ac_check_lib_save_LIBS=$LIBS
28036LIBS="-ludis86 $LIBS"
28037cat >conftest.$ac_ext <<_ACEOF
28038/* confdefs.h. */
28039_ACEOF
28040cat confdefs.h >>conftest.$ac_ext
28041cat >>conftest.$ac_ext <<_ACEOF
28042/* end confdefs.h. */
28043
28044/* Override any GCC internal prototype to avoid an error.
28045 Use char because int might match the return type of a GCC
28046 builtin and then its argument prototype would still apply. */
28047#ifdef __cplusplus
28048extern "C"
28049#endif
28050char ud_init ();
28051int
28052main ()
28053{
28054return ud_init ();
28055 ;
28056 return 0;
28057}
28058_ACEOF
28059rm -f conftest.$ac_objext conftest$ac_exeext
28060if { (ac_try="$ac_link"
28061case "(($ac_try" in
28062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28063 *) ac_try_echo=$ac_try;;
28064esac
28065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28066 (eval "$ac_link") 2>conftest.er1
28067 ac_status=$?
28068 grep -v '^ *+' conftest.er1 >conftest.err
28069 rm -f conftest.er1
28070 cat conftest.err >&5
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028072 (exit $ac_status); } &&
28073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28074 { (case "(($ac_try" in
28075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076 *) ac_try_echo=$ac_try;;
28077esac
28078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079 (eval "$ac_try") 2>&5
28080 ac_status=$?
28081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082 (exit $ac_status); }; } &&
28083 { ac_try='test -s conftest$ac_exeext'
28084 { (case "(($ac_try" in
28085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28086 *) ac_try_echo=$ac_try;;
28087esac
28088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28089 (eval "$ac_try") 2>&5
28090 ac_status=$?
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028093 ac_cv_lib_udis86_ud_init=yes
28094else
28095 echo "$as_me: failed program was:" >&5
28096sed 's/^/| /' conftest.$ac_ext >&5
28097
28098 ac_cv_lib_udis86_ud_init=no
28099fi
28100
Bill Wendlingebcceee2009-04-18 11:20:33 +000028101rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028102 conftest$ac_exeext conftest.$ac_ext
28103LIBS=$ac_check_lib_save_LIBS
28104fi
28105{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28106echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28107if test $ac_cv_lib_udis86_ud_init = yes; then
28108 cat >>confdefs.h <<_ACEOF
28109#define HAVE_LIBUDIS86 1
28110_ACEOF
28111
28112 LIBS="-ludis86 $LIBS"
28113
28114else
28115
28116 echo "Error! You need to have libudis86 around."
28117 exit -1
28118
28119fi
28120
28121
28122else
28123 USE_UDIS86=0
28124
28125fi
28126
28127
28128cat >>confdefs.h <<_ACEOF
28129#define USE_UDIS86 $USE_UDIS86
28130_ACEOF
28131
28132
28133
Reid Spencer59473af2004-12-25 07:31:29 +000028134
28135
28136
28137
28138
28139ac_header_dirent=no
28140for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28141 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028142{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28143echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028145 echo $ECHO_N "(cached) $ECHO_C" >&6
28146else
28147 cat >conftest.$ac_ext <<_ACEOF
28148/* confdefs.h. */
28149_ACEOF
28150cat confdefs.h >>conftest.$ac_ext
28151cat >>conftest.$ac_ext <<_ACEOF
28152/* end confdefs.h. */
28153#include <sys/types.h>
28154#include <$ac_hdr>
28155
28156int
28157main ()
28158{
28159if ((DIR *) 0)
28160return 0;
28161 ;
28162 return 0;
28163}
28164_ACEOF
28165rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028166if { (ac_try="$ac_compile"
28167case "(($ac_try" in
28168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169 *) ac_try_echo=$ac_try;;
28170esac
28171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028173 ac_status=$?
28174 grep -v '^ *+' conftest.er1 >conftest.err
28175 rm -f conftest.er1
28176 cat conftest.err >&5
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028178 (exit $ac_status); } &&
28179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28180 { (case "(($ac_try" in
28181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182 *) ac_try_echo=$ac_try;;
28183esac
28184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28185 (eval "$ac_try") 2>&5
28186 ac_status=$?
28187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28188 (exit $ac_status); }; } &&
28189 { ac_try='test -s conftest.$ac_objext'
28190 { (case "(($ac_try" in
28191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28192 *) ac_try_echo=$ac_try;;
28193esac
28194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28195 (eval "$ac_try") 2>&5
28196 ac_status=$?
28197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28198 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028199 eval "$as_ac_Header=yes"
28200else
28201 echo "$as_me: failed program was:" >&5
28202sed 's/^/| /' conftest.$ac_ext >&5
28203
Reid Spencera773bd52006-08-04 18:18:08 +000028204 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028205fi
Reid Spencera773bd52006-08-04 18:18:08 +000028206
28207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028208fi
Reid Spencera773bd52006-08-04 18:18:08 +000028209ac_res=`eval echo '${'$as_ac_Header'}'`
28210 { echo "$as_me:$LINENO: result: $ac_res" >&5
28211echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028212if test `eval echo '${'$as_ac_Header'}'` = yes; then
28213 cat >>confdefs.h <<_ACEOF
28214#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28215_ACEOF
28216
28217ac_header_dirent=$ac_hdr; break
28218fi
28219
28220done
28221# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28222if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028223 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28224echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028225if test "${ac_cv_search_opendir+set}" = set; then
28226 echo $ECHO_N "(cached) $ECHO_C" >&6
28227else
28228 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028229cat >conftest.$ac_ext <<_ACEOF
28230/* confdefs.h. */
28231_ACEOF
28232cat confdefs.h >>conftest.$ac_ext
28233cat >>conftest.$ac_ext <<_ACEOF
28234/* end confdefs.h. */
28235
Reid Spencera773bd52006-08-04 18:18:08 +000028236/* Override any GCC internal prototype to avoid an error.
28237 Use char because int might match the return type of a GCC
28238 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028239#ifdef __cplusplus
28240extern "C"
28241#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028242char opendir ();
28243int
28244main ()
28245{
Reid Spencera773bd52006-08-04 18:18:08 +000028246return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028247 ;
28248 return 0;
28249}
28250_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028251for ac_lib in '' dir; do
28252 if test -z "$ac_lib"; then
28253 ac_res="none required"
28254 else
28255 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028257 fi
28258 rm -f conftest.$ac_objext conftest$ac_exeext
28259if { (ac_try="$ac_link"
28260case "(($ac_try" in
28261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262 *) ac_try_echo=$ac_try;;
28263esac
28264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028266 ac_status=$?
28267 grep -v '^ *+' conftest.er1 >conftest.err
28268 rm -f conftest.er1
28269 cat conftest.err >&5
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028271 (exit $ac_status); } &&
28272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28273 { (case "(($ac_try" in
28274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275 *) ac_try_echo=$ac_try;;
28276esac
28277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278 (eval "$ac_try") 2>&5
28279 ac_status=$?
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; } &&
28282 { ac_try='test -s conftest$ac_exeext'
28283 { (case "(($ac_try" in
28284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285 *) ac_try_echo=$ac_try;;
28286esac
28287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28288 (eval "$ac_try") 2>&5
28289 ac_status=$?
28290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28291 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028292 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028293else
28294 echo "$as_me: failed program was:" >&5
28295sed 's/^/| /' conftest.$ac_ext >&5
28296
Reid Spencera773bd52006-08-04 18:18:08 +000028297
Reid Spencer59473af2004-12-25 07:31:29 +000028298fi
Reid Spencera773bd52006-08-04 18:18:08 +000028299
Bill Wendlingebcceee2009-04-18 11:20:33 +000028300rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028301 conftest$ac_exeext
28302 if test "${ac_cv_search_opendir+set}" = set; then
28303 break
Reid Spencer59473af2004-12-25 07:31:29 +000028304fi
Reid Spencera773bd52006-08-04 18:18:08 +000028305done
28306if test "${ac_cv_search_opendir+set}" = set; then
28307 :
28308else
28309 ac_cv_search_opendir=no
28310fi
28311rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028312LIBS=$ac_func_search_save_LIBS
28313fi
Reid Spencera773bd52006-08-04 18:18:08 +000028314{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28315echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28316ac_res=$ac_cv_search_opendir
28317if test "$ac_res" != no; then
28318 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028319
28320fi
28321
28322else
Reid Spencera773bd52006-08-04 18:18:08 +000028323 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28324echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028325if test "${ac_cv_search_opendir+set}" = set; then
28326 echo $ECHO_N "(cached) $ECHO_C" >&6
28327else
28328 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028329cat >conftest.$ac_ext <<_ACEOF
28330/* confdefs.h. */
28331_ACEOF
28332cat confdefs.h >>conftest.$ac_ext
28333cat >>conftest.$ac_ext <<_ACEOF
28334/* end confdefs.h. */
28335
Reid Spencera773bd52006-08-04 18:18:08 +000028336/* Override any GCC internal prototype to avoid an error.
28337 Use char because int might match the return type of a GCC
28338 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028339#ifdef __cplusplus
28340extern "C"
28341#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028342char opendir ();
28343int
28344main ()
28345{
Reid Spencera773bd52006-08-04 18:18:08 +000028346return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028347 ;
28348 return 0;
28349}
28350_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028351for ac_lib in '' x; do
28352 if test -z "$ac_lib"; then
28353 ac_res="none required"
28354 else
28355 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028357 fi
28358 rm -f conftest.$ac_objext conftest$ac_exeext
28359if { (ac_try="$ac_link"
28360case "(($ac_try" in
28361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362 *) ac_try_echo=$ac_try;;
28363esac
28364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028366 ac_status=$?
28367 grep -v '^ *+' conftest.er1 >conftest.err
28368 rm -f conftest.er1
28369 cat conftest.err >&5
28370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028371 (exit $ac_status); } &&
28372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28373 { (case "(($ac_try" in
28374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28375 *) ac_try_echo=$ac_try;;
28376esac
28377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28378 (eval "$ac_try") 2>&5
28379 ac_status=$?
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); }; } &&
28382 { ac_try='test -s conftest$ac_exeext'
28383 { (case "(($ac_try" in
28384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385 *) ac_try_echo=$ac_try;;
28386esac
28387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388 (eval "$ac_try") 2>&5
28389 ac_status=$?
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028392 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028393else
28394 echo "$as_me: failed program was:" >&5
28395sed 's/^/| /' conftest.$ac_ext >&5
28396
Reid Spencera773bd52006-08-04 18:18:08 +000028397
Reid Spencer59473af2004-12-25 07:31:29 +000028398fi
Reid Spencera773bd52006-08-04 18:18:08 +000028399
Bill Wendlingebcceee2009-04-18 11:20:33 +000028400rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028401 conftest$ac_exeext
28402 if test "${ac_cv_search_opendir+set}" = set; then
28403 break
Reid Spencer59473af2004-12-25 07:31:29 +000028404fi
Reid Spencera773bd52006-08-04 18:18:08 +000028405done
28406if test "${ac_cv_search_opendir+set}" = set; then
28407 :
28408else
28409 ac_cv_search_opendir=no
28410fi
28411rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028412LIBS=$ac_func_search_save_LIBS
28413fi
Reid Spencera773bd52006-08-04 18:18:08 +000028414{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28415echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28416ac_res=$ac_cv_search_opendir
28417if test "$ac_res" != no; then
28418 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028419
28420fi
28421
28422fi
28423
Reid Spencera773bd52006-08-04 18:18:08 +000028424{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28425echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028426if test "${ac_cv_header_mmap_anon+set}" = set; then
28427 echo $ECHO_N "(cached) $ECHO_C" >&6
28428else
28429 ac_ext=c
28430ac_cpp='$CPP $CPPFLAGS'
28431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28433ac_compiler_gnu=$ac_cv_c_compiler_gnu
28434
28435 cat >conftest.$ac_ext <<_ACEOF
28436/* confdefs.h. */
28437_ACEOF
28438cat confdefs.h >>conftest.$ac_ext
28439cat >>conftest.$ac_ext <<_ACEOF
28440/* end confdefs.h. */
28441#include <sys/mman.h>
28442#include <unistd.h>
28443#include <fcntl.h>
28444int
28445main ()
28446{
28447mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28448 ;
28449 return 0;
28450}
28451_ACEOF
28452rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028453if { (ac_try="$ac_compile"
28454case "(($ac_try" in
28455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28456 *) ac_try_echo=$ac_try;;
28457esac
28458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28459 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028460 ac_status=$?
28461 grep -v '^ *+' conftest.er1 >conftest.err
28462 rm -f conftest.er1
28463 cat conftest.err >&5
28464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028465 (exit $ac_status); } &&
28466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28467 { (case "(($ac_try" in
28468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28470esac
28471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472 (eval "$ac_try") 2>&5
28473 ac_status=$?
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); }; } &&
28476 { ac_try='test -s conftest.$ac_objext'
28477 { (case "(($ac_try" in
28478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28479 *) ac_try_echo=$ac_try;;
28480esac
28481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28482 (eval "$ac_try") 2>&5
28483 ac_status=$?
28484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28485 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028486 ac_cv_header_mmap_anon=yes
28487else
28488 echo "$as_me: failed program was:" >&5
28489sed 's/^/| /' conftest.$ac_ext >&5
28490
Reid Spencera773bd52006-08-04 18:18:08 +000028491 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028492fi
Reid Spencera773bd52006-08-04 18:18:08 +000028493
28494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028495 ac_ext=c
28496ac_cpp='$CPP $CPPFLAGS'
28497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28499ac_compiler_gnu=$ac_cv_c_compiler_gnu
28500
28501
28502fi
Reid Spencera773bd52006-08-04 18:18:08 +000028503{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28504echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028505if test "$ac_cv_header_mmap_anon" = yes; then
28506
28507cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028508#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028509_ACEOF
28510
28511fi
28512
Reid Spencera773bd52006-08-04 18:18:08 +000028513{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28514echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028515if test "${ac_cv_header_stat_broken+set}" = set; then
28516 echo $ECHO_N "(cached) $ECHO_C" >&6
28517else
28518 cat >conftest.$ac_ext <<_ACEOF
28519/* confdefs.h. */
28520_ACEOF
28521cat confdefs.h >>conftest.$ac_ext
28522cat >>conftest.$ac_ext <<_ACEOF
28523/* end confdefs.h. */
28524#include <sys/types.h>
28525#include <sys/stat.h>
28526
Reid Spencera773bd52006-08-04 18:18:08 +000028527#if defined S_ISBLK && defined S_IFDIR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028528# if S_ISBLK (S_IFDIR)
28529You lose.
28530# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028531#endif
28532
Reid Spencera773bd52006-08-04 18:18:08 +000028533#if defined S_ISBLK && defined S_IFCHR
Bill Wendlingebcceee2009-04-18 11:20:33 +000028534# if S_ISBLK (S_IFCHR)
28535You lose.
28536# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028537#endif
28538
Reid Spencera773bd52006-08-04 18:18:08 +000028539#if defined S_ISLNK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028540# if S_ISLNK (S_IFREG)
28541You lose.
28542# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028543#endif
28544
Reid Spencera773bd52006-08-04 18:18:08 +000028545#if defined S_ISSOCK && defined S_IFREG
Bill Wendlingebcceee2009-04-18 11:20:33 +000028546# if S_ISSOCK (S_IFREG)
28547You lose.
28548# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028549#endif
28550
28551_ACEOF
Bill Wendlingebcceee2009-04-18 11:20:33 +000028552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28553 $EGREP "You lose" >/dev/null 2>&1; then
28554 ac_cv_header_stat_broken=yes
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028555else
Bill Wendlingebcceee2009-04-18 11:20:33 +000028556 ac_cv_header_stat_broken=no
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028557fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000028558rm -f conftest*
Mikhail Glushenkove8501462009-04-18 09:59:26 +000028559
Reid Spencer59473af2004-12-25 07:31:29 +000028560fi
Reid Spencera773bd52006-08-04 18:18:08 +000028561{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28562echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028563if test $ac_cv_header_stat_broken = yes; then
28564
28565cat >>confdefs.h <<\_ACEOF
28566#define STAT_MACROS_BROKEN 1
28567_ACEOF
28568
28569fi
28570
Reid Spencera773bd52006-08-04 18:18:08 +000028571{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28572echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028573if test "${ac_cv_header_stdc+set}" = set; then
28574 echo $ECHO_N "(cached) $ECHO_C" >&6
28575else
28576 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028577/* confdefs.h. */
28578_ACEOF
28579cat confdefs.h >>conftest.$ac_ext
28580cat >>conftest.$ac_ext <<_ACEOF
28581/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028582#include <stdlib.h>
28583#include <stdarg.h>
28584#include <string.h>
28585#include <float.h>
28586
John Criswell0c38eaf2003-09-10 15:17:25 +000028587int
28588main ()
28589{
28590
28591 ;
28592 return 0;
28593}
John Criswell7a73b802003-06-30 21:59:07 +000028594_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028595rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028596if { (ac_try="$ac_compile"
28597case "(($ac_try" in
28598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28599 *) ac_try_echo=$ac_try;;
28600esac
28601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28602 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028603 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028604 grep -v '^ *+' conftest.er1 >conftest.err
28605 rm -f conftest.er1
28606 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028608 (exit $ac_status); } &&
28609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28613esac
28614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; } &&
28619 { ac_try='test -s conftest.$ac_objext'
28620 { (case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28623esac
28624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625 (eval "$ac_try") 2>&5
28626 ac_status=$?
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028629 ac_cv_header_stdc=yes
28630else
28631 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028632sed 's/^/| /' conftest.$ac_ext >&5
28633
Reid Spencera773bd52006-08-04 18:18:08 +000028634 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028635fi
Reid Spencera773bd52006-08-04 18:18:08 +000028636
28637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028638
28639if test $ac_cv_header_stdc = yes; then
28640 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28641 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028642/* confdefs.h. */
28643_ACEOF
28644cat confdefs.h >>conftest.$ac_ext
28645cat >>conftest.$ac_ext <<_ACEOF
28646/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028647#include <string.h>
28648
28649_ACEOF
28650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028651 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028652 :
28653else
28654 ac_cv_header_stdc=no
28655fi
28656rm -f conftest*
28657
28658fi
28659
28660if test $ac_cv_header_stdc = yes; then
28661 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28662 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028663/* confdefs.h. */
28664_ACEOF
28665cat confdefs.h >>conftest.$ac_ext
28666cat >>conftest.$ac_ext <<_ACEOF
28667/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028668#include <stdlib.h>
28669
28670_ACEOF
28671if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028672 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028673 :
28674else
28675 ac_cv_header_stdc=no
28676fi
28677rm -f conftest*
28678
28679fi
28680
28681if test $ac_cv_header_stdc = yes; then
28682 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28683 if test "$cross_compiling" = yes; then
28684 :
28685else
28686 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028687/* confdefs.h. */
28688_ACEOF
28689cat confdefs.h >>conftest.$ac_ext
28690cat >>conftest.$ac_ext <<_ACEOF
28691/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028692#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028693#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028694#if ((' ' & 0x0FF) == 0x020)
28695# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28696# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28697#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028698# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028699 (('a' <= (c) && (c) <= 'i') \
28700 || ('j' <= (c) && (c) <= 'r') \
28701 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028702# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28703#endif
28704
28705#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28706int
28707main ()
28708{
28709 int i;
28710 for (i = 0; i < 256; i++)
28711 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028712 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028713 return 2;
28714 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028715}
28716_ACEOF
28717rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028718if { (ac_try="$ac_link"
28719case "(($ac_try" in
28720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28722esac
28723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028725 ac_status=$?
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028728 { (case "(($ac_try" in
28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28730 *) ac_try_echo=$ac_try;;
28731esac
28732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28733 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028734 ac_status=$?
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; }; then
28737 :
28738else
28739 echo "$as_me: program exited with status $ac_status" >&5
28740echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028741sed 's/^/| /' conftest.$ac_ext >&5
28742
John Criswell7a73b802003-06-30 21:59:07 +000028743( exit $ac_status )
28744ac_cv_header_stdc=no
28745fi
Reid Spencera773bd52006-08-04 18:18:08 +000028746rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28747fi
28748
28749
John Criswell7a73b802003-06-30 21:59:07 +000028750fi
28751fi
Reid Spencera773bd52006-08-04 18:18:08 +000028752{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28753echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028754if test $ac_cv_header_stdc = yes; then
28755
28756cat >>confdefs.h <<\_ACEOF
28757#define STDC_HEADERS 1
28758_ACEOF
28759
28760fi
28761
Reid Spencera773bd52006-08-04 18:18:08 +000028762{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28763echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028764if test "${ac_cv_header_sys_wait_h+set}" = set; then
28765 echo $ECHO_N "(cached) $ECHO_C" >&6
28766else
28767 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028768/* confdefs.h. */
28769_ACEOF
28770cat confdefs.h >>conftest.$ac_ext
28771cat >>conftest.$ac_ext <<_ACEOF
28772/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028773#include <sys/types.h>
28774#include <sys/wait.h>
28775#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028776# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028777#endif
28778#ifndef WIFEXITED
28779# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28780#endif
28781
John Criswell7a73b802003-06-30 21:59:07 +000028782int
28783main ()
28784{
28785 int s;
28786 wait (&s);
28787 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28788 ;
28789 return 0;
28790}
28791_ACEOF
28792rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028793if { (ac_try="$ac_compile"
28794case "(($ac_try" in
28795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28796 *) ac_try_echo=$ac_try;;
28797esac
28798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28799 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028800 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028801 grep -v '^ *+' conftest.er1 >conftest.err
28802 rm -f conftest.er1
28803 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028805 (exit $ac_status); } &&
28806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28807 { (case "(($ac_try" in
28808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809 *) ac_try_echo=$ac_try;;
28810esac
28811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812 (eval "$ac_try") 2>&5
28813 ac_status=$?
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); }; } &&
28816 { ac_try='test -s conftest.$ac_objext'
28817 { (case "(($ac_try" in
28818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28819 *) ac_try_echo=$ac_try;;
28820esac
28821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28822 (eval "$ac_try") 2>&5
28823 ac_status=$?
28824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028826 ac_cv_header_sys_wait_h=yes
28827else
28828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028829sed 's/^/| /' conftest.$ac_ext >&5
28830
Reid Spencera773bd52006-08-04 18:18:08 +000028831 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028832fi
Reid Spencera773bd52006-08-04 18:18:08 +000028833
28834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028835fi
Reid Spencera773bd52006-08-04 18:18:08 +000028836{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28837echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028838if test $ac_cv_header_sys_wait_h = yes; then
28839
28840cat >>confdefs.h <<\_ACEOF
28841#define HAVE_SYS_WAIT_H 1
28842_ACEOF
28843
28844fi
28845
Reid Spencera773bd52006-08-04 18:18:08 +000028846{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28847echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028848if test "${ac_cv_header_time+set}" = set; then
28849 echo $ECHO_N "(cached) $ECHO_C" >&6
28850else
28851 cat >conftest.$ac_ext <<_ACEOF
28852/* confdefs.h. */
28853_ACEOF
28854cat confdefs.h >>conftest.$ac_ext
28855cat >>conftest.$ac_ext <<_ACEOF
28856/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028857#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028858#include <sys/time.h>
28859#include <time.h>
28860
28861int
28862main ()
28863{
28864if ((struct tm *) 0)
28865return 0;
28866 ;
28867 return 0;
28868}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028869_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028870rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028871if { (ac_try="$ac_compile"
28872case "(($ac_try" in
28873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28874 *) ac_try_echo=$ac_try;;
28875esac
28876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28877 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028878 ac_status=$?
28879 grep -v '^ *+' conftest.er1 >conftest.err
28880 rm -f conftest.er1
28881 cat conftest.err >&5
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028883 (exit $ac_status); } &&
28884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28885 { (case "(($ac_try" in
28886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28887 *) ac_try_echo=$ac_try;;
28888esac
28889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28890 (eval "$ac_try") 2>&5
28891 ac_status=$?
28892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); }; } &&
28894 { ac_try='test -s conftest.$ac_objext'
28895 { (case "(($ac_try" in
28896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897 *) ac_try_echo=$ac_try;;
28898esac
28899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900 (eval "$ac_try") 2>&5
28901 ac_status=$?
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028904 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028905else
28906 echo "$as_me: failed program was:" >&5
28907sed 's/^/| /' conftest.$ac_ext >&5
28908
Reid Spencera773bd52006-08-04 18:18:08 +000028909 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028910fi
Reid Spencera773bd52006-08-04 18:18:08 +000028911
28912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028913fi
Reid Spencera773bd52006-08-04 18:18:08 +000028914{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28915echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028916if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028917
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028918cat >>confdefs.h <<\_ACEOF
28919#define TIME_WITH_SYS_TIME 1
28920_ACEOF
28921
28922fi
28923
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028924
Reid Spencer59473af2004-12-25 07:31:29 +000028925
28926
28927
28928
28929
28930
28931for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28932do
28933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028934if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028938 echo $ECHO_N "(cached) $ECHO_C" >&6
28939fi
Reid Spencera773bd52006-08-04 18:18:08 +000028940ac_res=`eval echo '${'$as_ac_Header'}'`
28941 { echo "$as_me:$LINENO: result: $ac_res" >&5
28942echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028943else
28944 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028945{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28946echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028947cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028948/* confdefs.h. */
28949_ACEOF
28950cat confdefs.h >>conftest.$ac_ext
28951cat >>conftest.$ac_ext <<_ACEOF
28952/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028953$ac_includes_default
28954#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028955_ACEOF
28956rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028957if { (ac_try="$ac_compile"
28958case "(($ac_try" in
28959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960 *) ac_try_echo=$ac_try;;
28961esac
28962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028964 ac_status=$?
28965 grep -v '^ *+' conftest.er1 >conftest.err
28966 rm -f conftest.er1
28967 cat conftest.err >&5
28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000028969 (exit $ac_status); } &&
28970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28971 { (case "(($ac_try" in
28972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28973 *) ac_try_echo=$ac_try;;
28974esac
28975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28976 (eval "$ac_try") 2>&5
28977 ac_status=$?
28978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979 (exit $ac_status); }; } &&
28980 { ac_try='test -s conftest.$ac_objext'
28981 { (case "(($ac_try" in
28982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28983 *) ac_try_echo=$ac_try;;
28984esac
28985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28986 (eval "$ac_try") 2>&5
28987 ac_status=$?
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028990 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028991else
28992 echo "$as_me: failed program was:" >&5
28993sed 's/^/| /' conftest.$ac_ext >&5
28994
Reid Spencera773bd52006-08-04 18:18:08 +000028995 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028996fi
Reid Spencera773bd52006-08-04 18:18:08 +000028997
28998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28999{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29000echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029001
Reid Spencer59473af2004-12-25 07:31:29 +000029002# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029003{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29004echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029005cat >conftest.$ac_ext <<_ACEOF
29006/* confdefs.h. */
29007_ACEOF
29008cat confdefs.h >>conftest.$ac_ext
29009cat >>conftest.$ac_ext <<_ACEOF
29010/* end confdefs.h. */
29011#include <$ac_header>
29012_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029013if { (ac_try="$ac_cpp conftest.$ac_ext"
29014case "(($ac_try" in
29015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016 *) ac_try_echo=$ac_try;;
29017esac
29018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029020 ac_status=$?
29021 grep -v '^ *+' conftest.er1 >conftest.err
29022 rm -f conftest.er1
29023 cat conftest.err >&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029025 (exit $ac_status); } >/dev/null; then
29026 if test -s conftest.err; then
29027 ac_cpp_err=$ac_c_preproc_warn_flag
29028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29029 else
29030 ac_cpp_err=
29031 fi
29032else
29033 ac_cpp_err=yes
29034fi
29035if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029036 ac_header_preproc=yes
29037else
29038 echo "$as_me: failed program was:" >&5
29039sed 's/^/| /' conftest.$ac_ext >&5
29040
29041 ac_header_preproc=no
29042fi
Reid Spencera773bd52006-08-04 18:18:08 +000029043
Reid Spencer59473af2004-12-25 07:31:29 +000029044rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029045{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29046echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029047
29048# So? What about this header?
29049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29050 yes:no: )
29051 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29052echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29054echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29055 ac_header_preproc=yes
29056 ;;
29057 no:yes:* )
29058 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29059echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29060 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29061echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29062 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29063echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29064 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29065echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29067echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29068 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29069echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029070 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029071## ----------------------------------- ##
29072## Report this to llvmbugs@cs.uiuc.edu ##
29073## ----------------------------------- ##
29074_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029075 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029076 ;;
29077esac
Reid Spencera773bd52006-08-04 18:18:08 +000029078{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29080if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029081 echo $ECHO_N "(cached) $ECHO_C" >&6
29082else
29083 eval "$as_ac_Header=\$ac_header_preproc"
29084fi
Reid Spencera773bd52006-08-04 18:18:08 +000029085ac_res=`eval echo '${'$as_ac_Header'}'`
29086 { echo "$as_me:$LINENO: result: $ac_res" >&5
29087echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029088
29089fi
Reid Spencer59473af2004-12-25 07:31:29 +000029090if test `eval echo '${'$as_ac_Header'}'` = yes; then
29091 cat >>confdefs.h <<_ACEOF
29092#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029093_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029094
29095fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029096
Reid Spencer59473af2004-12-25 07:31:29 +000029097done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029098
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029099
29100
Reid Spencer59473af2004-12-25 07:31:29 +000029101
29102
29103
29104
Douglas Gregor071d73d2009-05-18 17:21:34 +000029105for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
Reid Spencer59473af2004-12-25 07:31:29 +000029106do
29107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029108if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29111if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029112 echo $ECHO_N "(cached) $ECHO_C" >&6
29113fi
Reid Spencera773bd52006-08-04 18:18:08 +000029114ac_res=`eval echo '${'$as_ac_Header'}'`
29115 { echo "$as_me:$LINENO: result: $ac_res" >&5
29116echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029117else
29118 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029119{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29120echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029121cat >conftest.$ac_ext <<_ACEOF
29122/* confdefs.h. */
29123_ACEOF
29124cat confdefs.h >>conftest.$ac_ext
29125cat >>conftest.$ac_ext <<_ACEOF
29126/* end confdefs.h. */
29127$ac_includes_default
29128#include <$ac_header>
29129_ACEOF
29130rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029131if { (ac_try="$ac_compile"
29132case "(($ac_try" in
29133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134 *) ac_try_echo=$ac_try;;
29135esac
29136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029138 ac_status=$?
29139 grep -v '^ *+' conftest.er1 >conftest.err
29140 rm -f conftest.er1
29141 cat conftest.err >&5
29142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029143 (exit $ac_status); } &&
29144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29145 { (case "(($ac_try" in
29146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29147 *) ac_try_echo=$ac_try;;
29148esac
29149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29150 (eval "$ac_try") 2>&5
29151 ac_status=$?
29152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153 (exit $ac_status); }; } &&
29154 { ac_try='test -s conftest.$ac_objext'
29155 { (case "(($ac_try" in
29156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29157 *) ac_try_echo=$ac_try;;
29158esac
29159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29160 (eval "$ac_try") 2>&5
29161 ac_status=$?
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029164 ac_header_compiler=yes
29165else
29166 echo "$as_me: failed program was:" >&5
29167sed 's/^/| /' conftest.$ac_ext >&5
29168
Reid Spencera773bd52006-08-04 18:18:08 +000029169 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029170fi
Reid Spencera773bd52006-08-04 18:18:08 +000029171
29172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29173{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29174echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029175
29176# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029177{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29178echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029179cat >conftest.$ac_ext <<_ACEOF
29180/* confdefs.h. */
29181_ACEOF
29182cat confdefs.h >>conftest.$ac_ext
29183cat >>conftest.$ac_ext <<_ACEOF
29184/* end confdefs.h. */
29185#include <$ac_header>
29186_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029187if { (ac_try="$ac_cpp conftest.$ac_ext"
29188case "(($ac_try" in
29189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190 *) ac_try_echo=$ac_try;;
29191esac
29192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029194 ac_status=$?
29195 grep -v '^ *+' conftest.er1 >conftest.err
29196 rm -f conftest.er1
29197 cat conftest.err >&5
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029199 (exit $ac_status); } >/dev/null; then
29200 if test -s conftest.err; then
29201 ac_cpp_err=$ac_c_preproc_warn_flag
29202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29203 else
29204 ac_cpp_err=
29205 fi
29206else
29207 ac_cpp_err=yes
29208fi
29209if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029210 ac_header_preproc=yes
29211else
29212 echo "$as_me: failed program was:" >&5
29213sed 's/^/| /' conftest.$ac_ext >&5
29214
29215 ac_header_preproc=no
29216fi
Reid Spencera773bd52006-08-04 18:18:08 +000029217
Reid Spencer59473af2004-12-25 07:31:29 +000029218rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029219{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29220echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029221
29222# So? What about this header?
29223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29224 yes:no: )
29225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29229 ac_header_preproc=yes
29230 ;;
29231 no:yes:* )
29232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29239echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029244 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029245## ----------------------------------- ##
29246## Report this to llvmbugs@cs.uiuc.edu ##
29247## ----------------------------------- ##
29248_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029249 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029250 ;;
29251esac
Reid Spencera773bd52006-08-04 18:18:08 +000029252{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29253echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029255 echo $ECHO_N "(cached) $ECHO_C" >&6
29256else
29257 eval "$as_ac_Header=\$ac_header_preproc"
29258fi
Reid Spencera773bd52006-08-04 18:18:08 +000029259ac_res=`eval echo '${'$as_ac_Header'}'`
29260 { echo "$as_me:$LINENO: result: $ac_res" >&5
29261echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029262
29263fi
29264if test `eval echo '${'$as_ac_Header'}'` = yes; then
29265 cat >>confdefs.h <<_ACEOF
29266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29267_ACEOF
29268
29269fi
29270
29271done
29272
29273
Douglas Gregor071d73d2009-05-18 17:21:34 +000029274
29275for ac_header in utime.h windows.h
Reid Spencerbe3e4192007-08-17 05:45:26 +000029276do
29277as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29280echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29282 echo $ECHO_N "(cached) $ECHO_C" >&6
29283fi
29284ac_res=`eval echo '${'$as_ac_Header'}'`
29285 { echo "$as_me:$LINENO: result: $ac_res" >&5
29286echo "${ECHO_T}$ac_res" >&6; }
29287else
29288 # Is the header compilable?
29289{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29290echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29291cat >conftest.$ac_ext <<_ACEOF
29292/* confdefs.h. */
29293_ACEOF
29294cat confdefs.h >>conftest.$ac_ext
29295cat >>conftest.$ac_ext <<_ACEOF
29296/* end confdefs.h. */
29297$ac_includes_default
29298#include <$ac_header>
29299_ACEOF
29300rm -f conftest.$ac_objext
29301if { (ac_try="$ac_compile"
29302case "(($ac_try" in
29303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29304 *) ac_try_echo=$ac_try;;
29305esac
29306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29307 (eval "$ac_compile") 2>conftest.er1
29308 ac_status=$?
29309 grep -v '^ *+' conftest.er1 >conftest.err
29310 rm -f conftest.er1
29311 cat conftest.err >&5
29312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029313 (exit $ac_status); } &&
29314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29315 { (case "(($ac_try" in
29316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29317 *) ac_try_echo=$ac_try;;
29318esac
29319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29320 (eval "$ac_try") 2>&5
29321 ac_status=$?
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; } &&
29324 { ac_try='test -s conftest.$ac_objext'
29325 { (case "(($ac_try" in
29326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327 *) ac_try_echo=$ac_try;;
29328esac
29329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330 (eval "$ac_try") 2>&5
29331 ac_status=$?
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029334 ac_header_compiler=yes
29335else
29336 echo "$as_me: failed program was:" >&5
29337sed 's/^/| /' conftest.$ac_ext >&5
29338
29339 ac_header_compiler=no
29340fi
29341
29342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29343{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29344echo "${ECHO_T}$ac_header_compiler" >&6; }
29345
29346# Is the header present?
29347{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29348echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29349cat >conftest.$ac_ext <<_ACEOF
29350/* confdefs.h. */
29351_ACEOF
29352cat confdefs.h >>conftest.$ac_ext
29353cat >>conftest.$ac_ext <<_ACEOF
29354/* end confdefs.h. */
29355#include <$ac_header>
29356_ACEOF
29357if { (ac_try="$ac_cpp conftest.$ac_ext"
29358case "(($ac_try" in
29359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29360 *) ac_try_echo=$ac_try;;
29361esac
29362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29364 ac_status=$?
29365 grep -v '^ *+' conftest.er1 >conftest.err
29366 rm -f conftest.er1
29367 cat conftest.err >&5
29368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029369 (exit $ac_status); } >/dev/null; then
29370 if test -s conftest.err; then
29371 ac_cpp_err=$ac_c_preproc_warn_flag
29372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29373 else
29374 ac_cpp_err=
29375 fi
29376else
29377 ac_cpp_err=yes
29378fi
29379if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029380 ac_header_preproc=yes
29381else
29382 echo "$as_me: failed program was:" >&5
29383sed 's/^/| /' conftest.$ac_ext >&5
29384
29385 ac_header_preproc=no
29386fi
29387
29388rm -f conftest.err conftest.$ac_ext
29389{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29390echo "${ECHO_T}$ac_header_preproc" >&6; }
29391
29392# So? What about this header?
29393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29394 yes:no: )
29395 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29396echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29398echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29399 ac_header_preproc=yes
29400 ;;
29401 no:yes:* )
29402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29403echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29405echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29406 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29407echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29408 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29409echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29411echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29412 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29413echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29414 ( cat <<\_ASBOX
29415## ----------------------------------- ##
29416## Report this to llvmbugs@cs.uiuc.edu ##
29417## ----------------------------------- ##
29418_ASBOX
29419 ) | sed "s/^/$as_me: WARNING: /" >&2
29420 ;;
29421esac
29422{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29425 echo $ECHO_N "(cached) $ECHO_C" >&6
29426else
29427 eval "$as_ac_Header=\$ac_header_preproc"
29428fi
29429ac_res=`eval echo '${'$as_ac_Header'}'`
29430 { echo "$as_me:$LINENO: result: $ac_res" >&5
29431echo "${ECHO_T}$ac_res" >&6; }
29432
29433fi
29434if test `eval echo '${'$as_ac_Header'}'` = yes; then
29435 cat >>confdefs.h <<_ACEOF
29436#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29437_ACEOF
29438
29439fi
29440
29441done
Reid Spencer59473af2004-12-25 07:31:29 +000029442
29443
29444
29445
Reid Spencerbe3e4192007-08-17 05:45:26 +000029446
29447for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029448do
29449as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029454 echo $ECHO_N "(cached) $ECHO_C" >&6
29455fi
Reid Spencera773bd52006-08-04 18:18:08 +000029456ac_res=`eval echo '${'$as_ac_Header'}'`
29457 { echo "$as_me:$LINENO: result: $ac_res" >&5
29458echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029459else
29460 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029461{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029463cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029464/* confdefs.h. */
29465_ACEOF
29466cat confdefs.h >>conftest.$ac_ext
29467cat >>conftest.$ac_ext <<_ACEOF
29468/* end confdefs.h. */
29469$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029470#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029471_ACEOF
29472rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029473if { (ac_try="$ac_compile"
29474case "(($ac_try" in
29475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29476 *) ac_try_echo=$ac_try;;
29477esac
29478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29479 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029480 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029481 grep -v '^ *+' conftest.er1 >conftest.err
29482 rm -f conftest.er1
29483 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029485 (exit $ac_status); } &&
29486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29487 { (case "(($ac_try" in
29488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489 *) ac_try_echo=$ac_try;;
29490esac
29491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29492 (eval "$ac_try") 2>&5
29493 ac_status=$?
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); }; } &&
29496 { ac_try='test -s conftest.$ac_objext'
29497 { (case "(($ac_try" in
29498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29499 *) ac_try_echo=$ac_try;;
29500esac
29501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29502 (eval "$ac_try") 2>&5
29503 ac_status=$?
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029506 ac_header_compiler=yes
29507else
29508 echo "$as_me: failed program was:" >&5
29509sed 's/^/| /' conftest.$ac_ext >&5
29510
Reid Spencera773bd52006-08-04 18:18:08 +000029511 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029512fi
Reid Spencera773bd52006-08-04 18:18:08 +000029513
29514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29515{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29516echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029517
29518# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029519{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29520echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029521cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029522/* confdefs.h. */
29523_ACEOF
29524cat confdefs.h >>conftest.$ac_ext
29525cat >>conftest.$ac_ext <<_ACEOF
29526/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029527#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029528_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029529if { (ac_try="$ac_cpp conftest.$ac_ext"
29530case "(($ac_try" in
29531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532 *) ac_try_echo=$ac_try;;
29533esac
29534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029536 ac_status=$?
29537 grep -v '^ *+' conftest.er1 >conftest.err
29538 rm -f conftest.er1
29539 cat conftest.err >&5
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029541 (exit $ac_status); } >/dev/null; then
29542 if test -s conftest.err; then
29543 ac_cpp_err=$ac_c_preproc_warn_flag
29544 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29545 else
29546 ac_cpp_err=
29547 fi
29548else
29549 ac_cpp_err=yes
29550fi
29551if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029552 ac_header_preproc=yes
29553else
29554 echo "$as_me: failed program was:" >&5
29555sed 's/^/| /' conftest.$ac_ext >&5
29556
29557 ac_header_preproc=no
29558fi
Reid Spencera773bd52006-08-04 18:18:08 +000029559
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029560rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029561{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29562echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029563
29564# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29566 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29570echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029571 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029572 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029573 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29575echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29577echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29579echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29581echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29585echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029586 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029587## ----------------------------------- ##
29588## Report this to llvmbugs@cs.uiuc.edu ##
29589## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029590_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029591 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029592 ;;
29593esac
Reid Spencera773bd52006-08-04 18:18:08 +000029594{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29596if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029597 echo $ECHO_N "(cached) $ECHO_C" >&6
29598else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029599 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029600fi
Reid Spencera773bd52006-08-04 18:18:08 +000029601ac_res=`eval echo '${'$as_ac_Header'}'`
29602 { echo "$as_me:$LINENO: result: $ac_res" >&5
29603echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029604
29605fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029606if test `eval echo '${'$as_ac_Header'}'` = yes; then
29607 cat >>confdefs.h <<_ACEOF
29608#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029609_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029610
29611fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029612
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029613done
29614
John Criswell7ed43ad2004-07-19 16:12:29 +000029615
Reid Spencercdb08a32006-06-05 16:11:07 +000029616
Reid Spencera6d990a2006-09-14 06:17:21 +000029617
Douglas Gregor01746742009-05-11 18:05:52 +000029618
29619for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029620do
29621as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29624echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29625if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029626 echo $ECHO_N "(cached) $ECHO_C" >&6
29627fi
Reid Spencera773bd52006-08-04 18:18:08 +000029628ac_res=`eval echo '${'$as_ac_Header'}'`
29629 { echo "$as_me:$LINENO: result: $ac_res" >&5
29630echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029631else
29632 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029633{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29634echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029635cat >conftest.$ac_ext <<_ACEOF
29636/* confdefs.h. */
29637_ACEOF
29638cat confdefs.h >>conftest.$ac_ext
29639cat >>conftest.$ac_ext <<_ACEOF
29640/* end confdefs.h. */
29641$ac_includes_default
29642#include <$ac_header>
29643_ACEOF
29644rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029645if { (ac_try="$ac_compile"
29646case "(($ac_try" in
29647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29648 *) ac_try_echo=$ac_try;;
29649esac
29650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29651 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029652 ac_status=$?
29653 grep -v '^ *+' conftest.er1 >conftest.err
29654 rm -f conftest.er1
29655 cat conftest.err >&5
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029657 (exit $ac_status); } &&
29658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29659 { (case "(($ac_try" in
29660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29661 *) ac_try_echo=$ac_try;;
29662esac
29663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29664 (eval "$ac_try") 2>&5
29665 ac_status=$?
29666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29667 (exit $ac_status); }; } &&
29668 { ac_try='test -s conftest.$ac_objext'
29669 { (case "(($ac_try" in
29670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29671 *) ac_try_echo=$ac_try;;
29672esac
29673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29674 (eval "$ac_try") 2>&5
29675 ac_status=$?
29676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29677 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029678 ac_header_compiler=yes
29679else
29680 echo "$as_me: failed program was:" >&5
29681sed 's/^/| /' conftest.$ac_ext >&5
29682
Reid Spencera773bd52006-08-04 18:18:08 +000029683 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029684fi
Reid Spencera773bd52006-08-04 18:18:08 +000029685
29686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29687{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29688echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029689
29690# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029691{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029693cat >conftest.$ac_ext <<_ACEOF
29694/* confdefs.h. */
29695_ACEOF
29696cat confdefs.h >>conftest.$ac_ext
29697cat >>conftest.$ac_ext <<_ACEOF
29698/* end confdefs.h. */
29699#include <$ac_header>
29700_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029701if { (ac_try="$ac_cpp conftest.$ac_ext"
29702case "(($ac_try" in
29703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29704 *) ac_try_echo=$ac_try;;
29705esac
29706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029708 ac_status=$?
29709 grep -v '^ *+' conftest.er1 >conftest.err
29710 rm -f conftest.er1
29711 cat conftest.err >&5
29712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029713 (exit $ac_status); } >/dev/null; then
29714 if test -s conftest.err; then
29715 ac_cpp_err=$ac_c_preproc_warn_flag
29716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29717 else
29718 ac_cpp_err=
29719 fi
29720else
29721 ac_cpp_err=yes
29722fi
29723if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029724 ac_header_preproc=yes
29725else
29726 echo "$as_me: failed program was:" >&5
29727sed 's/^/| /' conftest.$ac_ext >&5
29728
29729 ac_header_preproc=no
29730fi
Reid Spencera773bd52006-08-04 18:18:08 +000029731
Chris Lattner0b142592005-11-14 06:57:34 +000029732rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029733{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29734echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029735
29736# So? What about this header?
29737case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29738 yes:no: )
29739 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29740echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29742echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29743 ac_header_preproc=yes
29744 ;;
29745 no:yes:* )
29746 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29747echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29748 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29749echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29750 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29751echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29752 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29753echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29755echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29756 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29757echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029758 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029759## ----------------------------------- ##
29760## Report this to llvmbugs@cs.uiuc.edu ##
29761## ----------------------------------- ##
29762_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029763 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029764 ;;
29765esac
Reid Spencera773bd52006-08-04 18:18:08 +000029766{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29767echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29768if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029769 echo $ECHO_N "(cached) $ECHO_C" >&6
29770else
29771 eval "$as_ac_Header=\$ac_header_preproc"
29772fi
Reid Spencera773bd52006-08-04 18:18:08 +000029773ac_res=`eval echo '${'$as_ac_Header'}'`
29774 { echo "$as_me:$LINENO: result: $ac_res" >&5
29775echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029776
29777fi
29778if test `eval echo '${'$as_ac_Header'}'` = yes; then
29779 cat >>confdefs.h <<_ACEOF
29780#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29781_ACEOF
29782
29783fi
29784
29785done
29786
Reid Spencer0a262ba2005-08-24 10:07:20 +000029787if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029788
29789for ac_header in pthread.h
29790do
29791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029796 echo $ECHO_N "(cached) $ECHO_C" >&6
29797fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029798ac_res=`eval echo '${'$as_ac_Header'}'`
29799 { echo "$as_me:$LINENO: result: $ac_res" >&5
29800echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029801else
29802 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029803{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029805cat >conftest.$ac_ext <<_ACEOF
29806/* confdefs.h. */
29807_ACEOF
29808cat confdefs.h >>conftest.$ac_ext
29809cat >>conftest.$ac_ext <<_ACEOF
29810/* end confdefs.h. */
29811$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029812#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029813_ACEOF
29814rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029815if { (ac_try="$ac_compile"
29816case "(($ac_try" in
29817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29818 *) ac_try_echo=$ac_try;;
29819esac
29820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29821 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029822 ac_status=$?
29823 grep -v '^ *+' conftest.er1 >conftest.err
29824 rm -f conftest.er1
29825 cat conftest.err >&5
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029827 (exit $ac_status); } &&
29828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29829 { (case "(($ac_try" in
29830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29831 *) ac_try_echo=$ac_try;;
29832esac
29833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29834 (eval "$ac_try") 2>&5
29835 ac_status=$?
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); }; } &&
29838 { ac_try='test -s conftest.$ac_objext'
29839 { (case "(($ac_try" in
29840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29841 *) ac_try_echo=$ac_try;;
29842esac
29843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29844 (eval "$ac_try") 2>&5
29845 ac_status=$?
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029848 ac_header_compiler=yes
29849else
29850 echo "$as_me: failed program was:" >&5
29851sed 's/^/| /' conftest.$ac_ext >&5
29852
Reid Spencera773bd52006-08-04 18:18:08 +000029853 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029854fi
Reid Spencera773bd52006-08-04 18:18:08 +000029855
29856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29857{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29858echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029859
29860# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029861{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029863cat >conftest.$ac_ext <<_ACEOF
29864/* confdefs.h. */
29865_ACEOF
29866cat confdefs.h >>conftest.$ac_ext
29867cat >>conftest.$ac_ext <<_ACEOF
29868/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029869#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029870_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029871if { (ac_try="$ac_cpp conftest.$ac_ext"
29872case "(($ac_try" in
29873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29874 *) ac_try_echo=$ac_try;;
29875esac
29876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029878 ac_status=$?
29879 grep -v '^ *+' conftest.er1 >conftest.err
29880 rm -f conftest.er1
29881 cat conftest.err >&5
29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000029883 (exit $ac_status); } >/dev/null; then
29884 if test -s conftest.err; then
29885 ac_cpp_err=$ac_c_preproc_warn_flag
29886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29887 else
29888 ac_cpp_err=
29889 fi
29890else
29891 ac_cpp_err=yes
29892fi
29893if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029894 ac_header_preproc=yes
29895else
29896 echo "$as_me: failed program was:" >&5
29897sed 's/^/| /' conftest.$ac_ext >&5
29898
29899 ac_header_preproc=no
29900fi
Reid Spencera773bd52006-08-04 18:18:08 +000029901
Reid Spencer0a262ba2005-08-24 10:07:20 +000029902rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029903{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29904echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029905
29906# So? What about this header?
29907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29908 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029913 ac_header_preproc=yes
29914 ;;
29915 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29919echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29923echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029928 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029929## ----------------------------------- ##
29930## Report this to llvmbugs@cs.uiuc.edu ##
29931## ----------------------------------- ##
29932_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029933 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029934 ;;
29935esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029936{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29938if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029939 echo $ECHO_N "(cached) $ECHO_C" >&6
29940else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029941 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029942fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029943ac_res=`eval echo '${'$as_ac_Header'}'`
29944 { echo "$as_me:$LINENO: result: $ac_res" >&5
29945echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029946
29947fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029948if test `eval echo '${'$as_ac_Header'}'` = yes; then
29949 cat >>confdefs.h <<_ACEOF
29950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29951_ACEOF
29952 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029953
29954else
29955 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029956
29957fi
29958
Reid Spencerbe3e4192007-08-17 05:45:26 +000029959done
Reid Spencer1000b732006-12-01 00:37:14 +000029960
29961else
29962 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029963
29964fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029965
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000029966if test "$llvm_cv_enable_libffi" = "yes" ; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029967
29968
29969for ac_header in ffi.h ffi/ffi.h
29970do
29971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29972if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29975if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29977fi
29978ac_res=`eval echo '${'$as_ac_Header'}'`
29979 { echo "$as_me:$LINENO: result: $ac_res" >&5
29980echo "${ECHO_T}$ac_res" >&6; }
29981else
29982 # Is the header compilable?
29983{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29984echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29985cat >conftest.$ac_ext <<_ACEOF
29986/* confdefs.h. */
29987_ACEOF
29988cat confdefs.h >>conftest.$ac_ext
29989cat >>conftest.$ac_ext <<_ACEOF
29990/* end confdefs.h. */
29991$ac_includes_default
29992#include <$ac_header>
29993_ACEOF
29994rm -f conftest.$ac_objext
29995if { (ac_try="$ac_compile"
29996case "(($ac_try" in
29997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29998 *) ac_try_echo=$ac_try;;
29999esac
30000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30001 (eval "$ac_compile") 2>conftest.er1
30002 ac_status=$?
30003 grep -v '^ *+' conftest.er1 >conftest.err
30004 rm -f conftest.er1
30005 cat conftest.err >&5
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030007 (exit $ac_status); } &&
30008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30009 { (case "(($ac_try" in
30010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30011 *) ac_try_echo=$ac_try;;
30012esac
30013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30014 (eval "$ac_try") 2>&5
30015 ac_status=$?
30016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30017 (exit $ac_status); }; } &&
30018 { ac_try='test -s conftest.$ac_objext'
30019 { (case "(($ac_try" in
30020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30021 *) ac_try_echo=$ac_try;;
30022esac
30023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30024 (eval "$ac_try") 2>&5
30025 ac_status=$?
30026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30027 (exit $ac_status); }; }; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030028 ac_header_compiler=yes
30029else
30030 echo "$as_me: failed program was:" >&5
30031sed 's/^/| /' conftest.$ac_ext >&5
30032
30033 ac_header_compiler=no
30034fi
30035
30036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30037{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30038echo "${ECHO_T}$ac_header_compiler" >&6; }
30039
30040# Is the header present?
30041{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
30042echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30043cat >conftest.$ac_ext <<_ACEOF
30044/* confdefs.h. */
30045_ACEOF
30046cat confdefs.h >>conftest.$ac_ext
30047cat >>conftest.$ac_ext <<_ACEOF
30048/* end confdefs.h. */
30049#include <$ac_header>
30050_ACEOF
30051if { (ac_try="$ac_cpp conftest.$ac_ext"
30052case "(($ac_try" in
30053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054 *) ac_try_echo=$ac_try;;
30055esac
30056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30058 ac_status=$?
30059 grep -v '^ *+' conftest.er1 >conftest.err
30060 rm -f conftest.er1
30061 cat conftest.err >&5
30062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030063 (exit $ac_status); } >/dev/null; then
30064 if test -s conftest.err; then
30065 ac_cpp_err=$ac_c_preproc_warn_flag
30066 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30067 else
30068 ac_cpp_err=
30069 fi
30070else
30071 ac_cpp_err=yes
30072fi
30073if test -z "$ac_cpp_err"; then
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030074 ac_header_preproc=yes
30075else
30076 echo "$as_me: failed program was:" >&5
30077sed 's/^/| /' conftest.$ac_ext >&5
30078
30079 ac_header_preproc=no
30080fi
30081
30082rm -f conftest.err conftest.$ac_ext
30083{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30084echo "${ECHO_T}$ac_header_preproc" >&6; }
30085
30086# So? What about this header?
30087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30088 yes:no: )
30089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30090echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30092echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30093 ac_header_preproc=yes
30094 ;;
30095 no:yes:* )
30096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30097echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30099echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30101echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30103echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30105echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30107echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30108 ( cat <<\_ASBOX
30109## ----------------------------------- ##
30110## Report this to llvmbugs@cs.uiuc.edu ##
30111## ----------------------------------- ##
30112_ASBOX
30113 ) | sed "s/^/$as_me: WARNING: /" >&2
30114 ;;
30115esac
30116{ echo "$as_me:$LINENO: checking for $ac_header" >&5
30117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30119 echo $ECHO_N "(cached) $ECHO_C" >&6
30120else
30121 eval "$as_ac_Header=\$ac_header_preproc"
30122fi
30123ac_res=`eval echo '${'$as_ac_Header'}'`
30124 { echo "$as_me:$LINENO: result: $ac_res" >&5
30125echo "${ECHO_T}$ac_res" >&6; }
30126
30127fi
30128if test `eval echo '${'$as_ac_Header'}'` = yes; then
30129 cat >>confdefs.h <<_ACEOF
30130#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30131_ACEOF
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030132
30133fi
30134
30135done
30136
Nick Lewyckyb4a921a2009-06-06 06:25:09 +000030137fi
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000030138
Nick Lewycky2ab1d862009-01-20 00:52:24 +000030139
Reid Spencer8085cff2005-01-16 02:58:39 +000030140
Reid Spencerb2ed05262006-11-03 18:04:08 +000030141 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
30142echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
30143if test "${ac_cv_huge_val_sanity+set}" = set; then
30144 echo $ECHO_N "(cached) $ECHO_C" >&6
30145else
30146
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030147 ac_ext=cpp
30148ac_cpp='$CXXCPP $CPPFLAGS'
30149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000030152
Reid Spencer6a7c0b72006-11-03 19:49:16 +000030153 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000030154 if test "$cross_compiling" = yes; then
30155 ac_cv_huge_val_sanity=yes
30156else
30157 cat >conftest.$ac_ext <<_ACEOF
30158/* confdefs.h. */
30159_ACEOF
30160cat confdefs.h >>conftest.$ac_ext
30161cat >>conftest.$ac_ext <<_ACEOF
30162/* end confdefs.h. */
30163#include <math.h>
30164int
30165main ()
30166{
30167double x = HUGE_VAL; return x != x;
30168 ;
30169 return 0;
30170}
30171_ACEOF
30172rm -f conftest$ac_exeext
30173if { (ac_try="$ac_link"
30174case "(($ac_try" in
30175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176 *) ac_try_echo=$ac_try;;
30177esac
30178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179 (eval "$ac_link") 2>&5
30180 ac_status=$?
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30183 { (case "(($ac_try" in
30184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30185 *) ac_try_echo=$ac_try;;
30186esac
30187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30188 (eval "$ac_try") 2>&5
30189 ac_status=$?
30190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191 (exit $ac_status); }; }; then
30192 ac_cv_huge_val_sanity=yes
30193else
30194 echo "$as_me: program exited with status $ac_status" >&5
30195echo "$as_me: failed program was:" >&5
30196sed 's/^/| /' conftest.$ac_ext >&5
30197
30198( exit $ac_status )
30199ac_cv_huge_val_sanity=no
30200fi
30201rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30202fi
30203
30204
30205 ac_ext=c
30206ac_cpp='$CPP $CPPFLAGS'
30207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30209ac_compiler_gnu=$ac_cv_c_compiler_gnu
30210
30211
30212fi
30213{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30214echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30215 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30216
30217
Reid Spencera773bd52006-08-04 18:18:08 +000030218{ echo "$as_me:$LINENO: checking for pid_t" >&5
30219echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030220if test "${ac_cv_type_pid_t+set}" = set; then
30221 echo $ECHO_N "(cached) $ECHO_C" >&6
30222else
30223 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030224/* confdefs.h. */
30225_ACEOF
30226cat confdefs.h >>conftest.$ac_ext
30227cat >>conftest.$ac_ext <<_ACEOF
30228/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030229$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030230typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030231int
30232main ()
30233{
Reid Spencera773bd52006-08-04 18:18:08 +000030234if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030235 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030236if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030237 return 0;
30238 ;
30239 return 0;
30240}
30241_ACEOF
30242rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030243if { (ac_try="$ac_compile"
30244case "(($ac_try" in
30245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30246 *) ac_try_echo=$ac_try;;
30247esac
30248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30249 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030250 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030251 grep -v '^ *+' conftest.er1 >conftest.err
30252 rm -f conftest.er1
30253 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030255 (exit $ac_status); } &&
30256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30257 { (case "(($ac_try" in
30258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30259 *) ac_try_echo=$ac_try;;
30260esac
30261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30262 (eval "$ac_try") 2>&5
30263 ac_status=$?
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); }; } &&
30266 { ac_try='test -s conftest.$ac_objext'
30267 { (case "(($ac_try" in
30268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30269 *) ac_try_echo=$ac_try;;
30270esac
30271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30272 (eval "$ac_try") 2>&5
30273 ac_status=$?
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030276 ac_cv_type_pid_t=yes
30277else
30278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030279sed 's/^/| /' conftest.$ac_ext >&5
30280
Reid Spencera773bd52006-08-04 18:18:08 +000030281 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030282fi
Reid Spencera773bd52006-08-04 18:18:08 +000030283
30284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030285fi
Reid Spencera773bd52006-08-04 18:18:08 +000030286{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30287echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030288if test $ac_cv_type_pid_t = yes; then
30289 :
30290else
30291
30292cat >>confdefs.h <<_ACEOF
30293#define pid_t int
30294_ACEOF
30295
30296fi
30297
Reid Spencera773bd52006-08-04 18:18:08 +000030298{ echo "$as_me:$LINENO: checking for size_t" >&5
30299echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030300if test "${ac_cv_type_size_t+set}" = set; then
30301 echo $ECHO_N "(cached) $ECHO_C" >&6
30302else
30303 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030304/* confdefs.h. */
30305_ACEOF
30306cat confdefs.h >>conftest.$ac_ext
30307cat >>conftest.$ac_ext <<_ACEOF
30308/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030309$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030310typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030311int
30312main ()
30313{
Reid Spencera773bd52006-08-04 18:18:08 +000030314if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030315 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030316if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030317 return 0;
30318 ;
30319 return 0;
30320}
30321_ACEOF
30322rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030323if { (ac_try="$ac_compile"
30324case "(($ac_try" in
30325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30326 *) ac_try_echo=$ac_try;;
30327esac
30328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30329 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030330 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030331 grep -v '^ *+' conftest.er1 >conftest.err
30332 rm -f conftest.er1
30333 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030335 (exit $ac_status); } &&
30336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30337 { (case "(($ac_try" in
30338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30339 *) ac_try_echo=$ac_try;;
30340esac
30341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342 (eval "$ac_try") 2>&5
30343 ac_status=$?
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); }; } &&
30346 { ac_try='test -s conftest.$ac_objext'
30347 { (case "(($ac_try" in
30348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349 *) ac_try_echo=$ac_try;;
30350esac
30351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352 (eval "$ac_try") 2>&5
30353 ac_status=$?
30354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030356 ac_cv_type_size_t=yes
30357else
30358 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030359sed 's/^/| /' conftest.$ac_ext >&5
30360
Reid Spencera773bd52006-08-04 18:18:08 +000030361 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030362fi
Reid Spencera773bd52006-08-04 18:18:08 +000030363
30364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030365fi
Reid Spencera773bd52006-08-04 18:18:08 +000030366{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30367echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030368if test $ac_cv_type_size_t = yes; then
30369 :
30370else
30371
30372cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030373#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030374_ACEOF
30375
30376fi
30377
Reid Spencera773bd52006-08-04 18:18:08 +000030378{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30379echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030380if test "${ac_cv_type_signal+set}" = set; then
30381 echo $ECHO_N "(cached) $ECHO_C" >&6
30382else
30383 cat >conftest.$ac_ext <<_ACEOF
30384/* confdefs.h. */
30385_ACEOF
30386cat confdefs.h >>conftest.$ac_ext
30387cat >>conftest.$ac_ext <<_ACEOF
30388/* end confdefs.h. */
30389#include <sys/types.h>
30390#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030391
30392int
30393main ()
30394{
Reid Spencera773bd52006-08-04 18:18:08 +000030395return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030396 ;
30397 return 0;
30398}
30399_ACEOF
30400rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030401if { (ac_try="$ac_compile"
30402case "(($ac_try" in
30403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30404 *) ac_try_echo=$ac_try;;
30405esac
30406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30407 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030408 ac_status=$?
30409 grep -v '^ *+' conftest.er1 >conftest.err
30410 rm -f conftest.er1
30411 cat conftest.err >&5
30412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030413 (exit $ac_status); } &&
30414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30415 { (case "(($ac_try" in
30416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30417 *) ac_try_echo=$ac_try;;
30418esac
30419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30420 (eval "$ac_try") 2>&5
30421 ac_status=$?
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); }; } &&
30424 { ac_try='test -s conftest.$ac_objext'
30425 { (case "(($ac_try" in
30426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30427 *) ac_try_echo=$ac_try;;
30428esac
30429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30430 (eval "$ac_try") 2>&5
30431 ac_status=$?
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030434 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030435else
30436 echo "$as_me: failed program was:" >&5
30437sed 's/^/| /' conftest.$ac_ext >&5
30438
Reid Spencera773bd52006-08-04 18:18:08 +000030439 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030440fi
Reid Spencera773bd52006-08-04 18:18:08 +000030441
30442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030443fi
Reid Spencera773bd52006-08-04 18:18:08 +000030444{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30445echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030446
30447cat >>confdefs.h <<_ACEOF
30448#define RETSIGTYPE $ac_cv_type_signal
30449_ACEOF
30450
30451
Reid Spencera773bd52006-08-04 18:18:08 +000030452{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30453echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030454if test "${ac_cv_struct_tm+set}" = set; then
30455 echo $ECHO_N "(cached) $ECHO_C" >&6
30456else
30457 cat >conftest.$ac_ext <<_ACEOF
30458/* confdefs.h. */
30459_ACEOF
30460cat confdefs.h >>conftest.$ac_ext
30461cat >>conftest.$ac_ext <<_ACEOF
30462/* end confdefs.h. */
30463#include <sys/types.h>
30464#include <time.h>
30465
30466int
30467main ()
30468{
Bill Wendlingebcceee2009-04-18 11:20:33 +000030469struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030470 ;
30471 return 0;
30472}
30473_ACEOF
30474rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030475if { (ac_try="$ac_compile"
30476case "(($ac_try" in
30477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30478 *) ac_try_echo=$ac_try;;
30479esac
30480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30481 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030482 ac_status=$?
30483 grep -v '^ *+' conftest.er1 >conftest.err
30484 rm -f conftest.er1
30485 cat conftest.err >&5
30486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030487 (exit $ac_status); } &&
30488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30489 { (case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30492esac
30493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_try") 2>&5
30495 ac_status=$?
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; } &&
30498 { ac_try='test -s conftest.$ac_objext'
30499 { (case "(($ac_try" in
30500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30501 *) ac_try_echo=$ac_try;;
30502esac
30503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30504 (eval "$ac_try") 2>&5
30505 ac_status=$?
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030508 ac_cv_struct_tm=time.h
30509else
30510 echo "$as_me: failed program was:" >&5
30511sed 's/^/| /' conftest.$ac_ext >&5
30512
Reid Spencera773bd52006-08-04 18:18:08 +000030513 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030514fi
Reid Spencera773bd52006-08-04 18:18:08 +000030515
30516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030517fi
Reid Spencera773bd52006-08-04 18:18:08 +000030518{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30519echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030520if test $ac_cv_struct_tm = sys/time.h; then
30521
30522cat >>confdefs.h <<\_ACEOF
30523#define TM_IN_SYS_TIME 1
30524_ACEOF
30525
30526fi
30527
Reid Spencera773bd52006-08-04 18:18:08 +000030528{ echo "$as_me:$LINENO: checking for int64_t" >&5
30529echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030530if test "${ac_cv_type_int64_t+set}" = set; then
30531 echo $ECHO_N "(cached) $ECHO_C" >&6
30532else
30533 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030534/* confdefs.h. */
30535_ACEOF
30536cat confdefs.h >>conftest.$ac_ext
30537cat >>conftest.$ac_ext <<_ACEOF
30538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030539$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030540typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030541int
30542main ()
30543{
Reid Spencera773bd52006-08-04 18:18:08 +000030544if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030545 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030546if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030547 return 0;
30548 ;
30549 return 0;
30550}
30551_ACEOF
30552rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030553if { (ac_try="$ac_compile"
30554case "(($ac_try" in
30555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30556 *) ac_try_echo=$ac_try;;
30557esac
30558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30559 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030560 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030561 grep -v '^ *+' conftest.er1 >conftest.err
30562 rm -f conftest.er1
30563 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030565 (exit $ac_status); } &&
30566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30567 { (case "(($ac_try" in
30568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30569 *) ac_try_echo=$ac_try;;
30570esac
30571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30572 (eval "$ac_try") 2>&5
30573 ac_status=$?
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); }; } &&
30576 { ac_try='test -s conftest.$ac_objext'
30577 { (case "(($ac_try" in
30578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30579 *) ac_try_echo=$ac_try;;
30580esac
30581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30582 (eval "$ac_try") 2>&5
30583 ac_status=$?
30584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030586 ac_cv_type_int64_t=yes
30587else
30588 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030589sed 's/^/| /' conftest.$ac_ext >&5
30590
Reid Spencera773bd52006-08-04 18:18:08 +000030591 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030592fi
Reid Spencera773bd52006-08-04 18:18:08 +000030593
30594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030595fi
Reid Spencera773bd52006-08-04 18:18:08 +000030596{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30597echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030598if test $ac_cv_type_int64_t = yes; then
30599
30600cat >>confdefs.h <<_ACEOF
30601#define HAVE_INT64_T 1
30602_ACEOF
30603
30604
30605else
30606 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30607echo "$as_me: error: Type int64_t required but not found" >&2;}
30608 { (exit 1); exit 1; }; }
30609fi
30610
Reid Spencera773bd52006-08-04 18:18:08 +000030611{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30612echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030613if test "${ac_cv_type_uint64_t+set}" = set; then
30614 echo $ECHO_N "(cached) $ECHO_C" >&6
30615else
30616 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030617/* confdefs.h. */
30618_ACEOF
30619cat confdefs.h >>conftest.$ac_ext
30620cat >>conftest.$ac_ext <<_ACEOF
30621/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030622$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030623typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030624int
30625main ()
30626{
Reid Spencera773bd52006-08-04 18:18:08 +000030627if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030628 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030629if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030630 return 0;
30631 ;
30632 return 0;
30633}
30634_ACEOF
30635rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030636if { (ac_try="$ac_compile"
30637case "(($ac_try" in
30638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30639 *) ac_try_echo=$ac_try;;
30640esac
30641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30642 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030643 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030644 grep -v '^ *+' conftest.er1 >conftest.err
30645 rm -f conftest.er1
30646 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030648 (exit $ac_status); } &&
30649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30650 { (case "(($ac_try" in
30651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30652 *) ac_try_echo=$ac_try;;
30653esac
30654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30655 (eval "$ac_try") 2>&5
30656 ac_status=$?
30657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658 (exit $ac_status); }; } &&
30659 { ac_try='test -s conftest.$ac_objext'
30660 { (case "(($ac_try" in
30661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30662 *) ac_try_echo=$ac_try;;
30663esac
30664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30665 (eval "$ac_try") 2>&5
30666 ac_status=$?
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030669 ac_cv_type_uint64_t=yes
30670else
30671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030672sed 's/^/| /' conftest.$ac_ext >&5
30673
Reid Spencera773bd52006-08-04 18:18:08 +000030674 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030675fi
Reid Spencera773bd52006-08-04 18:18:08 +000030676
30677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030678fi
Reid Spencera773bd52006-08-04 18:18:08 +000030679{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30680echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030681if test $ac_cv_type_uint64_t = yes; then
30682
30683cat >>confdefs.h <<_ACEOF
30684#define HAVE_UINT64_T 1
30685_ACEOF
30686
30687
30688else
Reid Spencera773bd52006-08-04 18:18:08 +000030689 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30690echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030691if test "${ac_cv_type_u_int64_t+set}" = set; then
30692 echo $ECHO_N "(cached) $ECHO_C" >&6
30693else
30694 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030695/* confdefs.h. */
30696_ACEOF
30697cat confdefs.h >>conftest.$ac_ext
30698cat >>conftest.$ac_ext <<_ACEOF
30699/* end confdefs.h. */
30700$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030701typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030702int
30703main ()
30704{
Reid Spencera773bd52006-08-04 18:18:08 +000030705if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030706 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030707if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030708 return 0;
30709 ;
30710 return 0;
30711}
30712_ACEOF
30713rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030714if { (ac_try="$ac_compile"
30715case "(($ac_try" in
30716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717 *) ac_try_echo=$ac_try;;
30718esac
30719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30720 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030721 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030722 grep -v '^ *+' conftest.er1 >conftest.err
30723 rm -f conftest.er1
30724 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030726 (exit $ac_status); } &&
30727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30728 { (case "(($ac_try" in
30729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30730 *) ac_try_echo=$ac_try;;
30731esac
30732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30733 (eval "$ac_try") 2>&5
30734 ac_status=$?
30735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 (exit $ac_status); }; } &&
30737 { ac_try='test -s conftest.$ac_objext'
30738 { (case "(($ac_try" in
30739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30740 *) ac_try_echo=$ac_try;;
30741esac
30742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30743 (eval "$ac_try") 2>&5
30744 ac_status=$?
30745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030747 ac_cv_type_u_int64_t=yes
30748else
30749 echo "$as_me: failed program was:" >&5
30750sed 's/^/| /' conftest.$ac_ext >&5
30751
Reid Spencera773bd52006-08-04 18:18:08 +000030752 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030753fi
Reid Spencera773bd52006-08-04 18:18:08 +000030754
30755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030756fi
Reid Spencera773bd52006-08-04 18:18:08 +000030757{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30758echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030759if test $ac_cv_type_u_int64_t = yes; then
30760
30761cat >>confdefs.h <<_ACEOF
30762#define HAVE_U_INT64_T 1
30763_ACEOF
30764
30765
Misha Brukmanceca9042004-09-02 23:02:30 +000030766else
30767 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30768echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30769 { (exit 1); exit 1; }; }
30770fi
30771
John Criswell679ff312004-09-02 18:44:44 +000030772fi
30773
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030774
30775
30776
30777
30778
30779
30780
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030781
30782
Reid Spencerdf3be822006-01-23 08:15:53 +000030783for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030784do
30785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030786{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30788if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030789 echo $ECHO_N "(cached) $ECHO_C" >&6
30790else
30791 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030792/* confdefs.h. */
30793_ACEOF
30794cat confdefs.h >>conftest.$ac_ext
30795cat >>conftest.$ac_ext <<_ACEOF
30796/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30799#define $ac_func innocuous_$ac_func
30800
30801/* System header to define __stub macros and hopefully few prototypes,
30802 which can conflict with char $ac_func (); below.
30803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30804 <limits.h> exists even on freestanding compilers. */
30805
30806#ifdef __STDC__
30807# include <limits.h>
30808#else
30809# include <assert.h>
30810#endif
30811
30812#undef $ac_func
30813
Reid Spencera773bd52006-08-04 18:18:08 +000030814/* Override any GCC internal prototype to avoid an error.
30815 Use char because int might match the return type of a GCC
30816 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030817#ifdef __cplusplus
30818extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030819#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030820char $ac_func ();
30821/* The GNU C library defines this for functions which it implements
30822 to always fail with ENOSYS. Some functions are actually named
30823 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030824#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030825choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030826#endif
John Criswell7a73b802003-06-30 21:59:07 +000030827
John Criswell7a73b802003-06-30 21:59:07 +000030828int
30829main ()
30830{
Reid Spencera773bd52006-08-04 18:18:08 +000030831return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030832 ;
30833 return 0;
30834}
30835_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030836rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030837if { (ac_try="$ac_link"
30838case "(($ac_try" in
30839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30840 *) ac_try_echo=$ac_try;;
30841esac
30842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30843 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030844 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030845 grep -v '^ *+' conftest.er1 >conftest.err
30846 rm -f conftest.er1
30847 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030849 (exit $ac_status); } &&
30850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30851 { (case "(($ac_try" in
30852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30853 *) ac_try_echo=$ac_try;;
30854esac
30855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30856 (eval "$ac_try") 2>&5
30857 ac_status=$?
30858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859 (exit $ac_status); }; } &&
30860 { ac_try='test -s conftest$ac_exeext'
30861 { (case "(($ac_try" in
30862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30863 *) ac_try_echo=$ac_try;;
30864esac
30865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30866 (eval "$ac_try") 2>&5
30867 ac_status=$?
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030870 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030871else
30872 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030873sed 's/^/| /' conftest.$ac_ext >&5
30874
Reid Spencera773bd52006-08-04 18:18:08 +000030875 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030876fi
Reid Spencera773bd52006-08-04 18:18:08 +000030877
Bill Wendlingebcceee2009-04-18 11:20:33 +000030878rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030879 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030880fi
Reid Spencera773bd52006-08-04 18:18:08 +000030881ac_res=`eval echo '${'$as_ac_var'}'`
30882 { echo "$as_me:$LINENO: result: $ac_res" >&5
30883echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030884if test `eval echo '${'$as_ac_var'}'` = yes; then
30885 cat >>confdefs.h <<_ACEOF
30886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030887_ACEOF
30888
30889fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030890done
John Criswell7a73b802003-06-30 21:59:07 +000030891
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030892
30893
30894
Reid Spencer6af3d262004-12-15 04:01:48 +000030895
Reid Spencer96cf5872007-07-13 10:05:30 +000030896for ac_func in powf fmodf strtof round
30897do
30898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30899{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30901if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30902 echo $ECHO_N "(cached) $ECHO_C" >&6
30903else
30904 cat >conftest.$ac_ext <<_ACEOF
30905/* confdefs.h. */
30906_ACEOF
30907cat confdefs.h >>conftest.$ac_ext
30908cat >>conftest.$ac_ext <<_ACEOF
30909/* end confdefs.h. */
30910/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30912#define $ac_func innocuous_$ac_func
30913
30914/* System header to define __stub macros and hopefully few prototypes,
30915 which can conflict with char $ac_func (); below.
30916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30917 <limits.h> exists even on freestanding compilers. */
30918
30919#ifdef __STDC__
30920# include <limits.h>
30921#else
30922# include <assert.h>
30923#endif
30924
30925#undef $ac_func
30926
30927/* Override any GCC internal prototype to avoid an error.
30928 Use char because int might match the return type of a GCC
30929 builtin and then its argument prototype would still apply. */
30930#ifdef __cplusplus
30931extern "C"
30932#endif
30933char $ac_func ();
30934/* The GNU C library defines this for functions which it implements
30935 to always fail with ENOSYS. Some functions are actually named
30936 something starting with __ and the normal name is an alias. */
30937#if defined __stub_$ac_func || defined __stub___$ac_func
30938choke me
30939#endif
30940
30941int
30942main ()
30943{
30944return $ac_func ();
30945 ;
30946 return 0;
30947}
30948_ACEOF
30949rm -f conftest.$ac_objext conftest$ac_exeext
30950if { (ac_try="$ac_link"
30951case "(($ac_try" in
30952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30953 *) ac_try_echo=$ac_try;;
30954esac
30955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30956 (eval "$ac_link") 2>conftest.er1
30957 ac_status=$?
30958 grep -v '^ *+' conftest.er1 >conftest.err
30959 rm -f conftest.er1
30960 cat conftest.err >&5
30961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000030962 (exit $ac_status); } &&
30963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30964 { (case "(($ac_try" in
30965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30966 *) ac_try_echo=$ac_try;;
30967esac
30968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30969 (eval "$ac_try") 2>&5
30970 ac_status=$?
30971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972 (exit $ac_status); }; } &&
30973 { ac_try='test -s conftest$ac_exeext'
30974 { (case "(($ac_try" in
30975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30976 *) ac_try_echo=$ac_try;;
30977esac
30978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30979 (eval "$ac_try") 2>&5
30980 ac_status=$?
30981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030983 eval "$as_ac_var=yes"
30984else
30985 echo "$as_me: failed program was:" >&5
30986sed 's/^/| /' conftest.$ac_ext >&5
30987
30988 eval "$as_ac_var=no"
30989fi
30990
Bill Wendlingebcceee2009-04-18 11:20:33 +000030991rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030992 conftest$ac_exeext conftest.$ac_ext
30993fi
30994ac_res=`eval echo '${'$as_ac_var'}'`
30995 { echo "$as_me:$LINENO: result: $ac_res" >&5
30996echo "${ECHO_T}$ac_res" >&6; }
30997if test `eval echo '${'$as_ac_var'}'` = yes; then
30998 cat >>confdefs.h <<_ACEOF
30999#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31000_ACEOF
31001
31002fi
31003done
31004
31005
31006
31007
31008
Reid Spencer6af3d262004-12-15 04:01:48 +000031009
Reid Spencerb90645c2007-02-16 19:17:20 +000031010for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
31011do
31012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31013{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31015if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31016 echo $ECHO_N "(cached) $ECHO_C" >&6
31017else
31018 cat >conftest.$ac_ext <<_ACEOF
31019/* confdefs.h. */
31020_ACEOF
31021cat confdefs.h >>conftest.$ac_ext
31022cat >>conftest.$ac_ext <<_ACEOF
31023/* end confdefs.h. */
31024/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31026#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000031027
Reid Spencerb90645c2007-02-16 19:17:20 +000031028/* System header to define __stub macros and hopefully few prototypes,
31029 which can conflict with char $ac_func (); below.
31030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31031 <limits.h> exists even on freestanding compilers. */
31032
31033#ifdef __STDC__
31034# include <limits.h>
31035#else
31036# include <assert.h>
31037#endif
31038
31039#undef $ac_func
31040
31041/* Override any GCC internal prototype to avoid an error.
31042 Use char because int might match the return type of a GCC
31043 builtin and then its argument prototype would still apply. */
31044#ifdef __cplusplus
31045extern "C"
31046#endif
31047char $ac_func ();
31048/* The GNU C library defines this for functions which it implements
31049 to always fail with ENOSYS. Some functions are actually named
31050 something starting with __ and the normal name is an alias. */
31051#if defined __stub_$ac_func || defined __stub___$ac_func
31052choke me
31053#endif
31054
31055int
31056main ()
31057{
31058return $ac_func ();
31059 ;
31060 return 0;
31061}
31062_ACEOF
31063rm -f conftest.$ac_objext conftest$ac_exeext
31064if { (ac_try="$ac_link"
31065case "(($ac_try" in
31066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31067 *) ac_try_echo=$ac_try;;
31068esac
31069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31070 (eval "$ac_link") 2>conftest.er1
31071 ac_status=$?
31072 grep -v '^ *+' conftest.er1 >conftest.err
31073 rm -f conftest.er1
31074 cat conftest.err >&5
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031076 (exit $ac_status); } &&
31077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31078 { (case "(($ac_try" in
31079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31080 *) ac_try_echo=$ac_try;;
31081esac
31082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31083 (eval "$ac_try") 2>&5
31084 ac_status=$?
31085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086 (exit $ac_status); }; } &&
31087 { ac_try='test -s conftest$ac_exeext'
31088 { (case "(($ac_try" in
31089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31090 *) ac_try_echo=$ac_try;;
31091esac
31092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31093 (eval "$ac_try") 2>&5
31094 ac_status=$?
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31096 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000031097 eval "$as_ac_var=yes"
31098else
31099 echo "$as_me: failed program was:" >&5
31100sed 's/^/| /' conftest.$ac_ext >&5
31101
31102 eval "$as_ac_var=no"
31103fi
31104
Bill Wendlingebcceee2009-04-18 11:20:33 +000031105rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000031106 conftest$ac_exeext conftest.$ac_ext
31107fi
31108ac_res=`eval echo '${'$as_ac_var'}'`
31109 { echo "$as_me:$LINENO: result: $ac_res" >&5
31110echo "${ECHO_T}$ac_res" >&6; }
31111if test `eval echo '${'$as_ac_var'}'` = yes; then
31112 cat >>confdefs.h <<_ACEOF
31113#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31114_ACEOF
31115
31116fi
31117done
31118
31119
31120
31121
31122for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000031123do
31124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031125{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031128 echo $ECHO_N "(cached) $ECHO_C" >&6
31129else
31130 cat >conftest.$ac_ext <<_ACEOF
31131/* confdefs.h. */
31132_ACEOF
31133cat confdefs.h >>conftest.$ac_ext
31134cat >>conftest.$ac_ext <<_ACEOF
31135/* end confdefs.h. */
31136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31138#define $ac_func innocuous_$ac_func
31139
31140/* System header to define __stub macros and hopefully few prototypes,
31141 which can conflict with char $ac_func (); below.
31142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31143 <limits.h> exists even on freestanding compilers. */
31144
31145#ifdef __STDC__
31146# include <limits.h>
31147#else
31148# include <assert.h>
31149#endif
31150
31151#undef $ac_func
31152
Reid Spencera773bd52006-08-04 18:18:08 +000031153/* Override any GCC internal prototype to avoid an error.
31154 Use char because int might match the return type of a GCC
31155 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000031156#ifdef __cplusplus
31157extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000031158#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000031159char $ac_func ();
31160/* The GNU C library defines this for functions which it implements
31161 to always fail with ENOSYS. Some functions are actually named
31162 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031163#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000031164choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000031165#endif
31166
31167int
31168main ()
31169{
Reid Spencera773bd52006-08-04 18:18:08 +000031170return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000031171 ;
31172 return 0;
31173}
31174_ACEOF
31175rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031176if { (ac_try="$ac_link"
31177case "(($ac_try" in
31178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179 *) ac_try_echo=$ac_try;;
31180esac
31181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031183 ac_status=$?
31184 grep -v '^ *+' conftest.er1 >conftest.err
31185 rm -f conftest.er1
31186 cat conftest.err >&5
31187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031188 (exit $ac_status); } &&
31189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31190 { (case "(($ac_try" in
31191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31192 *) ac_try_echo=$ac_try;;
31193esac
31194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31195 (eval "$ac_try") 2>&5
31196 ac_status=$?
31197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198 (exit $ac_status); }; } &&
31199 { ac_try='test -s conftest$ac_exeext'
31200 { (case "(($ac_try" in
31201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202 *) ac_try_echo=$ac_try;;
31203esac
31204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205 (eval "$ac_try") 2>&5
31206 ac_status=$?
31207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031209 eval "$as_ac_var=yes"
31210else
31211 echo "$as_me: failed program was:" >&5
31212sed 's/^/| /' conftest.$ac_ext >&5
31213
Reid Spencera773bd52006-08-04 18:18:08 +000031214 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031215fi
Reid Spencera773bd52006-08-04 18:18:08 +000031216
Bill Wendlingebcceee2009-04-18 11:20:33 +000031217rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031218 conftest$ac_exeext conftest.$ac_ext
31219fi
Reid Spencera773bd52006-08-04 18:18:08 +000031220ac_res=`eval echo '${'$as_ac_var'}'`
31221 { echo "$as_me:$LINENO: result: $ac_res" >&5
31222echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031223if test `eval echo '${'$as_ac_var'}'` = yes; then
31224 cat >>confdefs.h <<_ACEOF
31225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31226_ACEOF
31227
31228fi
31229done
31230
31231
31232
31233
31234
31235
31236
31237
31238for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031239do
31240as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031241{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31242echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31243if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031244 echo $ECHO_N "(cached) $ECHO_C" >&6
31245else
31246 cat >conftest.$ac_ext <<_ACEOF
31247/* confdefs.h. */
31248_ACEOF
31249cat confdefs.h >>conftest.$ac_ext
31250cat >>conftest.$ac_ext <<_ACEOF
31251/* end confdefs.h. */
31252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31254#define $ac_func innocuous_$ac_func
31255
31256/* System header to define __stub macros and hopefully few prototypes,
31257 which can conflict with char $ac_func (); below.
31258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31259 <limits.h> exists even on freestanding compilers. */
31260
31261#ifdef __STDC__
31262# include <limits.h>
31263#else
31264# include <assert.h>
31265#endif
31266
31267#undef $ac_func
31268
Reid Spencera773bd52006-08-04 18:18:08 +000031269/* Override any GCC internal prototype to avoid an error.
31270 Use char because int might match the return type of a GCC
31271 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031272#ifdef __cplusplus
31273extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031274#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031275char $ac_func ();
31276/* The GNU C library defines this for functions which it implements
31277 to always fail with ENOSYS. Some functions are actually named
31278 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031279#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031280choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031281#endif
31282
31283int
31284main ()
31285{
Reid Spencera773bd52006-08-04 18:18:08 +000031286return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031287 ;
31288 return 0;
31289}
31290_ACEOF
31291rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031292if { (ac_try="$ac_link"
31293case "(($ac_try" in
31294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31295 *) ac_try_echo=$ac_try;;
31296esac
31297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031299 ac_status=$?
31300 grep -v '^ *+' conftest.er1 >conftest.err
31301 rm -f conftest.er1
31302 cat conftest.err >&5
31303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031304 (exit $ac_status); } &&
31305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31306 { (case "(($ac_try" in
31307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31308 *) ac_try_echo=$ac_try;;
31309esac
31310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31311 (eval "$ac_try") 2>&5
31312 ac_status=$?
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); }; } &&
31315 { ac_try='test -s conftest$ac_exeext'
31316 { (case "(($ac_try" in
31317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31318 *) ac_try_echo=$ac_try;;
31319esac
31320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31321 (eval "$ac_try") 2>&5
31322 ac_status=$?
31323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31324 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031325 eval "$as_ac_var=yes"
31326else
31327 echo "$as_me: failed program was:" >&5
31328sed 's/^/| /' conftest.$ac_ext >&5
31329
Reid Spencera773bd52006-08-04 18:18:08 +000031330 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031331fi
Reid Spencera773bd52006-08-04 18:18:08 +000031332
Bill Wendlingebcceee2009-04-18 11:20:33 +000031333rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031334 conftest$ac_exeext conftest.$ac_ext
31335fi
Reid Spencera773bd52006-08-04 18:18:08 +000031336ac_res=`eval echo '${'$as_ac_var'}'`
31337 { echo "$as_me:$LINENO: result: $ac_res" >&5
31338echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031339if test `eval echo '${'$as_ac_var'}'` = yes; then
31340 cat >>confdefs.h <<_ACEOF
31341#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31342_ACEOF
31343
31344fi
31345done
31346
31347
Reid Spencerba46ca32004-12-31 05:49:15 +000031348
31349
Chris Lattner0b142592005-11-14 06:57:34 +000031350
Chris Lattner511f11d2005-11-14 07:25:50 +000031351for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031352do
31353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031354{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31356if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031357 echo $ECHO_N "(cached) $ECHO_C" >&6
31358else
31359 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031360/* confdefs.h. */
31361_ACEOF
31362cat confdefs.h >>conftest.$ac_ext
31363cat >>conftest.$ac_ext <<_ACEOF
31364/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031365/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31367#define $ac_func innocuous_$ac_func
31368
31369/* System header to define __stub macros and hopefully few prototypes,
31370 which can conflict with char $ac_func (); below.
31371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31372 <limits.h> exists even on freestanding compilers. */
31373
31374#ifdef __STDC__
31375# include <limits.h>
31376#else
31377# include <assert.h>
31378#endif
31379
31380#undef $ac_func
31381
Reid Spencera773bd52006-08-04 18:18:08 +000031382/* Override any GCC internal prototype to avoid an error.
31383 Use char because int might match the return type of a GCC
31384 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031385#ifdef __cplusplus
31386extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031387#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031388char $ac_func ();
31389/* The GNU C library defines this for functions which it implements
31390 to always fail with ENOSYS. Some functions are actually named
31391 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031392#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031393choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031394#endif
John Criswell7a73b802003-06-30 21:59:07 +000031395
John Criswell7a73b802003-06-30 21:59:07 +000031396int
31397main ()
31398{
Reid Spencera773bd52006-08-04 18:18:08 +000031399return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031400 ;
31401 return 0;
31402}
31403_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031404rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031405if { (ac_try="$ac_link"
31406case "(($ac_try" in
31407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31408 *) ac_try_echo=$ac_try;;
31409esac
31410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31411 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031412 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031413 grep -v '^ *+' conftest.er1 >conftest.err
31414 rm -f conftest.er1
31415 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031417 (exit $ac_status); } &&
31418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31419 { (case "(($ac_try" in
31420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31421 *) ac_try_echo=$ac_try;;
31422esac
31423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31424 (eval "$ac_try") 2>&5
31425 ac_status=$?
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); }; } &&
31428 { ac_try='test -s conftest$ac_exeext'
31429 { (case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31432esac
31433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_try") 2>&5
31435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031438 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031439else
31440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031441sed 's/^/| /' conftest.$ac_ext >&5
31442
Reid Spencera773bd52006-08-04 18:18:08 +000031443 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031444fi
Reid Spencera773bd52006-08-04 18:18:08 +000031445
Bill Wendlingebcceee2009-04-18 11:20:33 +000031446rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031447 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031448fi
Reid Spencera773bd52006-08-04 18:18:08 +000031449ac_res=`eval echo '${'$as_ac_var'}'`
31450 { echo "$as_me:$LINENO: result: $ac_res" >&5
31451echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031452if test `eval echo '${'$as_ac_var'}'` = yes; then
31453 cat >>confdefs.h <<_ACEOF
31454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031455_ACEOF
31456
31457fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031458done
John Criswell7a73b802003-06-30 21:59:07 +000031459
Reid Spencercdb08a32006-06-05 16:11:07 +000031460
31461
31462
31463
Reid Spencerafa22e22006-12-10 23:29:19 +000031464for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031465do
31466as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031467{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31468echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31469if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031470 echo $ECHO_N "(cached) $ECHO_C" >&6
31471else
31472 cat >conftest.$ac_ext <<_ACEOF
31473/* confdefs.h. */
31474_ACEOF
31475cat confdefs.h >>conftest.$ac_ext
31476cat >>conftest.$ac_ext <<_ACEOF
31477/* end confdefs.h. */
31478/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31480#define $ac_func innocuous_$ac_func
31481
31482/* System header to define __stub macros and hopefully few prototypes,
31483 which can conflict with char $ac_func (); below.
31484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31485 <limits.h> exists even on freestanding compilers. */
31486
31487#ifdef __STDC__
31488# include <limits.h>
31489#else
31490# include <assert.h>
31491#endif
31492
31493#undef $ac_func
31494
Reid Spencera773bd52006-08-04 18:18:08 +000031495/* Override any GCC internal prototype to avoid an error.
31496 Use char because int might match the return type of a GCC
31497 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031498#ifdef __cplusplus
31499extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031500#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031501char $ac_func ();
31502/* The GNU C library defines this for functions which it implements
31503 to always fail with ENOSYS. Some functions are actually named
31504 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031505#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031506choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031507#endif
31508
31509int
31510main ()
31511{
Reid Spencera773bd52006-08-04 18:18:08 +000031512return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031513 ;
31514 return 0;
31515}
31516_ACEOF
31517rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031518if { (ac_try="$ac_link"
31519case "(($ac_try" in
31520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521 *) ac_try_echo=$ac_try;;
31522esac
31523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031525 ac_status=$?
31526 grep -v '^ *+' conftest.er1 >conftest.err
31527 rm -f conftest.er1
31528 cat conftest.err >&5
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031530 (exit $ac_status); } &&
31531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31532 { (case "(($ac_try" in
31533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534 *) ac_try_echo=$ac_try;;
31535esac
31536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537 (eval "$ac_try") 2>&5
31538 ac_status=$?
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; } &&
31541 { ac_try='test -s conftest$ac_exeext'
31542 { (case "(($ac_try" in
31543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544 *) ac_try_echo=$ac_try;;
31545esac
31546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547 (eval "$ac_try") 2>&5
31548 ac_status=$?
31549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031551 eval "$as_ac_var=yes"
31552else
31553 echo "$as_me: failed program was:" >&5
31554sed 's/^/| /' conftest.$ac_ext >&5
31555
Reid Spencera773bd52006-08-04 18:18:08 +000031556 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031557fi
Reid Spencera773bd52006-08-04 18:18:08 +000031558
Bill Wendlingebcceee2009-04-18 11:20:33 +000031559rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031560 conftest$ac_exeext conftest.$ac_ext
31561fi
Reid Spencera773bd52006-08-04 18:18:08 +000031562ac_res=`eval echo '${'$as_ac_var'}'`
31563 { echo "$as_me:$LINENO: result: $ac_res" >&5
31564echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031565if test `eval echo '${'$as_ac_var'}'` = yes; then
31566 cat >>confdefs.h <<_ACEOF
31567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31568_ACEOF
31569
31570fi
31571done
31572
Reid Spencera773bd52006-08-04 18:18:08 +000031573{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31574echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031575if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031576 echo $ECHO_N "(cached) $ECHO_C" >&6
31577else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031578 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031579ac_cpp='$CPP $CPPFLAGS'
31580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31582ac_compiler_gnu=$ac_cv_c_compiler_gnu
31583
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031584 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031585 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031586else
31587 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031588
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031589 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031590_ACEOF
31591cat confdefs.h >>conftest.$ac_ext
31592cat >>conftest.$ac_ext <<_ACEOF
31593/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031594
John Criswella0137d32003-10-13 16:22:01 +000031595#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031596#include <stdlib.h>
31597
John Criswella0137d32003-10-13 16:22:01 +000031598int
31599main ()
31600{
31601
Reid Spencer2706f8c2004-09-19 23:53:36 +000031602volatile double A, B;
31603char Buffer[100];
31604A = 1;
31605A /= 10.0;
31606sprintf(Buffer, "%a", A);
31607B = atof(Buffer);
31608if (A != B)
31609 return (1);
31610if (A != 0x1.999999999999ap-4)
31611 return (1);
31612return (0);
John Criswella0137d32003-10-13 16:22:01 +000031613 ;
31614 return 0;
31615}
31616_ACEOF
31617rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031618if { (ac_try="$ac_link"
31619case "(($ac_try" in
31620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31621 *) ac_try_echo=$ac_try;;
31622esac
31623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31624 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031625 ac_status=$?
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031628 { (case "(($ac_try" in
31629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31630 *) ac_try_echo=$ac_try;;
31631esac
31632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31633 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031634 ac_status=$?
31635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031637 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031638else
31639 echo "$as_me: program exited with status $ac_status" >&5
31640echo "$as_me: failed program was:" >&5
31641sed 's/^/| /' conftest.$ac_ext >&5
31642
31643( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031644llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031645fi
Reid Spencera773bd52006-08-04 18:18:08 +000031646rm -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 +000031647fi
Reid Spencera773bd52006-08-04 18:18:08 +000031648
31649
Reid Spencer2706f8c2004-09-19 23:53:36 +000031650 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031651ac_cpp='$CPP $CPPFLAGS'
31652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31654ac_compiler_gnu=$ac_cv_c_compiler_gnu
31655
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031656fi
Reid Spencera773bd52006-08-04 18:18:08 +000031657{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31658echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031659 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031660
31661cat >>confdefs.h <<\_ACEOF
31662#define HAVE_PRINTF_A 1
31663_ACEOF
31664
Reid Spencer2706f8c2004-09-19 23:53:36 +000031665 fi
John Criswella0137d32003-10-13 16:22:01 +000031666
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031667# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31668# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031669{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31670echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031671if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031672 echo $ECHO_N "(cached) $ECHO_C" >&6
31673else
John Criswell0021c312004-02-13 21:57:29 +000031674 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +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#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031681int
31682main ()
31683{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031684char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031685 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031686 ;
31687 return 0;
31688}
31689_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031690rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031691if { (ac_try="$ac_link"
31692case "(($ac_try" in
31693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31694 *) ac_try_echo=$ac_try;;
31695esac
31696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31697 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031699 grep -v '^ *+' conftest.er1 >conftest.err
31700 rm -f conftest.er1
31701 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031703 (exit $ac_status); } &&
31704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31705 { (case "(($ac_try" in
31706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31707 *) ac_try_echo=$ac_try;;
31708esac
31709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31710 (eval "$ac_try") 2>&5
31711 ac_status=$?
31712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31713 (exit $ac_status); }; } &&
31714 { ac_try='test -s conftest$ac_exeext'
31715 { (case "(($ac_try" in
31716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31717 *) ac_try_echo=$ac_try;;
31718esac
31719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31720 (eval "$ac_try") 2>&5
31721 ac_status=$?
31722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031724 ac_cv_working_alloca_h=yes
31725else
31726 echo "$as_me: failed program was:" >&5
31727sed 's/^/| /' conftest.$ac_ext >&5
31728
Reid Spencera773bd52006-08-04 18:18:08 +000031729 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031730fi
Reid Spencera773bd52006-08-04 18:18:08 +000031731
Bill Wendlingebcceee2009-04-18 11:20:33 +000031732rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031733 conftest$ac_exeext conftest.$ac_ext
31734fi
Reid Spencera773bd52006-08-04 18:18:08 +000031735{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31736echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031737if test $ac_cv_working_alloca_h = yes; then
31738
31739cat >>confdefs.h <<\_ACEOF
31740#define HAVE_ALLOCA_H 1
31741_ACEOF
31742
31743fi
31744
Reid Spencera773bd52006-08-04 18:18:08 +000031745{ echo "$as_me:$LINENO: checking for alloca" >&5
31746echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031747if test "${ac_cv_func_alloca_works+set}" = set; then
31748 echo $ECHO_N "(cached) $ECHO_C" >&6
31749else
31750 cat >conftest.$ac_ext <<_ACEOF
31751/* confdefs.h. */
31752_ACEOF
31753cat confdefs.h >>conftest.$ac_ext
31754cat >>conftest.$ac_ext <<_ACEOF
31755/* end confdefs.h. */
31756#ifdef __GNUC__
31757# define alloca __builtin_alloca
31758#else
31759# ifdef _MSC_VER
31760# include <malloc.h>
31761# define alloca _alloca
31762# else
Bill Wendlingebcceee2009-04-18 11:20:33 +000031763# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031764# include <alloca.h>
31765# else
31766# ifdef _AIX
31767 #pragma alloca
31768# else
31769# ifndef alloca /* predefined by HP cc +Olibcalls */
31770char *alloca ();
31771# endif
31772# endif
31773# endif
31774# endif
31775#endif
31776
31777int
31778main ()
31779{
31780char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031781 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031782 ;
31783 return 0;
31784}
31785_ACEOF
31786rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031787if { (ac_try="$ac_link"
31788case "(($ac_try" in
31789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31790 *) ac_try_echo=$ac_try;;
31791esac
31792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31793 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031794 ac_status=$?
31795 grep -v '^ *+' conftest.er1 >conftest.err
31796 rm -f conftest.er1
31797 cat conftest.err >&5
31798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031799 (exit $ac_status); } &&
31800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31801 { (case "(($ac_try" in
31802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31803 *) ac_try_echo=$ac_try;;
31804esac
31805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31806 (eval "$ac_try") 2>&5
31807 ac_status=$?
31808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809 (exit $ac_status); }; } &&
31810 { ac_try='test -s conftest$ac_exeext'
31811 { (case "(($ac_try" in
31812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31813 *) ac_try_echo=$ac_try;;
31814esac
31815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31816 (eval "$ac_try") 2>&5
31817 ac_status=$?
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031820 ac_cv_func_alloca_works=yes
31821else
31822 echo "$as_me: failed program was:" >&5
31823sed 's/^/| /' conftest.$ac_ext >&5
31824
Reid Spencera773bd52006-08-04 18:18:08 +000031825 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031826fi
Reid Spencera773bd52006-08-04 18:18:08 +000031827
Bill Wendlingebcceee2009-04-18 11:20:33 +000031828rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031829 conftest$ac_exeext conftest.$ac_ext
31830fi
Reid Spencera773bd52006-08-04 18:18:08 +000031831{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31832echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031833
31834if test $ac_cv_func_alloca_works = yes; then
31835
31836cat >>confdefs.h <<\_ACEOF
31837#define HAVE_ALLOCA 1
31838_ACEOF
31839
31840else
31841 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31842# that cause trouble. Some versions do not even contain alloca or
31843# contain a buggy version. If you still want to use their alloca,
31844# use ar to extract alloca.o from them instead of compiling alloca.c.
31845
Reid Spencera773bd52006-08-04 18:18:08 +000031846ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031847
31848cat >>confdefs.h <<\_ACEOF
31849#define C_ALLOCA 1
31850_ACEOF
31851
31852
Reid Spencera773bd52006-08-04 18:18:08 +000031853{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31854echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031855if test "${ac_cv_os_cray+set}" = set; then
31856 echo $ECHO_N "(cached) $ECHO_C" >&6
31857else
31858 cat >conftest.$ac_ext <<_ACEOF
31859/* confdefs.h. */
31860_ACEOF
31861cat confdefs.h >>conftest.$ac_ext
31862cat >>conftest.$ac_ext <<_ACEOF
31863/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031864#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031865webecray
31866#else
31867wenotbecray
31868#endif
31869
31870_ACEOF
31871if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31872 $EGREP "webecray" >/dev/null 2>&1; then
31873 ac_cv_os_cray=yes
31874else
31875 ac_cv_os_cray=no
31876fi
31877rm -f conftest*
31878
31879fi
Reid Spencera773bd52006-08-04 18:18:08 +000031880{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31881echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031882if test $ac_cv_os_cray = yes; then
31883 for ac_func in _getb67 GETB67 getb67; do
31884 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031885{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31886echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31887if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031888 echo $ECHO_N "(cached) $ECHO_C" >&6
31889else
31890 cat >conftest.$ac_ext <<_ACEOF
31891/* confdefs.h. */
31892_ACEOF
31893cat confdefs.h >>conftest.$ac_ext
31894cat >>conftest.$ac_ext <<_ACEOF
31895/* end confdefs.h. */
31896/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31898#define $ac_func innocuous_$ac_func
31899
31900/* System header to define __stub macros and hopefully few prototypes,
31901 which can conflict with char $ac_func (); below.
31902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31903 <limits.h> exists even on freestanding compilers. */
31904
31905#ifdef __STDC__
31906# include <limits.h>
31907#else
31908# include <assert.h>
31909#endif
31910
31911#undef $ac_func
31912
Reid Spencera773bd52006-08-04 18:18:08 +000031913/* Override any GCC internal prototype to avoid an error.
31914 Use char because int might match the return type of a GCC
31915 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031916#ifdef __cplusplus
31917extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031918#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031919char $ac_func ();
31920/* The GNU C library defines this for functions which it implements
31921 to always fail with ENOSYS. Some functions are actually named
31922 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031923#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031924choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031925#endif
31926
31927int
31928main ()
31929{
Reid Spencera773bd52006-08-04 18:18:08 +000031930return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031931 ;
31932 return 0;
31933}
31934_ACEOF
31935rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031936if { (ac_try="$ac_link"
31937case "(($ac_try" in
31938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939 *) ac_try_echo=$ac_try;;
31940esac
31941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031943 ac_status=$?
31944 grep -v '^ *+' conftest.er1 >conftest.err
31945 rm -f conftest.er1
31946 cat conftest.err >&5
31947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000031948 (exit $ac_status); } &&
31949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31950 { (case "(($ac_try" in
31951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31952 *) ac_try_echo=$ac_try;;
31953esac
31954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31955 (eval "$ac_try") 2>&5
31956 ac_status=$?
31957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); }; } &&
31959 { ac_try='test -s conftest$ac_exeext'
31960 { (case "(($ac_try" in
31961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31962 *) ac_try_echo=$ac_try;;
31963esac
31964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31965 (eval "$ac_try") 2>&5
31966 ac_status=$?
31967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31968 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031969 eval "$as_ac_var=yes"
31970else
31971 echo "$as_me: failed program was:" >&5
31972sed 's/^/| /' conftest.$ac_ext >&5
31973
Reid Spencera773bd52006-08-04 18:18:08 +000031974 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031975fi
Reid Spencera773bd52006-08-04 18:18:08 +000031976
Bill Wendlingebcceee2009-04-18 11:20:33 +000031977rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031978 conftest$ac_exeext conftest.$ac_ext
31979fi
Reid Spencera773bd52006-08-04 18:18:08 +000031980ac_res=`eval echo '${'$as_ac_var'}'`
31981 { echo "$as_me:$LINENO: result: $ac_res" >&5
31982echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031983if test `eval echo '${'$as_ac_var'}'` = yes; then
31984
31985cat >>confdefs.h <<_ACEOF
31986#define CRAY_STACKSEG_END $ac_func
31987_ACEOF
31988
31989 break
31990fi
31991
31992 done
31993fi
31994
Reid Spencera773bd52006-08-04 18:18:08 +000031995{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31996echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031997if test "${ac_cv_c_stack_direction+set}" = set; then
31998 echo $ECHO_N "(cached) $ECHO_C" >&6
31999else
32000 if test "$cross_compiling" = yes; then
32001 ac_cv_c_stack_direction=0
32002else
32003 cat >conftest.$ac_ext <<_ACEOF
32004/* confdefs.h. */
32005_ACEOF
32006cat confdefs.h >>conftest.$ac_ext
32007cat >>conftest.$ac_ext <<_ACEOF
32008/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000032009$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032010int
32011find_stack_direction ()
32012{
32013 static char *addr = 0;
32014 auto char dummy;
32015 if (addr == 0)
32016 {
32017 addr = &dummy;
32018 return find_stack_direction ();
32019 }
John Criswell0021c312004-02-13 21:57:29 +000032020 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032021 return (&dummy > addr) ? 1 : -1;
32022}
John Criswell0021c312004-02-13 21:57:29 +000032023
John Criswell0021c312004-02-13 21:57:29 +000032024int
32025main ()
32026{
Reid Spencera773bd52006-08-04 18:18:08 +000032027 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000032028}
32029_ACEOF
32030rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032031if { (ac_try="$ac_link"
32032case "(($ac_try" in
32033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034 *) ac_try_echo=$ac_try;;
32035esac
32036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32037 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032038 ac_status=$?
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032041 { (case "(($ac_try" in
32042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32043 *) ac_try_echo=$ac_try;;
32044esac
32045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32046 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000032047 ac_status=$?
32048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032050 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000032051else
32052 echo "$as_me: program exited with status $ac_status" >&5
32053echo "$as_me: failed program was:" >&5
32054sed 's/^/| /' conftest.$ac_ext >&5
32055
32056( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032057ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000032058fi
Reid Spencera773bd52006-08-04 18:18:08 +000032059rm -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 +000032060fi
Reid Spencera773bd52006-08-04 18:18:08 +000032061
32062
John Criswell0021c312004-02-13 21:57:29 +000032063fi
Reid Spencera773bd52006-08-04 18:18:08 +000032064{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32065echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032066
32067cat >>confdefs.h <<_ACEOF
32068#define STACK_DIRECTION $ac_cv_c_stack_direction
32069_ACEOF
32070
32071
John Criswell0021c312004-02-13 21:57:29 +000032072fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032073
32074
Reid Spencera773bd52006-08-04 18:18:08 +000032075{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
32076echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032077if test "${ac_cv_func_rand48+set}" = set; then
32078 echo $ECHO_N "(cached) $ECHO_C" >&6
32079else
Reid Spencera773bd52006-08-04 18:18:08 +000032080 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032081ac_cpp='$CXXCPP $CPPFLAGS'
32082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32085
32086 cat >conftest.$ac_ext <<_ACEOF
32087/* confdefs.h. */
32088_ACEOF
32089cat confdefs.h >>conftest.$ac_ext
32090cat >>conftest.$ac_ext <<_ACEOF
32091/* end confdefs.h. */
32092#include <stdlib.h>
32093int
32094main ()
32095{
32096srand48(0);lrand48();drand48();
32097 ;
32098 return 0;
32099}
32100_ACEOF
32101rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032102if { (ac_try="$ac_compile"
32103case "(($ac_try" in
32104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105 *) ac_try_echo=$ac_try;;
32106esac
32107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032109 ac_status=$?
32110 grep -v '^ *+' conftest.er1 >conftest.err
32111 rm -f conftest.er1
32112 cat conftest.err >&5
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032114 (exit $ac_status); } &&
32115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32116 { (case "(($ac_try" in
32117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118 *) ac_try_echo=$ac_try;;
32119esac
32120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121 (eval "$ac_try") 2>&5
32122 ac_status=$?
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); }; } &&
32125 { ac_try='test -s conftest.$ac_objext'
32126 { (case "(($ac_try" in
32127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128 *) ac_try_echo=$ac_try;;
32129esac
32130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131 (eval "$ac_try") 2>&5
32132 ac_status=$?
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032135 ac_cv_func_rand48=yes
32136else
32137 echo "$as_me: failed program was:" >&5
32138sed 's/^/| /' conftest.$ac_ext >&5
32139
Reid Spencera773bd52006-08-04 18:18:08 +000032140 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032141fi
Reid Spencera773bd52006-08-04 18:18:08 +000032142
32143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032144 ac_ext=c
32145ac_cpp='$CPP $CPPFLAGS'
32146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32148ac_compiler_gnu=$ac_cv_c_compiler_gnu
32149
32150fi
Reid Spencera773bd52006-08-04 18:18:08 +000032151{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
32152echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032153
32154if test "$ac_cv_func_rand48" = "yes" ; then
32155
32156cat >>confdefs.h <<\_ACEOF
32157#define HAVE_RAND48 1
32158_ACEOF
32159
32160fi
John Criswell0021c312004-02-13 21:57:29 +000032161
32162
Reid Spencera773bd52006-08-04 18:18:08 +000032163{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32164echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032165if test "${ac_cv_cxx_namespaces+set}" = set; then
32166 echo $ECHO_N "(cached) $ECHO_C" >&6
32167else
Reid Spencera773bd52006-08-04 18:18:08 +000032168 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032169ac_cpp='$CXXCPP $CPPFLAGS'
32170ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32171ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32172ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32173
32174 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032175/* confdefs.h. */
32176_ACEOF
32177cat confdefs.h >>conftest.$ac_ext
32178cat >>conftest.$ac_ext <<_ACEOF
32179/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032180namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000032181int
32182main ()
32183{
32184using namespace Outer::Inner; return i;
32185 ;
32186 return 0;
32187}
32188_ACEOF
32189rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032190if { (ac_try="$ac_compile"
32191case "(($ac_try" in
32192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32193 *) ac_try_echo=$ac_try;;
32194esac
32195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32196 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032197 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032198 grep -v '^ *+' conftest.er1 >conftest.err
32199 rm -f conftest.er1
32200 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032202 (exit $ac_status); } &&
32203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32204 { (case "(($ac_try" in
32205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32206 *) ac_try_echo=$ac_try;;
32207esac
32208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32209 (eval "$ac_try") 2>&5
32210 ac_status=$?
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); }; } &&
32213 { ac_try='test -s conftest.$ac_objext'
32214 { (case "(($ac_try" in
32215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32216 *) ac_try_echo=$ac_try;;
32217esac
32218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32219 (eval "$ac_try") 2>&5
32220 ac_status=$?
32221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32222 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032223 ac_cv_cxx_namespaces=yes
32224else
32225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032226sed 's/^/| /' conftest.$ac_ext >&5
32227
Reid Spencera773bd52006-08-04 18:18:08 +000032228 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032229fi
Reid Spencera773bd52006-08-04 18:18:08 +000032230
32231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032232 ac_ext=c
32233ac_cpp='$CPP $CPPFLAGS'
32234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32236ac_compiler_gnu=$ac_cv_c_compiler_gnu
32237
32238
32239fi
Reid Spencera773bd52006-08-04 18:18:08 +000032240{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32241echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032242if test "$ac_cv_cxx_namespaces" = yes; then
32243
32244cat >>confdefs.h <<\_ACEOF
32245#define HAVE_NAMESPACES
32246_ACEOF
32247
32248fi
32249
Reid Spencera773bd52006-08-04 18:18:08 +000032250{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32251echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032252if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32253 echo $ECHO_N "(cached) $ECHO_C" >&6
32254else
32255
Reid Spencera773bd52006-08-04 18:18:08 +000032256 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032257ac_cpp='$CXXCPP $CPPFLAGS'
32258ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32259ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32260ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32261
32262 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032263/* confdefs.h. */
32264_ACEOF
32265cat confdefs.h >>conftest.$ac_ext
32266cat >>conftest.$ac_ext <<_ACEOF
32267/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032268#include <iterator>
32269#ifdef HAVE_NAMESPACES
32270using namespace std;
32271#endif
John Criswell7a73b802003-06-30 21:59:07 +000032272int
32273main ()
32274{
32275iterator<int,int,int> t; return 0;
32276 ;
32277 return 0;
32278}
32279_ACEOF
32280rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032281if { (ac_try="$ac_compile"
32282case "(($ac_try" in
32283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284 *) ac_try_echo=$ac_try;;
32285esac
32286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32287 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032288 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032289 grep -v '^ *+' conftest.er1 >conftest.err
32290 rm -f conftest.er1
32291 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032293 (exit $ac_status); } &&
32294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32295 { (case "(($ac_try" in
32296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32297 *) ac_try_echo=$ac_try;;
32298esac
32299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32300 (eval "$ac_try") 2>&5
32301 ac_status=$?
32302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303 (exit $ac_status); }; } &&
32304 { ac_try='test -s conftest.$ac_objext'
32305 { (case "(($ac_try" in
32306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307 *) ac_try_echo=$ac_try;;
32308esac
32309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310 (eval "$ac_try") 2>&5
32311 ac_status=$?
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032314 ac_cv_cxx_have_std_iterator=yes
32315else
32316 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032317sed 's/^/| /' conftest.$ac_ext >&5
32318
Reid Spencera773bd52006-08-04 18:18:08 +000032319 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032320fi
Reid Spencera773bd52006-08-04 18:18:08 +000032321
32322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032323 ac_ext=c
32324ac_cpp='$CPP $CPPFLAGS'
32325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32327ac_compiler_gnu=$ac_cv_c_compiler_gnu
32328
32329
32330fi
Reid Spencera773bd52006-08-04 18:18:08 +000032331{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32332echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032333if test "$ac_cv_cxx_have_std_iterator" = yes
32334then
John Criswell40468462004-09-24 21:19:06 +000032335
32336cat >>confdefs.h <<\_ACEOF
32337#define HAVE_STD_ITERATOR 1
32338_ACEOF
32339
32340else
32341
32342cat >>confdefs.h <<\_ACEOF
32343#define HAVE_STD_ITERATOR 0
32344_ACEOF
32345
John Criswell7a73b802003-06-30 21:59:07 +000032346fi
32347
Reid Spencera773bd52006-08-04 18:18:08 +000032348{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32349echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032350if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32351 echo $ECHO_N "(cached) $ECHO_C" >&6
32352else
32353
Reid Spencera773bd52006-08-04 18:18:08 +000032354 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032355ac_cpp='$CXXCPP $CPPFLAGS'
32356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32359
32360 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032361/* confdefs.h. */
32362_ACEOF
32363cat confdefs.h >>conftest.$ac_ext
32364cat >>conftest.$ac_ext <<_ACEOF
32365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032366#include <iterator>
32367#ifdef HAVE_NAMESPACES
32368using namespace std;
32369#endif
John Criswell7a73b802003-06-30 21:59:07 +000032370int
32371main ()
32372{
John Criswellc78022e2003-07-29 19:11:58 +000032373bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032374 ;
32375 return 0;
32376}
32377_ACEOF
32378rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032379if { (ac_try="$ac_compile"
32380case "(($ac_try" in
32381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32382 *) ac_try_echo=$ac_try;;
32383esac
32384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32385 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032386 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032387 grep -v '^ *+' conftest.er1 >conftest.err
32388 rm -f conftest.er1
32389 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032391 (exit $ac_status); } &&
32392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32393 { (case "(($ac_try" in
32394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32395 *) ac_try_echo=$ac_try;;
32396esac
32397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32398 (eval "$ac_try") 2>&5
32399 ac_status=$?
32400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32401 (exit $ac_status); }; } &&
32402 { ac_try='test -s conftest.$ac_objext'
32403 { (case "(($ac_try" in
32404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32405 *) ac_try_echo=$ac_try;;
32406esac
32407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32408 (eval "$ac_try") 2>&5
32409 ac_status=$?
32410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032412 ac_cv_cxx_have_bi_iterator=yes
32413else
32414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032415sed 's/^/| /' conftest.$ac_ext >&5
32416
Reid Spencera773bd52006-08-04 18:18:08 +000032417 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032418fi
Reid Spencera773bd52006-08-04 18:18:08 +000032419
32420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032421 ac_ext=c
32422ac_cpp='$CPP $CPPFLAGS'
32423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32425ac_compiler_gnu=$ac_cv_c_compiler_gnu
32426
32427
32428fi
Reid Spencera773bd52006-08-04 18:18:08 +000032429{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32430echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032431if test "$ac_cv_cxx_have_bi_iterator" = yes
32432then
John Criswell40468462004-09-24 21:19:06 +000032433
32434cat >>confdefs.h <<\_ACEOF
32435#define HAVE_BI_ITERATOR 1
32436_ACEOF
32437
32438else
32439
32440cat >>confdefs.h <<\_ACEOF
32441#define HAVE_BI_ITERATOR 0
32442_ACEOF
32443
John Criswell7a73b802003-06-30 21:59:07 +000032444fi
32445
Reid Spencera773bd52006-08-04 18:18:08 +000032446{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32447echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032448if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32449 echo $ECHO_N "(cached) $ECHO_C" >&6
32450else
32451
Reid Spencera773bd52006-08-04 18:18:08 +000032452 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032453ac_cpp='$CXXCPP $CPPFLAGS'
32454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32457
32458 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032459/* confdefs.h. */
32460_ACEOF
32461cat confdefs.h >>conftest.$ac_ext
32462cat >>conftest.$ac_ext <<_ACEOF
32463/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032464#include <iterator>
32465#ifdef HAVE_NAMESPACES
32466using namespace std;
32467#endif
John Criswell7a73b802003-06-30 21:59:07 +000032468int
32469main ()
32470{
John Criswellc78022e2003-07-29 19:11:58 +000032471forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032472 ;
32473 return 0;
32474}
32475_ACEOF
32476rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032477if { (ac_try="$ac_compile"
32478case "(($ac_try" in
32479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32480 *) ac_try_echo=$ac_try;;
32481esac
32482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32483 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032484 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032485 grep -v '^ *+' conftest.er1 >conftest.err
32486 rm -f conftest.er1
32487 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032489 (exit $ac_status); } &&
32490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32491 { (case "(($ac_try" in
32492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32493 *) ac_try_echo=$ac_try;;
32494esac
32495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32496 (eval "$ac_try") 2>&5
32497 ac_status=$?
32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499 (exit $ac_status); }; } &&
32500 { ac_try='test -s conftest.$ac_objext'
32501 { (case "(($ac_try" in
32502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503 *) ac_try_echo=$ac_try;;
32504esac
32505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506 (eval "$ac_try") 2>&5
32507 ac_status=$?
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032510 ac_cv_cxx_have_fwd_iterator=yes
32511else
32512 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032513sed 's/^/| /' conftest.$ac_ext >&5
32514
Reid Spencera773bd52006-08-04 18:18:08 +000032515 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032516fi
Reid Spencera773bd52006-08-04 18:18:08 +000032517
32518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032519 ac_ext=c
32520ac_cpp='$CPP $CPPFLAGS'
32521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523ac_compiler_gnu=$ac_cv_c_compiler_gnu
32524
32525
32526fi
Reid Spencera773bd52006-08-04 18:18:08 +000032527{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32528echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032529if test "$ac_cv_cxx_have_fwd_iterator" = yes
32530then
John Criswell40468462004-09-24 21:19:06 +000032531
32532cat >>confdefs.h <<\_ACEOF
32533#define HAVE_FWD_ITERATOR 1
32534_ACEOF
32535
32536else
32537
32538cat >>confdefs.h <<\_ACEOF
32539#define HAVE_FWD_ITERATOR 0
32540_ACEOF
32541
John Criswell7a73b802003-06-30 21:59:07 +000032542fi
32543
32544
Reid Spencera773bd52006-08-04 18:18:08 +000032545{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32546echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032547if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32548 echo $ECHO_N "(cached) $ECHO_C" >&6
32549else
Reid Spencera773bd52006-08-04 18:18:08 +000032550 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032551ac_cpp='$CXXCPP $CPPFLAGS'
32552ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32553ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32555
Reid Spencerabec8f92004-10-27 23:03:44 +000032556 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032557/* confdefs.h. */
32558_ACEOF
32559cat confdefs.h >>conftest.$ac_ext
32560cat >>conftest.$ac_ext <<_ACEOF
32561/* end confdefs.h. */
32562#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032563int
32564main ()
32565{
32566float f; isnan(f);
32567 ;
32568 return 0;
32569}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032570_ACEOF
32571rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032572if { (ac_try="$ac_compile"
32573case "(($ac_try" in
32574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32575 *) ac_try_echo=$ac_try;;
32576esac
32577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32578 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032579 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032580 grep -v '^ *+' conftest.er1 >conftest.err
32581 rm -f conftest.er1
32582 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032584 (exit $ac_status); } &&
32585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32586 { (case "(($ac_try" in
32587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32588 *) ac_try_echo=$ac_try;;
32589esac
32590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32591 (eval "$ac_try") 2>&5
32592 ac_status=$?
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); }; } &&
32595 { ac_try='test -s conftest.$ac_objext'
32596 { (case "(($ac_try" in
32597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32598 *) ac_try_echo=$ac_try;;
32599esac
32600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32601 (eval "$ac_try") 2>&5
32602 ac_status=$?
32603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32604 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032605 ac_cv_func_isnan_in_math_h=yes
32606else
32607 echo "$as_me: failed program was:" >&5
32608sed 's/^/| /' conftest.$ac_ext >&5
32609
Reid Spencera773bd52006-08-04 18:18:08 +000032610 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032611fi
Reid Spencera773bd52006-08-04 18:18:08 +000032612
32613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032614 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032615ac_cpp='$CPP $CPPFLAGS'
32616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32618ac_compiler_gnu=$ac_cv_c_compiler_gnu
32619
32620fi
Reid Spencera773bd52006-08-04 18:18:08 +000032621{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32622echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032623
32624
32625if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032626
32627cat >>confdefs.h <<\_ACEOF
32628#define HAVE_ISNAN_IN_MATH_H 1
32629_ACEOF
32630
Reid Spencerabec8f92004-10-27 23:03:44 +000032631fi
32632
Reid Spencera773bd52006-08-04 18:18:08 +000032633{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32634echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032635if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32636 echo $ECHO_N "(cached) $ECHO_C" >&6
32637else
Reid Spencera773bd52006-08-04 18:18:08 +000032638 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032639ac_cpp='$CXXCPP $CPPFLAGS'
32640ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32641ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32642ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32643
Reid Spencerabec8f92004-10-27 23:03:44 +000032644 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032645/* confdefs.h. */
32646_ACEOF
32647cat confdefs.h >>conftest.$ac_ext
32648cat >>conftest.$ac_ext <<_ACEOF
32649/* end confdefs.h. */
32650#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032651int
32652main ()
32653{
32654float f; isnan(f);
32655 ;
32656 return 0;
32657}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032658_ACEOF
32659rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032660if { (ac_try="$ac_compile"
32661case "(($ac_try" in
32662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32663 *) ac_try_echo=$ac_try;;
32664esac
32665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32666 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032667 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032668 grep -v '^ *+' conftest.er1 >conftest.err
32669 rm -f conftest.er1
32670 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032672 (exit $ac_status); } &&
32673 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32674 { (case "(($ac_try" in
32675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32676 *) ac_try_echo=$ac_try;;
32677esac
32678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32679 (eval "$ac_try") 2>&5
32680 ac_status=$?
32681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682 (exit $ac_status); }; } &&
32683 { ac_try='test -s conftest.$ac_objext'
32684 { (case "(($ac_try" in
32685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32686 *) ac_try_echo=$ac_try;;
32687esac
32688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32689 (eval "$ac_try") 2>&5
32690 ac_status=$?
32691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32692 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032693 ac_cv_func_isnan_in_cmath=yes
32694else
32695 echo "$as_me: failed program was:" >&5
32696sed 's/^/| /' conftest.$ac_ext >&5
32697
Reid Spencera773bd52006-08-04 18:18:08 +000032698 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032699fi
Reid Spencera773bd52006-08-04 18:18:08 +000032700
32701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032702 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032703ac_cpp='$CPP $CPPFLAGS'
32704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32706ac_compiler_gnu=$ac_cv_c_compiler_gnu
32707
32708fi
Reid Spencera773bd52006-08-04 18:18:08 +000032709{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32710echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032711
32712if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032713
32714cat >>confdefs.h <<\_ACEOF
32715#define HAVE_ISNAN_IN_CMATH 1
32716_ACEOF
32717
Reid Spencerabec8f92004-10-27 23:03:44 +000032718fi
32719
Reid Spencera773bd52006-08-04 18:18:08 +000032720{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32721echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032722if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32723 echo $ECHO_N "(cached) $ECHO_C" >&6
32724else
Reid Spencera773bd52006-08-04 18:18:08 +000032725 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032726ac_cpp='$CXXCPP $CPPFLAGS'
32727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32730
Reid Spencerabec8f92004-10-27 23:03:44 +000032731 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032732/* confdefs.h. */
32733_ACEOF
32734cat confdefs.h >>conftest.$ac_ext
32735cat >>conftest.$ac_ext <<_ACEOF
32736/* end confdefs.h. */
32737#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032738int
32739main ()
32740{
32741float f; std::isnan(f);
32742 ;
32743 return 0;
32744}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032745_ACEOF
32746rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032747if { (ac_try="$ac_compile"
32748case "(($ac_try" in
32749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32750 *) ac_try_echo=$ac_try;;
32751esac
32752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32753 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032754 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032755 grep -v '^ *+' conftest.er1 >conftest.err
32756 rm -f conftest.er1
32757 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032759 (exit $ac_status); } &&
32760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32761 { (case "(($ac_try" in
32762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763 *) ac_try_echo=$ac_try;;
32764esac
32765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766 (eval "$ac_try") 2>&5
32767 ac_status=$?
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); }; } &&
32770 { ac_try='test -s conftest.$ac_objext'
32771 { (case "(($ac_try" in
32772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32773 *) ac_try_echo=$ac_try;;
32774esac
32775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32776 (eval "$ac_try") 2>&5
32777 ac_status=$?
32778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032780 ac_cv_func_std_isnan_in_cmath=yes
32781else
32782 echo "$as_me: failed program was:" >&5
32783sed 's/^/| /' conftest.$ac_ext >&5
32784
Reid Spencera773bd52006-08-04 18:18:08 +000032785 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032786fi
Reid Spencera773bd52006-08-04 18:18:08 +000032787
32788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032789 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032790ac_cpp='$CPP $CPPFLAGS'
32791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32793ac_compiler_gnu=$ac_cv_c_compiler_gnu
32794
32795fi
Reid Spencera773bd52006-08-04 18:18:08 +000032796{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32797echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032798
32799if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032800
32801cat >>confdefs.h <<\_ACEOF
32802#define HAVE_STD_ISNAN_IN_CMATH 1
32803_ACEOF
32804
Reid Spencerabec8f92004-10-27 23:03:44 +000032805fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032806
32807
Reid Spencera773bd52006-08-04 18:18:08 +000032808{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32809echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032810if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32811 echo $ECHO_N "(cached) $ECHO_C" >&6
32812else
Reid Spencera773bd52006-08-04 18:18:08 +000032813 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032814ac_cpp='$CXXCPP $CPPFLAGS'
32815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32818
Reid Spencerabec8f92004-10-27 23:03:44 +000032819 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032820/* confdefs.h. */
32821_ACEOF
32822cat confdefs.h >>conftest.$ac_ext
32823cat >>conftest.$ac_ext <<_ACEOF
32824/* end confdefs.h. */
32825#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032826int
32827main ()
32828{
32829float f; isinf(f);
32830 ;
32831 return 0;
32832}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032833_ACEOF
32834rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032835if { (ac_try="$ac_compile"
32836case "(($ac_try" in
32837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838 *) ac_try_echo=$ac_try;;
32839esac
32840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032842 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032843 grep -v '^ *+' conftest.er1 >conftest.err
32844 rm -f conftest.er1
32845 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032847 (exit $ac_status); } &&
32848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32849 { (case "(($ac_try" in
32850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32851 *) ac_try_echo=$ac_try;;
32852esac
32853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32854 (eval "$ac_try") 2>&5
32855 ac_status=$?
32856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32857 (exit $ac_status); }; } &&
32858 { ac_try='test -s conftest.$ac_objext'
32859 { (case "(($ac_try" in
32860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32861 *) ac_try_echo=$ac_try;;
32862esac
32863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32864 (eval "$ac_try") 2>&5
32865 ac_status=$?
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032868 ac_cv_func_isinf_in_math_h=yes
32869else
32870 echo "$as_me: failed program was:" >&5
32871sed 's/^/| /' conftest.$ac_ext >&5
32872
Reid Spencera773bd52006-08-04 18:18:08 +000032873 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032874fi
Reid Spencera773bd52006-08-04 18:18:08 +000032875
32876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032877 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032878ac_cpp='$CPP $CPPFLAGS'
32879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32881ac_compiler_gnu=$ac_cv_c_compiler_gnu
32882
32883fi
Reid Spencera773bd52006-08-04 18:18:08 +000032884{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32885echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032886
32887if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032888
32889cat >>confdefs.h <<\_ACEOF
32890#define HAVE_ISINF_IN_MATH_H 1
32891_ACEOF
32892
Reid Spencerabec8f92004-10-27 23:03:44 +000032893fi
32894
Reid Spencera773bd52006-08-04 18:18:08 +000032895{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32896echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032897if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32898 echo $ECHO_N "(cached) $ECHO_C" >&6
32899else
Reid Spencera773bd52006-08-04 18:18:08 +000032900 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032901ac_cpp='$CXXCPP $CPPFLAGS'
32902ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32903ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32904ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32905
Reid Spencerabec8f92004-10-27 23:03:44 +000032906 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032907/* confdefs.h. */
32908_ACEOF
32909cat confdefs.h >>conftest.$ac_ext
32910cat >>conftest.$ac_ext <<_ACEOF
32911/* end confdefs.h. */
32912#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032913int
32914main ()
32915{
32916float f; isinf(f);
32917 ;
32918 return 0;
32919}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032920_ACEOF
32921rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032922if { (ac_try="$ac_compile"
32923case "(($ac_try" in
32924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32925 *) ac_try_echo=$ac_try;;
32926esac
32927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32928 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032929 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032930 grep -v '^ *+' conftest.er1 >conftest.err
32931 rm -f conftest.er1
32932 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000032934 (exit $ac_status); } &&
32935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32936 { (case "(($ac_try" in
32937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938 *) ac_try_echo=$ac_try;;
32939esac
32940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941 (eval "$ac_try") 2>&5
32942 ac_status=$?
32943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944 (exit $ac_status); }; } &&
32945 { ac_try='test -s conftest.$ac_objext'
32946 { (case "(($ac_try" in
32947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32948 *) ac_try_echo=$ac_try;;
32949esac
32950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32951 (eval "$ac_try") 2>&5
32952 ac_status=$?
32953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32954 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032955 ac_cv_func_isinf_in_cmath=yes
32956else
32957 echo "$as_me: failed program was:" >&5
32958sed 's/^/| /' conftest.$ac_ext >&5
32959
Reid Spencera773bd52006-08-04 18:18:08 +000032960 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032961fi
Reid Spencera773bd52006-08-04 18:18:08 +000032962
32963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032964 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032965ac_cpp='$CPP $CPPFLAGS'
32966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32968ac_compiler_gnu=$ac_cv_c_compiler_gnu
32969
32970fi
Reid Spencera773bd52006-08-04 18:18:08 +000032971{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32972echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032973
32974if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032975
32976cat >>confdefs.h <<\_ACEOF
32977#define HAVE_ISINF_IN_CMATH 1
32978_ACEOF
32979
Reid Spencerabec8f92004-10-27 23:03:44 +000032980fi
32981
Reid Spencera773bd52006-08-04 18:18:08 +000032982{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32983echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032984if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32985 echo $ECHO_N "(cached) $ECHO_C" >&6
32986else
Reid Spencera773bd52006-08-04 18:18:08 +000032987 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032988ac_cpp='$CXXCPP $CPPFLAGS'
32989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32992
Reid Spencerabec8f92004-10-27 23:03:44 +000032993 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032994/* confdefs.h. */
32995_ACEOF
32996cat confdefs.h >>conftest.$ac_ext
32997cat >>conftest.$ac_ext <<_ACEOF
32998/* end confdefs.h. */
32999#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033000int
33001main ()
33002{
33003float f; std::isinf(f)}
33004 ;
33005 return 0;
33006}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033007_ACEOF
33008rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033009if { (ac_try="$ac_compile"
33010case "(($ac_try" in
33011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33012 *) ac_try_echo=$ac_try;;
33013esac
33014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33015 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033016 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033017 grep -v '^ *+' conftest.er1 >conftest.err
33018 rm -f conftest.er1
33019 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033021 (exit $ac_status); } &&
33022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33023 { (case "(($ac_try" in
33024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33025 *) ac_try_echo=$ac_try;;
33026esac
33027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33028 (eval "$ac_try") 2>&5
33029 ac_status=$?
33030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33031 (exit $ac_status); }; } &&
33032 { ac_try='test -s conftest.$ac_objext'
33033 { (case "(($ac_try" in
33034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33035 *) ac_try_echo=$ac_try;;
33036esac
33037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33038 (eval "$ac_try") 2>&5
33039 ac_status=$?
33040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033042 ac_cv_func_std_isinf_in_cmath=yes
33043else
33044 echo "$as_me: failed program was:" >&5
33045sed 's/^/| /' conftest.$ac_ext >&5
33046
Reid Spencera773bd52006-08-04 18:18:08 +000033047 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033048fi
Reid Spencera773bd52006-08-04 18:18:08 +000033049
33050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033051 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033052ac_cpp='$CPP $CPPFLAGS'
33053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33055ac_compiler_gnu=$ac_cv_c_compiler_gnu
33056
33057fi
Reid Spencera773bd52006-08-04 18:18:08 +000033058{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33059echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033060
33061if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033062
33063cat >>confdefs.h <<\_ACEOF
33064#define HAVE_STD_ISINF_IN_CMATH 1
33065_ACEOF
33066
Reid Spencerabec8f92004-10-27 23:03:44 +000033067fi
33068
Reid Spencera773bd52006-08-04 18:18:08 +000033069{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33070echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033071if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33072 echo $ECHO_N "(cached) $ECHO_C" >&6
33073else
Reid Spencera773bd52006-08-04 18:18:08 +000033074 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033075ac_cpp='$CXXCPP $CPPFLAGS'
33076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33079
Reid Spencerabec8f92004-10-27 23:03:44 +000033080 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033081/* confdefs.h. */
33082_ACEOF
33083cat confdefs.h >>conftest.$ac_ext
33084cat >>conftest.$ac_ext <<_ACEOF
33085/* end confdefs.h. */
33086#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033087int
33088main ()
33089{
33090float f; finite(f);
33091 ;
33092 return 0;
33093}
Brian Gaeked59a6472004-07-21 03:33:58 +000033094_ACEOF
33095rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033096if { (ac_try="$ac_compile"
33097case "(($ac_try" in
33098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33099 *) ac_try_echo=$ac_try;;
33100esac
33101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33102 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033103 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033104 grep -v '^ *+' conftest.er1 >conftest.err
33105 rm -f conftest.er1
33106 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033108 (exit $ac_status); } &&
33109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33110 { (case "(($ac_try" in
33111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112 *) ac_try_echo=$ac_try;;
33113esac
33114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115 (eval "$ac_try") 2>&5
33116 ac_status=$?
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); }; } &&
33119 { ac_try='test -s conftest.$ac_objext'
33120 { (case "(($ac_try" in
33121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33122 *) ac_try_echo=$ac_try;;
33123esac
33124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33125 (eval "$ac_try") 2>&5
33126 ac_status=$?
33127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033129 ac_cv_func_finite_in_ieeefp_h=yes
33130else
33131 echo "$as_me: failed program was:" >&5
33132sed 's/^/| /' conftest.$ac_ext >&5
33133
Reid Spencera773bd52006-08-04 18:18:08 +000033134 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033135fi
Reid Spencera773bd52006-08-04 18:18:08 +000033136
33137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033138 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033139ac_cpp='$CPP $CPPFLAGS'
33140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33142ac_compiler_gnu=$ac_cv_c_compiler_gnu
33143
33144fi
Reid Spencera773bd52006-08-04 18:18:08 +000033145{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33146echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033147
Brian Gaeke6802b552004-10-28 05:06:45 +000033148if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033149
33150cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033151#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033152_ACEOF
33153
Reid Spencerabec8f92004-10-27 23:03:44 +000033154fi
33155
33156
33157
Reid Spencer30fe5262007-01-20 07:48:49 +000033158if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033159
33160
33161for ac_header in stdlib.h unistd.h
33162do
33163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033164if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33167if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033168 echo $ECHO_N "(cached) $ECHO_C" >&6
33169fi
Reid Spencera773bd52006-08-04 18:18:08 +000033170ac_res=`eval echo '${'$as_ac_Header'}'`
33171 { echo "$as_me:$LINENO: result: $ac_res" >&5
33172echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033173else
33174 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033175{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33176echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033177cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033178/* confdefs.h. */
33179_ACEOF
33180cat confdefs.h >>conftest.$ac_ext
33181cat >>conftest.$ac_ext <<_ACEOF
33182/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033183$ac_includes_default
33184#include <$ac_header>
33185_ACEOF
33186rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033187if { (ac_try="$ac_compile"
33188case "(($ac_try" in
33189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33190 *) ac_try_echo=$ac_try;;
33191esac
33192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33193 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033194 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033195 grep -v '^ *+' conftest.er1 >conftest.err
33196 rm -f conftest.er1
33197 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033199 (exit $ac_status); } &&
33200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33201 { (case "(($ac_try" in
33202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33203 *) ac_try_echo=$ac_try;;
33204esac
33205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33206 (eval "$ac_try") 2>&5
33207 ac_status=$?
33208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209 (exit $ac_status); }; } &&
33210 { ac_try='test -s conftest.$ac_objext'
33211 { (case "(($ac_try" in
33212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213 *) ac_try_echo=$ac_try;;
33214esac
33215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216 (eval "$ac_try") 2>&5
33217 ac_status=$?
33218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033220 ac_header_compiler=yes
33221else
33222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033223sed 's/^/| /' conftest.$ac_ext >&5
33224
Reid Spencera773bd52006-08-04 18:18:08 +000033225 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033226fi
Reid Spencera773bd52006-08-04 18:18:08 +000033227
33228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33229{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33230echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033231
33232# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033233{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033235cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033236/* confdefs.h. */
33237_ACEOF
33238cat confdefs.h >>conftest.$ac_ext
33239cat >>conftest.$ac_ext <<_ACEOF
33240/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033241#include <$ac_header>
33242_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033243if { (ac_try="$ac_cpp conftest.$ac_ext"
33244case "(($ac_try" in
33245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33246 *) ac_try_echo=$ac_try;;
33247esac
33248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033250 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033251 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033252 rm -f conftest.er1
33253 cat conftest.err >&5
33254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033255 (exit $ac_status); } >/dev/null; then
33256 if test -s conftest.err; then
33257 ac_cpp_err=$ac_c_preproc_warn_flag
33258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33259 else
33260 ac_cpp_err=
33261 fi
33262else
33263 ac_cpp_err=yes
33264fi
33265if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033266 ac_header_preproc=yes
33267else
33268 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033269sed 's/^/| /' conftest.$ac_ext >&5
33270
John Criswell7a73b802003-06-30 21:59:07 +000033271 ac_header_preproc=no
33272fi
Reid Spencera773bd52006-08-04 18:18:08 +000033273
John Criswell7a73b802003-06-30 21:59:07 +000033274rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033275{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33276echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033277
33278# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033279case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33280 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33282echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33284echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33285 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033286 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033287 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33289echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33291echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33293echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33295echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33297echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33299echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033300 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033301## ----------------------------------- ##
33302## Report this to llvmbugs@cs.uiuc.edu ##
33303## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033304_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033305 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033306 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033307esac
Reid Spencera773bd52006-08-04 18:18:08 +000033308{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33310if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033311 echo $ECHO_N "(cached) $ECHO_C" >&6
33312else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033313 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033314fi
Reid Spencera773bd52006-08-04 18:18:08 +000033315ac_res=`eval echo '${'$as_ac_Header'}'`
33316 { echo "$as_me:$LINENO: result: $ac_res" >&5
33317echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033318
33319fi
33320if test `eval echo '${'$as_ac_Header'}'` = yes; then
33321 cat >>confdefs.h <<_ACEOF
33322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33323_ACEOF
33324
33325fi
33326
33327done
33328
33329
33330for ac_func in getpagesize
33331do
33332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033333{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33335if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033336 echo $ECHO_N "(cached) $ECHO_C" >&6
33337else
33338 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033339/* confdefs.h. */
33340_ACEOF
33341cat confdefs.h >>conftest.$ac_ext
33342cat >>conftest.$ac_ext <<_ACEOF
33343/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33346#define $ac_func innocuous_$ac_func
33347
John Criswell7a73b802003-06-30 21:59:07 +000033348/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033349 which can conflict with char $ac_func (); below.
33350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33351 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033352
John Criswell0c38eaf2003-09-10 15:17:25 +000033353#ifdef __STDC__
33354# include <limits.h>
33355#else
33356# include <assert.h>
33357#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033358
33359#undef $ac_func
33360
Reid Spencera773bd52006-08-04 18:18:08 +000033361/* Override any GCC internal prototype to avoid an error.
33362 Use char because int might match the return type of a GCC
33363 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033364#ifdef __cplusplus
33365extern "C"
33366#endif
John Criswell7a73b802003-06-30 21:59:07 +000033367char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033368/* The GNU C library defines this for functions which it implements
33369 to always fail with ENOSYS. Some functions are actually named
33370 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033371#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033372choke me
John Criswell7a73b802003-06-30 21:59:07 +000033373#endif
33374
John Criswell0c38eaf2003-09-10 15:17:25 +000033375int
33376main ()
33377{
Reid Spencera773bd52006-08-04 18:18:08 +000033378return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033379 ;
33380 return 0;
33381}
33382_ACEOF
33383rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033384if { (ac_try="$ac_link"
33385case "(($ac_try" in
33386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33387 *) ac_try_echo=$ac_try;;
33388esac
33389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33390 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033391 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033392 grep -v '^ *+' conftest.er1 >conftest.err
33393 rm -f conftest.er1
33394 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033396 (exit $ac_status); } &&
33397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33398 { (case "(($ac_try" in
33399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33400 *) ac_try_echo=$ac_try;;
33401esac
33402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33403 (eval "$ac_try") 2>&5
33404 ac_status=$?
33405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33406 (exit $ac_status); }; } &&
33407 { ac_try='test -s conftest$ac_exeext'
33408 { (case "(($ac_try" in
33409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33410 *) ac_try_echo=$ac_try;;
33411esac
33412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33413 (eval "$ac_try") 2>&5
33414 ac_status=$?
33415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33416 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033417 eval "$as_ac_var=yes"
33418else
33419 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033420sed 's/^/| /' conftest.$ac_ext >&5
33421
Reid Spencera773bd52006-08-04 18:18:08 +000033422 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033423fi
Reid Spencera773bd52006-08-04 18:18:08 +000033424
Bill Wendlingebcceee2009-04-18 11:20:33 +000033425rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033426 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033427fi
Reid Spencera773bd52006-08-04 18:18:08 +000033428ac_res=`eval echo '${'$as_ac_var'}'`
33429 { echo "$as_me:$LINENO: result: $ac_res" >&5
33430echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033431if test `eval echo '${'$as_ac_var'}'` = yes; then
33432 cat >>confdefs.h <<_ACEOF
33433#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33434_ACEOF
33435
33436fi
33437done
33438
Reid Spencera773bd52006-08-04 18:18:08 +000033439{ echo "$as_me:$LINENO: checking for working mmap" >&5
33440echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033441if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33442 echo $ECHO_N "(cached) $ECHO_C" >&6
33443else
33444 if test "$cross_compiling" = yes; then
33445 ac_cv_func_mmap_fixed_mapped=no
33446else
33447 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033448/* confdefs.h. */
33449_ACEOF
33450cat confdefs.h >>conftest.$ac_ext
33451cat >>conftest.$ac_ext <<_ACEOF
33452/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033453$ac_includes_default
33454/* malloc might have been renamed as rpl_malloc. */
33455#undef malloc
33456
33457/* Thanks to Mike Haertel and Jim Avera for this test.
33458 Here is a matrix of mmap possibilities:
33459 mmap private not fixed
33460 mmap private fixed at somewhere currently unmapped
33461 mmap private fixed at somewhere already mapped
33462 mmap shared not fixed
33463 mmap shared fixed at somewhere currently unmapped
33464 mmap shared fixed at somewhere already mapped
33465 For private mappings, we should verify that changes cannot be read()
33466 back from the file, nor mmap's back from the file at a different
33467 address. (There have been systems where private was not correctly
33468 implemented like the infamous i386 svr4.0, and systems where the
33469 VM page cache was not coherent with the file system buffer cache
33470 like early versions of FreeBSD and possibly contemporary NetBSD.)
33471 For shared mappings, we should conversely verify that changes get
33472 propagated back to all the places they're supposed to be.
33473
33474 Grep wants private fixed already mapped.
33475 The main things grep needs to know about mmap are:
33476 * does it exist and is it safe to write into the mmap'd area
33477 * how to use it (BSD variants) */
33478
33479#include <fcntl.h>
33480#include <sys/mman.h>
33481
Bill Wendlingebcceee2009-04-18 11:20:33 +000033482#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033483char *malloc ();
33484#endif
33485
33486/* This mess was copied from the GNU getpagesize.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033487#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033488/* Assume that all systems that can run configure have sys/param.h. */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033489# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033490# define HAVE_SYS_PARAM_H 1
33491# endif
33492
33493# ifdef _SC_PAGESIZE
33494# define getpagesize() sysconf(_SC_PAGESIZE)
33495# else /* no _SC_PAGESIZE */
Bill Wendlingebcceee2009-04-18 11:20:33 +000033496# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033497# include <sys/param.h>
33498# ifdef EXEC_PAGESIZE
33499# define getpagesize() EXEC_PAGESIZE
33500# else /* no EXEC_PAGESIZE */
33501# ifdef NBPG
33502# define getpagesize() NBPG * CLSIZE
33503# ifndef CLSIZE
33504# define CLSIZE 1
33505# endif /* no CLSIZE */
33506# else /* no NBPG */
33507# ifdef NBPC
33508# define getpagesize() NBPC
33509# else /* no NBPC */
33510# ifdef PAGESIZE
33511# define getpagesize() PAGESIZE
33512# endif /* PAGESIZE */
33513# endif /* no NBPC */
33514# endif /* no NBPG */
33515# endif /* no EXEC_PAGESIZE */
33516# else /* no HAVE_SYS_PARAM_H */
33517# define getpagesize() 8192 /* punt totally */
33518# endif /* no HAVE_SYS_PARAM_H */
33519# endif /* no _SC_PAGESIZE */
33520
33521#endif /* no HAVE_GETPAGESIZE */
33522
33523int
33524main ()
33525{
33526 char *data, *data2, *data3;
33527 int i, pagesize;
33528 int fd;
33529
33530 pagesize = getpagesize ();
33531
33532 /* First, make a file with some known garbage in it. */
33533 data = (char *) malloc (pagesize);
33534 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033535 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033536 for (i = 0; i < pagesize; ++i)
33537 *(data + i) = rand ();
33538 umask (0);
33539 fd = creat ("conftest.mmap", 0600);
33540 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033541 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033542 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033543 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033544 close (fd);
33545
33546 /* Next, try to mmap the file at a fixed address which already has
33547 something else allocated at it. If we can, also make sure that
33548 we see the same garbage. */
33549 fd = open ("conftest.mmap", O_RDWR);
33550 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033551 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033552 data2 = (char *) malloc (2 * pagesize);
33553 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033554 return 1;
33555 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033556 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033557 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033558 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033559 for (i = 0; i < pagesize; ++i)
33560 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033561 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033562
33563 /* Finally, make sure that changes to the mapped area do not
33564 percolate back to the file as seen by read(). (This is a bug on
33565 some variants of i386 svr4.0.) */
33566 for (i = 0; i < pagesize; ++i)
33567 *(data2 + i) = *(data2 + i) + 1;
33568 data3 = (char *) malloc (pagesize);
33569 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033570 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033571 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033572 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033573 for (i = 0; i < pagesize; ++i)
33574 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033575 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033576 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033577 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033578}
33579_ACEOF
33580rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033581if { (ac_try="$ac_link"
33582case "(($ac_try" in
33583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33584 *) ac_try_echo=$ac_try;;
33585esac
33586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33587 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033588 ac_status=$?
33589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033591 { (case "(($ac_try" in
33592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33593 *) ac_try_echo=$ac_try;;
33594esac
33595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33596 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033597 ac_status=$?
33598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); }; }; then
33600 ac_cv_func_mmap_fixed_mapped=yes
33601else
33602 echo "$as_me: program exited with status $ac_status" >&5
33603echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033604sed 's/^/| /' conftest.$ac_ext >&5
33605
John Criswell7a73b802003-06-30 21:59:07 +000033606( exit $ac_status )
33607ac_cv_func_mmap_fixed_mapped=no
33608fi
Reid Spencera773bd52006-08-04 18:18:08 +000033609rm -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 +000033610fi
Reid Spencera773bd52006-08-04 18:18:08 +000033611
33612
John Criswell7a73b802003-06-30 21:59:07 +000033613fi
Reid Spencera773bd52006-08-04 18:18:08 +000033614{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33615echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033616if test $ac_cv_func_mmap_fixed_mapped = yes; then
33617
33618cat >>confdefs.h <<\_ACEOF
33619#define HAVE_MMAP 1
33620_ACEOF
33621
33622fi
33623rm -f conftest.mmap
33624
Reid Spencer30fe5262007-01-20 07:48:49 +000033625 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033626echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033627if test "${ac_cv_func_mmap_file+set}" = set; then
33628 echo $ECHO_N "(cached) $ECHO_C" >&6
33629else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033630 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033631ac_cpp='$CPP $CPPFLAGS'
33632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33634ac_compiler_gnu=$ac_cv_c_compiler_gnu
33635
33636 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033637 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033638else
33639 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033640
Reid Spencer777ce172004-09-20 04:09:56 +000033641 /* confdefs.h. */
33642_ACEOF
33643cat confdefs.h >>conftest.$ac_ext
33644cat >>conftest.$ac_ext <<_ACEOF
33645/* end confdefs.h. */
33646
John Criswell7a73b802003-06-30 21:59:07 +000033647#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033648#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033649#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033650
33651int
33652main ()
33653{
John Criswell7a73b802003-06-30 21:59:07 +000033654
33655 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033656 fd = creat ("foo",0777);
33657 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33658 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033659 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033660 ;
33661 return 0;
33662}
John Criswell7a73b802003-06-30 21:59:07 +000033663_ACEOF
33664rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033665if { (ac_try="$ac_link"
33666case "(($ac_try" in
33667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33668 *) ac_try_echo=$ac_try;;
33669esac
33670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33671 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033672 ac_status=$?
33673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33674 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033675 { (case "(($ac_try" in
33676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33677 *) ac_try_echo=$ac_try;;
33678esac
33679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33680 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033681 ac_status=$?
33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33683 (exit $ac_status); }; }; then
33684 ac_cv_func_mmap_file=yes
33685else
33686 echo "$as_me: program exited with status $ac_status" >&5
33687echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033688sed 's/^/| /' conftest.$ac_ext >&5
33689
John Criswell7a73b802003-06-30 21:59:07 +000033690( exit $ac_status )
33691ac_cv_func_mmap_file=no
33692fi
Reid Spencera773bd52006-08-04 18:18:08 +000033693rm -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 +000033694fi
Reid Spencera773bd52006-08-04 18:18:08 +000033695
33696
John Criswell7a73b802003-06-30 21:59:07 +000033697 ac_ext=c
33698ac_cpp='$CPP $CPPFLAGS'
33699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33701ac_compiler_gnu=$ac_cv_c_compiler_gnu
33702
33703
33704fi
Reid Spencera773bd52006-08-04 18:18:08 +000033705{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33706echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033707if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033708
33709cat >>confdefs.h <<\_ACEOF
33710#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033711_ACEOF
33712
33713 MMAP_FILE=yes
33714
33715fi
33716
Reid Spencer30fe5262007-01-20 07:48:49 +000033717 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033718echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033719if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33720 echo $ECHO_N "(cached) $ECHO_C" >&6
33721else
Reid Spencer582a23c2004-12-29 07:07:57 +000033722 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033723 ac_cv_need_dev_zero_for_mmap=yes
33724 else
33725 ac_cv_need_dev_zero_for_mmap=no
33726 fi
33727
33728fi
Reid Spencera773bd52006-08-04 18:18:08 +000033729{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33730echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033731if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33732
33733cat >>confdefs.h <<\_ACEOF
33734#define NEED_DEV_ZERO_FOR_MMAP 1
33735_ACEOF
33736
33737fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033738
Reid Spencer30fe5262007-01-20 07:48:49 +000033739 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33740 then
33741 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033742echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033743 fi
33744 if test "$ac_cv_func_mmap_file" = "no"
33745 then
33746 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033747echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033748 fi
John Criswellb13092b2003-07-22 21:00:24 +000033749fi
John Criswell7a73b802003-06-30 21:59:07 +000033750
Owen Andersona8603702009-05-19 22:18:56 +000033751{ echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
Owen Andersond4b272b2009-05-18 23:58:51 +000033752echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000033753cat >conftest.$ac_ext <<_ACEOF
Owen Andersond4b272b2009-05-18 23:58:51 +000033754/* confdefs.h. */
33755_ACEOF
33756cat confdefs.h >>conftest.$ac_ext
33757cat >>conftest.$ac_ext <<_ACEOF
33758/* end confdefs.h. */
33759int main() {
Owen Andersona8603702009-05-19 22:18:56 +000033760 volatile unsigned long val = 1;
33761 __sync_synchronize();
33762 __sync_val_compare_and_swap(&val, 1, 0);
33763 return 0;
33764 }
Owen Andersond4b272b2009-05-18 23:58:51 +000033765
33766_ACEOF
33767rm -f conftest.$ac_objext conftest$ac_exeext
33768if { (ac_try="$ac_link"
33769case "(($ac_try" in
33770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33771 *) ac_try_echo=$ac_try;;
33772esac
33773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33774 (eval "$ac_link") 2>conftest.er1
33775 ac_status=$?
33776 grep -v '^ *+' conftest.er1 >conftest.err
33777 rm -f conftest.er1
33778 cat conftest.err >&5
33779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33780 (exit $ac_status); } &&
33781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33782 { (case "(($ac_try" in
33783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784 *) ac_try_echo=$ac_try;;
33785esac
33786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33787 (eval "$ac_try") 2>&5
33788 ac_status=$?
33789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33790 (exit $ac_status); }; } &&
33791 { ac_try='test -s conftest$ac_exeext'
33792 { (case "(($ac_try" in
33793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33794 *) ac_try_echo=$ac_try;;
33795esac
33796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33797 (eval "$ac_try") 2>&5
33798 ac_status=$?
33799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; }; then
33801 { echo "$as_me:$LINENO: result: yes" >&5
33802echo "${ECHO_T}yes" >&6; }
Owen Andersona8603702009-05-19 22:18:56 +000033803
33804cat >>confdefs.h <<\_ACEOF
33805#define LLVM_MULTITHREADED 1
33806_ACEOF
33807
Owen Andersond4b272b2009-05-18 23:58:51 +000033808else
33809 echo "$as_me: failed program was:" >&5
33810sed 's/^/| /' conftest.$ac_ext >&5
33811
33812 { echo "$as_me:$LINENO: result: no" >&5
33813echo "${ECHO_T}no" >&6; }
Owen Andersond4b272b2009-05-18 23:58:51 +000033814
Owen Andersona8603702009-05-19 22:18:56 +000033815cat >>confdefs.h <<\_ACEOF
33816#define LLVM_MULTITHREADED 0
33817_ACEOF
33818
33819 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
33820echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
Owen Andersond4b272b2009-05-18 23:58:51 +000033821fi
33822
33823rm -f core conftest.err conftest.$ac_objext \
33824 conftest$ac_exeext conftest.$ac_ext
Owen Andersond4b272b2009-05-18 23:58:51 +000033825
33826
John Criswell7a73b802003-06-30 21:59:07 +000033827
Reid Spencer9372f152007-07-30 20:13:24 +000033828
33829for ac_func in __dso_handle
33830do
33831as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33832{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33833echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33834if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33835 echo $ECHO_N "(cached) $ECHO_C" >&6
33836else
33837 cat >conftest.$ac_ext <<_ACEOF
33838/* confdefs.h. */
33839_ACEOF
33840cat confdefs.h >>conftest.$ac_ext
33841cat >>conftest.$ac_ext <<_ACEOF
33842/* end confdefs.h. */
33843/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33845#define $ac_func innocuous_$ac_func
33846
33847/* System header to define __stub macros and hopefully few prototypes,
33848 which can conflict with char $ac_func (); below.
33849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33850 <limits.h> exists even on freestanding compilers. */
33851
33852#ifdef __STDC__
33853# include <limits.h>
33854#else
33855# include <assert.h>
33856#endif
33857
33858#undef $ac_func
33859
33860/* Override any GCC internal prototype to avoid an error.
33861 Use char because int might match the return type of a GCC
33862 builtin and then its argument prototype would still apply. */
33863#ifdef __cplusplus
33864extern "C"
33865#endif
33866char $ac_func ();
33867/* The GNU C library defines this for functions which it implements
33868 to always fail with ENOSYS. Some functions are actually named
33869 something starting with __ and the normal name is an alias. */
33870#if defined __stub_$ac_func || defined __stub___$ac_func
33871choke me
33872#endif
33873
33874int
33875main ()
33876{
33877return $ac_func ();
33878 ;
33879 return 0;
33880}
33881_ACEOF
33882rm -f conftest.$ac_objext conftest$ac_exeext
33883if { (ac_try="$ac_link"
33884case "(($ac_try" in
33885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886 *) ac_try_echo=$ac_try;;
33887esac
33888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889 (eval "$ac_link") 2>conftest.er1
33890 ac_status=$?
33891 grep -v '^ *+' conftest.er1 >conftest.err
33892 rm -f conftest.er1
33893 cat conftest.err >&5
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000033895 (exit $ac_status); } &&
33896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33897 { (case "(($ac_try" in
33898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33899 *) ac_try_echo=$ac_try;;
33900esac
33901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33902 (eval "$ac_try") 2>&5
33903 ac_status=$?
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); }; } &&
33906 { ac_try='test -s conftest$ac_exeext'
33907 { (case "(($ac_try" in
33908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33909 *) ac_try_echo=$ac_try;;
33910esac
33911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33912 (eval "$ac_try") 2>&5
33913 ac_status=$?
33914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000033916 eval "$as_ac_var=yes"
33917else
33918 echo "$as_me: failed program was:" >&5
33919sed 's/^/| /' conftest.$ac_ext >&5
33920
33921 eval "$as_ac_var=no"
33922fi
33923
Bill Wendlingebcceee2009-04-18 11:20:33 +000033924rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000033925 conftest$ac_exeext conftest.$ac_ext
33926fi
33927ac_res=`eval echo '${'$as_ac_var'}'`
33928 { echo "$as_me:$LINENO: result: $ac_res" >&5
33929echo "${ECHO_T}$ac_res" >&6; }
33930if test `eval echo '${'$as_ac_var'}'` = yes; then
33931 cat >>confdefs.h <<_ACEOF
33932#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33933_ACEOF
33934
33935fi
33936done
33937
33938
Reid Spencera773bd52006-08-04 18:18:08 +000033939{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33940echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033941if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33942 echo $ECHO_N "(cached) $ECHO_C" >&6
33943else
33944 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033945if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033946 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033947 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33948 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033949 if test $? -eq 0 ; then
33950 llvm_cv_llvmgcc_sanity="yes"
33951 fi
33952 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033953fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033954fi
Reid Spencera773bd52006-08-04 18:18:08 +000033955{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33956echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033957
33958if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033959 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33960echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033961 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033962 LLVMCC1=$llvmcc1path
33963
Reid Spencer502935f2004-12-22 05:56:56 +000033964 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033965 LLVMCC1PLUS=$llvmcc1pluspath
33966
Reid Spencer502935f2004-12-22 05:56:56 +000033967 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33968 LLVMGCCDIR=$llvmgccdir
33969
Reid Spencer282d8c12006-12-21 22:55:41 +000033970 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33971 LLVMGCCLIBEXEC=$llvmgcclibexec
33972
Reid Spencerb5d75b82006-05-09 00:31:01 +000033973 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033974 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33975 LLVMGCC_VERSION=$llvmgccversion
33976
33977 LLVMGCC_MAJVERS=$llvmgccmajvers
33978
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000033979 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000033980 LLVMGCC_LANGS=$llvmgcclangs
33981
33982 { echo "$as_me:$LINENO: result: ok" >&5
33983echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000033984fi
33985
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033986SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033987
33988
Reid Spencere9de0912004-08-20 09:03:57 +000033989# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033990# information into substitutions that will end up in Makefile.config.in
33991# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033992if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033993 prefix="/usr/local"
33994fi
Reid Spencere9de0912004-08-20 09:03:57 +000033995eval LLVM_PREFIX="${prefix}";
33996eval LLVM_BINDIR="${prefix}/bin";
33997eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033998eval LLVM_DATADIR="${prefix}/share/llvm";
33999eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34000eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034001eval LLVM_INCLUDEDIR="${prefix}/include";
34002eval LLVM_INFODIR="${prefix}/info";
34003eval LLVM_MANDIR="${prefix}/man";
34004LLVM_CONFIGTIME=`date`
34005
34006
34007
34008
34009
34010
34011
34012
34013
34014
34015
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034016# Place the various directores into the config.h file as #defines so that we
34017# can know about the installation paths within LLVM.
34018
Reid Spencere9de0912004-08-20 09:03:57 +000034019cat >>confdefs.h <<_ACEOF
34020#define LLVM_PREFIX "$LLVM_PREFIX"
34021_ACEOF
34022
34023
34024cat >>confdefs.h <<_ACEOF
34025#define LLVM_BINDIR "$LLVM_BINDIR"
34026_ACEOF
34027
34028
34029cat >>confdefs.h <<_ACEOF
34030#define LLVM_LIBDIR "$LLVM_LIBDIR"
34031_ACEOF
34032
34033
34034cat >>confdefs.h <<_ACEOF
34035#define LLVM_DATADIR "$LLVM_DATADIR"
34036_ACEOF
34037
34038
34039cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034040#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034041_ACEOF
34042
34043
34044cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034045#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034046_ACEOF
34047
34048
34049cat >>confdefs.h <<_ACEOF
34050#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34051_ACEOF
34052
34053
34054cat >>confdefs.h <<_ACEOF
34055#define LLVM_INFODIR "$LLVM_INFODIR"
34056_ACEOF
34057
34058
34059cat >>confdefs.h <<_ACEOF
34060#define LLVM_MANDIR "$LLVM_MANDIR"
34061_ACEOF
34062
34063
34064cat >>confdefs.h <<_ACEOF
34065#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34066_ACEOF
34067
34068
Eric Christopher790e11c2007-12-01 00:34:39 +000034069cat >>confdefs.h <<_ACEOF
34070#define LLVM_HOSTTRIPLE "$host"
34071_ACEOF
34072
34073
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034074# Determine which bindings to build.
34075if test "$BINDINGS_TO_BUILD" = auto ; then
34076 BINDINGS_TO_BUILD=""
34077 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34078 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34079 fi
34080fi
34081BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34082
34083
34084# This isn't really configurey, but it avoids having to repeat the list in
34085# other files.
34086ALL_BINDINGS=ocaml
34087
34088
Gordon Henriksenf0915682007-10-02 16:42:22 +000034089# Do any work necessary to ensure that bindings have what they need.
34090binding_prereqs_failed=0
34091for a_binding in $BINDINGS_TO_BUILD ; do
34092 case "$a_binding" in
34093 ocaml)
34094 if test "x$OCAMLC" = x ; then
34095 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34096echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34097 binding_prereqs_failed=1
34098 fi
34099 if test "x$OCAMLDEP" = x ; then
34100 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34101echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34102 binding_prereqs_failed=1
34103 fi
34104 if test "x$OCAMLOPT" = x ; then
34105 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34106echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34107 fi
34108 if test "x$with_ocaml_libdir" != xauto ; then
34109 OCAML_LIBDIR=$with_ocaml_libdir
34110
34111 else
34112 ocaml_stdlib="`"$OCAMLC" -where`"
34113 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34114 then
34115 # ocaml stdlib is beneath our prefix; use stdlib
34116 OCAML_LIBDIR=$ocaml_stdlib
34117
34118 else
34119 # ocaml stdlib is outside our prefix; use libdir/ocaml
34120 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34121
34122 fi
34123 fi
34124 ;;
34125 esac
34126done
34127if test "$binding_prereqs_failed" = 1 ; then
34128 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34129echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34130 { (exit 1); exit 1; }; }
34131fi
34132
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034133{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34134echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34135if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34136 echo $ECHO_N "(cached) $ECHO_C" >&6
34137else
34138 ac_ext=cpp
34139ac_cpp='$CXXCPP $CPPFLAGS'
34140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34143
34144 oldcxxflags="$CXXFLAGS"
34145 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34146 cat >conftest.$ac_ext <<_ACEOF
34147/* confdefs.h. */
34148_ACEOF
34149cat confdefs.h >>conftest.$ac_ext
34150cat >>conftest.$ac_ext <<_ACEOF
34151/* end confdefs.h. */
34152
34153int
34154main ()
34155{
34156
34157 ;
34158 return 0;
34159}
34160_ACEOF
34161rm -f conftest.$ac_objext
34162if { (ac_try="$ac_compile"
34163case "(($ac_try" in
34164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34165 *) ac_try_echo=$ac_try;;
34166esac
34167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34168 (eval "$ac_compile") 2>conftest.er1
34169 ac_status=$?
34170 grep -v '^ *+' conftest.er1 >conftest.err
34171 rm -f conftest.er1
34172 cat conftest.err >&5
34173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Bill Wendlingebcceee2009-04-18 11:20:33 +000034174 (exit $ac_status); } &&
34175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34176 { (case "(($ac_try" in
34177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34178 *) ac_try_echo=$ac_try;;
34179esac
34180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34181 (eval "$ac_try") 2>&5
34182 ac_status=$?
34183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34184 (exit $ac_status); }; } &&
34185 { ac_try='test -s conftest.$ac_objext'
34186 { (case "(($ac_try" in
34187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34188 *) ac_try_echo=$ac_try;;
34189esac
34190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34191 (eval "$ac_try") 2>&5
34192 ac_status=$?
34193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034195 llvm_cv_cxx_visibility_inlines_hidden=yes
34196else
34197 echo "$as_me: failed program was:" >&5
34198sed 's/^/| /' conftest.$ac_ext >&5
34199
34200 llvm_cv_cxx_visibility_inlines_hidden=no
34201fi
34202
34203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34204 CXXFLAGS="$oldcxxflags"
34205 ac_ext=c
34206ac_cpp='$CPP $CPPFLAGS'
34207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34209ac_compiler_gnu=$ac_cv_c_compiler_gnu
34210
34211
34212fi
34213{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34214echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34215if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34216 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34217
34218else
34219 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34220
34221fi
34222
Gordon Henriksenf0915682007-10-02 16:42:22 +000034223
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034224if test "$llvm_cv_link_use_r" = "yes" ; then
34225 RPATH="-Wl,-R"
34226else
34227 RPATH="-Wl,-rpath"
34228fi
34229
34230
34231if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
34232 RDYNAMIC="-Wl,-export-dynamic"
34233else
34234 RDYNAMIC=""
34235fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034236
34237
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034238
Reid Spencera773bd52006-08-04 18:18:08 +000034239ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034240
Douglas Gregor1555a232009-06-16 20:12:29 +000034241ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
34242
34243ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
34244
Reid Spencera773bd52006-08-04 18:18:08 +000034245ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034246
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034247ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034248
34249
Reid Spencera773bd52006-08-04 18:18:08 +000034250ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034251
34252
Reid Spencerea949cf2006-08-16 00:45:38 +000034253ac_config_files="$ac_config_files llvm.spec"
34254
34255
Reid Spencera773bd52006-08-04 18:18:08 +000034256ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034257
34258
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034259ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
34260
34261
Reid Spencera773bd52006-08-04 18:18:08 +000034262ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034263
34264
Reid Spencera773bd52006-08-04 18:18:08 +000034265ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034266
Reid Spencera773bd52006-08-04 18:18:08 +000034267ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034268
34269
Reid Spencera773bd52006-08-04 18:18:08 +000034270ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034271
34272
Reid Spencera773bd52006-08-04 18:18:08 +000034273ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034274
34275
Reid Spencera773bd52006-08-04 18:18:08 +000034276ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034277
34278
Reid Spencer8b2e1412006-11-17 03:32:33 +000034279ac_config_commands="$ac_config_commands runtime/Makefile"
34280
34281
Reid Spencera773bd52006-08-04 18:18:08 +000034282ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034283
34284
Reid Spencera773bd52006-08-04 18:18:08 +000034285ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034286
34287
Bill Wendlingf24eb392009-01-04 23:12:30 +000034288ac_config_commands="$ac_config_commands unittests/Makefile"
34289
34290
Reid Spencera773bd52006-08-04 18:18:08 +000034291ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034292
34293
Reid Spencera773bd52006-08-04 18:18:08 +000034294ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034295
34296
Reid Spencera773bd52006-08-04 18:18:08 +000034297ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034298
34299
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034300ac_config_commands="$ac_config_commands bindings/Makefile"
34301
34302
34303ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34304
34305
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034306
John Criswell7a73b802003-06-30 21:59:07 +000034307cat >confcache <<\_ACEOF
34308# This file is a shell script that caches the results of configure
34309# tests run on this system so they can be shared between configure
34310# scripts and configure runs, see configure's option --config-cache.
34311# It is not useful on other systems. If it contains results you don't
34312# want to keep, you may remove or edit it.
34313#
34314# config.status only pays attention to the cache file if you give it
34315# the --recheck option to rerun configure.
34316#
John Criswell0c38eaf2003-09-10 15:17:25 +000034317# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034318# loading this file, other *unset* `ac_cv_foo' will be assigned the
34319# following values.
34320
34321_ACEOF
34322
34323# The following way of writing the cache mishandles newlines in values,
34324# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034325# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034326# Ultrix sh set writes to stderr and can't be redirected directly,
34327# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034328(
34329 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34330 eval ac_val=\$$ac_var
34331 case $ac_val in #(
34332 *${as_nl}*)
34333 case $ac_var in #(
34334 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34335echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34336 esac
34337 case $ac_var in #(
34338 _ | IFS | as_nl) ;; #(
34339 *) $as_unset $ac_var ;;
34340 esac ;;
34341 esac
34342 done
34343
John Criswell7a73b802003-06-30 21:59:07 +000034344 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034345 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34346 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034347 # `set' does not quote correctly, so add quotes (double-quote
34348 # substitution turns \\\\ into \\, and sed turns \\ into \).
34349 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034350 "s/'/'\\\\''/g;
34351 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034352 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034353 *)
34354 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034355 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034356 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034357 esac |
34358 sort
34359) |
John Criswell7a73b802003-06-30 21:59:07 +000034360 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034361 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034362 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034363 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034364 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34365 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034366 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34367 :end' >>confcache
34368if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34369 if test -w "$cache_file"; then
34370 test "x$cache_file" != "x/dev/null" &&
34371 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34372echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034373 cat confcache >$cache_file
34374 else
Reid Spencera773bd52006-08-04 18:18:08 +000034375 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34376echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034377 fi
34378fi
34379rm -f confcache
34380
34381test "x$prefix" = xNONE && prefix=$ac_default_prefix
34382# Let make expand exec_prefix.
34383test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34384
John Criswell7a73b802003-06-30 21:59:07 +000034385DEFS=-DHAVE_CONFIG_H
34386
John Criswell0c38eaf2003-09-10 15:17:25 +000034387ac_libobjs=
34388ac_ltlibobjs=
34389for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34390 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034391 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34392 ac_i=`echo "$ac_i" | sed "$ac_script"`
34393 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34394 # will be set to the directory where LIBOBJS objects are built.
34395 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34396 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034397done
34398LIBOBJS=$ac_libobjs
34399
34400LTLIBOBJS=$ac_ltlibobjs
34401
34402
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034403if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34404 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34405Usually this means the macro was only invoked conditionally." >&5
34406echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34407Usually this means the macro was only invoked conditionally." >&2;}
34408 { (exit 1); exit 1; }; }
34409fi
34410if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34411 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34412Usually this means the macro was only invoked conditionally." >&5
34413echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34414Usually this means the macro was only invoked conditionally." >&2;}
34415 { (exit 1); exit 1; }; }
34416fi
John Criswell7a73b802003-06-30 21:59:07 +000034417
34418: ${CONFIG_STATUS=./config.status}
34419ac_clean_files_save=$ac_clean_files
34420ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34421{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34422echo "$as_me: creating $CONFIG_STATUS" >&6;}
34423cat >$CONFIG_STATUS <<_ACEOF
34424#! $SHELL
34425# Generated by $as_me.
34426# Run this file to recreate the current configuration.
34427# Compiler output produced by configure, useful for debugging
34428# configure, is in config.log if it exists.
34429
34430debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034431ac_cs_recheck=false
34432ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034433SHELL=\${CONFIG_SHELL-$SHELL}
34434_ACEOF
34435
34436cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034437## --------------------- ##
34438## M4sh Initialization. ##
34439## --------------------- ##
34440
Bill Wendlingebcceee2009-04-18 11:20:33 +000034441# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034442if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34443 emulate sh
34444 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034445 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34446 # is contrary to our usage. Disable this feature.
34447 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034448 setopt NO_GLOB_SUBST
34449else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034450 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034451fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034452BIN_SH=xpg4; export BIN_SH # for Tru64
34453DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034454
John Criswell7a73b802003-06-30 21:59:07 +000034455
Reid Spencera773bd52006-08-04 18:18:08 +000034456# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034457# Avoid depending upon Character Ranges.
34458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34461as_cr_digits='0123456789'
34462as_cr_alnum=$as_cr_Letters$as_cr_digits
34463
34464# The user is always right.
34465if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034466 echo "#! /bin/sh" >conf$$.sh
34467 echo "exit 0" >>conf$$.sh
34468 chmod +x conf$$.sh
34469 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034470 PATH_SEPARATOR=';'
34471 else
34472 PATH_SEPARATOR=:
34473 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034474 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034475fi
34476
Reid Spencera773bd52006-08-04 18:18:08 +000034477# Support unset when possible.
34478if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34479 as_unset=unset
34480else
34481 as_unset=false
34482fi
John Criswell7a73b802003-06-30 21:59:07 +000034483
Reid Spencera773bd52006-08-04 18:18:08 +000034484
34485# IFS
34486# We need space, tab and new line, in precisely that order. Quoting is
34487# there to prevent editors from complaining about space-tab.
34488# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34489# splitting by setting IFS to empty value.)
34490as_nl='
34491'
34492IFS=" "" $as_nl"
34493
34494# Find who we are. Look in the path if we contain no directory separator.
34495case $0 in
34496 *[\\/]* ) as_myself=$0 ;;
34497 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034498for as_dir in $PATH
34499do
34500 IFS=$as_save_IFS
34501 test -z "$as_dir" && as_dir=.
34502 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34503done
Reid Spencera773bd52006-08-04 18:18:08 +000034504IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034505
Reid Spencera773bd52006-08-04 18:18:08 +000034506 ;;
34507esac
34508# We did not find ourselves, most probably we were run as `sh COMMAND'
34509# in which case we are not to be found in the path.
34510if test "x$as_myself" = x; then
34511 as_myself=$0
34512fi
34513if test ! -f "$as_myself"; then
34514 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34515 { (exit 1); exit 1; }
34516fi
34517
34518# Work around bugs in pre-3.0 UWIN ksh.
34519for as_var in ENV MAIL MAILPATH
34520do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34521done
34522PS1='$ '
34523PS2='> '
34524PS4='+ '
34525
34526# NLS nuisances.
34527for as_var in \
34528 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34529 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34530 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034531do
Reid Spencera773bd52006-08-04 18:18:08 +000034532 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34533 eval $as_var=C; export $as_var
34534 else
34535 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34536 fi
34537done
34538
34539# Required to use basename.
34540if expr a : '\(a\)' >/dev/null 2>&1 &&
34541 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34542 as_expr=expr
34543else
34544 as_expr=false
34545fi
34546
34547if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34548 as_basename=basename
34549else
34550 as_basename=false
34551fi
34552
34553
34554# Name of the executable.
34555as_me=`$as_basename -- "$0" ||
34556$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34557 X"$0" : 'X\(//\)$' \| \
34558 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34559echo X/"$0" |
34560 sed '/^.*\/\([^/][^/]*\)\/*$/{
34561 s//\1/
34562 q
34563 }
34564 /^X\/\(\/\/\)$/{
34565 s//\1/
34566 q
34567 }
34568 /^X\/\(\/\).*/{
34569 s//\1/
34570 q
34571 }
34572 s/.*/./; q'`
34573
34574# CDPATH.
34575$as_unset CDPATH
34576
34577
34578
John Criswell7a73b802003-06-30 21:59:07 +000034579 as_lineno_1=$LINENO
34580 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034581 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034582 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034583
34584 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34585 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034586 # line-number line after each line using $LINENO; the second 'sed'
34587 # does the real work. The second script uses 'N' to pair each
34588 # line-number line with the line containing $LINENO, and appends
34589 # trailing '-' during substitution so that $LINENO is not a special
34590 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034591 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034592 # scripts with optimization help from Paolo Bonzini. Blame Lee
34593 # E. McMahon (1931-1989) for sed's syntax. :-)
34594 sed -n '
34595 p
34596 /[$]LINENO/=
34597 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034598 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034599 s/[$]LINENO.*/&-/
34600 t lineno
34601 b
34602 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034603 N
Reid Spencera773bd52006-08-04 18:18:08 +000034604 :loop
34605 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034606 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034607 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034608 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034609 chmod +x "$as_me.lineno" ||
34610 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034611 { (exit 1); exit 1; }; }
34612
34613 # Don't try to exec as it changes $[0], causing all sort of problems
34614 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034615 # original and so on. Autoconf is especially sensitive to this).
34616 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034617 # Exit status is that of the last command.
34618 exit
34619}
34620
34621
Reid Spencera773bd52006-08-04 18:18:08 +000034622if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34623 as_dirname=dirname
34624else
34625 as_dirname=false
34626fi
34627
34628ECHO_C= ECHO_N= ECHO_T=
34629case `echo -n x` in
34630-n*)
34631 case `echo 'x\c'` in
34632 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34633 *) ECHO_C='\c';;
34634 esac;;
34635*)
34636 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034637esac
34638
Reid Spencera773bd52006-08-04 18:18:08 +000034639if expr a : '\(a\)' >/dev/null 2>&1 &&
34640 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034641 as_expr=expr
34642else
34643 as_expr=false
34644fi
34645
34646rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034647if test -d conf$$.dir; then
34648 rm -f conf$$.dir/conf$$.file
34649else
34650 rm -f conf$$.dir
34651 mkdir conf$$.dir
34652fi
John Criswell7a73b802003-06-30 21:59:07 +000034653echo >conf$$.file
34654if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034655 as_ln_s='ln -s'
34656 # ... but there are two gotchas:
34657 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34658 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34659 # In both cases, we have to default to `cp -p'.
34660 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034661 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034662elif ln conf$$.file conf$$ 2>/dev/null; then
34663 as_ln_s=ln
34664else
34665 as_ln_s='cp -p'
34666fi
Reid Spencera773bd52006-08-04 18:18:08 +000034667rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34668rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034669
John Criswell0c38eaf2003-09-10 15:17:25 +000034670if mkdir -p . 2>/dev/null; then
34671 as_mkdir_p=:
34672else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034673 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034674 as_mkdir_p=false
34675fi
34676
Bill Wendlingebcceee2009-04-18 11:20:33 +000034677# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34678# systems may use methods other than mode bits to determine executability.
34679cat >conf$$.file <<_ASEOF
34680#! /bin/sh
34681exit 0
34682_ASEOF
34683chmod +x conf$$.file
34684if test -x conf$$.file >/dev/null 2>&1; then
34685 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034686else
Bill Wendlingebcceee2009-04-18 11:20:33 +000034687 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034688fi
Bill Wendlingebcceee2009-04-18 11:20:33 +000034689rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034690
34691# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034692as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034693
34694# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034695as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034696
34697
John Criswell7a73b802003-06-30 21:59:07 +000034698exec 6>&1
34699
Reid Spencera773bd52006-08-04 18:18:08 +000034700# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034701# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034702# values after options handling.
34703ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034704This file was extended by llvm $as_me 2.6svn, which was
Bill Wendlingebcceee2009-04-18 11:20:33 +000034705generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034706
34707 CONFIG_FILES = $CONFIG_FILES
34708 CONFIG_HEADERS = $CONFIG_HEADERS
34709 CONFIG_LINKS = $CONFIG_LINKS
34710 CONFIG_COMMANDS = $CONFIG_COMMANDS
34711 $ $0 $@
34712
Reid Spencera773bd52006-08-04 18:18:08 +000034713on `(hostname || uname -n) 2>/dev/null | sed 1q`
34714"
34715
John Criswell7a73b802003-06-30 21:59:07 +000034716_ACEOF
34717
Reid Spencera773bd52006-08-04 18:18:08 +000034718cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034719# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034720config_files="$ac_config_files"
34721config_headers="$ac_config_headers"
34722config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034723
Reid Spencera773bd52006-08-04 18:18:08 +000034724_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034725
34726cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034727ac_cs_usage="\
34728\`$as_me' instantiates files from templates according to the
34729current configuration.
34730
34731Usage: $0 [OPTIONS] [FILE]...
34732
34733 -h, --help print this help, then exit
Bill Wendlingebcceee2009-04-18 11:20:33 +000034734 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034735 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034736 -d, --debug don't remove temporary files
34737 --recheck update $as_me by reconfiguring in the same conditions
34738 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034739 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034740 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034741 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034742
34743Configuration files:
34744$config_files
34745
34746Configuration headers:
34747$config_headers
34748
John Criswellc764fbc2003-09-06 15:17:13 +000034749Configuration commands:
34750$config_commands
34751
John Criswell7a73b802003-06-30 21:59:07 +000034752Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034753
Reid Spencera773bd52006-08-04 18:18:08 +000034754_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034755cat >>$CONFIG_STATUS <<_ACEOF
34756ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034757llvm config.status 2.6svn
Bill Wendlingebcceee2009-04-18 11:20:33 +000034758configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034759 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034760
Reid Spencera773bd52006-08-04 18:18:08 +000034761Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034762This config.status script is free software; the Free Software Foundation
34763gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034764
34765ac_pwd='$ac_pwd'
34766srcdir='$srcdir'
34767INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034768_ACEOF
34769
34770cat >>$CONFIG_STATUS <<\_ACEOF
34771# If no file are specified by the user, then we need to provide default
34772# value. By we need to know if files were specified by the user.
34773ac_need_defaults=:
34774while test $# != 0
34775do
34776 case $1 in
34777 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034778 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34779 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034780 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034781 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034782 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034783 ac_option=$1
34784 ac_optarg=$2
34785 ac_shift=shift
34786 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034787 esac
34788
John Criswell0c38eaf2003-09-10 15:17:25 +000034789 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034790 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034791 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34792 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034793 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34794 echo "$ac_cs_version"; exit ;;
34795 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034796 debug=: ;;
34797 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034798 $ac_shift
34799 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034800 ac_need_defaults=false;;
34801 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034802 $ac_shift
34803 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034804 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034805 --he | --h)
34806 # Conflict between --help and --header
34807 { echo "$as_me: error: ambiguous option: $1
34808Try \`$0 --help' for more information." >&2
34809 { (exit 1); exit 1; }; };;
34810 --help | --hel | -h )
34811 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034812 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34813 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34814 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034815
34816 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034817 -*) { echo "$as_me: error: unrecognized option: $1
34818Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034819 { (exit 1); exit 1; }; } ;;
34820
Reid Spencera773bd52006-08-04 18:18:08 +000034821 *) ac_config_targets="$ac_config_targets $1"
34822 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034823
34824 esac
34825 shift
34826done
34827
John Criswell0c38eaf2003-09-10 15:17:25 +000034828ac_configure_extra_args=
34829
34830if $ac_cs_silent; then
34831 exec 6>/dev/null
34832 ac_configure_extra_args="$ac_configure_extra_args --silent"
34833fi
34834
34835_ACEOF
34836cat >>$CONFIG_STATUS <<_ACEOF
34837if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034838 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34839 CONFIG_SHELL=$SHELL
34840 export CONFIG_SHELL
34841 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034842fi
34843
John Criswell7a73b802003-06-30 21:59:07 +000034844_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034845cat >>$CONFIG_STATUS <<\_ACEOF
34846exec 5>>config.log
34847{
34848 echo
34849 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34850## Running $as_me. ##
34851_ASBOX
34852 echo "$ac_log"
34853} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034854
Reid Spencera773bd52006-08-04 18:18:08 +000034855_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034856cat >>$CONFIG_STATUS <<_ACEOF
34857#
Reid Spencera773bd52006-08-04 18:18:08 +000034858# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034859#
Reid Spencerc0682832005-02-24 19:05:19 +000034860llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034861
34862_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034863
John Criswell7a73b802003-06-30 21:59:07 +000034864cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034865
34866# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034867for ac_config_target in $ac_config_targets
34868do
Reid Spencera773bd52006-08-04 18:18:08 +000034869 case $ac_config_target in
34870 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
Douglas Gregor1555a232009-06-16 20:12:29 +000034871 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
34872 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034873 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034874 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034875 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034876 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034877 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000034878 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034879 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34880 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34881 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34882 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34883 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34884 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034885 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034886 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34887 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000034888 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034889 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34890 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34891 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034892 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34893 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034894
John Criswell7a73b802003-06-30 21:59:07 +000034895 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34896echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34897 { (exit 1); exit 1; }; };;
34898 esac
34899done
34900
Reid Spencera773bd52006-08-04 18:18:08 +000034901
John Criswell7a73b802003-06-30 21:59:07 +000034902# If the user did not use the arguments to specify the items to instantiate,
34903# then the envvar interface is used. Set only those that are not.
34904# We use the long form for the default assignment because of an extremely
34905# bizarre bug on SunOS 4.1.3.
34906if $ac_need_defaults; then
34907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034909 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034910fi
34911
John Criswell0c38eaf2003-09-10 15:17:25 +000034912# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034913# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034914# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034915# Hook for its removal unless debugging.
34916# Note that there is a small window in which the directory will not be cleaned:
34917# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034918$debug ||
34919{
Reid Spencera773bd52006-08-04 18:18:08 +000034920 tmp=
34921 trap 'exit_status=$?
34922 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34923' 0
John Criswell7a73b802003-06-30 21:59:07 +000034924 trap '{ (exit 1); exit 1; }' 1 2 13 15
34925}
John Criswell7a73b802003-06-30 21:59:07 +000034926# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034927
John Criswell7a73b802003-06-30 21:59:07 +000034928{
Reid Spencera773bd52006-08-04 18:18:08 +000034929 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034930 test -n "$tmp" && test -d "$tmp"
34931} ||
34932{
Reid Spencera773bd52006-08-04 18:18:08 +000034933 tmp=./conf$$-$RANDOM
34934 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034935} ||
34936{
John Criswell0c38eaf2003-09-10 15:17:25 +000034937 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034938 { (exit 1); exit 1; }
34939}
34940
John Criswell7a73b802003-06-30 21:59:07 +000034941#
Reid Spencera773bd52006-08-04 18:18:08 +000034942# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034943#
34944
34945# No need to generate the scripts if there are no CONFIG_FILES.
34946# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034947if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034948
34949_ACEOF
34950
Reid Spencera773bd52006-08-04 18:18:08 +000034951
34952
34953ac_delim='%!_!# '
34954for ac_last_try in false false false false false :; do
34955 cat >conf$$subs.sed <<_ACEOF
34956SHELL!$SHELL$ac_delim
34957PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34958PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34959PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34960PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34961PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34962PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34963exec_prefix!$exec_prefix$ac_delim
34964prefix!$prefix$ac_delim
34965program_transform_name!$program_transform_name$ac_delim
34966bindir!$bindir$ac_delim
34967sbindir!$sbindir$ac_delim
34968libexecdir!$libexecdir$ac_delim
34969datarootdir!$datarootdir$ac_delim
34970datadir!$datadir$ac_delim
34971sysconfdir!$sysconfdir$ac_delim
34972sharedstatedir!$sharedstatedir$ac_delim
34973localstatedir!$localstatedir$ac_delim
34974includedir!$includedir$ac_delim
34975oldincludedir!$oldincludedir$ac_delim
34976docdir!$docdir$ac_delim
34977infodir!$infodir$ac_delim
34978htmldir!$htmldir$ac_delim
34979dvidir!$dvidir$ac_delim
34980pdfdir!$pdfdir$ac_delim
34981psdir!$psdir$ac_delim
34982libdir!$libdir$ac_delim
34983localedir!$localedir$ac_delim
34984mandir!$mandir$ac_delim
34985DEFS!$DEFS$ac_delim
34986ECHO_C!$ECHO_C$ac_delim
34987ECHO_N!$ECHO_N$ac_delim
34988ECHO_T!$ECHO_T$ac_delim
34989LIBS!$LIBS$ac_delim
34990build_alias!$build_alias$ac_delim
34991host_alias!$host_alias$ac_delim
34992target_alias!$target_alias$ac_delim
34993LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34994subdirs!$subdirs$ac_delim
34995build!$build$ac_delim
34996build_cpu!$build_cpu$ac_delim
34997build_vendor!$build_vendor$ac_delim
34998build_os!$build_os$ac_delim
34999host!$host$ac_delim
35000host_cpu!$host_cpu$ac_delim
35001host_vendor!$host_vendor$ac_delim
35002host_os!$host_os$ac_delim
35003target!$target$ac_delim
35004target_cpu!$target_cpu$ac_delim
35005target_vendor!$target_vendor$ac_delim
35006target_os!$target_os$ac_delim
35007OS!$OS$ac_delim
35008LINKALL!$LINKALL$ac_delim
35009NOLINKALL!$NOLINKALL$ac_delim
35010LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35011LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000035012ARCH!$ARCH$ac_delim
35013ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035014CC!$CC$ac_delim
35015CFLAGS!$CFLAGS$ac_delim
35016LDFLAGS!$LDFLAGS$ac_delim
35017CPPFLAGS!$CPPFLAGS$ac_delim
35018ac_ct_CC!$ac_ct_CC$ac_delim
35019EXEEXT!$EXEEXT$ac_delim
35020OBJEXT!$OBJEXT$ac_delim
35021CPP!$CPP$ac_delim
35022GREP!$GREP$ac_delim
35023EGREP!$EGREP$ac_delim
35024LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35025BUILD_CC!$BUILD_CC$ac_delim
35026BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035027BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035028CVSBUILD!$CVSBUILD$ac_delim
35029ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000035030ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035031DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035032ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35033EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035034DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035035JIT!$JIT$ac_delim
35036TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35037ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35038ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035039ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035040TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Douglas Gregor1555a232009-06-16 20:12:29 +000035041LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
35042LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035043ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035044EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000035045BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035046CXX!$CXX$ac_delim
35047CXXFLAGS!$CXXFLAGS$ac_delim
35048ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000035049NM!$NM$ac_delim
35050ifGNUmake!$ifGNUmake$ac_delim
35051LN_S!$LN_S$ac_delim
35052CMP!$CMP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035053_ACEOF
35054
35055 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35056 break
35057 elif $ac_last_try; then
35058 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35059echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35060 { (exit 1); exit 1; }; }
35061 else
35062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035063 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035064done
35065
35066ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35067if test -n "$ac_eof"; then
35068 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35069 ac_eof=`expr $ac_eof + 1`
35070fi
35071
35072cat >>$CONFIG_STATUS <<_ACEOF
35073cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35074/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35075_ACEOF
35076sed '
35077s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35078s/^/s,@/; s/!/@,|#_!!_#|/
35079:n
35080t n
35081s/'"$ac_delim"'$/,g/; t
35082s/$/\\/; p
35083N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35084' >>$CONFIG_STATUS <conf$$subs.sed
35085rm -f conf$$subs.sed
35086cat >>$CONFIG_STATUS <<_ACEOF
35087CEOF$ac_eof
35088_ACEOF
35089
35090
35091ac_delim='%!_!# '
35092for ac_last_try in false false false false false :; do
35093 cat >conf$$subs.sed <<_ACEOF
Douglas Gregor1555a232009-06-16 20:12:29 +000035094CP!$CP$ac_delim
35095DATE!$DATE$ac_delim
David Greene2a5a12c2009-04-17 14:50:39 +000035096FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035097MKDIR!$MKDIR$ac_delim
35098MV!$MV$ac_delim
35099RANLIB!$RANLIB$ac_delim
35100RM!$RM$ac_delim
35101SED!$SED$ac_delim
35102TAR!$TAR$ac_delim
35103BINPWD!$BINPWD$ac_delim
35104GRAPHVIZ!$GRAPHVIZ$ac_delim
35105DOT!$DOT$ac_delim
35106GV!$GV$ac_delim
35107DOTTY!$DOTTY$ac_delim
35108PERL!$PERL$ac_delim
35109HAVE_PERL!$HAVE_PERL$ac_delim
35110INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35111INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35112INSTALL_DATA!$INSTALL_DATA$ac_delim
35113BZIP2!$BZIP2$ac_delim
35114DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035115GROFF!$GROFF$ac_delim
35116GZIP!$GZIP$ac_delim
35117POD2HTML!$POD2HTML$ac_delim
35118POD2MAN!$POD2MAN$ac_delim
35119RUNTEST!$RUNTEST$ac_delim
35120TCLSH!$TCLSH$ac_delim
35121ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035122OCAMLC!$OCAMLC$ac_delim
35123OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035124OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035125OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035126GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035127INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35128INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35129CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35130CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35131LIBADD_DL!$LIBADD_DL$ac_delim
35132ECHO!$ECHO$ac_delim
35133AR!$AR$ac_delim
35134STRIP!$STRIP$ac_delim
35135CXXCPP!$CXXCPP$ac_delim
35136F77!$F77$ac_delim
35137FFLAGS!$FFLAGS$ac_delim
35138ac_ct_F77!$ac_ct_F77$ac_delim
35139LIBTOOL!$LIBTOOL$ac_delim
Mikhail Glushenkov4558f482009-04-21 19:46:10 +000035140LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
35141LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
Douglas Gregor01746742009-05-11 18:05:52 +000035142LLVMGCC!$LLVMGCC$ac_delim
35143LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035144USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035145HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035146HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035147ALLOCA!$ALLOCA$ac_delim
35148MMAP_FILE!$MMAP_FILE$ac_delim
35149LLVMCC1!$LLVMCC1$ac_delim
35150LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35151LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035152LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035153LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35154LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035155LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035156SHLIBEXT!$SHLIBEXT$ac_delim
35157LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35158LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35159LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35160LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35161LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35162LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35163LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35164LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35165LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35166LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035167BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35168ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035169OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035170ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035171RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000035172RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035173LIBOBJS!$LIBOBJS$ac_delim
35174LTLIBOBJS!$LTLIBOBJS$ac_delim
35175_ACEOF
35176
Douglas Gregor1555a232009-06-16 20:12:29 +000035177 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
Reid Spencera773bd52006-08-04 18:18:08 +000035178 break
35179 elif $ac_last_try; then
35180 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35181echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35182 { (exit 1); exit 1; }; }
35183 else
35184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35185 fi
35186done
35187
35188ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35189if test -n "$ac_eof"; then
35190 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35191 ac_eof=`expr $ac_eof + 1`
35192fi
35193
35194cat >>$CONFIG_STATUS <<_ACEOF
35195cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35196/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35197_ACEOF
35198sed '
35199s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35200s/^/s,@/; s/!/@,|#_!!_#|/
35201:n
35202t n
35203s/'"$ac_delim"'$/,g/; t
35204s/$/\\/; p
35205N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35206' >>$CONFIG_STATUS <conf$$subs.sed
35207rm -f conf$$subs.sed
35208cat >>$CONFIG_STATUS <<_ACEOF
35209:end
35210s/|#_!!_#|//g
35211CEOF$ac_eof
35212_ACEOF
35213
35214
35215# VPATH may cause trouble with some makes, so we remove $(srcdir),
35216# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35217# trailing colons and then remove the whole line if VPATH becomes empty
35218# (actually we leave an empty line to preserve line numbers).
35219if test "x$srcdir" = x.; then
35220 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35221s/:*\$(srcdir):*/:/
35222s/:*\${srcdir}:*/:/
35223s/:*@srcdir@:*/:/
35224s/^\([^=]*=[ ]*\):*/\1/
35225s/:*$//
35226s/^[^=]*=[ ]*$//
35227}'
35228fi
35229
35230cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035231fi # test -n "$CONFIG_FILES"
35232
Reid Spencera773bd52006-08-04 18:18:08 +000035233
35234for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35235do
35236 case $ac_tag in
35237 :[FHLC]) ac_mode=$ac_tag; continue;;
35238 esac
35239 case $ac_mode$ac_tag in
35240 :[FHL]*:*);;
35241 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35242echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35243 { (exit 1); exit 1; }; };;
35244 :[FH]-) ac_tag=-:-;;
35245 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35246 esac
35247 ac_save_IFS=$IFS
35248 IFS=:
35249 set x $ac_tag
35250 IFS=$ac_save_IFS
35251 shift
35252 ac_file=$1
35253 shift
35254
35255 case $ac_mode in
35256 :L) ac_source=$1;;
35257 :[FH])
35258 ac_file_inputs=
35259 for ac_f
35260 do
35261 case $ac_f in
35262 -) ac_f="$tmp/stdin";;
35263 *) # Look for the file first in the build tree, then in the source tree
35264 # (if the path is not absolute). The absolute path cannot be DOS-style,
35265 # because $ac_f cannot contain `:'.
35266 test -f "$ac_f" ||
35267 case $ac_f in
35268 [\\/$]*) false;;
35269 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35270 esac ||
35271 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35272echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35273 { (exit 1); exit 1; }; };;
35274 esac
35275 ac_file_inputs="$ac_file_inputs $ac_f"
35276 done
35277
35278 # Let's still pretend it is `configure' which instantiates (i.e., don't
35279 # use $as_me), people would be surprised to read:
35280 # /* config.h. Generated by config.status. */
35281 configure_input="Generated from "`IFS=:
35282 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35283 if test x"$ac_file" != x-; then
35284 configure_input="$ac_file. $configure_input"
35285 { echo "$as_me:$LINENO: creating $ac_file" >&5
35286echo "$as_me: creating $ac_file" >&6;}
35287 fi
35288
35289 case $ac_tag in
35290 *:-:* | *:-) cat >"$tmp/stdin";;
35291 esac
35292 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035293 esac
35294
Reid Spencera773bd52006-08-04 18:18:08 +000035295 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035296$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035297 X"$ac_file" : 'X\(//\)[^/]' \| \
35298 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035299 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035300echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35302 s//\1/
35303 q
35304 }
35305 /^X\(\/\/\)[^/].*/{
35306 s//\1/
35307 q
35308 }
35309 /^X\(\/\/\)$/{
35310 s//\1/
35311 q
35312 }
35313 /^X\(\/\).*/{
35314 s//\1/
35315 q
35316 }
35317 s/.*/./; q'`
35318 { as_dir="$ac_dir"
35319 case $as_dir in #(
35320 -*) as_dir=./$as_dir;;
35321 esac
35322 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035323 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035324 while :; do
35325 case $as_dir in #(
35326 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35327 *) as_qdir=$as_dir;;
35328 esac
35329 as_dirs="'$as_qdir' $as_dirs"
35330 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035332 X"$as_dir" : 'X\(//\)[^/]' \| \
35333 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035334 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035335echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35337 s//\1/
35338 q
35339 }
35340 /^X\(\/\/\)[^/].*/{
35341 s//\1/
35342 q
35343 }
35344 /^X\(\/\/\)$/{
35345 s//\1/
35346 q
35347 }
35348 /^X\(\/\).*/{
35349 s//\1/
35350 q
35351 }
35352 s/.*/./; q'`
35353 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035354 done
Reid Spencera773bd52006-08-04 18:18:08 +000035355 test -z "$as_dirs" || eval "mkdir $as_dirs"
35356 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35357echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035358 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035359 ac_builddir=.
35360
Reid Spencera773bd52006-08-04 18:18:08 +000035361case "$ac_dir" in
35362.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35363*)
John Criswell7a73b802003-06-30 21:59:07 +000035364 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035365 # A ".." for each directory in $ac_dir_suffix.
35366 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35367 case $ac_top_builddir_sub in
35368 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35369 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35370 esac ;;
35371esac
35372ac_abs_top_builddir=$ac_pwd
35373ac_abs_builddir=$ac_pwd$ac_dir_suffix
35374# for backward compatibility:
35375ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035376
35377case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035378 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035379 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035380 ac_top_srcdir=$ac_top_builddir_sub
35381 ac_abs_top_srcdir=$ac_pwd ;;
35382 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035383 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035384 ac_top_srcdir=$srcdir
35385 ac_abs_top_srcdir=$srcdir ;;
35386 *) # Relative name.
35387 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35388 ac_top_srcdir=$ac_top_build_prefix$srcdir
35389 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035390esac
Reid Spencera773bd52006-08-04 18:18:08 +000035391ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035392
John Criswell7a73b802003-06-30 21:59:07 +000035393
Reid Spencera773bd52006-08-04 18:18:08 +000035394 case $ac_mode in
35395 :F)
35396 #
35397 # CONFIG_FILE
35398 #
John Criswell7a73b802003-06-30 21:59:07 +000035399
35400 case $INSTALL in
35401 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035402 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035403 esac
John Criswell7a73b802003-06-30 21:59:07 +000035404_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035405
35406cat >>$CONFIG_STATUS <<\_ACEOF
35407# If the template does not know about datarootdir, expand it.
35408# FIXME: This hack should be removed a few years after 2.60.
35409ac_datarootdir_hack=; ac_datarootdir_seen=
35410
35411case `sed -n '/datarootdir/ {
35412 p
35413 q
35414}
35415/@datadir@/p
35416/@docdir@/p
35417/@infodir@/p
35418/@localedir@/p
35419/@mandir@/p
35420' $ac_file_inputs` in
35421*datarootdir*) ac_datarootdir_seen=yes;;
35422*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35423 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35424echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35425_ACEOF
35426cat >>$CONFIG_STATUS <<_ACEOF
35427 ac_datarootdir_hack='
35428 s&@datadir@&$datadir&g
35429 s&@docdir@&$docdir&g
35430 s&@infodir@&$infodir&g
35431 s&@localedir@&$localedir&g
35432 s&@mandir@&$mandir&g
35433 s&\\\${datarootdir}&$datarootdir&g' ;;
35434esac
35435_ACEOF
35436
35437# Neutralize VPATH when `$srcdir' = `.'.
35438# Shell code in configure.ac might set extrasub.
35439# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035440cat >>$CONFIG_STATUS <<_ACEOF
35441 sed "$ac_vpsub
35442$extrasub
35443_ACEOF
35444cat >>$CONFIG_STATUS <<\_ACEOF
35445:t
35446/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035447s&@configure_input@&$configure_input&;t t
35448s&@top_builddir@&$ac_top_builddir_sub&;t t
35449s&@srcdir@&$ac_srcdir&;t t
35450s&@abs_srcdir@&$ac_abs_srcdir&;t t
35451s&@top_srcdir@&$ac_top_srcdir&;t t
35452s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35453s&@builddir@&$ac_builddir&;t t
35454s&@abs_builddir@&$ac_abs_builddir&;t t
35455s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35456s&@INSTALL@&$ac_INSTALL&;t t
35457$ac_datarootdir_hack
35458" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035459
Reid Spencera773bd52006-08-04 18:18:08 +000035460test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35461 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35462 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35463 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35464which seems to be undefined. Please make sure it is defined." >&5
35465echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35466which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035467
Reid Spencera773bd52006-08-04 18:18:08 +000035468 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035469 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035470 -) cat "$tmp/out"; rm -f "$tmp/out";;
35471 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035472 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035473 ;;
35474 :H)
35475 #
35476 # CONFIG_HEADER
35477 #
John Criswell7a73b802003-06-30 21:59:07 +000035478_ACEOF
35479
Reid Spencera773bd52006-08-04 18:18:08 +000035480# Transform confdefs.h into a sed script `conftest.defines', that
35481# substitutes the proper values into config.h.in to produce config.h.
35482rm -f conftest.defines conftest.tail
35483# First, append a space to every undef/define line, to ease matching.
35484echo 's/$/ /' >conftest.defines
35485# Then, protect against being on the right side of a sed subst, or in
35486# an unquoted here document, in config.status. If some macros were
35487# called several times there might be several #defines for the same
35488# symbol, which is useless. But do not sort them, since the last
35489# AC_DEFINE must be honored.
35490ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35491# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35492# NAME is the cpp macro being defined, VALUE is the value it is being given.
35493# PARAMS is the parameter list in the macro definition--in most cases, it's
35494# just an empty string.
35495ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35496ac_dB='\\)[ (].*,\\1define\\2'
35497ac_dC=' '
35498ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035499
Reid Spencera773bd52006-08-04 18:18:08 +000035500uniq confdefs.h |
35501 sed -n '
35502 t rset
35503 :rset
35504 s/^[ ]*#[ ]*define[ ][ ]*//
35505 t ok
35506 d
35507 :ok
35508 s/[\\&,]/\\&/g
35509 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35510 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35511 ' >>conftest.defines
35512
35513# Remove the space that was appended to ease matching.
35514# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035515# example, in the case of _POSIX_SOURCE, which is predefined and required
35516# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035517# (The regexp can be short, since the line contains either #define or #undef.)
35518echo 's/ $//
35519s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035520
Reid Spencera773bd52006-08-04 18:18:08 +000035521# Break up conftest.defines:
35522ac_max_sed_lines=50
35523
35524# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35525# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35526# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35527# et cetera.
35528ac_in='$ac_file_inputs'
35529ac_out='"$tmp/out1"'
35530ac_nxt='"$tmp/out2"'
35531
35532while :
John Criswell7a73b802003-06-30 21:59:07 +000035533do
Reid Spencera773bd52006-08-04 18:18:08 +000035534 # Write a here document:
35535 cat >>$CONFIG_STATUS <<_ACEOF
35536 # First, check the format of the line:
35537 cat >"\$tmp/defines.sed" <<\\CEOF
35538/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35539/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35540b
35541:def
35542_ACEOF
35543 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035544 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035545 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35546 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35547 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35548 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035549 rm -f conftest.defines
35550 mv conftest.tail conftest.defines
35551done
Reid Spencera773bd52006-08-04 18:18:08 +000035552rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035553
Reid Spencera773bd52006-08-04 18:18:08 +000035554echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035555cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035556 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035557 echo "/* $configure_input */" >"$tmp/config.h"
35558 cat "$ac_result" >>"$tmp/config.h"
35559 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035560 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35561echo "$as_me: $ac_file is unchanged" >&6;}
35562 else
John Criswell7a73b802003-06-30 21:59:07 +000035563 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035564 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035565 fi
35566 else
Reid Spencera773bd52006-08-04 18:18:08 +000035567 echo "/* $configure_input */"
35568 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035569 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035570 rm -f "$tmp/out12"
35571 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035572
Reid Spencera773bd52006-08-04 18:18:08 +000035573 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35574echo "$as_me: executing $ac_file commands" >&6;}
35575 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035576 esac
John Criswell7a73b802003-06-30 21:59:07 +000035577
Reid Spencera773bd52006-08-04 18:18:08 +000035578
35579 case $ac_file$ac_mode in
35580 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35581 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35582 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35583 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35584 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35585 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35586 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35587 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035588 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35589 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035590 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35591 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35592 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35593 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035594 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35595 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035596 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35597 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35598 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35599 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35600 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35601 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035602 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35603 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35604 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35605 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035606
35607 esac
35608done # for ac_tag
35609
John Criswell7a73b802003-06-30 21:59:07 +000035610
35611{ (exit 0); exit 0; }
35612_ACEOF
35613chmod +x $CONFIG_STATUS
35614ac_clean_files=$ac_clean_files_save
35615
35616
35617# configure is writing to config.log, and then calls config.status.
35618# config.status does its own redirection, appending to config.log.
35619# Unfortunately, on DOS this fails, as config.log is still kept open
35620# by configure, so config.status won't be able to write to it; its
35621# output is simply discarded. So we exec the FD to /dev/null,
35622# effectively closing config.log, so it can be properly (re)opened and
35623# appended to by config.status. When coming back to configure, we
35624# need to make the FD available again.
35625if test "$no_create" != yes; then
35626 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035627 ac_config_status_args=
35628 test "$silent" = yes &&
35629 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035630 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035631 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035632 exec 5>>config.log
35633 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35634 # would make configure fail if this is the last instruction.
35635 $ac_cs_success || { (exit 1); exit 1; }
35636fi
35637
John Criswell12399a12003-09-30 15:55:44 +000035638#
35639# CONFIG_SUBDIRS section.
35640#
35641if test "$no_recursion" != yes; then
35642
35643 # Remove --cache-file and --srcdir arguments so they do not pile up.
35644 ac_sub_configure_args=
35645 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035646 eval "set x $ac_configure_args"
35647 shift
35648 for ac_arg
35649 do
John Criswell12399a12003-09-30 15:55:44 +000035650 if test -n "$ac_prev"; then
35651 ac_prev=
35652 continue
35653 fi
35654 case $ac_arg in
35655 -cache-file | --cache-file | --cache-fil | --cache-fi \
35656 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35657 ac_prev=cache_file ;;
35658 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35659 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35660 | --c=*)
35661 ;;
35662 --config-cache | -C)
35663 ;;
35664 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35665 ac_prev=srcdir ;;
35666 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35667 ;;
35668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35669 ac_prev=prefix ;;
35670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35671 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035672 *)
35673 case $ac_arg in
35674 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35675 esac
35676 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035677 esac
35678 done
35679
35680 # Always prepend --prefix to ensure using the same prefix
35681 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035682 ac_arg="--prefix=$prefix"
35683 case $ac_arg in
35684 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35685 esac
Bill Wendlingebcceee2009-04-18 11:20:33 +000035686 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035687
35688 ac_popdir=`pwd`
35689 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35690
35691 # Do not complain, so a configure script can configure whichever
35692 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035693 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035694
Reid Spencera773bd52006-08-04 18:18:08 +000035695 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35696 echo "$as_me:$LINENO: $ac_msg" >&5
35697 echo "$ac_msg" >&6
35698 { as_dir="$ac_dir"
35699 case $as_dir in #(
35700 -*) as_dir=./$as_dir;;
35701 esac
35702 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035703 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035704 while :; do
35705 case $as_dir in #(
35706 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35707 *) as_qdir=$as_dir;;
35708 esac
35709 as_dirs="'$as_qdir' $as_dirs"
35710 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035711$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035712 X"$as_dir" : 'X\(//\)[^/]' \| \
35713 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035714 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035715echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35717 s//\1/
35718 q
35719 }
35720 /^X\(\/\/\)[^/].*/{
35721 s//\1/
35722 q
35723 }
35724 /^X\(\/\/\)$/{
35725 s//\1/
35726 q
35727 }
35728 /^X\(\/\).*/{
35729 s//\1/
35730 q
35731 }
35732 s/.*/./; q'`
35733 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035734 done
Reid Spencera773bd52006-08-04 18:18:08 +000035735 test -z "$as_dirs" || eval "mkdir $as_dirs"
35736 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35737echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035738 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035739 ac_builddir=.
35740
Reid Spencera773bd52006-08-04 18:18:08 +000035741case "$ac_dir" in
35742.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35743*)
John Criswell12399a12003-09-30 15:55:44 +000035744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035745 # A ".." for each directory in $ac_dir_suffix.
35746 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35747 case $ac_top_builddir_sub in
35748 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35749 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35750 esac ;;
35751esac
35752ac_abs_top_builddir=$ac_pwd
35753ac_abs_builddir=$ac_pwd$ac_dir_suffix
35754# for backward compatibility:
35755ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035756
35757case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035758 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035759 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035760 ac_top_srcdir=$ac_top_builddir_sub
35761 ac_abs_top_srcdir=$ac_pwd ;;
35762 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035763 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035764 ac_top_srcdir=$srcdir
35765 ac_abs_top_srcdir=$srcdir ;;
35766 *) # Relative name.
35767 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35768 ac_top_srcdir=$ac_top_build_prefix$srcdir
35769 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035770esac
Reid Spencera773bd52006-08-04 18:18:08 +000035771ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035772
35773
Reid Spencera773bd52006-08-04 18:18:08 +000035774 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035775
35776 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035777 if test -f "$ac_srcdir/configure.gnu"; then
35778 ac_sub_configure=$ac_srcdir/configure.gnu
35779 elif test -f "$ac_srcdir/configure"; then
35780 ac_sub_configure=$ac_srcdir/configure
35781 elif test -f "$ac_srcdir/configure.in"; then
35782 # This should be Cygnus configure.
35783 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035784 else
35785 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35786echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35787 ac_sub_configure=
35788 fi
35789
35790 # The recursion is here.
35791 if test -n "$ac_sub_configure"; then
35792 # Make the cache file name correct relative to the subdirectory.
35793 case $cache_file in
35794 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035795 *) # Relative name.
35796 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035797 esac
35798
Reid Spencera773bd52006-08-04 18:18:08 +000035799 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35800echo "$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 +000035801 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035802 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35803 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035804 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035805echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35806 { (exit 1); exit 1; }; }
35807 fi
35808
Reid Spencera773bd52006-08-04 18:18:08 +000035809 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035810 done
35811fi
35812